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

[v3] more major updates #2251

Merged
merged 6 commits into from
Sep 4, 2023
Merged

[v3] more major updates #2251

merged 6 commits into from
Sep 4, 2023

Conversation

dimaMachina
Copy link
Collaborator

  • set "engines.node": ">=18"

  • remove Tab export, use Tabs.Tab instead

  • remove Card export, use Cards.Card instead

  • disallow import md/mdx files that are outside of the working directory, use symlinks instead

@vercel
Copy link

vercel bot commented Sep 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextra ❌ Failed (Inspect) Sep 4, 2023 11:07pm
nextra-theme-docs-dev ❌ Failed (Inspect) Sep 4, 2023 11:07pm
nextra-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 4, 2023 11:07pm

@changeset-bot
Copy link

changeset-bot bot commented Sep 4, 2023

🦋 Changeset detected

Latest commit: c3880aa

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2023

📦 Next.js Bundle Analysis for swr-site

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 179.01 KB (-8 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

One Hundred Six Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/en 11.79 KB 190.8 KB 54.52% (🟢 -0.01%)
/en/about/a-page 7.83 KB 186.84 KB 53.38% (+/- <0.01%)
/en/about/acknowledgement 7.83 KB 186.84 KB 53.38% (+/- <0.01%)
/en/about/changelog 8.5 KB 187.51 KB 53.57% (+/- <0.01%)
/en/about/team 7.88 KB 186.89 KB 53.40% (🟢 -0.01%)
/en/blog 8.58 KB 187.59 KB 53.60% (🟢 -0.01%)
/en/blog/swr-v1 13.47 KB 192.48 KB 54.99% (+/- <0.01%)
/en/docs/404-500 8.71 KB 187.72 KB 53.63% (+/- <0.01%)
/en/docs/advanced 8.19 KB 187.2 KB 53.48% (+/- <0.01%)
/en/docs/advanced/cache 20.1 KB 199.11 KB 56.89% (+/- <0.01%)
/en/docs/advanced/code-highlighting 8.67 KB 187.67 KB 53.62% (+/- <0.01%)
/en/docs/advanced/dynamic-markdown-import 10.05 KB 189.06 KB 54.02% (🟢 -0.01%)
/en/docs/advanced/file-name.with.DOTS 7.86 KB 186.87 KB 53.39% (+/- <0.01%)
/en/docs/advanced/images 8.18 KB 187.19 KB 53.48% (+/- <0.01%)
/en/docs/advanced/markdown-import 12.12 KB 191.13 KB 54.61% (+/- <0.01%)
/en/docs/advanced/more/loooooooooooooooooooong-title 7.93 KB 186.94 KB 53.41% (+/- <0.01%)
/en/docs/advanced/more/tree/one 7.88 KB 186.89 KB 53.40% (🟢 -0.01%)
/en/docs/advanced/more/tree/three 7.83 KB 186.84 KB 53.38% (+/- <0.01%)
/en/docs/advanced/more/tree/two 7.86 KB 186.87 KB 53.39% (+/- <0.01%)
/en/docs/advanced/performance 10.22 KB 189.23 KB 54.07% (🟢 -0.01%)
/en/docs/advanced/react-native 9.77 KB 188.78 KB 53.94% (🟢 -0.01%)
/en/docs/advanced/scrollbar-x 8.99 KB 188 KB 53.71% (+/- <0.01%)
/en/docs/arguments 9.18 KB 188.19 KB 53.77% (+/- <0.01%)
/en/docs/callout 7.99 KB 187 KB 53.43% (+/- <0.01%)
/en/docs/change-log 8.18 KB 187.19 KB 53.48% (+/- <0.01%)
/en/docs/code-block-without-language 8.01 KB 187.02 KB 53.43% (+/- <0.01%)
/en/docs/conditional-fetching 8.85 KB 187.86 KB 53.67% (+/- <0.01%)
/en/docs/custom-header-ids 8.29 KB 187.3 KB 53.52% (🟢 -0.01%)
/en/docs/data-fetching 9.22 KB 188.23 KB 53.78% (+/- <0.01%)
/en/docs/error-handling 10.06 KB 189.07 KB 54.02% (+/- <0.01%)
/en/docs/getting-started 15.43 KB 194.44 KB 55.55% (+/- <0.01%)
/en/docs/global-configuration 9.13 KB 188.14 KB 53.76% (🟢 -0.01%)
/en/docs/middleware 11.18 KB 190.19 KB 54.34% (+/- <0.01%)
/en/docs/mutation 10.69 KB 189.7 KB 54.20% (+/- <0.01%)
/en/docs/options 9.65 KB 188.66 KB 53.90% (+/- <0.01%)
/en/docs/pagination 20.2 KB 199.21 KB 56.92% (🟢 -0.01%)
/en/docs/prefetching 9.31 KB 188.32 KB 53.81% (🟢 -0.01%)
/en/docs/raw-layout 8.52 KB 187.53 KB 53.58% (+/- <0.01%)
/en/docs/revalidation 14.34 KB 193.35 KB 55.24% (+/- <0.01%)
/en/docs/suspense 9.35 KB 188.36 KB 53.82% (🟢 -0.01%)
/en/docs/typescript 9.65 KB 188.66 KB 53.90% (+/- <0.01%)
/en/docs/understanding 15.47 KB 194.48 KB 55.56% (+/- <0.01%)
/en/docs/with-nextjs 9.49 KB 188.5 KB 53.86% (🟢 -0.01%)
/en/docs/wrap-toc-items 8.69 KB 187.7 KB 53.63% (🟢 -0.01%)
/en/examples/auth 8.12 KB 187.13 KB 53.47% (🟢 -0.01%)
/en/examples/basic 8.13 KB 187.13 KB 53.47% (🟢 -0.01%)
/en/examples/error-handling 8.13 KB 187.14 KB 53.47% (🟢 -0.01%)
/en/examples/full 8.11 KB 187.12 KB 53.46% (+/- <0.01%)
/en/examples/infinite-loading 8.14 KB 187.15 KB 53.47% (+/- <0.01%)
/en/examples/ssr 8.14 KB 187.15 KB 53.47% (+/- <0.01%)
/en/foo 8.34 KB 187.35 KB 53.53% (🟡 +0.03%)
/en/remote/graphql-eslint/[[...slug]] 7.86 KB 186.87 KB 53.39% (+/- <0.01%)
/en/remote/graphql-yoga/[[...slug]] 7.88 KB 186.89 KB 53.40% (🟢 -0.01%)
/en/test 8.08 KB 187.09 KB 53.45% (+/- <0.01%)
/es 9.33 KB 188.34 KB 53.81% (+/- <0.01%)
/es/docs/advanced/file-name.with.DOTS 5.7 KB 184.71 KB 52.77% (+/- <0.01%)
/es/docs/advanced/performance 8.23 KB 187.24 KB 53.50% (🟢 -0.01%)
/es/docs/arguments 7.08 KB 186.09 KB 53.17% (+/- <0.01%)
/es/docs/change-log 11.46 KB 190.47 KB 54.42% (+/- <0.01%)
/es/docs/conditional-fetching 6.73 KB 185.74 KB 53.07% (🟢 -0.01%)
/es/docs/data-fetching 7.1 KB 186.11 KB 53.17% (+/- <0.01%)
/es/docs/error-handling 8.02 KB 187.03 KB 53.44% (🟢 -0.01%)
/es/docs/getting-started 12.8 KB 191.81 KB 54.80% (+/- <0.01%)
/es/docs/global-configuration 7.01 KB 186.02 KB 53.15% (+/- <0.01%)
/es/docs/mutation 8.53 KB 187.54 KB 53.58% (+/- <0.01%)
/es/docs/options 7.64 KB 186.65 KB 53.33% (+/- <0.01%)
/es/docs/pagination 18.35 KB 197.36 KB 56.39% (+/- <0.01%)
/es/docs/prefetching 7.24 KB 186.25 KB 53.21% (+/- <0.01%)
/es/docs/revalidation 12.33 KB 191.34 KB 54.67% (🟢 -0.01%)
/es/docs/suspense 7.25 KB 186.26 KB 53.22% (🟢 -0.01%)
/es/docs/understanding 13.3 KB 192.31 KB 54.95% (🟢 -0.01%)
/es/docs/with-nextjs 7.47 KB 186.48 KB 53.28% (+/- <0.01%)
/es/docs/wrap-toc-items 6.5 KB 185.51 KB 53.00% (+/- <0.01%)
/es/examples/auth 5.96 KB 184.97 KB 52.85% (+/- <0.01%)
/es/examples/basic 5.96 KB 184.97 KB 52.85% (+/- <0.01%)
/es/examples/error-handling 5.97 KB 184.98 KB 52.85% (+/- <0.01%)
/es/examples/infinite-loading 5.98 KB 184.99 KB 52.85% (+/- <0.01%)
/ru 10.35 KB 189.36 KB 54.10% (+/- <0.01%)
/ru/blog 7.05 KB 186.06 KB 53.16% (+/- <0.01%)
/ru/blog/swr-v1 13.61 KB 192.62 KB 55.03% (+/- <0.01%)
/ru/docs/advanced/cache 19.71 KB 198.72 KB 56.78% (+/- <0.01%)
/ru/docs/advanced/file-name.with.DOTS 6.35 KB 185.36 KB 52.96% (+/- <0.01%)
/ru/docs/advanced/performance 9.45 KB 188.46 KB 53.85% (🟢 -0.01%)
/ru/docs/advanced/react-native 8.76 KB 187.77 KB 53.65% (+/- <0.01%)
/ru/docs/arguments 7.92 KB 186.93 KB 53.41% (+/- <0.01%)
/ru/docs/change-log 12.16 KB 191.17 KB 54.62% (+/- <0.01%)
/ru/docs/conditional-fetching 7.57 KB 186.58 KB 53.31% (+/- <0.01%)
/ru/docs/data-fetching 8 KB 187.01 KB 53.43% (+/- <0.01%)
/ru/docs/error-handling 9.2 KB 188.21 KB 53.77% (+/- <0.01%)
/ru/docs/getting-started 14.08 KB 193.09 KB 55.17% (+/- <0.01%)
/ru/docs/global-configuration 7.91 KB 186.92 KB 53.41% (🟢 -0.01%)
/ru/docs/middleware 10.37 KB 189.38 KB 54.11% (+/- <0.01%)
/ru/docs/mutation 9.85 KB 188.86 KB 53.96% (+/- <0.01%)
/ru/docs/options 8.86 KB 187.87 KB 53.68% (🟢 -0.01%)
/ru/docs/pagination 19.89 KB 198.9 KB 56.83% (🟢 -0.01%)
/ru/docs/prefetching 8.25 KB 187.25 KB 53.50% (+/- <0.01%)
/ru/docs/revalidation 13.51 KB 192.52 KB 55.01% (🟢 -0.01%)
/ru/docs/suspense 8.22 KB 187.23 KB 53.49% (+/- <0.01%)
/ru/docs/understanding 13.9 KB 192.91 KB 55.12% (🟢 -0.01%)
/ru/docs/with-nextjs 8.48 KB 187.49 KB 53.57% (+/- <0.01%)
/ru/docs/wrap-toc-items 7.1 KB 186.11 KB 53.17% (+/- <0.01%)
/ru/examples/auth 6.59 KB 185.6 KB 53.03% (+/- <0.01%)
/ru/examples/basic 6.6 KB 185.61 KB 53.03% (+/- <0.01%)
/ru/examples/error-handling 6.6 KB 185.61 KB 53.03% (+/- <0.01%)
/ru/examples/infinite-loading 6.62 KB 185.63 KB 53.04% (🟢 -0.01%)
/ru/examples/ssr 6.57 KB 185.58 KB 53.02% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@dimaMachina dimaMachina merged commit 2f3be33 into v3 Sep 4, 2023
6 of 8 checks passed
@dimaMachina dimaMachina deleted the v3-4 branch September 4, 2023 23:13
@dimaMachina dimaMachina added this to the 3.0 milestone Sep 5, 2023
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

1 participant