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

Add deprecation messages to moved exports. #301

Merged
merged 3 commits into from
May 29, 2024

Conversation

phryneas
Copy link
Member

No description provided.

Copy link

relativeci bot commented May 22, 2024

#213 Bundle Size — 1.07MiB (+6.53%).

e60c11c(current) vs afa5bcc main#189(baseline)

Warning

Bundle contains 1 duplicate package – View duplicate packages

Bundle metrics  Change 9 changes Regression 3 regressions Improvement 1 improvement
                 Current
#213
     Baseline
#189
Regression  Initial JS 938.93KiB(+5.31%) 891.55KiB
Regression  Initial CSS 70B(+100%) 0B
Change  Cache Invalidation 85.99% 0.04%
Change  Chunks 32(+33.33%) 24
Change  Assets 56(+24.44%) 45
Change  Modules 591(+15.43%) 512
Regression  Duplicate Modules 110(+266.67%) 30
Change  Duplicate Code 7.61%(+489.92%) 1.29%
Improvement  Packages 26(-10.34%) 29
No change  Duplicate Packages 1 1
Bundle size by type  Change 3 changes Regression 3 regressions
                 Current
#213
     Baseline
#189
Regression  JS 1.06MiB (+6.3%) 1MiB
Regression  Other 8.67KiB (+44.68%) 5.99KiB
Regression  CSS 70B (+100%) 0B

Bundle analysis reportBranch pr/deprecate-moved-exportsProject dashboard

Copy link
Member

@jerelmiller jerelmiller left a comment

Choose a reason for hiding this comment

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

Looks great to me! This will be a welcome change 🎉

> = _TransportedQueryRef<TData, TVariables>;
/**
* @deprecated
* Importing this hook from this package is not necessary anymore - you can directly import it from `@apollo/client`.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Importing this hook from this package is not necessary anymore - you can directly import it from `@apollo/client`.
* Importing `useBackgroundQuery` from this package is no longer necessary. Import it directly from `@apollo/client` instead.

[nit] I'd break this up into two sentences as I think it reads a bit better. Feel free to keep what you have though if you don't like this change, especially since this is just what you see in the editor. If you do like this, the other hook deprecations could also need this change to keep this consistent.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you!

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.

None yet

2 participants