diff --git a/.changeset/pink-dodos-protect.md b/.changeset/pink-dodos-protect.md deleted file mode 100644 index d1b7eb6ae3ed..000000000000 --- a/.changeset/pink-dodos-protect.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@data-client/react': patch -'@data-client/core': patch ---- - -Add jsdocs to IdlingNetworkManager diff --git a/.changeset/real-days-camp.md b/.changeset/real-days-camp.md deleted file mode 100644 index 944ce11bc8ee..000000000000 --- a/.changeset/real-days-camp.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@data-client/core': patch -'@data-client/react': patch ---- - -NetworkManager constructor uses keyword args - -#### Before - -```ts -new NetworkManager(42, 7); -``` - -#### After - -```ts -new NetworkManager({ dataExpiryLength: 42, errorExpiryLength: 7 }); -``` \ No newline at end of file diff --git a/.changeset/real-ties-trade.md b/.changeset/real-ties-trade.md deleted file mode 100644 index 56ae8e483dbf..000000000000 --- a/.changeset/real-ties-trade.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@data-client/endpoint': patch -'@data-client/react': patch -'@data-client/graphql': patch -'@data-client/rest': patch ---- - -Update debugging link diff --git a/.changeset/rude-wolves-march.md b/.changeset/rude-wolves-march.md deleted file mode 100644 index 443dea0900e7..000000000000 --- a/.changeset/rude-wolves-march.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@data-client/core': patch -'@data-client/react': patch ---- - -state.endpoints moved above indexes - -`entites` and `endpoints` are the most commonly inspected -parts of state when debugging, so it is better to have endpoints -above indexes. \ No newline at end of file diff --git a/.changeset/witty-papayas-battle.md b/.changeset/witty-papayas-battle.md deleted file mode 100644 index 49bbe58692ef..000000000000 --- a/.changeset/witty-papayas-battle.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -'@data-client/react': patch ---- - -Add configuration to [getDefaultManagers()](https://dataclient.io/docs/api/getDefaultManagers) - -```ts -// completely remove DevToolsManager -const managers = getDefaultManagers({ devToolsManager: null }); -``` - -```ts -// easier configuration -const managers = getDefaultManagers({ - devToolsManager: { - // double latency to help with high frequency updates - latency: 1000, - // skip websocket updates as these are too spammy - predicate: (state, action) => - action.type !== actionTypes.SET_TYPE || action.schema !== Ticker, - } -}); -``` - -```ts -// passing instance allows us to use custom classes as well -const managers = getDefaultManagers({ - networkManager: new CustomNetworkManager(), -}); -``` \ No newline at end of file diff --git a/examples/benchmark/CHANGELOG.md b/examples/benchmark/CHANGELOG.md index 70c2f8740ab2..b53e341db045 100644 --- a/examples/benchmark/CHANGELOG.md +++ b/examples/benchmark/CHANGELOG.md @@ -1,5 +1,13 @@ # example-benchmark +## 0.4.57 + +### Patch Changes + +- Updated dependencies [[`b932dca`](https://github.com/reactive/data-client/commit/b932dca45a4fcf60c00db8da509162f253065769), [`e4751d9`](https://github.com/reactive/data-client/commit/e4751d9cd0ee26567d7632ea4707ca181901ff89), [`0adad92`](https://github.com/reactive/data-client/commit/0adad9209265c388eb6d334afe681610bccfb877), [`09ad848`](https://github.com/reactive/data-client/commit/09ad848879db55bb441d93336dd7442d3f484d49)]: + - @data-client/core@0.14.4 + - @data-client/endpoint@0.14.4 + ## 0.4.56 ### Patch Changes diff --git a/examples/benchmark/package.json b/examples/benchmark/package.json index edc1aae99f1d..f5f4464c5d41 100644 --- a/examples/benchmark/package.json +++ b/examples/benchmark/package.json @@ -1,6 +1,6 @@ { "name": "example-benchmark", - "version": "0.4.56", + "version": "0.4.57", "description": "Benchmark for normalizr", "main": "index.js", "author": "Nathaniel Tucker", diff --git a/examples/normalizr-github/CHANGELOG.md b/examples/normalizr-github/CHANGELOG.md index 26cc6ceb0fdd..4398ff630faf 100644 --- a/examples/normalizr-github/CHANGELOG.md +++ b/examples/normalizr-github/CHANGELOG.md @@ -1,5 +1,12 @@ # normalizr-github-example +## 0.1.39 + +### Patch Changes + +- Updated dependencies [[`0adad92`](https://github.com/reactive/data-client/commit/0adad9209265c388eb6d334afe681610bccfb877)]: + - @data-client/endpoint@0.14.4 + ## 0.1.38 ### Patch Changes diff --git a/examples/normalizr-github/package.json b/examples/normalizr-github/package.json index c36abbcc490f..9558fbf7db8e 100644 --- a/examples/normalizr-github/package.json +++ b/examples/normalizr-github/package.json @@ -1,6 +1,6 @@ { "name": "normalizr-github-example", - "version": "0.1.38", + "version": "0.1.39", "description": "And example of using Normalizr with github", "main": "index.js", "author": "Paul Armstrong", diff --git a/examples/normalizr-redux/CHANGELOG.md b/examples/normalizr-redux/CHANGELOG.md index 616df0f5a246..edf5a42308c7 100644 --- a/examples/normalizr-redux/CHANGELOG.md +++ b/examples/normalizr-redux/CHANGELOG.md @@ -1,5 +1,12 @@ # normalizr-redux-example +## 0.1.37 + +### Patch Changes + +- Updated dependencies [[`0adad92`](https://github.com/reactive/data-client/commit/0adad9209265c388eb6d334afe681610bccfb877)]: + - @data-client/endpoint@0.14.4 + ## 0.1.36 ### Patch Changes diff --git a/examples/normalizr-redux/package.json b/examples/normalizr-redux/package.json index 63fe4ecb5bec..c5ca49ad7e96 100644 --- a/examples/normalizr-redux/package.json +++ b/examples/normalizr-redux/package.json @@ -1,6 +1,6 @@ { "name": "normalizr-redux-example", - "version": "0.1.36", + "version": "0.1.37", "description": "And example of using Normalizr with Redux", "main": "index.js", "author": "Paul Armstrong", diff --git a/examples/normalizr-relationships/CHANGELOG.md b/examples/normalizr-relationships/CHANGELOG.md index e827bdc3fbef..9adaddc6e8e7 100644 --- a/examples/normalizr-relationships/CHANGELOG.md +++ b/examples/normalizr-relationships/CHANGELOG.md @@ -1,5 +1,12 @@ # normalizr-relationships +## 0.1.39 + +### Patch Changes + +- Updated dependencies [[`0adad92`](https://github.com/reactive/data-client/commit/0adad9209265c388eb6d334afe681610bccfb877)]: + - @data-client/endpoint@0.14.4 + ## 0.1.38 ### Patch Changes diff --git a/examples/normalizr-relationships/package.json b/examples/normalizr-relationships/package.json index eb25597833fc..f59356d8ba8e 100644 --- a/examples/normalizr-relationships/package.json +++ b/examples/normalizr-relationships/package.json @@ -1,6 +1,6 @@ { "name": "normalizr-relationships", - "version": "0.1.38", + "version": "0.1.39", "description": "And example of using Normalizr with relationships", "main": "index.js", "author": "Paul Armstrong", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index c2e6e05a9ea4..6c95cbbce978 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,31 @@ # @data-client/core +## 0.14.4 + +### Patch Changes + +- [#3161](https://github.com/reactive/data-client/pull/3161) [`b932dca`](https://github.com/reactive/data-client/commit/b932dca45a4fcf60c00db8da509162f253065769) Thanks [@ntucker](https://github.com/ntucker)! - Add jsdocs to IdlingNetworkManager + +- [`e4751d9`](https://github.com/reactive/data-client/commit/e4751d9cd0ee26567d7632ea4707ca181901ff89) Thanks [@ntucker](https://github.com/ntucker)! - NetworkManager constructor uses keyword args + + #### Before + + ```ts + new NetworkManager(42, 7); + ``` + + #### After + + ```ts + new NetworkManager({ dataExpiryLength: 42, errorExpiryLength: 7 }); + ``` + +- [`09ad848`](https://github.com/reactive/data-client/commit/09ad848879db55bb441d93336dd7442d3f484d49) Thanks [@ntucker](https://github.com/ntucker)! - state.endpoints moved above indexes + + `entites` and `endpoints` are the most commonly inspected + parts of state when debugging, so it is better to have endpoints + above indexes. + ## 0.14.2 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index ab920d42df96..17d01f9358e0 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@data-client/core", - "version": "0.14.2", + "version": "0.14.4", "description": "High performance mutable data framework.", "sideEffects": false, "main": "dist/index.js", diff --git a/packages/endpoint/CHANGELOG.md b/packages/endpoint/CHANGELOG.md index d2038a79d2a8..055c95a6402d 100644 --- a/packages/endpoint/CHANGELOG.md +++ b/packages/endpoint/CHANGELOG.md @@ -1,5 +1,11 @@ # @data-client/endpoint +## 0.14.4 + +### Patch Changes + +- [`0adad92`](https://github.com/reactive/data-client/commit/0adad9209265c388eb6d334afe681610bccfb877) Thanks [@ntucker](https://github.com/ntucker)! - Update debugging link + ## 0.14.3 ### Patch Changes diff --git a/packages/endpoint/package.json b/packages/endpoint/package.json index 17f9345f7fec..fa73f642487d 100644 --- a/packages/endpoint/package.json +++ b/packages/endpoint/package.json @@ -1,6 +1,6 @@ { "name": "@data-client/endpoint", - "version": "0.14.3", + "version": "0.14.4", "description": "Declarative Network Interface Definitions", "homepage": "https://dataclient.io/docs/guides/custom-protocol", "keywords": [ diff --git a/packages/graphql/CHANGELOG.md b/packages/graphql/CHANGELOG.md index 67027b86b58f..d69258db402a 100644 --- a/packages/graphql/CHANGELOG.md +++ b/packages/graphql/CHANGELOG.md @@ -1,5 +1,14 @@ # @data-client/graphql +## 0.14.4 + +### Patch Changes + +- [`0adad92`](https://github.com/reactive/data-client/commit/0adad9209265c388eb6d334afe681610bccfb877) Thanks [@ntucker](https://github.com/ntucker)! - Update debugging link + +- Updated dependencies [[`0adad92`](https://github.com/reactive/data-client/commit/0adad9209265c388eb6d334afe681610bccfb877)]: + - @data-client/endpoint@0.14.4 + ## 0.14.3 ### Patch Changes diff --git a/packages/graphql/package.json b/packages/graphql/package.json index 79409365e280..d4ee33391f82 100644 --- a/packages/graphql/package.json +++ b/packages/graphql/package.json @@ -1,6 +1,6 @@ { "name": "@data-client/graphql", - "version": "0.14.3", + "version": "0.14.4", "description": "Endpoints for GraphQL APIs", "homepage": "https://dataclient.io/docs/graphql", "repository": { @@ -105,7 +105,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.17.0", - "@data-client/endpoint": "^0.14.3" + "@data-client/endpoint": "^0.14.4" }, "devDependencies": { "@anansi/browserslist-config": "^1.4.2", diff --git a/packages/img/package.json b/packages/img/package.json index 40d93c95d857..1981b583aa0b 100644 --- a/packages/img/package.json +++ b/packages/img/package.json @@ -70,7 +70,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.17.0", - "@data-client/endpoint": "^0.14.1" + "@data-client/endpoint": "^0.14.4" }, "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", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 2fb4a27e433f..366e52a88b73 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,63 @@ # @data-client/react +## 0.14.4 + +### Patch Changes + +- [#3161](https://github.com/reactive/data-client/pull/3161) [`b932dca`](https://github.com/reactive/data-client/commit/b932dca45a4fcf60c00db8da509162f253065769) Thanks [@ntucker](https://github.com/ntucker)! - Add jsdocs to IdlingNetworkManager + +- [`e4751d9`](https://github.com/reactive/data-client/commit/e4751d9cd0ee26567d7632ea4707ca181901ff89) Thanks [@ntucker](https://github.com/ntucker)! - NetworkManager constructor uses keyword args + + #### Before + + ```ts + new NetworkManager(42, 7); + ``` + + #### After + + ```ts + new NetworkManager({ dataExpiryLength: 42, errorExpiryLength: 7 }); + ``` + +- [`0adad92`](https://github.com/reactive/data-client/commit/0adad9209265c388eb6d334afe681610bccfb877) Thanks [@ntucker](https://github.com/ntucker)! - Update debugging link + +- [`09ad848`](https://github.com/reactive/data-client/commit/09ad848879db55bb441d93336dd7442d3f484d49) Thanks [@ntucker](https://github.com/ntucker)! - state.endpoints moved above indexes + + `entites` and `endpoints` are the most commonly inspected + parts of state when debugging, so it is better to have endpoints + above indexes. + +- [#3161](https://github.com/reactive/data-client/pull/3161) [`b932dca`](https://github.com/reactive/data-client/commit/b932dca45a4fcf60c00db8da509162f253065769) Thanks [@ntucker](https://github.com/ntucker)! - Add configuration to [getDefaultManagers()](https://dataclient.io/docs/api/getDefaultManagers) + + ```ts + // completely remove DevToolsManager + const managers = getDefaultManagers({ devToolsManager: null }); + ``` + + ```ts + // easier configuration + const managers = getDefaultManagers({ + devToolsManager: { + // double latency to help with high frequency updates + latency: 1000, + // skip websocket updates as these are too spammy + predicate: (state, action) => + action.type !== actionTypes.SET_TYPE || action.schema !== Ticker, + }, + }); + ``` + + ```ts + // passing instance allows us to use custom classes as well + const managers = getDefaultManagers({ + networkManager: new CustomNetworkManager(), + }); + ``` + +- Updated dependencies [[`b932dca`](https://github.com/reactive/data-client/commit/b932dca45a4fcf60c00db8da509162f253065769), [`e4751d9`](https://github.com/reactive/data-client/commit/e4751d9cd0ee26567d7632ea4707ca181901ff89), [`09ad848`](https://github.com/reactive/data-client/commit/09ad848879db55bb441d93336dd7442d3f484d49)]: + - @data-client/core@0.14.4 + ## 0.14.2 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index bed3368f622b..379341614580 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@data-client/react", - "version": "0.14.2", + "version": "0.14.4", "description": "High performance mutable data rendering in React.", "homepage": "https://dataclient.io", "repository": { @@ -169,7 +169,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.17.0", - "@data-client/core": "^0.14.2", + "@data-client/core": "^0.14.4", "@data-client/use-enhanced-reducer": "^0.1.10" }, "peerDependencies": { diff --git a/packages/rest/CHANGELOG.md b/packages/rest/CHANGELOG.md index 83ec97bf7b89..4aabb5226072 100644 --- a/packages/rest/CHANGELOG.md +++ b/packages/rest/CHANGELOG.md @@ -1,5 +1,14 @@ # @data-client/rest +## 0.14.4 + +### Patch Changes + +- [`0adad92`](https://github.com/reactive/data-client/commit/0adad9209265c388eb6d334afe681610bccfb877) Thanks [@ntucker](https://github.com/ntucker)! - Update debugging link + +- Updated dependencies [[`0adad92`](https://github.com/reactive/data-client/commit/0adad9209265c388eb6d334afe681610bccfb877)]: + - @data-client/endpoint@0.14.4 + ## 0.14.3 ### Patch Changes diff --git a/packages/rest/package.json b/packages/rest/package.json index d8c4cbc8182a..1d4d2c8e260b 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -1,6 +1,6 @@ { "name": "@data-client/rest", - "version": "0.14.3", + "version": "0.14.4", "description": "Endpoints for REST APIs", "homepage": "https://dataclient.io/rest", "repository": { @@ -131,7 +131,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.17.0", - "@data-client/endpoint": "^0.14.3", + "@data-client/endpoint": "^0.14.4", "path-to-regexp": "^6.2.1" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 2142cf114cba..628a1e62b986 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3170,7 +3170,7 @@ __metadata: languageName: node linkType: hard -"@data-client/core@npm:^0.14.2, @data-client/core@workspace:^, @data-client/core@workspace:packages/core": +"@data-client/core@npm:^0.14.4, @data-client/core@workspace:^, @data-client/core@workspace:packages/core": version: 0.0.0-use.local resolution: "@data-client/core@workspace:packages/core" dependencies: @@ -3182,7 +3182,7 @@ __metadata: languageName: unknown linkType: soft -"@data-client/endpoint@npm:^0.14.1, @data-client/endpoint@npm:^0.14.3, @data-client/endpoint@workspace:*, @data-client/endpoint@workspace:^, @data-client/endpoint@workspace:packages/endpoint": +"@data-client/endpoint@npm:^0.14.4, @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: @@ -3199,7 +3199,7 @@ __metadata: dependencies: "@anansi/browserslist-config": "npm:^1.4.2" "@babel/runtime": "npm:^7.17.0" - "@data-client/endpoint": "npm:^0.14.3" + "@data-client/endpoint": "npm:^0.14.4" "@types/node": "npm:^20.0.0" languageName: unknown linkType: soft @@ -3210,7 +3210,7 @@ __metadata: dependencies: "@anansi/browserslist-config": "npm:^1.4.2" "@babel/runtime": "npm:^7.17.0" - "@data-client/endpoint": "npm:^0.14.1" + "@data-client/endpoint": "npm:^0.14.4" "@data-client/react": "workspace:*" "@types/node": "npm:^20.0.0" "@types/react": "npm:^18.0.30" @@ -3250,7 +3250,7 @@ __metadata: dependencies: "@anansi/browserslist-config": "npm:^1.4.2" "@babel/runtime": "npm:^7.17.0" - "@data-client/core": "npm:^0.14.2" + "@data-client/core": "npm:^0.14.4" "@data-client/use-enhanced-reducer": "npm:^0.1.10" "@react-navigation/native": "npm:^6.1.6" "@types/node": "npm:^20.0.0" @@ -3292,7 +3292,7 @@ __metadata: dependencies: "@anansi/browserslist-config": "npm:^1.4.2" "@babel/runtime": "npm:^7.17.0" - "@data-client/endpoint": "npm:^0.14.3" + "@data-client/endpoint": "npm:^0.14.4" "@types/node": "npm:^20.0.0" path-to-regexp: "npm:^6.2.1" languageName: unknown