Skip to content

chore(deps): bump graphql from 16.14.2 to 17.0.2 - #241

Closed
dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/npm_and_yarn/graphql-17.0.2
Closed

dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/npm_and_yarn/graphql-17.0.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Bumps graphql from 16.14.2 to 17.0.2.

Release notes

Sourced from graphql's releases.

v17.0.2 (2026-07-03)

Bug Fix 🐞

Polish 💅

Committers: 2

v17.0.1 (2026-06-16)

Bug Fix 🐞

  • #4824 fix(diagnostics): emit asyncStart after promise settlement to match native tracePromise (@​logaretm)

Internal 🏠

Committers: 2

v17.0.0 (2026-06-15)

New Feature 🚀

Bug Fix 🐞

Docs 📝

... (truncated)

Commits
  • 71606d7 chore(release): v17.0.2
  • 101de34 fix: detect default-value changes on input object fields (#4832)
  • 82da713 fix(mapSchemaConfig): fix context for schema argument mapper (#4829)
  • 9617473 chore(release): v17.0.1
  • 851bd6a chore(release): protect latest release channels (#4825)
  • c471d36 fix(diagnostics): emit asyncStart after promise settlement to match native `t...
  • 3f3895f chore(npm): remove obsolete ESM-only package build (#4823)
  • c7e494a chore(release): v17.0.0
  • d977f66 docs: post 17.rc-0 update (#4817)
  • 39f865f docs: document @experimental_disableErrorPropagation (#4820)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [graphql](https://github.com/graphql/graphql-js) from 16.14.2 to 17.0.2.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](graphql/graphql-js@v16.14.2...v17.0.2)

---
updated-dependencies:
- dependency-name: graphql
  dependency-version: 17.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 16, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner July 16, 2026 12:32
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 16, 2026
hm23 added a commit that referenced this pull request Oct 26, 2026
Stacks the graphql 17 bump from #241 on top of the compatibility fixes
so CI exercises graphql 17 with the fixes in place. Not for merge: #241
remains the bump PR; this branch exists to prove the pipeline is green
end to end.
hm23 added a commit that referenced this pull request Oct 26, 2026
## What

Upgrades `@cap-js/graphql` to `graphql@17`, including the dependency
bump, the runtime compatibility fixes, and the test adaptations needed
for the new major. Supersedes the standalone bump in #241.

## Why

`graphql@17` ships breaking changes that affect our AST→CQN translation,
error construction, and the error wording / `variableValues` shape the
tests relied on. Without the fixes below the suite failed ~80 tests
(hard crashes) and then a further 33 (error-wording and mock-shape
mismatches).

## Runtime fixes

- **Empty `FieldNode.arguments` is now `undefined` (was `[]`)** —
crashed `getArgumentByName` with `TypeError: Cannot read properties of
undefined (reading 'find')` on any field without arguments. Guarded the
lookup with optional chaining in
`lib/resolvers/parse/ast2cqn/utils/index.js`.
- **`info.variableValues` is now `{ sources, coerced }` (was a flat
map)** — variable values were no longer found, so variable nodes stayed
unsubstituted and later threw `TypeError: Cannot convert undefined or
null to object`. `lib/resolvers/parse/ast/variable.js` now selects the
coerced values based on the installed graphql major (`versionInfo.major
>= 17`), which is unambiguous even when a request declares a variable
named `$coerced`.
- **`GraphQLError` dropped the legacy positional `nodes` argument** —
scalar validation errors silently lost their `locations`. Now passed via
the options object (`{ nodes: valueNode }`) in
`lib/schema/types/custom/util/index.js`.

## Test adaptations

- **Variable-coercion error wording changed** (`got invalid value X at
"input.Y";` → `has invalid value at .Y:`) — the cds-specific part of
each message is unchanged, so the variable-value tests in
`test/tests/types.test.js` now assert that substring via `toContain`
instead of matching graphql's exact wrapper text. This keeps the
assertions robust across graphql majors.
- **`fakeInfoObject` test helper** (`test/util/index.js`) now mirrors
the installed graphql major when building `variableValues`, so
substituted variables resolve under graphql 17.

## Dependency

- `package.json`: `graphql` `^16` → `^17`.

## Compatibility

The runtime fixes and test assertions are behavior-neutral on
`graphql@16` — the full suite passes on both majors (376 passed, 48
skipped). The source stays back-compatible even though the declared
dependency is now `^17`.

## Follow-up (not in this PR)

`graphql@17` deprecates the custom-scalar `parseValue` / `parseLiteral`
/ `serialize` methods (removal in v18) in favour of `coerceInputValue` /
`coerceInputLiteral` / `coerceOutputValue`. Our 10 custom scalars still
work on 17 but should be migrated before v18 — tracking separately.
@hm23 hm23 closed this Oct 26, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@hm23
hm23 deleted the dependabot/npm_and_yarn/graphql-17.0.2 branch October 26, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants