Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(utils): handle array of primitives correctly #6737

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Conversation

ardatan
Copy link
Owner

@ardatan ardatan commented Dec 4, 2024

Handle array of primitives correctly

The bug was following;

mergeDeep([
  { options: ['$a', '$b'] },
  { options: ['$c'] },
  { options: ['$d', '$e'] },
])

// results in { options: [{}, {}] }

Copy link

changeset-bot bot commented Dec 4, 2024

🦋 Changeset detected

Latest commit: 4eb970a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 26 packages
Name Type
@graphql-tools/utils Patch
@graphql-tools/executor Patch
@graphql-tools/graphql-tag-pluck Patch
@graphql-tools/import Patch
@graphql-tools/links Patch
@graphql-tools/load Patch
@graphql-tools/merge Patch
@graphql-tools/mock Patch
@graphql-tools/node-require Patch
@graphql-tools/relay-operation-optimizer Patch
@graphql-tools/resolvers-composition Patch
@graphql-tools/schema Patch
@graphql-tools/apollo-engine-loader Patch
@graphql-tools/code-file-loader Patch
@graphql-tools/git-loader Patch
@graphql-tools/github-loader Patch
@graphql-tools/graphql-file-loader Patch
@graphql-tools/json-file-loader Patch
@graphql-tools/module-loader Patch
@graphql-tools/url-loader Patch
@graphql-tools/executor-apollo-link Patch
@graphql-tools/executor-envelop Patch
@graphql-tools/executor-legacy-ws Patch
@graphql-tools/executor-urql-exchange Patch
@graphql-tools/executor-yoga Patch
graphql-tools Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@theguild-bot
Copy link
Collaborator

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-tools/executor 1.3.6-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/executor-apollo-link 1.0.6-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/executor-envelop 3.0.14-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/executor-legacy-ws 1.1.5-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/executor-urql-exchange 1.0.7-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/executor-yoga 3.0.14-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/graphql-tag-pluck 8.3.7-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
graphql-tools 9.0.6-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/import 7.0.6-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/links 9.0.15-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/load 8.0.7-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/apollo-engine-loader 8.0.7-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/code-file-loader 8.1.8-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/git-loader 8.0.12-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/github-loader 8.0.7-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/graphql-file-loader 8.0.6-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/json-file-loader 8.0.6-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/module-loader 8.0.6-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/url-loader 8.0.18-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/merge 9.0.12-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/mock 9.0.9-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/node-require 7.0.7-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/relay-operation-optimizer 7.0.6-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/resolvers-composition 7.0.6-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/schema 10.0.11-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎
@graphql-tools/utils 10.6.2-alpha-20241204120043-4eb970a1e7fffafa2a0eca8ececaf956c6282876 npm ↗︎ unpkg ↗︎

@ardatan ardatan marked this pull request as ready for review December 4, 2024 12:02
@ardatan ardatan merged commit 1b24656 into master Dec 4, 2024
17 checks passed
@ardatan ardatan deleted the fix-merge-deep branch December 4, 2024 12:02
Copy link
Contributor

github-actions bot commented Dec 4, 2024

💻 Website Preview

The latest changes are available as preview in: https://39436a52.graphql-tools.pages.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants