Skip to content

fix: Support readonly arrays as event names#234

Merged
hwillson merged 3 commits intoapollographql:release-3.0from
robhogan:fix/readonly-subscription-topics
Nov 25, 2021
Merged

fix: Support readonly arrays as event names#234
hwillson merged 3 commits intoapollographql:release-3.0from
robhogan:fix/readonly-subscription-topics

Conversation

@robhogan
Copy link
Copy Markdown

@robhogan robhogan commented Oct 6, 2020

BREAKING Allow a readonly topics / events array to be passed to PubSubEngine.asyncIterator(). I think this is how any well-behaved implementation should treat the incoming array anyway, and it would allow read-only arrays to be accepted upstream (eg MichalLytek/type-graphql#718)

I believe this is (minor) breaking because it could mean downstream subclasses of PubSubEngine re-implement asyncIterator with incompatible types. It might be best paired with #232 ?

@apollo-cla
Copy link
Copy Markdown

@rh389: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@hwillson hwillson force-pushed the fix/readonly-subscription-topics branch from 74470fd to 9b36315 Compare November 25, 2021 18:14
Copy link
Copy Markdown
Member

@hwillson hwillson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me @rh389 - thanks!

@hwillson hwillson merged commit 28934af into apollographql:release-3.0 Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants