Skip to content
Closed
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
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"$schema": "https://unpkg.com/@changesets/config@4.0.1/schema.json",
"changelog": ["./changelog-github-custom.js", { "repo": "reactive/data-client" }],
"commit": false,
"linked": [
Expand All @@ -26,5 +26,6 @@
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
},
"privatePackages": { "version": true, "tag": false },
"ignore": []
}
7 changes: 7 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@
"groupSlug": "react-navigation-monorepo",
"groupName": "react-navigation monorepo"
},
{
"description": "changesets/action requires a matching Changesets CLI (action v2 refuses CLI v2), so every update of either lands in one PR",
"matchPackageNames": ["changesets/action", "@changesets/cli"],
"separateMajorMinor": false,
"groupName": "changesets",
"groupSlug": "changesets"
},
{
"matchPackageNames": ["node", "@types/node", "cimg/node"],
"matchUpdateTypes": ["major"],
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/agent-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
uses: actions/checkout@v7
with:
fetch-depth: 1
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '26'
# no install: these only need node and git
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmark-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
fetch-depth: 1
# PR code runs here; the benchmark action passes its own token to git
persist-credentials: false
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '26'
cache: 'yarn'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmark-spread.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
fetch-depth: 1
# PR code runs here; the benchmark action passes its own token to git
persist-credentials: false
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '26'
cache: 'yarn'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
fetch-depth: 1
# PR code runs here; the benchmark action passes its own token to git
persist-credentials: false
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '26'
cache: 'yarn'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '26'
cache: 'yarn'
Expand All @@ -41,12 +41,12 @@ jobs:

- name: Create Beta Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
uses: changesets/action@v2.1.2
with:
version: yarn changeset:version:beta
publish: yarn changeset:publish:beta
commit: "internal: Publish beta version"
title: "Version Packages (Beta)"
createGithubReleases: false
version-script: yarn changeset:version:beta
publish-script: yarn changeset:publish:beta
commit-message: "internal: Publish beta version"
pr-title: "Version Packages (Beta)"
create-github-releases: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/bundle_size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
fetch-depth: 2
# PR code runs here; the action's git fetches need no token (public repo)
persist-credentials: false
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '26'
cache: 'yarn'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
run: echo "sha=$(git -C release rev-parse HEAD)" >> "$GITHUB_OUTPUT"
# No dependency cache: this job runs the release's third-party code,
# which must not leave anything later runs restore
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '26'
- run: corepack enable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/regenerate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
with:
fetch-depth: 1
persist-credentials: false
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '26'
cache: 'yarn'
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '26'
cache: 'yarn'
Expand All @@ -39,21 +39,21 @@ jobs:

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
uses: changesets/action@v2.1.2
with:
version: yarn changeset:version
publish: yarn changeset:publish
commit: "internal: Publish new version"
createGithubReleases: false
version-script: yarn changeset:version
publish-script: yarn changeset:publish
commit-message: "internal: Publish new version"
create-github-releases: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# hasChangesets is 'false' after the Version Packages PR is merged (no
# has-changesets is 'false' after the Version Packages PR is merged (no
# changeset files remain), which is the same run where publish executes.
# We can't use `published == 'true'` because the custom yarn publish
# command isn't detectable by changesets/action.
- name: Create GitHub Releases
if: steps.changesets.outputs.hasChangesets == 'false'
if: steps.changesets.outputs.has-changesets == 'false'
run: node scripts/create-github-releases.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -63,7 +63,7 @@ jobs:
# at <version>.dataclient.io
- name: Find docs to archive
id: archive
if: steps.changesets.outputs.hasChangesets == 'false'
if: steps.changesets.outputs.has-changesets == 'false'
env:
BEFORE: ${{ github.event.before }}
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/site-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
if: github.event_name != 'pull_request'
run: |
[ ! -f website/versionCurrent.json ] || echo "next=1" >> "$GITHUB_OUTPUT"
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '26'
cache: 'yarn'
Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:
filter: blob:none
# No dependency cache, like an archive build: the branch has its own lockfile
- if: steps.current.outputs.sha && !steps.cache.outputs.cache-hit
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version: '26'
- name: Build
Expand Down Expand Up @@ -342,7 +342,7 @@ jobs:
{ echo "::error::vercel.json has no /next/:path* redirect to drop"; exit 1; }
jq '.redirects |= map(select(.source != "/next/:path*"))' website/vercel.json > vercel.json.tmp
mv vercel.json.tmp website/vercel.json
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '26'
- run: npm install --global "vercel@$VERCEL_CLI_VERSION"
Expand Down
2 changes: 1 addition & 1 deletion docs/core/concepts/expiry-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ render(<Demo />);
Using the [Invalidate schema](/rest/api/Invalidate) allows us to invalidate _any_ endpoint that includes that relies on that [entity](/rest/api/Entity) in their
response. If the endpoint uses the entity in an [Array](/rest/api/Array), it will simply be removed from that [Array](/rest/api/Array).

<FrameworkPlayground fixtures={[
<FrameworkPlayground row fixtures={[
{
endpoint: new RestEndpoint({
path: '/api/currentTime/:id',
Expand Down
2 changes: 1 addition & 1 deletion docs/core/shared/_StreamManagerDemo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ replace `PriceSource` with `new EventSource(url)` or `new WebSocket(url)` to use
Edit the manager and the preview restarts with your version, keeping the prices it already has.
Open the Store to watch each pushed `set` arrive.

<HooksPlayground defaultTab="StreamManager">
<HooksPlayground defaultTab="StreamManager" row>

```ts title="Ticker" collapsed
import { Entity } from '@data-client/rest';
Expand Down
2 changes: 1 addition & 1 deletion docs/graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ suspends.
<details>
<summary><b>SWAPI Demo</b></summary>

<HooksPlayground>
<HooksPlayground row>

```tsx
import { useSuspense } from '@data-client/react';
Expand Down
2 changes: 1 addition & 1 deletion docs/rest/guides/mocking-unfinished.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ but they are starting to code the same time as you. It would be nice to easily
mock the endpoint and use it in a way such that when the endpoint is done
you won't need to make major changes to your code.

<HooksPlayground>
<HooksPlayground row>

```typescript title="resources/Rating"
import { Entity, resource } from '@data-client/rest';
Expand Down
2 changes: 1 addition & 1 deletion docs/rest/guides/relational-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Nesting data when your endpoint doesn't.
Even if the network responses don't nest data, we can perform client-side joins by specifying
the relationship in [Entity.schema](../api/Entity.md#schema)

<FrameworkPlayground>
<FrameworkPlayground row>

```ts title="resources/User" collapsed
import { Entity, resource } from '@data-client/rest';
Expand Down
25 changes: 16 additions & 9 deletions examples/github-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/github-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@data-client/img": "0.18.2",
"@data-client/react": "0.18.2",
"@data-client/rest": "0.18.2",
"temporal-polyfill": "^0.3.0",
"temporal-polyfill": "^1.0.0",
"antd": "6.6.6",
"core-js": "^3.48.0",
"history": "^5.3.0",
Expand Down
12 changes: 9 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ process.env.ANANSI_JEST_TSCONFIG = 'tsconfig.test.json';
const fs = require('fs');
const path = require('path');

// ESM-only dependencies tests import; Jest must compile them to CommonJS
const esmModules = 'temporal-polyfill|temporal-utils';

const baseConfig = {
transformIgnorePatterns: [
`/node_modules/(?!@babel/runtime|${esmModules})`,
'\\.pnp\\.[^\\/]+$',
],
testEnvironmentOptions: {
globalsCleanup: 'on',
url: 'http://localhost',
Expand Down Expand Up @@ -108,8 +115,7 @@ const projects = [
],
},
transformIgnorePatterns: [
'/node_modules/(?!@babel/runtime)',
'\\.pnp\\.[^\\/]+$',
...baseConfig.transformIgnorePatterns,
'<rootDir>/.*__tests__/[^/]+\\.(web|native)\\.(j|t)sx?$',
],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.node\\.(j|t)sx?$',
Expand All @@ -136,7 +142,7 @@ const projects = [
testEnvironment:
require.resolve('@react-native/jest-preset/jest/react-native-env.js'),
transformIgnorePatterns: [
'node_modules\\/(?!(((jest-)?react-native)|@react-native(-community)?|@react-navigation))',
`node_modules\\/(?!(((jest-)?react-native)|@react-native(-community)?|@react-navigation|${esmModules}))`,
'<rootDir>/.*__tests__/[^/]+\\.(web|node)\\.(j|t)sx?$',
'<rootDir>/scripts',
],
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
"@babel/core": "8.0.7",
"@babel/node": "8.0.6",
"@babel/preset-flow": "^8.0.0",
"@changesets/changelog-github": "^0.7.0",
"@changesets/cli": "^2.26.1",
"@changesets/changelog-github": "^1.0.1",
"@changesets/cli": "^3.0.3",
"@data-client/react": "workspace:*",
"@data-client/rest": "workspace:*",
"@data-client/test": "workspace:*",
Expand Down Expand Up @@ -111,14 +111,14 @@
"prettier": "3.9.10",
"react": "19.3.0",
"react-dom": "19.3.0",
"react-live": "^4.0.0",
"react-live": "^5.0.0",
"react-native": "0.87.1",
"react-native-safe-area-context": "^5.0.0",
"react-native-screens": "^4.1.0",
"react-test-renderer": "19.3.0",
"rimraf": "^6.0.0",
"rollup": "4.62.2",
"temporal-polyfill": "^0.3.0",
"temporal-polyfill": "^1.0.0",
"typescript": "npm:@typescript/typescript6@6.0.2",
"whatwg-fetch": "3.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/endpoint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,6 @@
"immutable": "5.1.9",
"nock": "13.3.1",
"rollup-plugins": "workspace:*",
"temporal-polyfill": "^0.3.0"
"temporal-polyfill": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/normalizr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@
"@types/node": "^26.0.0",
"immutable": "5.1.9",
"rollup-plugins": "workspace:*",
"temporal-polyfill": "^0.3.0"
"temporal-polyfill": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,6 @@
"react-test-renderer": "^19.0.0",
"redux": "^5.0.1",
"rollup-plugins": "workspace:*",
"temporal-polyfill": "^0.3.0"
"temporal-polyfill": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"jest-mock": "^30.0.0",
"nock": "13.3.1",
"rollup-plugins": "workspace:*",
"temporal-polyfill": "^0.3.0",
"temporal-polyfill": "^1.0.0",
"vue": "^3.4.0"
}
}
2 changes: 1 addition & 1 deletion scripts/create-github-releases.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Creates GitHub releases for published packages.
* Scans all packages, checks if a release already exists for the current version,
* and creates one if not. Gated in CI by `hasChangesets == 'false'` so it only
* and creates one if not. Gated in CI by `has-changesets == 'false'` so it only
* runs after the Version Packages PR is merged and publish executes.
*/
import { execSync } from 'child_process';
Expand Down
Loading
Loading