Skip to content

Commit 89e06d3

Browse files
committed
pkg: Fix peerDeps for 0.18
1 parent 959465a commit 89e06d3

13 files changed

Lines changed: 30 additions & 29 deletions

File tree

.changeset/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"@data-client/normalizr",
1212
"@data-client/react",
1313
"@data-client/rest",
14-
"@data-client/test"
14+
"@data-client/test",
15+
"@data-client/vue"
1516
]
1617
],
1718
"fixed": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
'@data-client/test': patch
44
---
55

6-
Bump `@data-client/react` peer dependency range to include `^0.17.0`.
6+
Bump `@data-client/react` peer dependency range to include `^0.18.0`.

.cursor/skills/data-client-v0.17-migration/SKILL.md renamed to .cursor/skills/data-client-v0.18-migration/SKILL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
name: data-client-v0.17-migration
3-
description: Migrate custom @data-client schemas from the v0.16 denormalize(input, args, unvisit) signature to the v0.17 denormalize(input, delegate) signature. Use when upgrading to v0.17, when seeing TS errors about unvisit not being callable, or when adapting custom Schema implementations.
2+
name: data-client-v0.18-migration
3+
description: Migrate custom @data-client schemas from the v0.18 denormalize(input, args, unvisit) signature to the v0.18 denormalize(input, delegate) signature. Use when upgrading to v0.18, when seeing TS errors about unvisit not being callable, or when adapting custom Schema implementations.
44
---
55

6-
# @data-client v0.17 Migration
6+
# @data-client v0.18 Migration
77

88
Applies to anyone implementing a custom [`Schema`](https://dataclient.io/docs/api/Schema)`SchemaSimple`, `SchemaClass`, polymorphic wrappers, or types that subclass `EntityMixin` directly. Built-in schemas (`Entity`, `resource()`, `Collection`, `Union`, `Values`, `Array`, `Object`, `Query`, `Invalidate`, `Lazy`) are migrated by the library.
99

1010
The automated codemod handles the common cases:
1111

1212
```bash
13-
npx jscodeshift -t https://dataclient.io/codemods/v0.17.js --extensions=ts,tsx,js,jsx src/
13+
npx jscodeshift -t https://dataclient.io/codemods/v0.18.js --extensions=ts,tsx,js,jsx src/
1414
```
1515

1616
This skill describes what it does and how to handle the cases it can't.

examples/github-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@data-client/graphql": "0.16.3",
5858
"@data-client/img": "0.16.0",
5959
"@data-client/react": "0.16.7",
60-
"@data-client/rest": "0.17.0",
60+
"@data-client/rest": "0.18.0",
6161
"temporal-polyfill": "^0.3.0",
6262
"antd": "6.3.6",
6363
"core-js": "^3.48.0",

examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@babel/core": "^7.24.7",
2121
"@babel/runtime-corejs3": "^7.26.10",
2222
"@data-client/react": "^0.16.0",
23-
"@data-client/rest": "^0.17.0",
23+
"@data-client/rest": "^0.18.0",
2424
"@number-flow/react": "^0.6.0",
2525
"@types/node": "24.12.2",
2626
"@types/react": "19.2.14",

examples/todo-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@babel/runtime-corejs3": "^7.26.7",
4848
"@data-client/endpoint": "0.16.6",
4949
"@data-client/react": "0.16.7",
50-
"@data-client/rest": "0.17.0",
50+
"@data-client/rest": "0.18.0",
5151
"core-js": "^3.40.0",
5252
"react": "19.2.3",
5353
"react-dom": "19.2.3",

examples/vue-todo-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"dependencies": {
1818
"@data-client/vue": "^0.16.0",
19-
"@data-client/rest": "0.17.0",
19+
"@data-client/rest": "0.18.0",
2020
"vue": "^3.5.22",
2121
"vue-router": "^4.6.3",
2222
"uuid": "^14.0.0"

packages/img/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"@data-client/endpoint": "workspace:^"
7979
},
8080
"peerDependencies": {
81-
"@data-client/react": "^0.1.0 || ^0.2.0 || ^0.3.0 || ^0.4.0 || ^0.5.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0",
81+
"@data-client/react": "^0.1.0 || ^0.2.0 || ^0.3.0 || ^0.4.0 || ^0.5.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0",
8282
"@types/react": "^16.14.0 || ^17.0.0 || ^18.0.0-0 || ^19.0.0",
8383
"react": "^16.14.0 || ^17.0.0 || ^18.0.0-0 || ^19.0.0"
8484
},

packages/test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"@testing-library/react": "^16.0.0"
121121
},
122122
"peerDependencies": {
123-
"@data-client/react": "^0.12.15 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0",
123+
"@data-client/react": "^0.12.15 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0",
124124
"@testing-library/react-hooks": "^8.0.0",
125125
"@testing-library/react-native": "^13.0.0",
126126
"@types/react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-0 || ^19.0.0",

website/blog/2026-04-24-v0.17-scalar-typed-downloads.md renamed to website/blog/2026-04-24-v0.18-scalar-typed-downloads.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'v0.17: Scalar, Typed File Downloads, Filter-aware Collections'
2+
title: 'v0.18: Scalar, Typed File Downloads, Filter-aware Collections'
33
description: Lens-dependent entity fields with Scalar, typed file downloads via RestEndpoint content, automatic binary handling, and resource() nonFilterArgumentKeys for sort-aware collections
44
authors: [ntucker]
55
tags: [releases, rest, schema, endpoint, collection]
@@ -10,24 +10,24 @@ import ScalarDemo from '../../docs/rest/shared/\_ScalarDemo.mdx';
1010

1111
**New Features:**
1212

13-
- [Scalar schema](/blog/2026/04/24/v0.17-scalar-typed-downloads#scalar) - Lens-dependent entity fields (e.g. portfolio-specific values) without ever mutating the underlying entity
14-
- [RestEndpoint `content` property](/blog/2026/04/24/v0.17-scalar-typed-downloads#content-property) - Typed file downloads, text responses, and streaming with a single property
15-
- [resource() `nonFilterArgumentKeys`](/blog/2026/04/24/v0.17-scalar-typed-downloads#non-filter-argument-keys) - Sort/pagination args don't fragment your [Collections](/rest/api/Collection)
13+
- [Scalar schema](/blog/2026/04/24/v0.18-scalar-typed-downloads#scalar) - Lens-dependent entity fields (e.g. portfolio-specific values) without ever mutating the underlying entity
14+
- [RestEndpoint `content` property](/blog/2026/04/24/v0.18-scalar-typed-downloads#content-property) - Typed file downloads, text responses, and streaming with a single property
15+
- [resource() `nonFilterArgumentKeys`](/blog/2026/04/24/v0.18-scalar-typed-downloads#non-filter-argument-keys) - Sort/pagination args don't fragment your [Collections](/rest/api/Collection)
1616

1717
**Other Improvements:**
1818

19-
- [Binary Content-Type auto-detection](/blog/2026/04/24/v0.17-scalar-typed-downloads#binary-auto-detection) - Images, PDFs, and other binary responses are handled automatically with no configuration ([#3868](https://github.com/reactive/data-client/pull/3868))
19+
- [Binary Content-Type auto-detection](/blog/2026/04/24/v0.18-scalar-typed-downloads#binary-auto-detection) - Images, PDFs, and other binary responses are handled automatically with no configuration ([#3868](https://github.com/reactive/data-client/pull/3868))
2020
- [Collection extender body types match HTTP method semantics](/rest/api/Collection) - PATCH extenders (`.move`, `.remove`) accept partial bodies; standalone `RestEndpoint` derives a typed body from the Collection's entity schema ([#3910](https://github.com/reactive/data-client/pull/3910))
2121
- Export [`CollectionOptions`](/rest/api/Collection) from `@data-client/endpoint` and `@data-client/rest` for typed Collection construction ([#3904](https://github.com/reactive/data-client/pull/3904))
2222

23-
**[Breaking Changes:](/blog/2026/04/24/v0.17-scalar-typed-downloads#migration-guide)**
23+
**[Breaking Changes:](/blog/2026/04/24/v0.18-scalar-typed-downloads#migration-guide)**
2424

25-
- [Schema.denormalize() takes a delegate](/blog/2026/04/24/v0.17-scalar-typed-downloads#denormalize-delegate) - `denormalize(input, args, unvisit)``denormalize(input, delegate)`. Affects custom [Schema](/docs/api/Schema) implementations only.
25+
- [Schema.denormalize() takes a delegate](/blog/2026/04/24/v0.18-scalar-typed-downloads#denormalize-delegate) - `denormalize(input, args, unvisit)``denormalize(input, delegate)`. Affects custom [Schema](/docs/api/Schema) implementations only.
2626

27-
Upgrade with the automated [codemod](/codemods/v0.17.js):
27+
Upgrade with the automated [codemod](/codemods/v0.18.js):
2828

2929
```bash
30-
npx jscodeshift -t https://dataclient.io/codemods/v0.17.js --extensions=ts,tsx,js,jsx src/
30+
npx jscodeshift -t https://dataclient.io/codemods/v0.18.js --extensions=ts,tsx,js,jsx src/
3131
```
3232

3333
{/* truncate */}
@@ -193,7 +193,7 @@ const ep = new RestEndpoint({
193193

194194
This upgrade requires updating all package versions simultaneously.
195195

196-
<PkgTabs pkgs="@data-client/react@^0.17.0 @data-client/rest@^0.17.0 @data-client/endpoint@^0.17.0 @data-client/core@^0.17.0 @data-client/vue@^0.17.0 @data-client/test@^0.17.0 @data-client/img@^0.17.0" upgrade />
196+
<PkgTabs pkgs="@data-client/react@^0.18.0 @data-client/rest@^0.18.0 @data-client/endpoint@^0.18.0 @data-client/core@^0.18.0 @data-client/vue@^0.18.0 @data-client/test@^0.18.0 @data-client/img@^0.18.0" upgrade />
197197

198198
The breaking change in this release affects only **custom [Schema](/docs/api/Schema) implementations**.
199199
If you only use built-in schemas (`Entity`, `resource()`, `Collection`, `Union`, `Values`, `Array`,
@@ -284,7 +284,7 @@ See [Scalar](/rest/api/Scalar) for a worked example.
284284

285285
AI-assisted migration is also available:
286286

287-
<SkillTabs repo="reactive/data-client" skill="data-client-v0.17-migration" />
287+
<SkillTabs repo="reactive/data-client" skill="data-client-v0.18-migration" />
288288

289289
#### Additive: `parentEntity` on normalize/visit
290290

0 commit comments

Comments
 (0)