Repository navigation
Upgrade dependencies, Babel 8 and Node 24 (v5.7.0) - #652
Merged
Merged
Conversation
Bump storybook webpack5 babel compiler, testing-library dom/react/user-event, babel-plugin-module-resolver and rimraf to their latest patches. Let cp-cloud take the cloud-frontend checkout from CLOUD_DIR, defaulting to ../cloud-frontend, so builds can be copied into a worktree.
Bump prismic client, react-virtual, axios, playwright, storybook, babel-loader, babel-plugin-styled-components, eslint-plugin-react-hooks, globals, jest, jest-styled-components, lodash, prettier, react and webpack to their latest minors. styled-components stays pinned.
eslint-plugin-react does not support ESLint 10, so replace it with @eslint-react/eslint-plugin's recommended preset, with exhaustive-deps off. The plugin is ESM-only, so the config uses import syntax; it requires typescript as a peer. The library still compiles JSX with the classic runtime, which needs React in scope, so no-unused-vars ignores React. Remove the unused eslint-plugin-react-hooks and @babel/eslint-parser.
- @babel/cli, core, preset-env, preset-react and plugin-transform-runtime 8;
drop the unused plugin-transform-modules-umd.
- preset-react uses the automatic runtime in production mode, so the 263
React imports that only served JSX are removed and the lint exception for
an unused React import goes away.
- preset-env no longer runs in loose mode or with plugin-transform-spread;
targets come from a browserslist entry ("> 0.25%, not dead").
- jest resolves node_modules relatively so its Babel 7 code frame no longer
loads the hoisted ESM-only Babel 8 helpers.
Point .nvmrc and the test workflow at Node 24, the current LTS line.
kapantzak
approved these changes
Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings every dependency to its latest release, one step per commit:
@eslint-react.@testing-library/jest-dom7, dropping the directjsdomdependency.svgo-loader5,webpack-cli7 andsass-loader17.browserslistentry..nvmrcand CI.cloud-frontend picks this release up in its own dependency upgrade.
Verification
On Node 24.22.2:
yarn install --frozen-lockfileyarn test: 172 suites, 1,942 tests passedyarn build(UMD, CJS and ES builds)The Storybook build was checked with Babel 8 on Node 22.22.0.