Skip to content

Commit

Permalink
chore: Upgrade dependencies (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Jan 30, 2024
1 parent e6d4175 commit 3f3b440
Show file tree
Hide file tree
Showing 38 changed files with 2,221 additions and 1,801 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-crabs-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@0no-co/graphql.web': patch
---

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.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,8 @@ jobs:
- name: Unit Tests
run: pnpm run test --run

- name: benchmarks
run: pnpm run bench --run

- name: Build
run: pnpm run build
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,17 @@ Currently, only a select few exports are provided — namely, the ones listed h
are used in `@urql/core`, and we expect them to be common in all client-side
GraphQL applications.

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

The stated goals of any reimplementation are:

1. Not to implement any execution or type system parts of the GraphQL
specification.
2. To adhere to GraphQL.js’ types and APIs as much as possible.
Expand Down
16 changes: 0 additions & 16 deletions benchmark/package.json

This file was deleted.

98 changes: 0 additions & 98 deletions benchmark/suite.js

This file was deleted.

57 changes: 31 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"client-side graphql"
],
"scripts": {
"test": "vitest",
"test": "vitest test",
"bench": "vitest bench --typecheck.enabled=false",
"check": "tsc",
"lint": "eslint --ext=js,ts .",
"build": "rollup -c scripts/rollup.config.mjs",
Expand All @@ -55,7 +56,8 @@
"prettier": {
"singleQuote": true,
"tabWidth": 2,
"printWidth": 100
"printWidth": 100,
"trailingComma": "es5"
},
"lint-staged": {
"*.{ts,js}": "eslint -c scripts/eslint-preset.js --fix",
Expand All @@ -74,33 +76,36 @@
]
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@changesets/get-github-info": "^0.5.2",
"@rollup/plugin-buble": "^1.0.2",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-sucrase": "^5.0.1",
"@rollup/plugin-terser": "^0.4.0",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"@vitest/coverage-c8": "^0.29.7",
"dotenv": "^16.0.3",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"eslint-plugin-prettier": "^4.2.1",
"@babel/plugin-transform-block-scoping": "^7.23.4",
"@babel/plugin-transform-typescript": "^7.23.6",
"@changesets/cli": "^2.27.1",
"@changesets/get-github-info": "^0.6.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"@vitest/coverage-v8": "^1.2.2",
"dotenv": "^16.4.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-tsdoc": "^0.2.17",
"graphql": "^16.6.0",
"husky-v4": "^4.3.8",
"lint-staged": "^13.2.0",
"lint-staged": "^15.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.4",
"rimraf": "^4.4.0",
"rollup": "^3.19.1",
"rollup-plugin-cjs-check": "^1.0.2",
"rollup-plugin-dts": "^5.3.0",
"terser": "^5.16.6",
"typescript": "^5.0.2",
"vitest": "^0.29.7"
"prettier": "^3.2.4",
"rimraf": "^5.0.5",
"rollup": "^4.9.6",
"rollup-plugin-cjs-check": "^1.0.3",
"rollup-plugin-dts": "^6.1.0",
"terser": "^5.27.0",
"typescript": "^5.3.3",
"vitest": "^1.2.2",
"graphql15": "npm:graphql@^15.8.0",
"graphql16": "npm:graphql@^16.8.1",
"graphql17": "npm:graphql@^17.0.0-alpha.3"
},
"publishConfig": {
"access": "public",
Expand Down

0 comments on commit 3f3b440

Please sign in to comment.