Skip to content

chore: migrate to Yarn 4 and upgrade dependencies#655

Merged
oliverlaz merged 4 commits into
mainfrom
chore/yarn-4-migration
Jun 12, 2026
Merged

chore: migrate to Yarn 4 and upgrade dependencies#655
oliverlaz merged 4 commits into
mainfrom
chore/yarn-4-migration

Conversation

@oliverlaz

Copy link
Copy Markdown
Member

Summary

Migrates the package manager from Yarn 1 (Classic) to Yarn 4.16.0 (Berry) and refreshes the toolchain/dependencies.

Changes

Package manager

  • Pin packageManager to yarn@4.16.0; vendor the release in .yarn/releases/
  • Add .yarnrc.yml with nodeLinker: node-modules (keeps the flat node_modules layout, no PnP), enableHardenedMode: true, enableScripts: false, and a npmMinimalAgeGate: 1d supply-chain guard
  • Add Yarn Berry ignore rules to .gitignore

Dependencies

  • Babel toolchain → 7.29.x
  • axios^1.17.0, webpack pinned to 5.104.1, jsonwebtoken^9.0.3, follow-redirects^1.16.0, @babel/runtime^7.29.7
  • Add @types/node (^18.19.130); bump eslint-config-prettier / eslint-plugin-prettier

CI

  • actions/checkout and actions/setup-nodev6 across all workflows
  • Update CODEOWNERS

Test Plan

  • yarn install resolves under Yarn 4
  • yarn run types — passes
  • yarn run lint — passes
  • yarn run test-unit-node — 144/145 pass (the lone failure is redirect_test.js, which needs real STREAM_API_KEY/SECRET; it 401s under dummy creds)
  • CI green on the PR

@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Size Change: +18.3 kB (+16.67%) ⚠️

Total Size: 128 kB

📦 View Changed
Filename Size Change
dist/js_min/getstream.js 40.4 kB +4.87 kB (+13.7%) ⚠️
dist/js/getstream.js 87.3 kB +13.4 kB (+18.1%) ⚠️

compressed-size-action

- 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.
Comment thread .github/workflows/unit.yml Fixed
…ntain permissions'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@oliverlaz oliverlaz merged commit 5b5c68c into main Jun 12, 2026
14 checks passed
@oliverlaz oliverlaz deleted the chore/yarn-4-migration branch June 12, 2026 12:45
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.

3 participants