Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ardatan/graphql-tools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @graphql-tools/schema@10.0.21
Choose a base ref
...
head repository: ardatan/graphql-tools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @graphql-tools/schema@10.0.22
Choose a head ref

Commits on Mar 3, 2025

  1. fix(deps): update dependency next to v15.2.1 (#6994)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 3, 2025
    Copy the full SHA
    5ebc523 View commit details

Commits on Mar 4, 2025

  1. chore(deps): update all non-major dependencies (#6996)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 4, 2025
    Copy the full SHA
    1328ed8 View commit details
  2. chore(deps): update dependency svelte to v5.22.1 (#6997)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 4, 2025
    Copy the full SHA
    947ab67 View commit details
  3. fix(deps): update dependency @types/ws to v8.18.0 (#6998)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 4, 2025
    Copy the full SHA
    c4e6a4b View commit details

Commits on Mar 5, 2025

  1. chore(deps): update all non-major dependencies (#6999)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 5, 2025
    Copy the full SHA
    99e7d78 View commit details
  2. chore(deps): update all non-major dependencies (#7001)

    * chore(deps): update all non-major dependencies
    
    * Go
    
    * Go
    
    * F
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
    renovate[bot] and ardatan authored Mar 5, 2025
    Copy the full SHA
    746358f View commit details
  3. fix(deps): update dependency @whatwg-node/promise-helpers to v1.2.4 (#…

    …7000)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 5, 2025
    Copy the full SHA
    c7cce3c View commit details
  4. chore(deps): update dependency @theguild/tailwind-config to v0.6.3 (#…

    …7002)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 5, 2025
    Copy the full SHA
    cf072ee View commit details
  5. chore(release): update monorepo packages versions (#7003)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    theguild-bot and github-actions[bot] authored Mar 5, 2025
    Copy the full SHA
    21c1c62 View commit details
  6. chore(deps): update all non-major dependencies (#7004)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 5, 2025
    Copy the full SHA
    fa1d222 View commit details

Commits on Mar 6, 2025

  1. chore(deps): update dependency svelte to v5.22.5 (#7005)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 6, 2025
    Copy the full SHA
    b27134d View commit details
  2. chore(deps): update all non-major dependencies (#7006)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 6, 2025
    Copy the full SHA
    bade265 View commit details

Commits on Mar 7, 2025

  1. Copy the full SHA
    2eba062 View commit details
  2. chore(deps): update all non-major dependencies (#7007)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 7, 2025
    Copy the full SHA
    ff11a77 View commit details
  3. chore(deps): update dependency eslint-config-prettier to v10.1.1 (#7009)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 7, 2025
    Copy the full SHA
    36124c0 View commit details

Commits on Mar 8, 2025

  1. chore(deps): update all non-major dependencies (#7013)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 8, 2025
    Copy the full SHA
    f4026c9 View commit details
  2. chore(deps): update dependency @types/node to v22.13.10 (#7014)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 8, 2025
    Copy the full SHA
    38b441d View commit details

Commits on Mar 10, 2025

  1. chore(deps): lock file maintenance (#7015)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 10, 2025
    Copy the full SHA
    b8578af View commit details
  2. chore(deps): update dependency esbuild to v0.25.1 (#7016)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 10, 2025
    Copy the full SHA
    fff06f0 View commit details
  3. chore(deps): update dependency @apollo/client to v3.13.4 (#7017)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 10, 2025
    Copy the full SHA
    8d1f805 View commit details
  4. chore(deps): update typescript-eslint monorepo to v8.26.1 (#7018)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 10, 2025
    Copy the full SHA
    63b23cc View commit details

Commits on Mar 11, 2025

  1. chore(deps): update dependency bun to v1.2.5 (#7019)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 11, 2025
    Copy the full SHA
    2d00522 View commit details
  2. fix(deps): update dependency next to v15.2.2 (#7021)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 11, 2025
    Copy the full SHA
    2869c66 View commit details

Commits on Mar 13, 2025

  1. fix(deps): update all non-major dependencies (#7020)

    * fix(deps): update all non-major dependencies
    
    * Fixes
    
    * chore(dependencies): updated changesets for modified dependencies
    
    * More fixes
    
    * lets go
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    3 people authored Mar 13, 2025
    Copy the full SHA
    1428da4 View commit details
  2. fix(deps): update all non-major dependencies (#7023)

    * fix(deps): update all non-major dependencies
    
    * Fix
    
    * chore(dependencies): updated changesets for modified dependencies
    
    * Go
    
    * chore(dependencies): updated changesets for modified dependencies
    
    * Go
    
    * Less peer dep
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    3 people authored Mar 13, 2025
    Copy the full SHA
    6bb35f4 View commit details
  3. Create codeql.yml

    ardatan authored Mar 13, 2025
    Copy the full SHA
    7d4ffbf View commit details
  4. Fix codeql

    ardatan committed Mar 13, 2025
    Copy the full SHA
    ebe76db View commit details
  5. Copy the full SHA
    3380b37 View commit details
  6. Ignore test files

    ardatan committed Mar 13, 2025
    Copy the full SHA
    79c9ceb View commit details
  7. Fix existing code scanning

    ardatan committed Mar 13, 2025
    Copy the full SHA
    fa8852e View commit details
  8. Correct CodeQL analysis file

    ardatan committed Mar 13, 2025
    Copy the full SHA
    4b3d3d7 View commit details
  9. Remove duplicated

    ardatan committed Mar 13, 2025
    Copy the full SHA
    7c0bca4 View commit details
  10. Just javascript-typescript

    ardatan committed Mar 13, 2025
    Copy the full SHA
    784c2be View commit details
  11. Fix for code scanning alert no. 45: Incomplete string escaping or enc…

    …oding (#7025)
    
    * Potential fix for code scanning alert no. 45: Incomplete string escaping or encoding
    
    Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
    
    * Changeset
    
    ---------
    
    Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
    ardatan and github-advanced-security[bot] authored Mar 13, 2025
    Copy the full SHA
    26518de View commit details
  12. Fix for code scanning alert no. 31: Prototype-polluting assignment (#…

    …7026)
    
    * Fix for code scanning alert no. 31: Prototype-polluting assignment
    
    Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
    
    * Changeset
    
    ---------
    
    Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
    ardatan and github-advanced-security[bot] authored Mar 13, 2025
    Copy the full SHA
    ece7732 View commit details
  13. Fix for code scanning alert no. 30: Prototype-polluting assignment (#…

    …7027)
    
    Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
    ardatan and github-advanced-security[bot] authored Mar 13, 2025
    Copy the full SHA
    e890972 View commit details
  14. Fix for code scanning alert no. 29: Prototype-polluting assignment (#…

    …7028)
    
    * Fix for code scanning alert no. 29: Prototype-polluting assignment
    
    Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
    
    * Changeset
    
    ---------
    
    Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
    ardatan and github-advanced-security[bot] authored Mar 13, 2025
    Copy the full SHA
    4899c62 View commit details
  15. fix(executor): do not use leaking registerAbortSignalListener, and …

    …handle listeners inside the execution context (#6977)
    
    * fix(executor): do not use leaking `registerAbortSignalListener`, and handle listeners inside the execution context
    
    * lets go
    ardatan authored Mar 13, 2025
    Copy the full SHA
    90a717e View commit details
  16. chore(release): update monorepo packages versions (#7024)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    theguild-bot and github-actions[bot] authored Mar 13, 2025
    Copy the full SHA
    5179a10 View commit details
Showing with 1,489 additions and 903 deletions.
  1. +10 −0 .github/codeql/codeql-config.yml
  2. +103 −0 .github/workflows/codeql-analysis.yml
  3. +1 −0 .github/workflows/pr.yml
  4. +1 −0 .github/workflows/release.yml
  5. +1 −0 .github/workflows/website.yml
  6. +17 −12 package.json
  7. +21 −0 packages/executor/CHANGELOG.md
  8. +2 −2 packages/executor/package.json
  9. +17 −14 packages/executor/src/execution/__tests__/abort-signal.test.ts
  10. +9 −3 packages/executor/src/execution/__tests__/stream-test.ts
  11. +68 −23 packages/executor/src/execution/execute.ts
  12. +24 −12 packages/executor/src/execution/promiseForObject.ts
  13. +9 −0 packages/executors/apollo-link/CHANGELOG.md
  14. +3 −3 packages/executors/apollo-link/package.json
  15. +8 −3 packages/executors/apollo-link/src/index.ts
  16. +18 −0 packages/executors/envelop/CHANGELOG.md
  17. +3 −3 packages/executors/envelop/package.json
  18. +4 −8 packages/executors/envelop/src/index.ts
  19. +13 −10 packages/executors/envelop/tests/envelop.spec.ts
  20. +9 −0 packages/executors/legacy-ws/CHANGELOG.md
  21. +2 −2 packages/executors/legacy-ws/package.json
  22. +21 −0 packages/executors/urql-exchange/CHANGELOG.md
  23. +3 −2 packages/executors/urql-exchange/package.json
  24. +27 −17 packages/executors/urql-exchange/src/index.ts
  25. +9 −5 packages/executors/urql-exchange/tests/urql-exchange.spec.ts
  26. +23 −0 packages/executors/yoga/CHANGELOG.md
  27. +3 −3 packages/executors/yoga/package.json
  28. +10 −1 packages/executors/yoga/src/index.ts
  29. +27 −0 packages/graphql-tag-pluck/CHANGELOG.md
  30. +12 −15 packages/graphql-tag-pluck/package.json
  31. +7 −0 packages/graphql-tools/CHANGELOG.md
  32. +2 −2 packages/graphql-tools/package.json
  33. +9 −0 packages/import/CHANGELOG.md
  34. +2 −2 packages/import/package.json
  35. +9 −0 packages/links/CHANGELOG.md
  36. +3 −3 packages/links/package.json
  37. +10 −0 packages/load/CHANGELOG.md
  38. +3 −3 packages/load/package.json
  39. +9 −0 packages/loaders/apollo-engine/CHANGELOG.md
  40. +2 −2 packages/loaders/apollo-engine/package.json
  41. +11 −0 packages/loaders/code-file/CHANGELOG.md
  42. +3 −3 packages/loaders/code-file/package.json
  43. +11 −0 packages/loaders/git/CHANGELOG.md
  44. +3 −3 packages/loaders/git/package.json
  45. +11 −0 packages/loaders/github/CHANGELOG.md
  46. +3 −3 packages/loaders/github/package.json
  47. +10 −0 packages/loaders/graphql-file/CHANGELOG.md
  48. +3 −3 packages/loaders/graphql-file/package.json
  49. +9 −0 packages/loaders/json-file/CHANGELOG.md
  50. +2 −2 packages/loaders/json-file/package.json
  51. +9 −0 packages/loaders/module/CHANGELOG.md
  52. +2 −2 packages/loaders/module/package.json
  53. +10 −0 packages/loaders/url/CHANGELOG.md
  54. +8 −8 packages/loaders/url/package.json
  55. +13 −0 packages/merge/CHANGELOG.md
  56. +2 −2 packages/merge/package.json
  57. +6 −0 packages/merge/src/merge-resolvers.ts
  58. +14 −0 packages/mock/CHANGELOG.md
  59. +3 −3 packages/mock/package.json
  60. +8 −0 packages/mock/src/MockStore.ts
  61. +11 −0 packages/node-require/CHANGELOG.md
  62. +4 −4 packages/node-require/package.json
  63. +15 −0 packages/relay-operation-optimizer/CHANGELOG.md
  64. +3 −3 packages/relay-operation-optimizer/package.json
  65. +9 −0 packages/resolvers-composition/CHANGELOG.md
  66. +2 −2 packages/resolvers-composition/package.json
  67. +11 −0 packages/schema/CHANGELOG.md
  68. +3 −3 packages/schema/package.json
  69. +14 −0 packages/utils/CHANGELOG.md
  70. +1 −1 packages/utils/package.json
  71. +3 −3 packages/utils/src/build-operation-for-field.ts
  72. +5 −1 packages/utils/src/registerAbortSignalListener.ts
  73. +4 −3 website/package.json
  74. +1 −1 website/src/app/page.tsx
  75. +728 −703 yarn.lock
10 changes: 10 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
paths-ignore:
- '**/*.test.ts'
- '**/*.spec.ts'
- '**/__tests__/**'
- '**/tests/**'
- '**/test/**'
- '**/test-files/**'
- '**/dist/**'
- '**/node_modules/**'
- '**/scripts/**'
103 changes: 103 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: 'CodeQL Advanced'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches: ['master']
pull_request:
branches: ['master']
schedule:
- cron: '17 4 * * 0'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
# - name: Setup runtime (example)
# uses: actions/setup-example@v1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
config-file: ./.github/codeql/codeql-config.yml
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{matrix.language}}'
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ on:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
dependencies:
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ on:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
stable:
1 change: 1 addition & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ on:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
deployment:
29 changes: 17 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@
"clean-dist": "rimraf \"packages/**/dist\" && rimraf \".bob\"",
"lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint --ext .ts .",
"postbuild": "tsx scripts/postbuild.ts",
"postinstall": "patch-package",
"postinstall": "patch-package && husky install",
"prerelease": "yarn build",
"prettier": "prettier --cache --ignore-path .gitignore --ignore-path .prettierignore --write --list-different .",
"prettier:check": "prettier --cache --ignore-path .gitignore --ignore-path .prettierignore --check .",
@@ -45,36 +45,40 @@
"ts:check": "tsc --noEmit"
},
"devDependencies": {
"@babel/core": "7.26.9",
"@apollo/client": "3.13.4",
"@babel/core": "7.26.10",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-explicit-resource-management": "7.25.9",
"@babel/preset-env": "7.26.9",
"@babel/preset-typescript": "7.26.0",
"@changesets/changelog-github": "0.5.1",
"@changesets/cli": "2.28.1",
"@envelop/core": "5.2.3",
"@theguild/prettier-config": "3.0.0",
"@types/jest": "29.5.14",
"@types/node": "22.13.9",
"@typescript-eslint/eslint-plugin": "8.26.0",
"@typescript-eslint/parser": "8.26.0",
"@types/node": "22.13.10",
"@typescript-eslint/eslint-plugin": "8.26.1",
"@typescript-eslint/parser": "8.26.1",
"@urql/core": "5.1.1",
"babel-jest": "29.7.0",
"bob-the-bundler": "7.0.1",
"bun": "^1.1.43",
"bun": "1.2.5",
"chalk": "5.4.1",
"concurrently": "9.1.2",
"cross-env": "7.0.3",
"eslint": "9.21.0",
"eslint-config-prettier": "10.0.2",
"eslint": "9.22.0",
"eslint-config-prettier": "10.1.1",
"eslint-config-standard": "17.1.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-n": "17.16.1",
"eslint-plugin-n": "17.16.2",
"eslint-plugin-promise": "7.2.1",
"eslint-plugin-standard": "5.0.0",
"globby": "11.1.0",
"graphql": "16.10.0",
"graphql-yoga": "5.13.1",
"husky": "9.1.7",
"jest": "29.7.0",
"lint-staged": "15.4.3",
"lint-staged": "15.5.0",
"patch-package": "8.0.0",
"prettier": "3.5.3",
"prettier-plugin-tailwindcss": "0.6.11",
@@ -83,10 +87,11 @@
"typedoc": "0.25.13",
"typedoc-plugin-markdown": "3.17.1",
"typedoc-plugin-rename-defaults": "0.7.2",
"typescript": "5.8.2"
"typescript": "5.8.2",
"wonka": "6.3.5"
},
"resolutions": {
"esbuild": "0.25.0",
"esbuild": "0.25.1",
"graphql": "16.10.0"
},
"lint-staged": {
21 changes: 21 additions & 0 deletions packages/executor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @graphql-tools/executor

## 1.4.5

### Patch Changes

- [#6977](https://github.com/ardatan/graphql-tools/pull/6977)
[`90a717e`](https://github.com/ardatan/graphql-tools/commit/90a717e35a7e4e51da4fe747cb73544f24698fb7)
Thanks [@ardatan](https://github.com/ardatan)! - In executor, do not use leaking
`registerAbortSignalListener`, and handle listeners inside the execution context
- Updated dependencies
[[`90a717e`](https://github.com/ardatan/graphql-tools/commit/90a717e35a7e4e51da4fe747cb73544f24698fb7),
[`26518de`](https://github.com/ardatan/graphql-tools/commit/26518debfcb668e8feb5fb146271a13da92b778a)]:
- @graphql-tools/utils@10.8.5

## 1.4.4

### Patch Changes

- [#7001](https://github.com/ardatan/graphql-tools/pull/7001)
[`746358f`](https://github.com/ardatan/graphql-tools/commit/746358f68e81c9a3cf1ccf4b1a599ae6eae404ca)
Thanks [@renovate](https://github.com/apps/renovate)! - Improve promise helpers usage

## 1.4.3

### Patch Changes
4 changes: 2 additions & 2 deletions packages/executor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/executor",
"version": "1.4.3",
"version": "1.4.5",
"type": "module",
"repository": {
"type": "git",
@@ -55,7 +55,7 @@
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},
"dependencies": {
"@graphql-tools/utils": "^10.8.4",
"@graphql-tools/utils": "^10.8.5",
"@graphql-typed-document-node/core": "^3.2.0",
"@repeaterjs/repeater": "^3.0.4",
"@whatwg-node/disposablestack": "^0.0.6",
31 changes: 17 additions & 14 deletions packages/executor/src/execution/__tests__/abort-signal.test.ts
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ describe('Abort Signal', () => {
subscribe() {
return new Repeater(async (push, stop) => {
let i = 0;
stop.then(() => {
stop.finally(() => {
stopped = true;
});

@@ -150,7 +150,7 @@ describe('Abort Signal', () => {
didInvokeFirstFn = true;
return true;
},
async second() {
second() {
didInvokeSecondFn = true;
controller.abort();
return true;
@@ -162,18 +162,21 @@ describe('Abort Signal', () => {
},
},
});
const result$ = normalizedExecutor({
schema,
document: parse(/* GraphQL */ `
mutation {
first
second
third
}
`),
signal: controller.signal,
});
expect(result$).rejects.toBeInstanceOf(DOMException);
await expect(
Promise.resolve().then(() =>
normalizedExecutor({
schema,
document: parse(/* GraphQL */ `
mutation {
first
second
third
}
`),
signal: controller.signal,
}),
),
).rejects.toBeInstanceOf(DOMException);
expect(didInvokeFirstFn).toBe(true);
expect(didInvokeSecondFn).toBe(true);
expect(didInvokeThirdFn).toBe(false);
12 changes: 9 additions & 3 deletions packages/executor/src/execution/__tests__/stream-test.ts
Original file line number Diff line number Diff line change
@@ -477,6 +477,11 @@ describe('Execute: stream directive', () => {
},
],
},
],
hasNext: true,
},
{
incremental: [
{
items: [{ name: 'Leia', id: '3' }],
path: ['friendList', 2],
@@ -576,8 +581,9 @@ describe('Execute: stream directive', () => {
path: ['friendList', 2],
},
],
hasNext: false,
hasNext: true,
},
{ hasNext: false },
]);
});

@@ -645,10 +651,10 @@ describe('Execute: stream directive', () => {
path: ['friendList', 2],
},
],
hasNext: false,
hasNext: true,
},
},
{ done: true, value: undefined },
{ done: false, value: { hasNext: false } },
{ done: true, value: undefined },
]);
});
Loading