Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 0 additions & 7 deletions .changeset/angry-spoons-play.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/mean-hotels-attack.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-candles-stick.md

This file was deleted.

32 changes: 0 additions & 32 deletions .changeset/wide-berries-smell.md

This file was deleted.

9 changes: 9 additions & 0 deletions examples/benchmark/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# example-benchmark

## 0.4.74

### Patch Changes

- Updated dependencies [[`a6af54c`](https://github.com/reactive/data-client/commit/a6af54c1bc2193de47c96938df74b243cb82bfe6), [`d84899d`](https://github.com/reactive/data-client/commit/d84899de4fb784375ab7a34fff6fe23a2ed98037)]:
- @data-client/[email protected]
- @data-client/[email protected]
- @data-client/[email protected]

## 0.4.73

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/benchmark/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example-benchmark",
"version": "0.4.73",
"version": "0.4.74",
"description": "Benchmark for normalizr",
"main": "index.js",
"author": "Nathaniel Tucker",
Expand Down
8 changes: 8 additions & 0 deletions examples/normalizr-github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# normalizr-github-example

## 0.1.50

### Patch Changes

- Updated dependencies [[`a6af54c`](https://github.com/reactive/data-client/commit/a6af54c1bc2193de47c96938df74b243cb82bfe6), [`d84899d`](https://github.com/reactive/data-client/commit/d84899de4fb784375ab7a34fff6fe23a2ed98037)]:
- @data-client/[email protected]
- @data-client/[email protected]

## 0.1.49

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/normalizr-github/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "normalizr-github-example",
"version": "0.1.49",
"version": "0.1.50",
"description": "And example of using Normalizr with github",
"main": "index.js",
"author": "Paul Armstrong",
Expand Down
8 changes: 8 additions & 0 deletions examples/normalizr-redux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# normalizr-redux-example

## 0.1.48

### Patch Changes

- Updated dependencies [[`a6af54c`](https://github.com/reactive/data-client/commit/a6af54c1bc2193de47c96938df74b243cb82bfe6), [`d84899d`](https://github.com/reactive/data-client/commit/d84899de4fb784375ab7a34fff6fe23a2ed98037)]:
- @data-client/[email protected]
- @data-client/[email protected]

## 0.1.47

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/normalizr-redux/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "normalizr-redux-example",
"version": "0.1.47",
"version": "0.1.48",
"description": "And example of using Normalizr with Redux",
"main": "index.js",
"author": "Paul Armstrong",
Expand Down
8 changes: 8 additions & 0 deletions examples/normalizr-relationships/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# normalizr-relationships

## 0.1.50

### Patch Changes

- Updated dependencies [[`a6af54c`](https://github.com/reactive/data-client/commit/a6af54c1bc2193de47c96938df74b243cb82bfe6), [`d84899d`](https://github.com/reactive/data-client/commit/d84899de4fb784375ab7a34fff6fe23a2ed98037)]:
- @data-client/[email protected]
- @data-client/[email protected]

## 0.1.49

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/normalizr-relationships/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "normalizr-relationships",
"version": "0.1.49",
"version": "0.1.50",
"description": "And example of using Normalizr with relationships",
"main": "index.js",
"author": "Paul Armstrong",
Expand Down
33 changes: 33 additions & 0 deletions packages/endpoint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# @data-client/endpoint

## 0.14.25

### Patch Changes

- [#3417](https://github.com/reactive/data-client/pull/3417) [`a6af54c`](https://github.com/reactive/data-client/commit/a6af54c1bc2193de47c96938df74b243cb82bfe6) Thanks [@ntucker](https://github.com/ntucker)! - Update getOptimisticResponse snapshot types to include getResponseMeta

- [#3407](https://github.com/reactive/data-client/pull/3407) [`d84899d`](https://github.com/reactive/data-client/commit/d84899de4fb784375ab7a34fff6fe23a2ed98037) Thanks [@ntucker](https://github.com/ntucker)! - Support dynamic invalidation/deletes

Returning `undefined` from [Entity.process](https://dataclient.io/rest/api/Entity#process)
will cause the [Entity](https://dataclient.io/rest/api/Entity) to be [invalidated](https://dataclient.io/docs/concepts/expiry-policy#invalidate-entity).
This this allows us to invalidate dynamically; based on the particular response data.

```ts
class PriceLevel extends Entity {
price = 0;
amount = 0;

pk() {
return this.price;
}

static process(
input: [number, number],
parent: any,
key: string | undefined,
): any {
const [price, amount] = input;
if (amount === 0) return undefined;
return { price, amount };
}
}
```

## 0.14.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/endpoint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@data-client/endpoint",
"version": "0.14.21",
"version": "0.14.25",
"description": "Declarative Network Interface Definitions",
"homepage": "https://dataclient.io/docs/guides/custom-protocol",
"keywords": [
Expand Down
36 changes: 36 additions & 0 deletions packages/graphql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# @data-client/graphql

## 0.14.25

### Patch Changes

- [#3417](https://github.com/reactive/data-client/pull/3417) [`a6af54c`](https://github.com/reactive/data-client/commit/a6af54c1bc2193de47c96938df74b243cb82bfe6) Thanks [@ntucker](https://github.com/ntucker)! - Update getOptimisticResponse snapshot types to include getResponseMeta

- [#3407](https://github.com/reactive/data-client/pull/3407) [`d84899d`](https://github.com/reactive/data-client/commit/d84899de4fb784375ab7a34fff6fe23a2ed98037) Thanks [@ntucker](https://github.com/ntucker)! - Support dynamic invalidation/deletes

Returning `undefined` from [Entity.process](https://dataclient.io/rest/api/Entity#process)
will cause the [Entity](https://dataclient.io/rest/api/Entity) to be [invalidated](https://dataclient.io/docs/concepts/expiry-policy#invalidate-entity).
This this allows us to invalidate dynamically; based on the particular response data.

```ts
class PriceLevel extends Entity {
price = 0;
amount = 0;

pk() {
return this.price;
}

static process(
input: [number, number],
parent: any,
key: string | undefined,
): any {
const [price, amount] = input;
if (amount === 0) return undefined;
return { price, amount };
}
}
```

- Updated dependencies [[`a6af54c`](https://github.com/reactive/data-client/commit/a6af54c1bc2193de47c96938df74b243cb82bfe6), [`d84899d`](https://github.com/reactive/data-client/commit/d84899de4fb784375ab7a34fff6fe23a2ed98037)]:
- @data-client/[email protected]

## 0.14.21

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@data-client/graphql",
"version": "0.14.21",
"version": "0.14.25",
"description": "Quickly define typed GraphQL resources and endpoints",
"homepage": "https://dataclient.io/docs/graphql",
"repository": {
Expand Down Expand Up @@ -107,7 +107,7 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.20.0",
"@data-client/endpoint": "^0.14.21"
"@data-client/endpoint": "^0.14.25"
},
"devDependencies": {
"@anansi/browserslist-config": "^1.4.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/img/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.20.0",
"@data-client/endpoint": "^0.14.21"
"@data-client/endpoint": "^0.14.25"
},
"peerDependencies": {
"@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",
Expand Down
10 changes: 10 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @data-client/react

## 0.14.25

### Patch Changes

- [#3398](https://github.com/reactive/data-client/pull/3398) [`d716159`](https://github.com/reactive/data-client/commit/d716159634a067790cd330c4a8c1660fe5f92973) Thanks [@ntucker](https://github.com/ntucker)! - Use controller.getResponseMeta() in hooks

No behavior change, just anticipating API updates to controller

- [`d6eab29`](https://github.com/reactive/data-client/commit/d6eab2993c3da86d06753cbb50caebc5e19309e2) Thanks [@ntucker](https://github.com/ntucker)! - docs: Add links to platforms

## 0.14.24

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@data-client/react",
"version": "0.14.24",
"version": "0.14.25",
"description": "Async State Management without the Management. REST, GraphQL, SSE, Websockets, Fetch",
"homepage": "https://dataclient.io",
"repository": {
Expand Down
36 changes: 36 additions & 0 deletions packages/rest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# @data-client/rest

## 0.14.25

### Patch Changes

- [#3417](https://github.com/reactive/data-client/pull/3417) [`a6af54c`](https://github.com/reactive/data-client/commit/a6af54c1bc2193de47c96938df74b243cb82bfe6) Thanks [@ntucker](https://github.com/ntucker)! - Update getOptimisticResponse snapshot types to include getResponseMeta

- [#3407](https://github.com/reactive/data-client/pull/3407) [`d84899d`](https://github.com/reactive/data-client/commit/d84899de4fb784375ab7a34fff6fe23a2ed98037) Thanks [@ntucker](https://github.com/ntucker)! - Support dynamic invalidation/deletes

Returning `undefined` from [Entity.process](https://dataclient.io/rest/api/Entity#process)
will cause the [Entity](https://dataclient.io/rest/api/Entity) to be [invalidated](https://dataclient.io/docs/concepts/expiry-policy#invalidate-entity).
This this allows us to invalidate dynamically; based on the particular response data.

```ts
class PriceLevel extends Entity {
price = 0;
amount = 0;

pk() {
return this.price;
}

static process(
input: [number, number],
parent: any,
key: string | undefined,
): any {
const [price, amount] = input;
if (amount === 0) return undefined;
return { price, amount };
}
}
```

- Updated dependencies [[`a6af54c`](https://github.com/reactive/data-client/commit/a6af54c1bc2193de47c96938df74b243cb82bfe6), [`d84899d`](https://github.com/reactive/data-client/commit/d84899de4fb784375ab7a34fff6fe23a2ed98037)]:
- @data-client/[email protected]

## 0.14.22

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/rest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@data-client/rest",
"version": "0.14.22",
"version": "0.14.25",
"description": "Quickly define typed REST resources and endpoints",
"homepage": "https://dataclient.io/rest",
"repository": {
Expand Down Expand Up @@ -135,7 +135,7 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.20.0",
"@data-client/endpoint": "^0.14.21",
"@data-client/endpoint": "^0.14.25",
"path-to-regexp": "^6.3.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3090,7 +3090,7 @@ __metadata:
languageName: unknown
linkType: soft

"@data-client/endpoint@npm:^0.14.21, @data-client/endpoint@workspace:*, @data-client/endpoint@workspace:^, @data-client/endpoint@workspace:packages/endpoint":
"@data-client/endpoint@npm:^0.14.25, @data-client/endpoint@workspace:*, @data-client/endpoint@workspace:^, @data-client/endpoint@workspace:packages/endpoint":
version: 0.0.0-use.local
resolution: "@data-client/endpoint@workspace:packages/endpoint"
dependencies:
Expand All @@ -3113,7 +3113,7 @@ __metadata:
dependencies:
"@anansi/browserslist-config": "npm:^1.4.2"
"@babel/runtime": "npm:^7.20.0"
"@data-client/endpoint": "npm:^0.14.21"
"@data-client/endpoint": "npm:^0.14.25"
"@types/jest": "npm:^29.5.14"
"@types/node": "npm:^22.0.0"
nock: "npm:13.3.1"
Expand All @@ -3127,7 +3127,7 @@ __metadata:
dependencies:
"@anansi/browserslist-config": "npm:^1.4.2"
"@babel/runtime": "npm:^7.20.0"
"@data-client/endpoint": "npm:^0.14.21"
"@data-client/endpoint": "npm:^0.14.25"
"@data-client/react": "workspace:*"
"@testing-library/react": "npm:^16.1.0"
"@types/jest": "npm:^29.5.14"
Expand Down Expand Up @@ -3210,7 +3210,7 @@ __metadata:
dependencies:
"@anansi/browserslist-config": "npm:^1.4.2"
"@babel/runtime": "npm:^7.20.0"
"@data-client/endpoint": "npm:^0.14.21"
"@data-client/endpoint": "npm:^0.14.25"
"@data-client/react": "workspace:*"
"@data-client/test": "workspace:*"
"@types/jest": "npm:^29.5.14"
Expand Down