Skip to content

⬆️ Upgrade Babel 8 and TypeScript 7 - #904

Merged
Robdel12 merged 2 commits into
mainfrom
dependabot/npm_and_yarn/major-dependencies-ec5141c5d5
Nov 11, 2026
Merged

Robdel12 merged 2 commits into
mainfrom
dependabot/npm_and_yarn/major-dependencies-ec5141c5d5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Why

The grouped major update failed during npm ci: @rollup/plugin-babel still declares a Babel 7 peer range. TypeScript 7 also no longer embeds the project's separate method augmentations into generated class declarations, which removed methods such as click() and visible() from consumer types.

Approach

Upgrade Babel core and transform-runtime to 8.1.2, preset-env to 8.0.7, and TypeScript to 7.0.2. Keep Rollup and Moonshiner, with an explicit override making the existing Rollup Babel plugin use the root Babel version. The plugin's published peer range still needs an upstream update; the override is scoped to that integration and can be removed when its declared range supports Babel 8.

Compile the existing type augmentation source as lib/types.ts and select its emitted declaration as the package's type entry point. Export the default interactor from that entry as well, and use explicit typeof queries required by TypeScript 7. This preserves the dynamic actions and assertions without adding a declaration-copy script or changing runtime logic.

Evidence

A clean install with lifecycle scripts enabled completes the prepare build. Lint, declaration generation, and the existing type checks pass. All 136 existing Moonshiner browser tests pass with 100% statement, branch, function, and line coverage.

A separate consumer of the packed npm artifact resolves both default and named exports, type-checks chained actions/assertions, and rejects invalid argument types under both TypeScript 6 and 7. No new test files are added.

Moonshiner's merged security fix is not published to npm yet; its dependency bump remains separate from these major tooling upgrades.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 11, 2026
Bumps the major-dependencies group with 4 updates in the / directory: [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core), [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime), [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) and [typescript](https://github.com/microsoft/TypeScript).


Updates `@babel/core` from 7.29.13 to 8.0.7
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v8.0.7/packages/babel-core)

Updates `@babel/plugin-transform-runtime` from 7.29.7 to 8.0.6
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v8.0.6/packages/babel-plugin-transform-runtime)

Updates `@babel/preset-env` from 7.29.7 to 8.0.7
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v8.0.7/packages/babel-preset-env)

Updates `typescript` from 6.0.3 to 7.0.2
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v6.0.3...v7.0.2)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-version: 8.0.7
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: major-dependencies
- dependency-name: "@babel/plugin-transform-runtime"
  dependency-version: 8.0.6
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: major-dependencies
- dependency-name: "@babel/preset-env"
  dependency-version: 8.0.7
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: major-dependencies
- dependency-name: typescript
  dependency-version: 7.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: major-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title ⬆️ Bump the major-dependencies group with 4 updates ⬆️ Bump the major-dependencies group across 1 directory with 4 updates Nov 11, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/major-dependencies-ec5141c5d5 branch from 437f862 to 002807e Compare November 11, 2026 20:12
Resolve the Rollup Babel plugin's outdated peer range with a scoped override and use current Babel 8 releases without replacing the build or test tools.

Compile the existing method augmentation declarations and expose them as the package's type entry point so TypeScript 7 consumers retain dynamic actions and assertions. Use explicit typeof queries where TypeScript 7 no longer infers value types.
@Robdel12 Robdel12 changed the title ⬆️ Bump the major-dependencies group across 1 directory with 4 updates ⬆️ Upgrade Babel 8 and TypeScript 7 Nov 11, 2026
@Robdel12
Robdel12 merged commit 2293c9e into main Nov 11, 2026
@Robdel12
Robdel12 deleted the dependabot/npm_and_yarn/major-dependencies-ec5141c5d5 branch November 11, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants