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

revert to using a simple shallowCopy for ops #323

Merged
merged 2 commits into from
Nov 4, 2019
Merged

Conversation

nateps
Copy link
Contributor

@nateps nateps commented Nov 4, 2019

Previously, ops were copied by iterating over them in pubsub. This was changed in #316 to copy the specific properties expected on an op. Copying the specific properties is faster than iterating and allows use of specifically typed objects.

However, this ended up being a breaking change, because middleware could be adding additional fields to the top level of the op, which do end up getting committed and fetched. Perhaps a way to add additional op fields explicitly should be implemented, but for now, let's just revert, since this was not intended to be breaking.

…ng is a breakign change if you've added new fields in middleware
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 96.735% when pulling ca1dca0 on revert-shallow-copy-op into 9effa65 on master.

@nateps nateps merged commit 70e43d4 into master Nov 4, 2019
@nateps nateps deleted the revert-shallow-copy-op branch November 4, 2019 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants