chore: migrate to Yarn 4 and upgrade dependencies#655
Merged
Conversation
Contributor
|
Size Change: +18.3 kB (+16.67%) Total Size: 128 kB 📦 View Changed
|
- setup-node action: use 'yarn install --immutable' (Yarn 4 syntax) - unit.yml: drop Node 16 from matrix (Yarn 4 requires Node >=18), bump checkout to v6 - bump webpack to ^5.107.2
Node 16 can't run Yarn 4 or tsx (both require Node >=18). Run the unit suite on Node 16 in a dedicated job: install deps on Node 24, then switch to Node 16 and run mocha through @babel/register instead of tsx.
…ntain permissions' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
szuperaz
approved these changes
Jun 12, 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
Migrates the package manager from Yarn 1 (Classic) to Yarn 4.16.0 (Berry) and refreshes the toolchain/dependencies.
Changes
Package manager
packageManagertoyarn@4.16.0; vendor the release in.yarn/releases/.yarnrc.ymlwithnodeLinker: node-modules(keeps the flatnode_moduleslayout, no PnP),enableHardenedMode: true,enableScripts: false, and anpmMinimalAgeGate: 1dsupply-chain guard.gitignoreDependencies
7.29.xaxios→^1.17.0,webpackpinned to5.104.1,jsonwebtoken→^9.0.3,follow-redirects→^1.16.0,@babel/runtime→^7.29.7@types/node(^18.19.130); bumpeslint-config-prettier/eslint-plugin-prettierCI
actions/checkoutandactions/setup-node→v6across all workflowsCODEOWNERSTest Plan
yarn installresolves under Yarn 4yarn run types— passesyarn run lint— passesyarn run test-unit-node— 144/145 pass (the lone failure isredirect_test.js, which needs realSTREAM_API_KEY/SECRET; it 401s under dummy creds)