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

Npm update everything except next.js and bulma #790

Merged
merged 12 commits into from
Oct 27, 2024

Conversation

joshka
Copy link
Contributor

@joshka joshka commented Oct 27, 2024

This gives a good base of npm packages to work with when updating next.js
and avoids any potential incompatible versions during the update.

Bulma is a little more complex to update as it has a variety of interesting changes
in the 0.8 -> 1.x update.

Next.js has 2 versions to update (14 and 15).

  • use next/font instead of @next/font
  • npm bump classnames
  • npm bump glob
  • npm bump highlight.js
  • npm bump react and react-dom
  • npm bump rehype-highlight, rehype-raw and add lowlight
  • npm bump rehype-slug
  • npm bump rehype-stringify, remark{-parse,-rehype}, unified{,-stream}
  • npm bump unist-util-visit
  • npm bump dev dependencies
  • npm bump sass

Testing:
I upgraded each dependency individually, checked their changelogs / releases / commits for breaking changes, and compared the output of tokio.rs and localhost:3000 when rendering the same pages.

joshka added 12 commits October 27, 2024 05:04
Fixes build error due to future deprecation of @next/font in favor of
next/font. See https://nextjs.org/docs/messages/built-in-next-font
https://github.com/isaacs/node-glob/blob/main/changelog.md
Used for listing the blog articles. Changed to using globSync alias
instead of glob.
https://github.com/rehypejs/rehype-highlight/releases/tag/7.0.1
https://github.com/rehypejs/rehype-highlight/releases/tag/7.0.0
https://github.com/rehypejs/rehype-raw/releases/tag/7.0.0

Required adding lowlight as a dependency to the project and updating the
config to use the common languages from lowlight as these are no longer
included in the config by default.

No relevant changes in rehype-raw
https://github.com/sass/dart-sass/blob/main/CHANGELOG.md
No obvious breaking changes, but this is a large version bump (48 versions), so there may be some sutle ones.
No errors.
@Darksonn Darksonn merged commit 6f9c24c into tokio-rs:master Oct 27, 2024
7 checks passed
@joshka joshka deleted the jm/npm-update branch October 27, 2024 14:48
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