Skip to content

Updated dependencies#1502

Merged
carterworks merged 33 commits into
mainfrom
update-deps
May 8, 2026
Merged

Updated dependencies#1502
carterworks merged 33 commits into
mainfrom
update-deps

Conversation

@carterworks
Copy link
Copy Markdown
Collaborator

Changed Packages

  • core
  • reactor-extension

(Also touches @adobe/alloy browser package, @adobe/alloy-node, and sandboxes/browser.)

Description

Bumps dev and transitive dependencies across the monorepo, then resolves the resulting build/lint/test breakages. Commits are kept small and atomic for easy review (one dependency or coordinated group per commit).

Notable updates:

  • TypeScript 5.9 → 6.0.3 (stricter rootDir enforcement; see fix below).
  • ESLint 9 → 10 + @eslint/js 10 (new rules: preserve-caught-error, no-useless-assignment).
  • Vitest ecosystem → 4.1.5, Playwright → 1.59.1, MSW → 2.14.3.
  • Vite 7 → 8.0.10 in sandboxes/browser, with @vitejs/plugin-react → 6.0.1.
  • Rollup → 4.60.3 (path traversal fix), @rollup/plugin-commonjs → 29.0.2, @rollup/plugin-terser → 1.0.0, rollup-plugin-license → 3.7.1.
  • React-router → 7.15.0 (XSS fix), Puppeteer → 24.43.0, TestCafe → 3.7.4.
  • pnpm overrides added for transitive vulnerabilities in lodash, minimatch (via jshint), underscore, and yaml.

Source/config fixes required by the bumps:

  • packages/browser/jsconfig.json: explicit "rootDir": ".." so paths referring to ../core/src/* keep resolving under TS 6's stricter rootDir checks (TS5011).
  • packages/browser/src/components/PushNotifications/helpers/serviceWorkerPushListener.js: refactor NotificationOptions construction via a Record<string, unknown> with conditional property assignment to satisfy TS 6's narrowing.
  • packages/core/src/core/buildAndValidateConfig.js, validateCommandOptions.js: attach the original error via cause (ESLint 10 preserve-caught-error).
  • packages/core/src/utils/createDecodeKndctrCookie.js: drop a dead assignment caught by no-useless-assignment.

Related Issue

N/A — routine maintenance / vulnerability cleanup.

Motivation and Context

Several dev dependencies had outstanding security advisories (rollup path traversal, react-router XSS, transitive lodash/yaml/underscore/minimatch issues). Pulling everything forward also unblocks Vitest 4 / MSW 2.14 features and gets us off the EOL TypeScript 5 line.

Screenshots (if appropriate):

N/A.

Documentation

N/A — no consumer-facing API change.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (non-breaking change which does not add functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have added a Changeset file with a consumer-facing description of my changes. (Not needed — dev-only dependency bumps with no consumer impact.)
  • I have signed the Adobe Open Source CLA or I'm an Adobe employee.
  • I have made any necessary test changes and all tests pass. (pnpm test: 2671 passed, 5 skipped, 0 failed; pnpm build succeeds across all packages.)
  • I have run the Sandbox successfully.

Note

Stacked on top of #1501 (test fixture fix needed for the suite to pass). Once that merges, this PR's base will retarget to main.

🤖 Generated with Claude Code

carterworks and others added 30 commits May 8, 2026 12:41
The shared setConsentHandler had two issues that caused
queueTimeMillis.spec.js's "reflects time waiting for consent" test
to time out:

- Its URL regex required a literal /ee/v1/, so once a prior test in
  the same file populated the kndctr cluster cookie, the location-
  hint segment broke matching. Allow an optional segment between
  /ee/ and /v1/, matching the working handler in consent_gate.spec.js.
- It returned an empty handle array, so alloy never received a
  state:store directive to set the consent cookie. The Consent
  component reads consent state from the cookie after the request
  resolves, leaving queued events suspended forever. Return a
  state:store payload that sets general=in.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Fix new lint errors from preserve-caught-error and no-useless-assignment
rules introduced in eslint v10.
carterworks and others added 2 commits May 8, 2026 12:42
Override lodash, minimatch (in jshint), underscore, and yaml to
patched versions to address GHSA advisories from deep transitive deps.
- Set rootDir to ".." in browser jsconfig.json so cross-package
  paths (../core/src/*) resolve under TS 6's stricter rootDir checks.
- Refactor serviceWorkerPushListener.js to build NotificationOptions
  via a typed Record with conditional property assignment, satisfying
  the stricter exactOptionalPropertyTypes-style narrowing in TS 6.
- Update bundlesize snapshot.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 8, 2026

⚠️ No Changeset found

Latest commit: 40ec20a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@carterworks carterworks changed the base branch from fix-flaky-setconsent-handler to main May 8, 2026 19:16
@carterworks carterworks enabled auto-merge (squash) May 8, 2026 20:32
@carterworks carterworks merged commit 699db9a into main May 8, 2026
8 of 9 checks passed
@carterworks carterworks deleted the update-deps branch May 8, 2026 20:34
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