Skip to content

Commit

Permalink
Add SolidJS integration (#3607)
Browse files Browse the repository at this point in the history
Co-authored-by: nvos <personal@creoi.dev>
Co-authored-by: jdecroock <decroockjovi@gmail.com>
  • Loading branch information
3 people authored Sep 13, 2024
1 parent f4eb176 commit a98f25c
Show file tree
Hide file tree
Showing 49 changed files with 2,695 additions and 112 deletions.
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

0 comments on commit a98f25c

Please sign in to comment.