Skip to content

Commit

Permalink
fix(deps): update gateway dependencies (#8145)
Browse files Browse the repository at this point in the history
* fix(deps): update gateway dependencies

* chore(dependencies): updated changesets for modified dependencies

* Lets go

* chore(dependencies): updated changesets for modified dependencies

* Only if 18

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Arda TANRIKULU <[email protected]>
  • Loading branch information
3 people authored Dec 14, 2024
1 parent 232c16d commit 38322fc
Show file tree
Hide file tree
Showing 10 changed files with 183 additions and 347 deletions.
5 changes: 5 additions & 0 deletions .changeset/@graphql-mesh_merger-bare-8145-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-mesh/merger-bare": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/schema@^10.0.13` ↗︎](https://www.npmjs.com/package/@graphql-tools/schema/v/10.0.13) (from `10.0.12`, in `dependencies`)
6 changes: 6 additions & 0 deletions .changeset/@omnigraph_openapi-8145-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@omnigraph/openapi": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.6.4` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.4) (from `10.6.3`, in `dependencies`)
- Removed dependency [`@graphql-tools/delegate@^10.0.28` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.28) (from `dependencies`)
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ jobs:
command: yarn test

- name: Run Leak Tests
if: matrix.node-version == 18
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"start": "node bundle.js"
},
"dependencies": {
"@graphql-hive/gateway": "1.7.0",
"@graphql-hive/gateway": "1.7.1",
"@graphql-yoga/plugin-apollo-inline-trace": "3.10.6",
"concurrently": "9.1.0",
"graphql": "16.9.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/legacy/mergers/bare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@graphql-mesh/merger-stitching": "0.104.8",
"@graphql-mesh/types": "^0.103.8",
"@graphql-mesh/utils": "^0.103.8",
"@graphql-tools/schema": "10.0.12",
"@graphql-tools/schema": "^10.0.13",
"@graphql-tools/utils": "^10.6.0",
"tslib": "^2.4.0"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/loaders/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"@graphql-mesh/string-interpolation": "^0.5.7",
"@graphql-mesh/types": "^0.103.8",
"@graphql-mesh/utils": "^0.103.8",
"@graphql-tools/delegate": "^10.0.28",
"@graphql-tools/utils": "10.6.3",
"@graphql-tools/utils": "^10.6.4",
"@omnigraph/json-schema": "^0.108.8",
"change-case": "^4.1.2",
"json-machete": "^0.97.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import {
readFileOrUrl,
sanitizeNameForGraphQL,
} from '@graphql-mesh/utils';
import { createDeferred } from '@graphql-tools/delegate';
import { asArray } from '@graphql-tools/utils';
import { asArray, createDeferred } from '@graphql-tools/utils';
import type {
HTTPMethod,
JSONSchemaHTTPJSONOperationConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/thrift/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"thrift": "^0.21.0"
},
"devDependencies": {
"@graphql-tools/utils": "10.6.3"
"@graphql-tools/utils": "10.6.4"
},
"publishConfig": {
"access": "public",
Expand Down
33 changes: 33 additions & 0 deletions patches/jest-leak-detector+29.7.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
diff --git a/node_modules/jest-leak-detector/build/index.js b/node_modules/jest-leak-detector/build/index.js
index a8ccb1e..70699fd 100644
--- a/node_modules/jest-leak-detector/build/index.js
+++ b/node_modules/jest-leak-detector/build/index.js
@@ -74,26 +74,14 @@ class LeakDetector {
value = null;
}
async isLeaking() {
- this._runGarbageCollector();
+ (0, _v().setFlagsFromString)('--allow-natives-syntax');

// wait some ticks to allow GC to run properly, see https://github.com/nodejs/node/issues/34636#issuecomment-669366235
for (let i = 0; i < 10; i++) {
+ eval('%CollectGarbage(true)');
await tick();
}
return this._isReferenceBeingHeld;
}
- _runGarbageCollector() {
- // @ts-expect-error: not a function on `globalThis`
- const isGarbageCollectorHidden = globalThis.gc == null;
-
- // GC is usually hidden, so we have to expose it before running.
- (0, _v().setFlagsFromString)('--expose-gc');
- (0, _vm().runInNewContext)('gc')();
-
- // The GC was not initially exposed, so let's hide it again.
- if (isGarbageCollectorHidden) {
- (0, _v().setFlagsFromString)('--no-expose-gc');
- }
- }
}
exports.default = LeakDetector;
Loading

0 comments on commit 38322fc

Please sign in to comment.