-
Notifications
You must be signed in to change notification settings - Fork 36
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
Conversation
#213 Bundle Size — 1.07MiB (+6.53%).Warning Bundle contains 1 duplicate package – View duplicate packages Bundle metrics
|
Current #213 |
Baseline #189 |
|
---|---|---|
Initial JS | 938.93KiB (+5.31% ) |
891.55KiB |
Initial CSS | 70B (+100% ) |
0B |
Cache Invalidation | 85.99% |
0.04% |
Chunks | 32 (+33.33% ) |
24 |
Assets | 56 (+24.44% ) |
45 |
Modules | 591 (+15.43% ) |
512 |
Duplicate Modules | 110 (+266.67% ) |
30 |
Duplicate Code | 7.61% (+489.92% ) |
1.29% |
Packages | 26 (-10.34% ) |
29 |
Duplicate Packages | 1 |
1 |
Bundle size by type 3 changes
3 regressions
Current #213 |
Baseline #189 |
|
---|---|---|
JS | 1.06MiB (+6.3% ) |
1MiB |
Other | 8.67KiB (+44.68% ) |
5.99KiB |
CSS | 70B (+100% ) |
0B |
Bundle analysis report Branch pr/deprecate-moved-exports Project dashboard
There was a problem hiding this 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`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
No description provided.