Skip to content

Commit 94c4964

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

File tree

17 files changed

+119
-54
lines changed

17 files changed

+119
-54
lines changed

.changeset/big-jars-drum.md

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

.changeset/empty-shoes-crash.md

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

examples/benchmark/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# example-benchmark
22

3+
## 0.4.49
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`cf770de`](https://github.com/reactive/data-client/commit/cf770de244ad890b286c59ac305ceb6c3b1288ea)]:
8+
- @data-client/core@0.13.0
9+
310
## 0.4.48
411

512
### Patch Changes

examples/benchmark/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-benchmark",
3-
"version": "0.4.48",
3+
"version": "0.4.49",
44
"description": "Benchmark for normalizr",
55
"main": "index.js",
66
"author": "Nathaniel Tucker",

examples/coin-app/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# coinbase-lite
22

3+
## 0.0.7
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`cf770de`](https://github.com/reactive/data-client/commit/cf770de244ad890b286c59ac305ceb6c3b1288ea), [`cf770de`](https://github.com/reactive/data-client/commit/cf770de244ad890b286c59ac305ceb6c3b1288ea)]:
8+
- @data-client/img@0.13.0
9+
- @data-client/react@0.13.0
10+
311
## 0.0.6
412

513
### Patch Changes

examples/coin-app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coinbase-lite",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"packageManager": "[email protected]",
55
"description": "Coin App",
66
"scripts": {
@@ -42,8 +42,8 @@
4242
"@anansi/core": "^0.20.0",
4343
"@anansi/router": "^0.10.0",
4444
"@babel/runtime": "^7.22.15",
45-
"@data-client/img": "^0.12.3",
46-
"@data-client/react": "^0.12.13",
45+
"@data-client/img": "^0.13.0",
46+
"@data-client/react": "^0.13.0",
4747
"@data-client/rest": "^0.12.3",
4848
"d3": "^7.9.0",
4949
"history": "*",

packages/core/CHANGELOG.md

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

3+
## 0.13.0
4+
5+
### Minor Changes
6+
7+
- [#3105](https://github.com/reactive/data-client/pull/3105) [`cf770de`](https://github.com/reactive/data-client/commit/cf770de244ad890b286c59ac305ceb6c3b1288ea) Thanks [@ntucker](https://github.com/ntucker)! - Add controller.set()
8+
9+
```ts
10+
ctrl.set(
11+
Todo,
12+
{ id: '5' },
13+
{ id: '5', title: 'tell me friends how great Data Client is' },
14+
);
15+
```
16+
17+
BREAKING CHANGE:
18+
19+
- actionTypes.SET_TYPE -> actionTypes.SET_RESPONSE_TYPE
20+
- SetAction -> SetResponseAction
21+
322
## 0.12.5
423

524
### Patch Changes
@@ -112,12 +131,12 @@
112131

113132
```tsx
114133
export const PostResource = createResource({
115-
path: "/posts/:id",
134+
path: '/posts/:id',
116135
schema: Post,
117-
}).extend((Base) => ({
136+
}).extend(Base => ({
118137
vote: new RestEndpoint({
119-
path: "/posts/:id/vote",
120-
method: "POST",
138+
path: '/posts/:id/vote',
139+
method: 'POST',
121140
body: undefined,
122141
schema: Post,
123142
getOptimisticResponse(snapshot, { id }) {
@@ -136,11 +155,11 @@
136155

137156
```tsx
138157
export const PostResource = createResource({
139-
path: "/posts/:id",
158+
path: '/posts/:id',
140159
schema: Post,
141-
}).extend("vote", {
142-
path: "/posts/:id/vote",
143-
method: "POST",
160+
}).extend('vote', {
161+
path: '/posts/:id/vote',
162+
method: 'POST',
144163
body: undefined,
145164
schema: Post,
146165
getOptimisticResponse(snapshot, { id }) {
@@ -302,12 +321,11 @@
302321

303322
```ts
304323
class LoggingManager implements Manager {
305-
getMiddleware =
306-
(): Middleware => (controller) => (next) => async (action) => {
307-
console.log("before", action, controller.getState());
308-
await next(action);
309-
console.log("after", action, controller.getState());
310-
};
324+
getMiddleware = (): Middleware => controller => next => async action => {
325+
console.log('before', action, controller.getState());
326+
await next(action);
327+
console.log('after', action, controller.getState());
328+
};
311329

312330
cleanup() {}
313331
}
@@ -351,16 +369,16 @@
351369
- f95dbc64d1: [Collections](https://dataclient.io/rest/api/Collection) can filter based on FormData arguments
352370

353371
```ts
354-
ctrl.fetch(getPosts.push, { group: "react" }, new FormData(e.currentTarget));
372+
ctrl.fetch(getPosts.push, { group: 'react' }, new FormData(e.currentTarget));
355373
```
356374

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

360378
```ts
361379
useSuspense(getPosts, {
362-
group: "react",
363-
author: "bob",
380+
group: 'react',
381+
author: 'bob',
364382
});
365383
```
366384

packages/core/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/core",
3-
"version": "0.12.5",
3+
"version": "0.13.0",
44
"description": "High performance mutable data framework.",
55
"sideEffects": false,
66
"main": "dist/index.js",

packages/img/CHANGELOG.md

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

3+
## 0.13.0
4+
5+
### Patch Changes
6+
7+
- [#3105](https://github.com/reactive/data-client/pull/3105) [`cf770de`](https://github.com/reactive/data-client/commit/cf770de244ad890b286c59ac305ceb6c3b1288ea) Thanks [@ntucker](https://github.com/ntucker)! - Support 0.13 of @data-client/react
8+
39
## 0.12.8
410

511
### 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.8",
3+
"version": "0.13.0",
44
"description": "Suspenseful images",
55
"homepage": "https://dataclient.io/docs/guides/img-media#just-images",
66
"repository": {

0 commit comments

Comments
 (0)