graphql-jit
0.10.1 · 18 Nov 2026MIT687.3k / weekRepositoryHomepagenpmAtom feed
53 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 0.10.x · latest line
0.10.0
17 Nov 2026What's Changed
Breaking Changes
- Breaking
fix!: compute skip/include per field instead of per ast node (#314) by @boopathi:
Removes the
useExperimentalPathBasedSkipIncludecompiler option. Path-based skip/include is now always on, so remove the option fromcompileQuerycalls.Removes
JitFieldNode,serializeObjectPathForSkipIncludeandjoinSkipIncludePathfromsrc/ast.ts.Removes the
parentResponsePathparameter fromcollectFieldsandcollectSubfields.
Bug Fixes
- Breaking
fix!: compute skip/include per field instead of per ast node (#314)
Fields in a fragment under a field skipped with
@skip/@includeare no longer returned when the same field is also selected without the directive. This matchesgraphql-jsand the spec.
fix: apply graphql 17 defaults for omitted and defaulted variables (#316)
On GraphQL 17, an omitted variable passed to an argument with a default now uses the argument default instead of failing.
On GraphQL 17, variable default values now include the defaults of input object fields.
Boolean = nullvariables are rejected when used in theifargument of@skip/@include.
fix: ensure field and variable names match the GraphQL name grammar (#318)
- 0.9.x
0.9.5
17 Nov 2026fix: ensure field and variable names match the GraphQL name grammar
0.9.4
26 Oct 2026fix: correct input value handling for defaults, variables and mutation ordering (#302) by @boopathi — Improves spec compliance for input values and mutations. Fixes #230 and #91.
fix: respect GraphQL version for scalar coercion (#308) by @mcollina —
coerceOutputValue,coerceInputValueandcoerceInputLiteralare now used only on GraphQL 17+. GraphQL 15 and 16 keep usingserialize,parseValueandparseLiteral, even if schema tooling attached the newer methods to the scalar. This makes graphql-jit match thegraphql-jsexecutor on every supported version.Compilation no longer recomputes
Object.keys(literals).lengthfor every stored argument value. It uses a counter instead, which removes an O(n²) cost when naming argument values (part of #302).
What's Changed
Bug Fixes
fix: correct input value handling for defaults, variables and mutation ordering (#302) by @boopathi — Improves spec compliance for input values and mutations. Fixes #230 and #91.
Non-null variables with a default are no longer required.
query ($v: String! = "x")with$vomitted now uses the default instead of failing.Variables in input object literals no longer overwrite field defaults. For
{a: $v}with$vomitted, the field keeps the default ofainstead of becomingnull.Default values that cannot be written as JSON now work.
Custom scalar argument values returned by
parseLiteralare passed to resolvers by reference instead of being copied into the generated code.Default values set in code that are class instances or array subclasses keep their class.
Fixes a hang on invalid mutation arguments.
Mutations now stop after a non-null error is thrown, and the whole response becomes null.
fix: respect GraphQL version for scalar coercion (#308) by @mcollina —
coerceOutputValue,coerceInputValueandcoerceInputLiteralare now used only on GraphQL 17+. GraphQL 15 and 16 keep usingserialize,parseValueandparseLiteral, even if schema tooling attached the newer methods to the scalar. This makes graphql-jit match thegraphql-jsexecutor on every supported version.
Performance
Compilation no longer recomputes
Object.keys(literals).lengthfor every stored argument value. It uses a counter instead, which removes an O(n²) cost when naming argument values (part of #302).
Docs / Benchmarks
Documents the differences from
graphql-jsfor scalars, and adds aschema-argument-literalsbenchmark for argument literals and defaults (part of #302).
0.9.3
12 Oct 2026fix: support typesVersions for older projects to upgrade by @boopathi — Adds a
typesVersionsmap topackage.jsonso projects onmoduleResolution: "node"(node10) can resolve types forgraphql-jit/dist/*imports. These imports were restored at runtime in 0.9.2, but TypeScript on legacy resolution couldn't find their declarations. Projects that use them, including through a transitive dependency, can now upgrade. Modern resolvers still use theexportsmap.
0.9.2
12 Oct 2026fix: restore legacy graphql-jit/dist/* imports for compatibility (#303) by @boopathi — Adds
./dist/*package exports for both CJS and ESM, with their type declarations. Imports such asgraphql-jit/dist/resolve-infoworked in 0.8.x, and 0.9.x had dropped them. Projects that use them, including through a transitive dependency, can now upgrade.
0.9.1
11 Oct 2026fix: preserve custom scalar class instances (#300) by @boopathi — Custom scalar literals used in query arguments and input objects now keep their parsed class instances (for example
Temporal.PlainDate) instead of being turned into strings. Replaces the magic-string substitutions with type-based serialization and hoists custom scalar values into the compiled code. Fixes #266.fix: SDL literals default values coercion (#297) by @boopathi — Argument and input-field defaults declared in SDL are now applied under GraphQL 17, where
buildSchema()represents them in the{ literal }form. Custom scalars now usecoerceInputValueandcoerceOutputValuewhen they are defined, matchinggraphql-js. Fixes #295 and #296.Potential fix for code scanning alert no. 1: Workflow does not contain permissions (#299) — Adds a top-level
permissions: contents: readblock to the build workflow.
What's Changed
Bug Fixes
fix: preserve custom scalar class instances (#300) by @boopathi — Custom scalar literals used in query arguments and input objects now keep their parsed class instances (for example
Temporal.PlainDate) instead of being turned into strings. Replaces the magic-string substitutions with type-based serialization and hoists custom scalar values into the compiled code. Fixes #266.fix: SDL literals default values coercion (#297) by @boopathi — Argument and input-field defaults declared in SDL are now applied under GraphQL 17, where
buildSchema()represents them in the{ literal }form. Custom scalars now usecoerceInputValueandcoerceOutputValuewhen they are defined, matchinggraphql-js. Fixes #295 and #296.
Internal / CI
Potential fix for code scanning alert no. 1: Workflow does not contain permissions (#299) — Adds a top-level
permissions: contents: readblock to the build workflow.build(deps): bump dset from 3.1.2 to 3.1.4 (#254) by @dependabot — Includes a fix that prevents
__proto__assignment via an implicit string.
0.9.0
5 Oct 2026- Breaking
The internal
debugcompiler option now requires an object instead of a boolean. Replacedebug: truewithdebug: { enabled: true }. To disable debugging, omitdebugor usedebug: { enabled: false }. See feat: add virtual scripts for debugging compiled code (#290) feat: add virtual scripts for debugging compiled code (#290) by @boopathi — Exposes generated query and variable-coercion executors as virtual JavaScript sources for debugging in VS Code or Chrome. Supports custom source names and a synchronous source formatter, with examples in
simple-debugandblog.fix: esm/cjs dual package output (#292) by @boopathi — Publishes ESM and CommonJS builds and their type declarations in separate directories, with matching package exports.
What's Changed
Breaking Changes
- Breaking
The internal
debugcompiler option now requires an object instead of a boolean. Replacedebug: truewithdebug: { enabled: true }. To disable debugging, omitdebugor usedebug: { enabled: false }. See feat: add virtual scripts for debugging compiled code (#290)
Features
feat: add virtual scripts for debugging compiled code (#290) by @boopathi — Exposes generated query and variable-coercion executors as virtual JavaScript sources for debugging in VS Code or Chrome. Supports custom source names and a synchronous source formatter, with examples in
simple-debugandblog.
Bug Fixes
fix: esm/cjs dual package output (#292) by @boopathi — Publishes ESM and CommonJS builds and their type declarations in separate directories, with matching package exports.
fix: support esm imports of grahpql js (#293) by @boopathi — Removes deep GraphQL imports to avoid mixing module formats and preserves GraphQL 15/16 compatibility.
Internal / CI
fix: esm/cjs dual package output (#292) by @boopathi — Replaces tsup with TypeScript builds, updates Yarn and lint tooling, and checks all package entry points.
- 0.8.x
0.8.11
17 Nov 2026fix: ensure field and variable names match the GraphQL name grammar
0.8.10
13 Oct 20260.8.9
2 Sep 20260.8.8
28 May 2026Reading the note…
0.8.7
21 Oct 2024Reading the note…
0.8.6
20 Mar 2024Reading the note…
0.8.5
18 Mar 2024Reading the note…
0.8.4
4 Jul 2023Reading the note…
0.8.3
29 Jun 2023Reading the note…
0.8.2
27 Apr 2023Reading the note…
0.8.1
30 Mar 2023Reading the note…
0.8.0
30 Jan 2023Reading the note…
- 0.7.x
0.7.6
17 Nov 2026fix: ensure field and variable names match the GraphQL name grammar
0.7.5
13 Oct 20260.7.4
24 May 2022Reading the note…
0.7.3
15 Feb 2022Reading the note…
0.7.2
2 Dec 2021Reading the note…
0.7.1
15 Nov 2021Reading the note…
0.7.0
2 Nov 2021Reading the note…
- 0.6.x
0.6.0
29 Sep 2021Reading the note…
- 0.5.x
0.5.2
7 Jul 2021Reading the note…
0.5.1
10 May 2021Reading the note…
0.5.0
27 Jan 2021Reading the note…
- 0.4.x
0.4.3
31 Mar 2020Reading the note…
0.4.2
16 Sep 2019Reading the note…
0.4.1
3 Sep 2019Reading the note…
0.4.0
2 Sep 2019Reading the note…
- 0.3.x
0.3.3
18 Jul 2019Reading the note…
0.3.2
11 Jul 2019Reading the note…
0.3.1
22 Jun 2019Reading the note…
0.3.0
21 Jun 2019Reading the note…
- 0.2.x
0.2.1
17 Jun 2019Reading the note…
0.2.0
14 May 2019Reading the note…
- 0.1.x
0.1.3
7 May 2019Reading the note…
0.1.2
14 Apr 2019Reading the note…
0.1.1
9 Apr 2019Reading the note…
0.1.0
3 Apr 2019Reading the note…
- 0.0.x
0.0.9
24 Feb 2019Reading the note…
0.0.8
24 Feb 2019Reading the note…
0.0.7
17 Feb 2019Reading the note…
0.0.6
17 Oct 2018Reading the note…
0.0.4
12 Oct 2018Reading the note…
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.