Skip to content

build(deps): bump the npm-dependencies group across 1 directory with 5 updates - #120

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/npm-dependencies-2a9de1d360
Closed

build(deps): bump the npm-dependencies group across 1 directory with 5 updates#120
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/npm-dependencies-2a9de1d360

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 6, 2026

Copy link
Copy Markdown
Contributor

Bumps the npm-dependencies group with 5 updates in the / directory:

Package From To
mysql2 3.19.1 3.20.0
@types/node 25.5.0 25.5.2
rollup 4.59.0 4.60.1
ts-jest 29.4.6 29.4.9
typescript 5.9.3 6.0.2

Updates mysql2 from 3.19.1 to 3.20.0

Release notes

Sourced from mysql2's releases.

v3.20.0

3.20.0 (2026-03-15)

Features

  • add TracingChannel support for native APM instrumentation (#4178) (c06afc2)

Bug Fixes

  • explicitly specify in auth plugins (#4175) (#4187) (5ac5563)
  • prevent double release from corrupting the connection pool (#4186) (7e57db6)
  • restore PoolConnection as subclass of Connection (#4183) (97855a6)
Changelog

Sourced from mysql2's changelog.

3.20.0 (2026-03-15)

Features

  • add TracingChannel support for native APM instrumentation (#4178) (c06afc2)

Bug Fixes

  • explicitly specify in auth plugins (#4175) (#4187) (5ac5563)
  • prevent double release from corrupting the connection pool (#4186) (7e57db6)
  • restore PoolConnection as subclass of Connection (#4183) (97855a6)
Commits

Updates @types/node from 25.5.0 to 25.5.2

Commits

Updates rollup from 4.59.0 to 4.60.1

Release notes

Sourced from rollup's releases.

v4.60.1

4.60.1

2026-03-30

Bug Fixes

  • Resolve a situation where side effect imports could be dropped due to a caching issue (#6286)

Pull Requests

v4.60.0

4.60.0

2026-03-22

Features

  • Support source phase imports as long as they are external (#6279)

Pull Requests

v4.59.1

4.59.1

2026-03-21

Bug Fixes

  • Fix a crash when using lazy dynamic imports with moduleSideEffects:false (#6306)

Pull Requests

... (truncated)

Changelog

Sourced from rollup's changelog.

4.60.1

2026-03-30

Bug Fixes

  • Resolve a situation where side effect imports could be dropped due to a caching issue (#6286)

Pull Requests

4.60.0

2026-03-22

Features

  • Support source phase imports as long as they are external (#6279)

Pull Requests

4.59.1

2026-03-21

Bug Fixes

  • Fix a crash when using lazy dynamic imports with moduleSideEffects:false (#6306)

Pull Requests

... (truncated)

Commits

Updates ts-jest from 29.4.6 to 29.4.9

Release notes

Sourced from ts-jest's releases.

v29.4.9

Please refer to CHANGELOG.md for details.

v29.4.8

No release notes provided.

v29.4.7

Please refer to CHANGELOG.md for details.

Changelog

Sourced from ts-jest's changelog.

29.4.7 (2026-04-01)

Features

Commits
  • bac2e77 chore(release): bump version to 29.4.9
  • f8a9cc9 fix: use correct registry for npm OIDC trusted publishing
  • e2eec26 fix: npm permissions
  • 263f2ac chore: remove npm auth token
  • 5df0e45 OIDC
  • f82c144 Merge pull request #5250 from kulshekhar/copilot/bump-patch-version
  • e6ec5ae Update CHANGELOG.md
  • 62c3199 Update CHANGELOG.md
  • 052e751 Bump patch version to 29.4.7
  • f79e77b Merge pull request #5249 from ext/feature/ts6-peer
  • Additional commits viewable in compare view
Maintainer 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 typescript from 5.9.3 to 6.0.2

Release notes

Sourced from typescript's releases.

TypeScript 6.0

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0 Beta

For release notes, check out the release announcement.

Downloads are available on:

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 6, 2026
@hzhangxyz

Copy link
Copy Markdown
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
dependabot Bot force-pushed the dependabot/npm_and_yarn/npm-dependencies-2a9de1d360 branch from 55c4666 to ab72d76 Compare April 6, 2026 11:38
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>
@hzhangxyz

Copy link
Copy Markdown
Member

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Apr 6, 2026

Copy link
Copy Markdown
Contributor Author

Looks like these dependencies are updatable in another way, so this is no longer needed.

@dependabot dependabot Bot closed this Apr 6, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/npm-dependencies-2a9de1d360 branch April 6, 2026 12:26
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.

1 participant