Skip to content

Commit 312712b

Browse files
committed
Merge branch 'master' into beta
2 parents 742a7c1 + 354b44c commit 312712b

File tree

81 files changed

+6774
-736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+6774
-736
lines changed

.changeset/cuddly-masks-yawn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@data-client/vue': minor
3+
---
4+
5+
@data-client/vue first release

.changeset/large-walls-accept.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@data-client/endpoint': patch
3+
'@data-client/graphql': patch
4+
'@data-client/rest': patch
5+
---
6+
7+
fix: Collection.remove with Unions

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version: 2.1
66
executors:
77
node:
88
docker: &docker
9-
- image: cimg/node:24.9
9+
- image: cimg/node:24.10
1010
environment:
1111
# the whole CI is reset each time anyway, so only track local cache
1212
YARN_ENABLE_GLOBAL_CACHE: false

.github/copilot-instructions.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
- `packages/endpoint`: base Endpoint types; `packages/rest`: REST modeling (`resource()`, `RestEndpoint`).
1313
- `packages/core`: framework-agnostic normalized store, actions, Controller, Managers.
1414
- `packages/react`: React bindings (hooks like `useSuspense`, `useLive`, `useQuery`, `DataProvider`).
15-
- `packages/normalizr`: schema/Entity/normalization; used by rest/core/react.
15+
- `packages/vue`: Vue 3 composables (`useSuspense`, `useQuery`, `useLive`, `provideDataClient`).
16+
- `packages/normalizr`: schema/Entity/normalization; used by rest/core/react/vue.
1617

1718
### Developer workflows
1819
- Build all packages: `yarn build` (runs `tsc --build` + each workspace build). Clean with `yarn build:clean`.
@@ -34,12 +35,15 @@
3435
- TypeScript 5.9 project references are used; ambient `.d.ts` files are copied during build (`build:copy:ambient`).
3536

3637
### Where to look first
37-
- High-level usage: root `README.md` and `packages/*/README.md` (react, rest, core) show canonical patterns.
38+
- High-level usage: root `README.md` and `packages/*/README.md` (react, rest, core, vue) show canonical patterns.
3839
- REST patterns: `docs/rest/*`; Core/Controller/Managers: `docs/core/api/*`.
3940
- Example apps: `examples/todo-app`, `examples/github-app`, `examples/nextjs` demonstrate resources, hooks, mutations, and Managers.
41+
- Vue patterns: `packages/vue/src/consumers/` for composables, `packages/vue/src/__tests__/` for Vue-specific test patterns.
4042

4143
### Testing patterns
4244
- Prefer `renderDataHook()` from `@data-client/test` with `initialFixtures`/`resolverFixtures` for hook tests.
4345
- Use `nock` for low-level HTTP tests of endpoints. Keep tests under `packages/*/src/**/__tests__`.
46+
- Vue tests use `@vue/test-utils` with `mount()` and Vue's `Suspense` component for async rendering.
47+
- Test file naming: `.node.test.ts[x]` for Node-only, `.native.test.ts[x]` for React Native, `.web.ts` for browser tests.
4448

4549
If anything here is unclear or missing (e.g., adding a new package, expanding CI/build), point it out and I’ll refine these instructions.

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
# Initializes the CodeQL tools for scanning.
5252
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@v3
53+
uses: github/codeql-action/init@v4
5454
with:
5555
languages: ${{ matrix.language }}
5656
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -61,7 +61,7 @@ jobs:
6161
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6262
# If this step fails, then you should remove it and run the build manually (see below)
6363
- name: Autobuild
64-
uses: github/codeql-action/autobuild@v3
64+
uses: github/codeql-action/autobuild@v4
6565

6666
# ℹ️ Command-line programs to run using the OS shell.
6767
# 📚 https://git.io/JvXDl
@@ -75,4 +75,4 @@ jobs:
7575
# make release
7676

7777
- name: Perform CodeQL Analysis
78-
uses: github/codeql-action/analyze@v3
78+
uses: github/codeql-action/analyze@v4

eslint.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,14 @@ export default [
4747
'no-console': 'off',
4848
},
4949
},
50+
// Disable React-specific rules for Vue package
51+
{
52+
files: ['packages/vue/**/*.?(m|c)ts?(x)', 'packages/vue/**/*.?(m|c)js?(x)'],
53+
rules: {
54+
'react-hooks/rules-of-hooks': 'off',
55+
'react-hooks/exhaustive-deps': 'off',
56+
'react/react-in-jsx-scope': 'off',
57+
'react/jsx-uses-react': 'off',
58+
},
59+
},
5060
];

examples/benchmark/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
"react": "19.1.1"
2626
},
2727
"devDependencies": {
28-
"@anansi/webpack-config": "21.0.11",
28+
"@anansi/webpack-config": "21.0.12",
2929
"@babel/core": "7.28.4",
3030
"@babel/node": "7.28.0",
3131
"@types/babel__core": "^7",
3232
"@types/benchmark": "2.1.5",
33-
"@types/react": "19.2.0",
34-
"webpack": "5.102.0",
33+
"@types/react": "19.2.2",
34+
"webpack": "5.102.1",
3535
"webpack-cli": "^6.0.0"
3636
}
3737
}

0 commit comments

Comments
 (0)