Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
97381ef
docs: Add v0.16 migration codemod
ntucker Mar 29, 2026
e808683
fix: bugbot
ntucker Mar 29, 2026
8d10823
Fix schema codemod: aliased import skipped when name already exists i…
cursoragent Mar 29, 2026
42be09c
fix: scope useFetch truthiness rewrites to enclosing function
cursoragent Mar 29, 2026
faf1adc
fix(codemod): use optional chaining in useFetch truthiness rewrite
cursoragent Mar 29, 2026
019edc8
fix(codemod): rewrite useFetch vars on both sides of LogicalExpression
cursoragent Mar 29, 2026
ca2a692
fix(codemod): preserve schema import when bare identifier references …
cursoragent Mar 29, 2026
c7d3c25
fix: bugbot
ntucker Mar 30, 2026
460f3da
fix(codemod): skip schema.Object and schema.Array in v0.16 transform
cursoragent Mar 30, 2026
a7677f3
Fix transformUseFetch to only apply when useFetch is imported from @d…
cursoragent Mar 30, 2026
255f8f2
fix(codemod): skip schema.X rewrites where schema is shadowed by loca…
cursoragent Mar 30, 2026
94727d0
fix(codemod): preserve boolean semantics for useFetch conditional fet…
cursoragent Mar 30, 2026
b9c004e
fix(codemod): detect top-level var/function/class bindings in scopeBi…
cursoragent Mar 30, 2026
9b24df8
fix(codemod): detect FunctionDeclaration/ClassDeclaration shadowing i…
cursoragent Mar 30, 2026
e57ce92
Fix transformUseFetch rewriting shadowed variables in nested callbacks
cursoragent Mar 30, 2026
460c9de
Guard transformPaths with @data-client import check
cursoragent Mar 30, 2026
b73054e
Fix resolveLocal collision: verify 'Schema'+name is also free of conf…
cursoragent Mar 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions website/blog/2026-01-19-v0.16-release-announcement.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ This upgrade requires updating all package versions simultaneously.

<PkgTabs pkgs="@data-client/react@^0.16.0 @data-client/rest@^0.16.0 @data-client/endpoint@^0.16.0 @data-client/core@^0.16.0 @data-client/vue@^0.16.0 @data-client/test@^0.16.0 @data-client/img@^0.16.0" upgrade />

An automated [codemod](/codemods/v0.16.js) handles all three breaking changes below — path syntax, `useFetch()` truthiness, and `schema` namespace imports:

```bash
npx jscodeshift -t https://dataclient.io/codemods/v0.16.js --extensions=ts,tsx,js,jsx src/
```

## path-to-regexp v8

[RestEndpoint.path](/rest/api/RestEndpoint#path) now uses [path-to-regexp v8](https://github.com/pillarjs/path-to-regexp/releases/tag/v8.0.0),
Expand Down
Loading