Skip to content

chore: update dependencies to latest - #37

Merged
tico88612 merged 2 commits into
cloud-native-taiwan:masterfrom
ching-kuo:chore/update-dependencies
Jun 30, 2026
Merged

tico88612 merged 2 commits into
cloud-native-taiwan:masterfrom
ching-kuo:chore/update-dependencies

Conversation

@ching-kuo

Copy link
Copy Markdown
Contributor

Summary

Updates all packages to their latest versions. The dependencies had drifted significantly behind (Docusaurus was pinned at 3.2.0; latest is 3.10.1).

Version bumps

  • Docusaurus: 3.2.0 → 3.10.1 (all @docusaurus/* packages aligned to the same version, as Docusaurus requires)
  • React / React DOM: 18 → 19
  • @types/react: 18 → 19
  • @algolia/client-search: 4 → 5
  • TypeScript: 5 → 6
  • @mdx-js/react, clsx, prism-react-renderer, search-insights, @tsconfig/docusaurus: minor/patch bumps to latest

Required code changes

  • tsconfig.json: add ignoreDeprecations: "6.0" — TS 6 deprecates baseUrl
  • src/pages/index.tsx, src/components/HomepageFeatures/index.tsx: use React.JSX.Element — React 19's types removed the global JSX namespace
  • docusaurus.config.js: move onBrokenMarkdownLinks into markdown.hooks — the top-level option is deprecated and removed in Docusaurus v4

Test plan

  • yarn install --frozen-lockfile succeeds (matches CI)
  • yarn typecheck (tsc) passes
  • yarn build produces an optimized production build with no errors
  • CI deploy preview renders correctly

Bump Docusaurus 3.2.0 -> 3.10.1 (all @docusaurus/* packages aligned),
React 18 -> 19, @algolia/client-search 4 -> 5, TypeScript 5 -> 6, and
remaining minor deps to latest.

- Add ignoreDeprecations '6.0' for baseUrl (deprecated in TS 6)
- Use React.JSX.Element (global JSX namespace removed in React 19 types)
- Migrate onBrokenMarkdownLinks into markdown.hooks (Docusaurus v4 prep)

Verified: yarn install --frozen-lockfile, tsc typecheck, and yarn build
all pass.
@netlify

netlify Bot commented Jun 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cloudnative-tw ready!

Name Link
🔨 Latest commit 33d7e81
🔍 Latest deploy log https://app.netlify.com/projects/cloudnative-tw/deploys/6a33ea44606b230008ed3b92
😎 Deploy Preview https://deploy-preview-37--cloudnative-tw.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 project configuration.

Docusaurus 3.10 requires node >=20; bump engines and CI workflows.
@ching-kuo
ching-kuo requested a review from tico88612 June 19, 2026 13:16
@tico88612
tico88612 merged commit ce2d14b into cloud-native-taiwan:master Jun 30, 2026
5 checks passed
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.

2 participants