Skip to content

Commit b56c7e1

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

14 files changed

Lines changed: 31 additions & 30 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.17 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/coin-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@babel/runtime-corejs3": "7.29.2",
4747
"@data-client/img": "0.16.0",
4848
"@data-client/react": "0.16.7",
49-
"@data-client/rest": "0.17.0",
49+
"@data-client/rest": "0.18.0",
5050
"core-js": "3.49.0",
5151
"d3": "7.9.0",
5252
"history": "*",

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",

0 commit comments

Comments
 (0)