Skip to content

Commit 1de46b0

Browse files
internal: Publish new version (#3065)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c9ed452 commit 1de46b0

File tree

20 files changed

+161
-92
lines changed

20 files changed

+161
-92
lines changed

.changeset/thick-walls-act.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.changeset/wicked-ways-yawn.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/hooks/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @data-client/hooks
22

3+
## 0.1.11
4+
5+
### Patch Changes
6+
7+
- [#3071](https://github.com/reactive/data-client/pull/3071) [`7fba440`](https://github.com/reactive/data-client/commit/7fba44050a4e3fdcc37ab8405730b35366c293e1) Thanks [@ntucker](https://github.com/ntucker)! - React 19 JSX runtime compatibility.
8+
9+
BREAKING CHANGE: Min React version 16.8.4 -> 16.14
10+
11+
16.14 is the first version of React to include JSX runtime.
12+
313
## 0.1.10
414

515
### Patch Changes

packages/hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@data-client/hooks",
3-
"version": "0.1.10",
3+
"version": "0.1.11",
44
"description": "Collection of composable data hooks",
55
"homepage": "https://dataclient.io/docs/api/useDebounce",
66
"repository": {

packages/img/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @data-client/img
22

3+
## 0.12.8
4+
5+
### Patch Changes
6+
7+
- [#3071](https://github.com/reactive/data-client/pull/3071) [`7fba440`](https://github.com/reactive/data-client/commit/7fba44050a4e3fdcc37ab8405730b35366c293e1) Thanks [@ntucker](https://github.com/ntucker)! - React 19 JSX runtime compatibility.
8+
9+
BREAKING CHANGE: Min React version 16.8.4 -> 16.14
10+
11+
16.14 is the first version of React to include JSX runtime.
12+
313
## 0.12.3
414

515
### Patch Changes

packages/img/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@data-client/img",
3-
"version": "0.12.3",
3+
"version": "0.12.8",
44
"description": "Suspenseful images",
55
"homepage": "https://dataclient.io/docs/guides/img-media#just-images",
66
"repository": {

packages/react/CHANGELOG.md

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# @data-client/react
22

3+
## 0.12.8
4+
5+
### Patch Changes
6+
7+
- [#3071](https://github.com/reactive/data-client/pull/3071) [`7fba440`](https://github.com/reactive/data-client/commit/7fba44050a4e3fdcc37ab8405730b35366c293e1) Thanks [@ntucker](https://github.com/ntucker)! - React 19 JSX runtime compatibility.
8+
9+
BREAKING CHANGE: Min React version 16.8.4 -> 16.14
10+
11+
16.14 is the first version of React to include JSX runtime.
12+
13+
- Updated dependencies [[`7fba440`](https://github.com/reactive/data-client/commit/7fba44050a4e3fdcc37ab8405730b35366c293e1)]:
14+
- @data-client/use-enhanced-reducer@0.1.8
15+
316
## 0.12.5
417

518
### Patch Changes
@@ -59,14 +72,14 @@
5972

6073
```ts
6174
const getThing = new Endpoint(
62-
(args: { postId: string | number; sortBy?: "votes" | "recent" }) =>
75+
(args: { postId: string | number; sortBy?: 'votes' | 'recent' }) =>
6376
Promise.resolve({ a: 5, ...args }),
6477
{ schema: MyEntity },
6578
);
6679

6780
const myThing = useSuspense(getThing, {
68-
postId: "5",
69-
sortBy: "votes",
81+
postId: '5',
82+
sortBy: 'votes',
7083
});
7184
```
7285

@@ -186,24 +199,24 @@
186199

187200
```ts
188201
class User extends Entity {
189-
username = "";
190-
id = "";
191-
groupId = "";
202+
username = '';
203+
id = '';
204+
groupId = '';
192205
pk() {
193206
return this.id;
194207
}
195-
static index = ["username" as const];
208+
static index = ['username' as const];
196209
}
197210

198-
const bob = useQuery(User, { username: "bob" });
211+
const bob = useQuery(User, { username: 'bob' });
199212
```
200213

201214
```ts
202215
const getUserCount = new schema.Query(
203216
new schema.All(User),
204217
(entries, { isAdmin } = {}) => {
205218
if (isAdmin !== undefined)
206-
return entries.filter((user) => user.isAdmin === isAdmin).length;
219+
return entries.filter(user => user.isAdmin === isAdmin).length;
207220
return entries.length;
208221
},
209222
);
@@ -219,7 +232,7 @@
219232
}),
220233
});
221234

222-
const usersInGroup = useQuery(UserCollection, { groupId: "5" });
235+
const usersInGroup = useQuery(UserCollection, { groupId: '5' });
223236
```
224237

225238
- [#2921](https://github.com/reactive/data-client/pull/2921) [`6e55026`](https://github.com/reactive/data-client/commit/6e550260672507592d75c4781dc2563a50e664fa) Thanks [@ntucker](https://github.com/ntucker)! - Add [controller.get](https://dataclient.io/docs/api/Controller#get) / [snapshot.get](https://dataclient.io/docs/api/Snapshot#get) to directly read [Querable Schemas](https://dataclient.io/docs/api/useQuery#queryable)
@@ -228,12 +241,12 @@
228241

229242
```tsx
230243
export const PostResource = createResource({
231-
path: "/posts/:id",
244+
path: '/posts/:id',
232245
schema: Post,
233-
}).extend((Base) => ({
246+
}).extend(Base => ({
234247
vote: new RestEndpoint({
235-
path: "/posts/:id/vote",
236-
method: "POST",
248+
path: '/posts/:id/vote',
249+
method: 'POST',
237250
body: undefined,
238251
schema: Post,
239252
getOptimisticResponse(snapshot, { id }) {
@@ -252,11 +265,11 @@
252265

253266
```tsx
254267
export const PostResource = createResource({
255-
path: "/posts/:id",
268+
path: '/posts/:id',
256269
schema: Post,
257-
}).extend("vote", {
258-
path: "/posts/:id/vote",
259-
method: "POST",
270+
}).extend('vote', {
271+
path: '/posts/:id/vote',
272+
method: 'POST',
260273
body: undefined,
261274
schema: Post,
262275
getOptimisticResponse(snapshot, { id }) {
@@ -462,7 +475,7 @@
462475
Current testing version is already [using the provider Component directly](https://dataclient.io/docs/api/makeRenderDataClient)
463476

464477
```tsx
465-
import { CacheProvider } from "@data-client/react";
478+
import { CacheProvider } from '@data-client/react';
466479
const renderDataClient = makeRenderDataClient(CacheProvider);
467480
```
468481

@@ -517,7 +530,7 @@
517530
pk(): string {
518531
return `${this.trade_id}`;
519532
}
520-
static key = "Ticker";
533+
static key = 'Ticker';
521534

522535
static schema = {
523536
price: Number,
@@ -537,7 +550,7 @@
537550
pk(): string {
538551
return `${this.trade_id}`;
539552
}
540-
static key = "Ticker";
553+
static key = 'Ticker';
541554

542555
static schema = {
543556
price: Number,
@@ -564,16 +577,16 @@
564577
- f95dbc64d1: [Collections](https://dataclient.io/rest/api/Collection) can filter based on FormData arguments
565578

566579
```ts
567-
ctrl.fetch(getPosts.push, { group: "react" }, new FormData(e.currentTarget));
580+
ctrl.fetch(getPosts.push, { group: 'react' }, new FormData(e.currentTarget));
568581
```
569582

570583
Say our FormData contained an `author` field. Now that newly created
571584
item will be properly added to the [collection list](https://dataclient.io/rest/api/Collection) for that author.
572585

573586
```ts
574587
useSuspense(getPosts, {
575-
group: "react",
576-
author: "bob",
588+
group: 'react',
589+
author: 'bob',
577590
});
578591
```
579592

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@data-client/react",
3-
"version": "0.12.5",
3+
"version": "0.12.8",
44
"description": "High performance mutable data rendering in React.",
55
"homepage": "https://dataclient.io",
66
"repository": {
@@ -129,7 +129,7 @@
129129
"dependencies": {
130130
"@babel/runtime": "^7.17.0",
131131
"@data-client/core": "^0.12.5",
132-
"@data-client/use-enhanced-reducer": "^0.1.7"
132+
"@data-client/use-enhanced-reducer": "^0.1.8"
133133
},
134134
"peerDependencies": {
135135
"@react-navigation/native": "^6.0.0",

packages/redux/CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @data-client/redux
22

3+
## 0.12.8
4+
5+
### Patch Changes
6+
7+
- [#3071](https://github.com/reactive/data-client/pull/3071) [`7fba440`](https://github.com/reactive/data-client/commit/7fba44050a4e3fdcc37ab8405730b35366c293e1) Thanks [@ntucker](https://github.com/ntucker)! - React 19 JSX runtime compatibility.
8+
9+
BREAKING CHANGE: Min React version 16.8.4 -> 16.14
10+
11+
16.14 is the first version of React to include JSX runtime.
12+
313
## 0.12.3
414

515
### Patch Changes
@@ -140,7 +150,7 @@
140150
Current testing version is already [using the provider Component directly](https://dataclient.io/docs/api/makeRenderDataClient)
141151

142152
```tsx
143-
import { CacheProvider } from "@data-client/react";
153+
import { CacheProvider } from '@data-client/react';
144154
const renderDataClient = makeRenderDataClient(CacheProvider);
145155
```
146156

packages/redux/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@data-client/redux",
3-
"version": "0.12.3",
3+
"version": "0.12.8",
44
"description": "Asynchronous data framework for React",
55
"homepage": "https://dataclient.io",
66
"repository": {

0 commit comments

Comments
 (0)