build(deps): bump the npm-dependencies group across 1 directory with 5 updates - #120
Closed
dependabot[bot] wants to merge 1 commit into
Closed
build(deps): bump the npm-dependencies group across 1 directory with 5 updates#120dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Member
|
@dependabot rebase |
…5 updates Bumps the npm-dependencies group with 5 updates in the / directory: | Package | From | To | | --- | --- | --- | | [mysql2](https://github.com/sidorares/node-mysql2) | `3.19.1` | `3.20.0` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `25.5.0` | `25.5.2` | | [rollup](https://github.com/rollup/rollup) | `4.59.0` | `4.60.1` | | [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.4.6` | `29.4.9` | | [typescript](https://github.com/microsoft/TypeScript) | `5.9.3` | `6.0.2` | Updates `mysql2` from 3.19.1 to 3.20.0 - [Release notes](https://github.com/sidorares/node-mysql2/releases) - [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md) - [Commits](sidorares/node-mysql2@v3.19.1...v3.20.0) Updates `@types/node` from 25.5.0 to 25.5.2 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `rollup` from 4.59.0 to 4.60.1 - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v4.59.0...v4.60.1) Updates `ts-jest` from 29.4.6 to 29.4.9 - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md) - [Commits](kulshekhar/ts-jest@v29.4.6...v29.4.9) Updates `typescript` from 5.9.3 to 6.0.2 - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.9.3...v6.0.2) --- updated-dependencies: - dependency-name: mysql2 dependency-version: 3.20.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: npm-dependencies - dependency-name: "@types/node" dependency-version: 25.5.2 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-dependencies - dependency-name: rollup dependency-version: 4.60.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-dependencies - dependency-name: ts-jest dependency-version: 29.4.9 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-dependencies - dependency-name: typescript dependency-version: 6.0.2 dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/npm-dependencies-2a9de1d360
branch
from
April 6, 2026 11:38
55c4666 to
ab72d76
Compare
hzhangxyz
added a commit
that referenced
this pull request
Apr 6, 2026
TypeScript ^6.0.2 raises TS5107 (`moduleResolution=node10` deprecated)
which breaks ts-jest. Replacing ts-jest with @swc/jest sidesteps the
issue entirely — SWC transpiles without invoking the TypeScript
compiler.
## Changes
- **`package.json`**: Remove `ts-jest`, add `@swc/core` and `@swc/jest`
as devDependencies
- **`jest.config.js`**: Swap ts-jest transform for `@swc/jest` with
minimal config (no custom options needed)
```js
// Before
transform: {
"^.+\\.tsx?$": ["ts-jest", { useESM: true, tsconfig: "<rootDir>/tsconfig.json" }],
}
// After
transform: {
"^.+\\.tsx?$": ["@swc/jest"],
}
```
ESM mode is preserved via the existing `extensionsToTreatAsEsm: [".ts"]`
and `--experimental-vm-modules` in the test script. The explicit
`tsconfig` and `useESM` options are unnecessary with @swc/jest — it
handles both by default.
<!-- START COPILOT ORIGINAL PROMPT -->
<details>
<summary>Original prompt</summary>
Create a PR on repository USTC-KnowledgeComputingLab/ddss to replace
ts-jest with @swc/jest for running Jest TypeScript tests.
Context:
- Current failing CI job (Jest workflow) fails with TypeScript TS5107
deprecation error about moduleResolution=node10 after dependabot PR #120
bumps TypeScript to ^6.0.2 and ts-jest to ^29.4.9.
- We want a root-cause fix that does NOT use
compilerOptions.ignoreDeprecations.
- Replace ts-jest transform with @swc/jest.
Requirements:
1) Prefer default configuration: if @swc/jest works without custom
options, keep transform config minimal.
2) If configuration is necessary, prefer modern/latest targets (e.g.,
esnext) where applicable.
3) Update package.json to remove ts-jest and add @swc/jest and @swc/core
as devDependencies.
4) Update jest.config.js accordingly.
5) Update package-lock.json to reflect dependency changes.
6) Ensure Jest still runs in ESM mode (project uses package.json
type=module and tests are .ts ESM).
7) CI matrix runs Node 20/22/24; ensure compatibility.
Relevant existing files at head SHA
ab72d76:
- package.json: has devDependencies jest ^30.3.0, ts-jest ^29.4.9,
typescript ^6.0.2.
- jest.config.js uses ts-jest transform with useESM: true and tsconfig:
<rootDir>/tsconfig.json.
- tsconfig.json has moduleResolution bundler.
- workflow .github/workflows/jest.yml runs npm ci then npm run all.
Acceptance:
- Jest tests compile and run without TS5107 and without adding
ignoreDeprecations.
- Keep jest config as minimal as possible; only add explicit SWC options
if tests fail without them.
The following is the prior conversation context from the user's chat
exploration (may be truncated):
User: Please find a solution for this failing job. Use the logs, job
definition, and any referenced files where the failure occurred. Keep
your response focused on the solution and include code suggestions when
appropriate.
Assistant: The job is failing before any tests run because TypeScript
compilation (via `ts-jest`) errors out with:
`TS5107: Option 'moduleResolution=node10' is deprecated and will stop
functioning in TypeScript 7.0. Specify compilerOption
'"ignoreDeprecations": "6.0"' to silence this error.`
This is happening in the Jest workflow matrix on Node `20`, `22`, and
`24` (`.github/workflows/jest.yml`, ref
`ab72d762e2aa66e22af9482169ae5a9a3f792a79`), and it affects every test
file because they all go through the same `ts-jest` transform
(`jest.config.js`, same ref).
## Fix (recommended): silence the deprecation error in `tsconfig.json`
Add `ignoreDeprecations` to your `compilerOptions`. This is exactly what
the error message asks for and is the lowest-risk change.
**Patch (tsconfig.json):**
```diff
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "bundler",
+ "ignoreDeprecations": "6.0",
"allowImportingTsExtensions": true,
"strict": true,
"esModuleInterop": true,
"isolatedModules": true,
"skipLibCheck": true
},
"include": ["ddss/*"]
}
```
Why this works:
- The workflow is running a newer TypeScript version (or
ts-jest/typescript combo) that now *treats this deprecation as an error*
unless you explicitly opt in to ignoring TS 6.x deprecations.
- Adding `"ignoreDeprecations": "6.0"` unblocks compilation while
keeping your existing settings (including `"moduleResolution":
"bundler"`).
## Alternative (more strict): pin TypeScript to a known-working version
If you prefer not to use `ignoreDeprecations`, you can pin TypeScript to
a version that doesn’t error on this deprecation (or that matches your
existing config expectations). This is done in `package.json` (not shown
in the retrieved files), e.g. set `typescript` to a stable 5.x/6.x
version and reinstall lockfile.
## Notes
- Your current `tsconfig.json` already sets `"moduleResolution":
"bundler"` (not `node10`), so this deprecation is likely coming from a
dependency default or a secondary config used by the test toolchain. The
`ignoreDeprecations` setting is designed for exactly this situation and
will make CI green again without changing runtime behavior.
After applying the `tsconfig.json` change above, the Jest job should
proceed to actually executing tests instead of failing at “Test suite
failed to run”.
User: 新版本的这些东西硬怎么来?我是哪个行为被deprecated了?
Assistant: 你现在遇到的并不是“你代码里某一行写法被 deprecated”,而是 **TypeScript 编译选项里某个旧的
`moduleResolution` 模式被标记为 deprecated(`node10`)**,并且在你这次 CI 用到的
TypeScript 版本里,这个 deprecation **被提升成了直接报错**(TS5107),导致 `ts-jest`
编译测试文件时全挂。
从日志看,报错点是:
- `Option 'moduleResolution=node10' is deprecated and will stop
functioning in TypeScript 7.0.`
- 建议你加:`compilerOption '"ignoreDeprecations": "6.0"'`
## 你到底“哪一行”触发了 deprecated?
在你仓库的 `tsconfig.json`(ref `ab72d762...`)里,`moduleResolution` 是:
- `"moduleResolution": "bundler"`
所以 **不是你这个 tsconfig.json 直接写了 `node10`**。
触发 `moduleResolution=node10` 的来源通常有 3 类(按常见程度排序):
1. **`ts-je...
</details>
<!-- START COPILOT CODING AGENT SUFFIX -->
*This pull request was created from Copilot chat.*
>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: hzhangxyz <11623447+hzhangxyz@users.noreply.github.com>
Member
|
@dependabot rebase |
Contributor
Author
|
Looks like these dependencies are updatable in another way, so this is no longer needed. |
dependabot
Bot
deleted the
dependabot/npm_and_yarn/npm-dependencies-2a9de1d360
branch
April 6, 2026 12:26
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.
Bumps the npm-dependencies group with 5 updates in the / directory:
3.19.13.20.025.5.025.5.24.59.04.60.129.4.629.4.95.9.36.0.2Updates
mysql2from 3.19.1 to 3.20.0Release notes
Sourced from mysql2's releases.
Changelog
Sourced from mysql2's changelog.
Commits
6d0ba45chore(master): release 3.20.0 (#4180)5ac5563fix: explicitly specify in auth plugins (#4175) (#4187)1993624ci: improve workflows triggering (#4189)ff839c2docs: improve LLM Agents instructions (#4188)7e57db6fix: prevent double release from corrupting the connection pool (#4186)92d0724docs: include instructions to LLM agents (#4185)f4ce16arefactor: simplify TracingChannel logic (#4184)97855a6fix: restorePoolConnectionas subclass ofConnection(#4183)90a0677refactor: prevent unintentional breaking change after TracingChannel support ...5b61d86ci: improve coverage (#4181)Updates
@types/nodefrom 25.5.0 to 25.5.2Commits
Updates
rollupfrom 4.59.0 to 4.60.1Release notes
Sourced from rollup's releases.
... (truncated)
Changelog
Sourced from rollup's changelog.
... (truncated)
Commits
ae871d74.60.151f8f60fix: skip dropping side-effects on namespaceReexportsByName cache hit (#6274)...ca55406chore(deps): pin dependency typescript to v5 (#6320)fe50d86chore(deps): pin dependencies (#6317)42785ffchore(deps): update minor/patch updates (#6319)65e82a9chore(deps): update msys2/setup-msys2 digest to cafece8 (#6318)c336205chore(deps): update openharmony-rs/setup-ohos-sdk action to v1 (#6321)b25d25efix(deps): update swc monorepo (major) (#6322)119abdbchore(deps): lock file maintenance (#6324)5598a66chore(deps): lock file maintenance (#6323)Updates
ts-jestfrom 29.4.6 to 29.4.9Release notes
Sourced from ts-jest's releases.
Changelog
Sourced from ts-jest's changelog.
Commits
bac2e77chore(release): bump version to 29.4.9f8a9cc9fix: use correct registry for npm OIDC trusted publishinge2eec26fix: npm permissions263f2acchore: remove npm auth token5df0e45OIDCf82c144Merge pull request #5250 from kulshekhar/copilot/bump-patch-versione6ec5aeUpdate CHANGELOG.md62c3199Update CHANGELOG.md052e751Bump patch version to 29.4.7f79e77bMerge pull request #5249 from ext/feature/ts6-peerMaintainer changes
This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for ts-jest since your current version.
Updates
typescriptfrom 5.9.3 to 6.0.2Release notes
Sourced from typescript's releases.
Commits
607a22aBump version to 6.0.2 and LKG9e72ab7🤖 Pick PR #63239 (Fix missing lib files in reused pro...) into release-6.0 (#...35ff23d🤖 Pick PR #63163 (Port anyFunctionType subtype fix an...) into release-6.0 (#...e175b69Bump version to 6.0.1-rc and LKGaf4caacUpdate LKG8efd7e8Merge remote-tracking branch 'origin/main' into release-6.0206ed1aDeprecate assert in import() (#63172)e688ac8Update dependencies (#63156)29b300dBump the github-actions group across 1 directory with 2 updates (#63205)0c2c7a3DOM update (#63183)