Repository navigation
⬆️ Upgrade Babel 8 and TypeScript 7 - #904
Merged
Robdel12 merged 2 commits intoNov 11, 2026
Merged
Conversation
wwilsman
approved these changes
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
Bot
force-pushed
the
dependabot/npm_and_yarn/major-dependencies-ec5141c5d5
branch
from
November 11, 2026 20:12
437f862 to
002807e
Compare
wwilsman
approved these changes
Nov 11, 2026
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
deleted the
dependabot/npm_and_yarn/major-dependencies-ec5141c5d5
branch
November 11, 2026 22:39
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.
Why
The grouped major update failed during
npm ci:@rollup/plugin-babelstill 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 asclick()andvisible()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.tsand select its emitted declaration as the package's type entry point. Export the default interactor from that entry as well, and use explicittypeofqueries 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.