docusaurus icon indicating copy to clipboard operation
docusaurus copied to clipboard

chore: CI upgrade to Node 22

Open slorber opened this issue 1 year ago â€ĸ 3 comments

Motivation

CI should use Node 20/LTS by default

Matrix strategies should use Node versions 18.0, 20, 22


Note Node v22 behavior regarding Intl.DisplayNames is more "strict" than v18/20 (throws more often). I had to adjust the code accordingly. Not sure if it's a bug or if they follow the spec more accurately.


Note TSC has a segmentation fault under Node 22. Apparently, this is related to a V8 maglev bug:

  • https://github.com/microsoft/TypeScript/issues/58369
  • https://github.com/nodejs/node/issues/52797

Upgrading to TS 5.5 beta seems to fix it, but our website's main bundle size seems to increases for unexpected reasons. For that reason, I'm going to wait for a stable release.

slorber avatar May 09 '24 12:05 slorber

[V2]

Name Link
Latest commit 786ebd1cad624a9f882ce773ed6389b85a26ca61
Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/6675654b606c180008a33242
Deploy Preview https://deploy-preview-10119--docusaurus-2.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar May 09 '24 12:05 netlify[bot]

âšĄī¸ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO PWA Report
/ 🟠 62 đŸŸĸ 98 đŸŸĸ 96 đŸŸĸ 100 🟠 88 Report
/docs/installation 🟠 80 đŸŸĸ 96 đŸŸĸ 100 đŸŸĸ 100 🟠 88 Report
/docs/category/getting-started 🟠 75 đŸŸĸ 100 đŸŸĸ 100 đŸŸĸ 90 🟠 88 Report
/blog 🟠 69 đŸŸĸ 100 đŸŸĸ 100 đŸŸĸ 90 🟠 88 Report
/blog/preparing-your-site-for-docusaurus-v3 🟠 64 đŸŸĸ 96 đŸŸĸ 100 đŸŸĸ 100 🟠 88 Report
/blog/tags/release 🟠 70 đŸŸĸ 100 đŸŸĸ 100 đŸŸĸ 90 🟠 88 Report
/blog/tags 🟠 73 đŸŸĸ 100 đŸŸĸ 100 đŸŸĸ 90 🟠 88 Report

github-actions[bot] avatar May 09 '24 12:05 github-actions[bot]

Size Change: +8.96 kB (+0.49%)

Total Size: 1.85 MB

Filename Size Change
website/build/assets/js/main.********.js 906 kB +8.96 kB (+1%)
â„šī¸ View Unchanged
Filename Size
website/.docusaurus/codeTranslations.json 2 B
website/.docusaurus/docusaurus.config.mjs 27.1 kB
website/.docusaurus/globalData.json 123 kB
website/.docusaurus/i18n.json 930 B
website/.docusaurus/registry.js 304 kB
website/.docusaurus/routes.js 202 kB
website/.docusaurus/routesChunkNames.json 130 kB
website/.docusaurus/site-metadata.json 2.17 kB
website/build/assets/css/styles.********.css 112 kB
website/build/index.html 38.1 kB

compressed-size-action

github-actions[bot] avatar May 09 '24 14:05 github-actions[bot]