Packages

graphql-jit

0.10.1 · 18 Nov 2026MIT687.3k / weekRepositoryHomepagenpmAtom feed

Your version

0.9.4

26 Oct 2026Where it was published

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 $v omitted now uses the default instead of failing.

    • Variables in input object literals no longer overwrite field defaults. For {a: $v} with $v omitted, the field keeps the default of a instead of becoming null.

    • Default values that cannot be written as JSON now work.

    • Custom scalar argument values returned by parseLiteral are 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, coerceInputValue and coerceInputLiteral are now used only on GraphQL 17+. GraphQL 15 and 16 keep using serialize, parseValue and parseLiteral, even if schema tooling attached the newer methods to the scalar. This makes graphql-jit match the graphql-js executor on every supported version.

Performance

  • Compilation no longer recomputes Object.keys(literals).length for 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-js for scalars, and adds a schema-argument-literals benchmark 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.