From c9789ac1f2a878b930a3e58f15bedf75d531a674 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 18 Mar 2025 16:35:56 -0400
Subject: [PATCH] fix(deps): update dependency graphql-subscriptions to v3
(#1209)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[graphql-subscriptions](https://redirect.github.com/apollographql/graphql-subscriptions)
| [`^2.0.0` ->
`^3.0.0`](https://renovatebot.com/diffs/npm/graphql-subscriptions/2.0.0/3.0.0)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
apollographql/graphql-subscriptions
(graphql-subscriptions)
###
[`v3.0.0`](https://redirect.github.com/apollographql/graphql-subscriptions/blob/HEAD/CHANGELOG.md#300)
[Compare
Source](https://redirect.github.com/apollographql/graphql-subscriptions/compare/v2.0.0...v3.0.0)
- **\[BREAKING]** Replace `iterall` use with native
`Symbol.asyncIterator`. `PubSubEngine.asyncIterator` is now
`PubSubEngine.asyncIterableIterator`.
[@n1ru4l](https://redirect.github.com/n1ru4l) in
[#232](https://redirect.github.com/apollographql/graphql-subscriptions/pull/232)
- Add an optional generic type map to `PubSub`.
[@cursorsdottsx](https://redirect.github.com/cursorsdottsx) in
[#245](https://redirect.github.com/apollographql/graphql-subscriptions/pull/245)
- Support `readonly` arrays of event names.
[@rh389](https://redirect.github.com/rh389) in
[#234](https://redirect.github.com/apollographql/graphql-subscriptions/pull/234)
- Support returning a Promise of an `AsyncIterator` as the `withFilter`
resolver function.
[@maclockard](https://redirect.github.com/maclockard) in
[#220](https://redirect.github.com/apollographql/graphql-subscriptions/pull/220)
- `withFilter` TypeScript improvements.
[@HofmannZ](https://redirect.github.com/HofmannZ) in
[#230](https://redirect.github.com/apollographql/graphql-subscriptions/pull/230)
- `withFilter` returns `AsyncIterableIterator` for compatibility with
Apollo Server subscriptions.
[@tninesling](https://redirect.github.com/tninesling) in
[#276](https://redirect.github.com/apollographql/graphql-subscriptions/pull/276)
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
â™» **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/unraid/api).
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eli Bosley
---
api/package.json | 2 +-
api/src/core/pubsub.ts | 2 +-
api/src/graphql/schema/utils.ts | 2 +-
pnpm-lock.yaml | 13 +++++++------
4 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/api/package.json b/api/package.json
index 54c729729..c6d5574eb 100644
--- a/api/package.json
+++ b/api/package.json
@@ -99,7 +99,7 @@
"graphql": "^16.9.0",
"graphql-fields": "^2.0.3",
"graphql-scalars": "^1.23.0",
- "graphql-subscriptions": "^2.0.0",
+ "graphql-subscriptions": "^3.0.0",
"graphql-tag": "^2.12.6",
"graphql-type-json": "^0.3.2",
"graphql-type-uuid": "^0.2.0",
diff --git a/api/src/core/pubsub.ts b/api/src/core/pubsub.ts
index a3d5aabf5..ea0cf320d 100644
--- a/api/src/core/pubsub.ts
+++ b/api/src/core/pubsub.ts
@@ -28,5 +28,5 @@ export const pubsub = new PubSub({ eventEmitter });
* @param channel The pubsub channel to subscribe to.
*/
export const createSubscription = (channel: PUBSUB_CHANNEL) => {
- return pubsub.asyncIterator(channel);
+ return pubsub.asyncIterableIterator(channel);
};
diff --git a/api/src/graphql/schema/utils.ts b/api/src/graphql/schema/utils.ts
index cc86c874a..cee23d8e4 100644
--- a/api/src/graphql/schema/utils.ts
+++ b/api/src/graphql/schema/utils.ts
@@ -68,7 +68,7 @@ export const createSubscription = (channel: string, resource?: string) => ({
});
hasSubscribedToChannel(context.websocketId, channel);
- return pubsub.asyncIterator(channel);
+ return pubsub.asyncIterableIterator(channel);
},
});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4cd161e01..916a1e3f5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -168,8 +168,8 @@ importers:
specifier: ^1.23.0
version: 1.24.1(graphql@16.10.0)
graphql-subscriptions:
- specifier: ^2.0.0
- version: 2.0.0(graphql@16.10.0)
+ specifier: ^3.0.0
+ version: 3.0.0(graphql@16.10.0)
graphql-tag:
specifier: ^2.12.6
version: 2.12.6(graphql@16.10.0)
@@ -3898,6 +3898,7 @@ packages:
'@unraid/libvirt@1.1.3':
resolution: {integrity: sha512-aZNHkwgQ/0e+5BE7i3Ru4GC3Ev8fEUlnU0wmTcuSbpN0r74rMpiGwzA/4cqIJU8X+Kj//I80pkUufzXzHmMWwQ==}
engines: {node: '>=14'}
+ cpu: [x64, arm64]
os: [linux, darwin]
'@unraid/tailwind-rem-to-rem@1.1.0':
@@ -6963,8 +6964,8 @@ packages:
peerDependencies:
graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0
- graphql-subscriptions@2.0.0:
- resolution: {integrity: sha512-s6k2b8mmt9gF9pEfkxsaO1lTxaySfKoEJzEfmwguBbQ//Oq23hIXCfR1hm4kdh5hnR20RdwB+s3BCb+0duHSZA==}
+ graphql-subscriptions@3.0.0:
+ resolution: {integrity: sha512-kZCdevgmzDjGAOqH7GlDmQXYAkuHoKpMlJrqF40HMPhUhM5ZWSFSxCwD/nSi6AkaijmMfsFhoJRGJ27UseCvRA==}
peerDependencies:
graphql: ^15.7.2 || ^16.0.0
@@ -9483,6 +9484,7 @@ packages:
engines: {node: '>=0.6.0', teleport: '>=0.2.0'}
deprecated: |-
You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
+
(For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
qs@6.13.0:
@@ -18931,10 +18933,9 @@ snapshots:
graphql: 16.10.0
tslib: 2.8.1
- graphql-subscriptions@2.0.0(graphql@16.10.0):
+ graphql-subscriptions@3.0.0(graphql@16.10.0):
dependencies:
graphql: 16.10.0
- iterall: 1.3.0
graphql-tag@2.12.6(graphql@16.10.0):
dependencies: