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: Support readonly arrays as event names #234

Merged

Conversation

robhogan
Copy link

@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

@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
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