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 client.version to reflect @apollo/client version. #7448

Merged
merged 3 commits into from
Dec 10, 2020
Merged

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Dec 10, 2020

This seems to have been lost in #5292, when we reorganized everything from a monorepo with multiple packages/ (where it was handled by packages/apollo-client/scripts/deploy.sh) to a single package with multiple entry points. Instead of providing a useful version like "3.3.4", client.version is just "local".

I've tested that this works manually (using npm run build), meaning the actual version shows up in both dist/version.js (for ESM) and dist/core/core.cjs.js (for CommonJS), but I'm not sure how best to create a regression test, since most of our current tests run before/without npm run build. Tests added!

Copy link
Contributor

@jcreighton jcreighton left a comment

Choose a reason for hiding this comment

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

🎉

@benjamn benjamn merged commit 172fb3c into main Dec 10, 2020
@benjamn benjamn deleted the fix-client.version branch December 10, 2020 19:18
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants