Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SolidJS integration #3607

Merged
merged 20 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ca4cb75
feat(solid): Add createQuery
Nvos Jul 19, 2023
bdeff49
feat(solid): Add createMutation
Nvos Jul 19, 2023
4ab09ef
feat(solid): Add createSubscription
Nvos Jul 22, 2023
83f34ce
feat(solid): Add more createSubscription tests
Nvos Jul 22, 2023
ae383e3
feat(solid): Use same pattern in createQuery as in createSubscription
Nvos Jul 22, 2023
ace03fe
feat(solid): Add more createQuery and createSubscription tests
Nvos Jul 23, 2023
a37f2cd
feat(solid): Prefix type imports with type
Nvos Jul 23, 2023
c02619d
feat(solid): Update exports
Nvos Jul 23, 2023
a35e70c
docs(solid): Add createQuery code docs
Nvos Jul 28, 2023
b3e8416
docs(solid): Add createMutation code docs
Nvos Jul 28, 2023
d49be21
docs(solid): Add createSubscription code docs
Nvos Jul 28, 2023
c00b05c
feat(solid): Change createQuery to store source in state
Nvos Aug 12, 2023
8119917
style(solid): Formatting and lint issues
Nvos Aug 12, 2023
dce9f0d
feat(solid): Inline related code from @solid-primitives/utils and rem…
Nvos Aug 12, 2023
a0880b2
feat(solid): Change createSubscription to store source in state
Nvos Aug 24, 2023
b678323
test(solid): Migrate subscription and mutation tests to use testEffec…
Nvos Oct 1, 2023
65863d3
test(solid): Migrate query tests to use testEffect
Nvos Oct 2, 2023
3cb3af2
Add per-package vitest config and test script
stefanmaric Jun 9, 2024
c5dd678
Fix TypeScript errors on Solid tests by setting the correct JSX import
stefanmaric Jun 9, 2024
97601bc
Fix version and add changeset
JoviDeCroock Sep 13, 2024
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
5 changes: 5 additions & 0 deletions .changeset/forty-cameras-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@urql/solid': minor
---

Initial release
5 changes: 3 additions & 2 deletions exchanges/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dist/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"test": "vitest",
"clean": "rimraf dist extras",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -57,7 +57,8 @@
},
"devDependencies": {
"@urql/core": "workspace:*",
"graphql": "^16.0.0"
"graphql": "^16.0.0",
"vitest": "^0.30.1"
},
"publishConfig": {
"access": "public",
Expand Down
4 changes: 4 additions & 0 deletions exchanges/auth/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
5 changes: 3 additions & 2 deletions exchanges/context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dist/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"test": "vitest",
"clean": "rimraf dist extras",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -56,7 +56,8 @@
},
"devDependencies": {
"@urql/core": "workspace:*",
"graphql": "^16.0.0"
"graphql": "^16.0.0",
"vitest": "^0.30.1"
},
"publishConfig": {
"access": "public",
Expand Down
4 changes: 4 additions & 0 deletions exchanges/context/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
5 changes: 3 additions & 2 deletions exchanges/execute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dist/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"test": "vitest",
"clean": "rimraf dist extras",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -58,7 +58,8 @@
},
"devDependencies": {
"@urql/core": "workspace:*",
"graphql": "^16.0.0"
"graphql": "^16.0.0",
"vitest": "^0.30.1"
},
"publishConfig": {
"access": "public",
Expand Down
4 changes: 4 additions & 0 deletions exchanges/execute/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
5 changes: 3 additions & 2 deletions exchanges/graphcache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"default-storage/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"test": "vitest",
"clean": "rimraf dist extras",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -79,7 +79,8 @@
"graphql": "^16.6.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"urql": "workspace:*"
"urql": "workspace:*",
"vitest": "^0.30.1"
},
"publishConfig": {
"access": "public",
Expand Down
4 changes: 4 additions & 0 deletions exchanges/graphcache/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
5 changes: 3 additions & 2 deletions exchanges/persisted/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dist/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"test": "vitest",
"clean": "rimraf dist extras",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -55,7 +55,8 @@
},
"devDependencies": {
"@urql/core": "workspace:*",
"graphql": "^16.0.0"
"graphql": "^16.0.0",
"vitest": "^0.30.1"
},
"publishConfig": {
"access": "public",
Expand Down
4 changes: 4 additions & 0 deletions exchanges/persisted/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
5 changes: 3 additions & 2 deletions exchanges/populate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"extras/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"test": "vitest",
"clean": "rimraf dist extras",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -56,7 +56,8 @@
},
"devDependencies": {
"@urql/core": "workspace:*",
"graphql": "^16.0.0"
"graphql": "^16.0.0",
"vitest": "^0.30.1"
},
"publishConfig": {
"access": "public",
Expand Down
4 changes: 4 additions & 0 deletions exchanges/populate/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
7 changes: 4 additions & 3 deletions exchanges/refocus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dist/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"test": "vitest",
"clean": "rimraf dist",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -49,9 +49,10 @@
"prepublishOnly": "run-s clean build"
},
"devDependencies": {
"@urql/core": "workspace:*",
"@types/react": "^17.0.4",
"graphql": "^16.0.0"
"@urql/core": "workspace:*",
"graphql": "^16.0.0",
"vitest": "^0.30.1"
},
"peerDependencies": {
"@urql/core": "^5.0.0"
Expand Down
4 changes: 4 additions & 0 deletions exchanges/refocus/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
5 changes: 3 additions & 2 deletions exchanges/request-policy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dist/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"test": "vitest",
"clean": "rimraf dist",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -49,7 +49,8 @@
},
"devDependencies": {
"@urql/core": "workspace:*",
"graphql": "^16.0.0"
"graphql": "^16.0.0",
"vitest": "^0.30.1"
},
"peerDependencies": {
"@urql/core": "^5.0.0"
Expand Down
4 changes: 4 additions & 0 deletions exchanges/request-policy/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
5 changes: 3 additions & 2 deletions exchanges/retry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dist/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"test": "vitest",
"clean": "rimraf dist",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -49,7 +49,8 @@
},
"devDependencies": {
"@urql/core": "workspace:*",
"graphql": "^16.0.0"
"graphql": "^16.0.0",
"vitest": "^0.30.1"
},
"peerDependencies": {
"@urql/core": "^5.0.0"
Expand Down
4 changes: 4 additions & 0 deletions exchanges/retry/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"test": "vitest",
"test": "test -z $CI && vitest || pnpm -r --parallel run test run",
"check": "tsc",
"lint": "eslint --ext=js,jsx,ts,tsx .",
"build": "node ./scripts/actions/build-all.mjs",
Expand Down
5 changes: 4 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"internal/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"test": "vitest",
"clean": "rimraf dist",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -61,5 +61,8 @@
"publishConfig": {
"access": "public",
"provenance": true
},
"devDependencies": {
"vitest": "^0.30.1"
}
}
4 changes: 4 additions & 0 deletions packages/core/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
2 changes: 0 additions & 2 deletions packages/introspection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"dist/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"clean": "rimraf dist",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -51,7 +50,6 @@
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},
"dependencies": {},
"publishConfig": {
"access": "public",
"provenance": true
Expand Down
4 changes: 4 additions & 0 deletions packages/next-urql/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
7 changes: 4 additions & 3 deletions packages/preact-urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dist/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"test": "vitest",
"clean": "rimraf dist",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -49,10 +49,11 @@
"prepublishOnly": "run-s clean build"
},
"devDependencies": {
"@urql/core": "workspace:*",
"@testing-library/preact": "^2.0.0",
"@urql/core": "workspace:*",
"graphql": "^16.0.0",
"preact": "^10.13.0"
"preact": "^10.13.0",
"vitest": "^0.30.1"
},
"peerDependencies": {
"@urql/core": "^5.0.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/preact-urql/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
5 changes: 3 additions & 2 deletions packages/react-urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dist/"
],
"scripts": {
"test": "vitest --config ../../vitest.config.ts",
"test": "vitest",
"clean": "rimraf dist",
"check": "tsc --noEmit",
"lint": "eslint --ext=js,jsx,ts,tsx .",
Expand All @@ -55,7 +55,8 @@
"react-is": "^17.0.1",
"react-ssr-prepass": "^1.1.2",
"react-test-renderer": "^17.0.1",
"vite": "^3.2.4"
"vite": "^3.2.4",
"vitest": "^0.30.1"
},
"peerDependencies": {
"@urql/core": "^5.0.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/react-urql/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { mergeConfig } from 'vitest/config';
import baseConfig from '../../vitest.config';

export default mergeConfig(baseConfig, {});
Loading