graphql-jit
0.10.1 · 18 Nov 2026MIT687.3k / weekRepositoryHomepagenpmAtom feed
0.10.1 is the newest release of 0.9.x.
In short
2 fixed
Release note
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).
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.