Skip to content

Commit 3f3b440

Browse files
authored
chore: Upgrade dependencies (#21)
1 parent e6d4175 commit 3f3b440

38 files changed

+2221
-1801
lines changed

.changeset/brave-crabs-love.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@0no-co/graphql.web': patch
3+
---
4+
5+
Update build process to align with other `@0no-co` packages. Effectively, this will mean that the JS features range we support will now match `urql`, and in practice, this means that `for-of` is now used in our build output.

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,8 @@ jobs:
5353
- name: Unit Tests
5454
run: pnpm run test --run
5555

56+
- name: benchmarks
57+
run: pnpm run bench --run
58+
5659
- name: Build
5760
run: pnpm run build

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,17 @@ Currently, only a select few exports are provided — namely, the ones listed h
5555
are used in `@urql/core`, and we expect them to be common in all client-side
5656
GraphQL applications.
5757

58-
| Export | Description | Links |
59-
| --- | ----------- | -------- |
60-
| `parse` | A tiny (but compliant) GraphQL query language parser. | [Source](./src/parser.ts) |
61-
| `print` | A (compliant) GraphQL query language printer. | [Source](./src/printer.ts) |
62-
| `visit` | A recursive reimplementation of GraphQL.js’ visitor. | [Source](./src/printer.ts) |
63-
| `Kind` | The GraphQL.js’ `Kind` enum, containing supported `ASTNode` kinds. | [Source](./src/kind.ts) |
64-
| `GraphQLError` | `GraphQLError` stripped of source/location debugging. | [Source](./src/kind.ts) |
65-
| `valueFromASTUntyped` | Coerces AST values into JS values. | [Source](./src/values.ts) |
58+
| Export | Description | Links |
59+
| --------------------- | ------------------------------------------------------------------ | -------------------------- |
60+
| `parse` | A tiny (but compliant) GraphQL query language parser. | [Source](./src/parser.ts) |
61+
| `print` | A (compliant) GraphQL query language printer. | [Source](./src/printer.ts) |
62+
| `visit` | A recursive reimplementation of GraphQL.js’ visitor. | [Source](./src/printer.ts) |
63+
| `Kind` | The GraphQL.js’ `Kind` enum, containing supported `ASTNode` kinds. | [Source](./src/kind.ts) |
64+
| `GraphQLError` | `GraphQLError` stripped of source/location debugging. | [Source](./src/kind.ts) |
65+
| `valueFromASTUntyped` | Coerces AST values into JS values. | [Source](./src/values.ts) |
6666

6767
The stated goals of any reimplementation are:
68+
6869
1. Not to implement any execution or type system parts of the GraphQL
6970
specification.
7071
2. To adhere to GraphQL.js’ types and APIs as much as possible.

benchmark/package.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

benchmark/suite.js

Lines changed: 0 additions & 98 deletions
This file was deleted.

package.json

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"client-side graphql"
3838
],
3939
"scripts": {
40-
"test": "vitest",
40+
"test": "vitest test",
41+
"bench": "vitest bench --typecheck.enabled=false",
4142
"check": "tsc",
4243
"lint": "eslint --ext=js,ts .",
4344
"build": "rollup -c scripts/rollup.config.mjs",
@@ -55,7 +56,8 @@
5556
"prettier": {
5657
"singleQuote": true,
5758
"tabWidth": 2,
58-
"printWidth": 100
59+
"printWidth": 100,
60+
"trailingComma": "es5"
5961
},
6062
"lint-staged": {
6163
"*.{ts,js}": "eslint -c scripts/eslint-preset.js --fix",
@@ -74,33 +76,36 @@
7476
]
7577
},
7678
"devDependencies": {
77-
"@changesets/cli": "^2.26.2",
78-
"@changesets/get-github-info": "^0.5.2",
79-
"@rollup/plugin-buble": "^1.0.2",
80-
"@rollup/plugin-commonjs": "^24.0.1",
81-
"@rollup/plugin-node-resolve": "^15.0.1",
82-
"@rollup/plugin-sucrase": "^5.0.1",
83-
"@rollup/plugin-terser": "^0.4.0",
84-
"@typescript-eslint/eslint-plugin": "^5.55.0",
85-
"@typescript-eslint/parser": "^5.55.0",
86-
"@vitest/coverage-c8": "^0.29.7",
87-
"dotenv": "^16.0.3",
88-
"eslint": "^8.36.0",
89-
"eslint-config-prettier": "^8.7.0",
90-
"eslint-plugin-prettier": "^4.2.1",
79+
"@babel/plugin-transform-block-scoping": "^7.23.4",
80+
"@babel/plugin-transform-typescript": "^7.23.6",
81+
"@changesets/cli": "^2.27.1",
82+
"@changesets/get-github-info": "^0.6.0",
83+
"@rollup/plugin-babel": "^6.0.4",
84+
"@rollup/plugin-commonjs": "^25.0.7",
85+
"@rollup/plugin-node-resolve": "^15.2.3",
86+
"@rollup/plugin-terser": "^0.4.4",
87+
"@typescript-eslint/eslint-plugin": "^6.20.0",
88+
"@typescript-eslint/parser": "^6.20.0",
89+
"@vitest/coverage-v8": "^1.2.2",
90+
"dotenv": "^16.4.1",
91+
"eslint": "^8.56.0",
92+
"eslint-config-prettier": "^9.1.0",
93+
"eslint-plugin-prettier": "^5.1.3",
9194
"eslint-plugin-tsdoc": "^0.2.17",
92-
"graphql": "^16.6.0",
9395
"husky-v4": "^4.3.8",
94-
"lint-staged": "^13.2.0",
96+
"lint-staged": "^15.2.0",
9597
"npm-run-all": "^4.1.5",
96-
"prettier": "^2.8.4",
97-
"rimraf": "^4.4.0",
98-
"rollup": "^3.19.1",
99-
"rollup-plugin-cjs-check": "^1.0.2",
100-
"rollup-plugin-dts": "^5.3.0",
101-
"terser": "^5.16.6",
102-
"typescript": "^5.0.2",
103-
"vitest": "^0.29.7"
98+
"prettier": "^3.2.4",
99+
"rimraf": "^5.0.5",
100+
"rollup": "^4.9.6",
101+
"rollup-plugin-cjs-check": "^1.0.3",
102+
"rollup-plugin-dts": "^6.1.0",
103+
"terser": "^5.27.0",
104+
"typescript": "^5.3.3",
105+
"vitest": "^1.2.2",
106+
"graphql15": "npm:graphql@^15.8.0",
107+
"graphql16": "npm:graphql@^16.8.1",
108+
"graphql17": "npm:graphql@^17.0.0-alpha.3"
104109
},
105110
"publishConfig": {
106111
"access": "public",

0 commit comments

Comments
 (0)