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 breaking changes mistakenly released in patch update #4334

Merged

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Jan 18, 2019

In my rush to release #4234, I removed some previously public members from the QueryManager and forgot to include an explicit dependency on the tslib package. This PR reverts the QueryManager changes for now, at least until apollographql/react-apollo#2738 can be addressed, and fixes #4332 by adding tslib to the dependencies of all client packages.

To prevent further breakage due to automatic patch updates, we will release new patch versions of the relevant packages after this PR is merged.

Once the underlying issues are fixed, we will un-revert the QueryManager changes and revisit how the package versions should be bumped.

This reverts commit b4f0c8e.

Should fix apollographql/react-apollo#2738,
until we can find a better solution.
This reverts commit d4f3346.

Although apollographql/react-apollo#2738
resulted immediately from the removal of the scheduler, similar problems
will almost certainly arise from privatizing client.queryManager.
948706f

The commit linked above attempted to inline tslib helpers into our UMD
bundles, but accidentally left actual tslib imports in the ESM files
exposed through the `module` field in `package.json`, without installing
tslib as a dependency.

Since we're not currently bundling all of our ESM modules together into
one bundle, inlining the helpers doesn't make sense, because they would be
inlined at the top of every module where they were used, instead of being
shared across all modules. However, importing tslib the normal way should
work just fine, and tree-shaking bundlers can take care of pruning the
unused helpers from the tslib package.

Should fix #4332.
@benjamn benjamn requested a review from hwillson January 18, 2019 21:49
@benjamn
Copy link
Member Author

benjamn commented Jan 18, 2019

No surprise that the bundle size test failed, since these changes were originally intended (in part) to reduce bundle sizes.

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.

Thanks for jumping on this so quickly @benjamn - looks good!

@benjamn benjamn merged commit fa68c7c into master Jan 18, 2019
@benjamn benjamn deleted the revert-breaking-changes-mistakenly-released-in-patch-update branch January 18, 2019 22:00
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

apollo-cache-inmemory: the new release seems to break the build
2 participants