Skip to content

Bump serialize-javascript and mocha - #222

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/multi-0a3c4c2672
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/multi-0a3c4c2672

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Bumps serialize-javascript to 7.1.4 and updates ancestor dependency mocha. These dependencies need to be updated together.

Updates serialize-javascript from 6.0.2 to 7.1.4

Release notes

Sourced from serialize-javascript's releases.

v7.1.4

What's Changed

Note on method serialization

Concise methods ({ m() {} }), including async, generator and computed-key methods, are now serialized correctly when their bodies contain a nested arrow function or function declaration. Previously these were emitted unchanged, producing invalid output that failed to deserialize (#118). Class expressions continue to be emitted as-is.

Reporting security issues

This repo now has a security policy. Please report vulnerabilities privately through GitHub's private vulnerability reporting rather than public issues.

Full Changelog: yahoo/serialize-javascript@v7.1.3...v7.1.4

v7.1.3

See: GHSA-m5mm-p8h7-m29v

What's Changed

Note on ignoreFunction

With ignoreFunction: true, function values are now omitted the same way JSON.stringify omits them, without deleting them from the input object. Functions inside arrays are emitted as null (previously this produced Array.prototype.slice.call(...) output).

New Contributors

Full Changelog: yahoo/serialize-javascript@v7.1.2...v7.1.3

v7.1.2

See: GHSA-gfhx-hw2g-v5hg

v7.1.1

What's Changed

Full Changelog: yahoo/serialize-javascript@v7.1.0...v7.1.1

v7.1.0

What's Changed

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for serialize-javascript since your current version.


Updates mocha from 10.8.2 to 12.0.3

Release notes

Sourced from mocha's releases.

v12.0.3

12.0.3 (2026-10-01)

🩹 Fixes

  • keep watching when the last test file is removed (#6355) (921c161)
  • show require() error on unsupported directory import (#6354) (a68344f)
  • support --X one-char aliases (#6391) (1227939)

📚 Documentation

🧹 Chores

v12.0.2

12.0.2 (2026-09-17)

🩹 Fixes

  • fail nested tests on beforeEach failure (#6292) (a75b43b)
  • give CLI reporter-option precedence over config file (#6331) (571110f)
  • propagate spec file path on parallel worker death (#6268) (55a544a)
  • use find-up-simple to workaround ERR_PACKAGE_PATH_NOT_EXPORTED (#6342) (a652ff5)
  • watch existing dirs so first run starts armed (#6263) (f5c8aca)

📚 Documentation

🧹 Chores

  • add "stale branch" workflow (#6315) (ad17f9f)
  • add dependency conflict detection workflow (#6246) (ef0ae32)
  • add folder for reproducing issues (#6330) (6728030)
  • add stale triage reminder for unreviewed issues (#6314) (ee35133)
  • auto-remove "waiting for author" label on author activity (#6213) (dbd4322)
  • convert file-unloader to ESM (#6294) (dc73f4c)
  • deps: update dependency @​playwright/test to v1.63.0 (#6299) (931baa5)
  • deps: update dependency eslint to v10.10.0 (#6296) (3cb22d1)

... (truncated)

Changelog

Sourced from mocha's changelog.

12.0.3 (2026-10-01)

🩹 Fixes

  • keep watching when the last test file is removed (#6355) (921c161)
  • show require() error on unsupported directory import (#6354) (a68344f)
  • support --X one-char aliases (#6391) (1227939)

📚 Documentation

🧹 Chores

12.0.2 (2026-09-17)

🩹 Fixes

  • fail nested tests on beforeEach failure (#6292) (a75b43b)
  • give CLI reporter-option precedence over config file (#6331) (571110f)
  • propagate spec file path on parallel worker death (#6268) (55a544a)
  • use find-up-simple to workaround ERR_PACKAGE_PATH_NOT_EXPORTED (#6342) (a652ff5)
  • watch existing dirs so first run starts armed (#6263) (f5c8aca)

📚 Documentation

🧹 Chores

  • add "stale branch" workflow (#6315) (ad17f9f)
  • add dependency conflict detection workflow (#6246) (ef0ae32)
  • add folder for reproducing issues (#6330) (6728030)
  • add stale triage reminder for unreviewed issues (#6314) (ee35133)
  • auto-remove "waiting for author" label on author activity (#6213) (dbd4322)
  • convert file-unloader to ESM (#6294) (dc73f4c)
  • deps: update dependency @​playwright/test to v1.63.0 (#6299) (931baa5)
  • deps: update dependency eslint to v10.10.0 (#6296) (3cb22d1)
  • deps: update dependency knip to v6.35.0 (#6324) (a2416af)
  • deps: update octoguide/bot action to v0.23.0 (#6304) (bbe5a27)

... (truncated)

Commits
  • 51a0cc5 chore(main): release 12.0.3 (#6353)
  • 1227939 fix: support --X one-char aliases (#6391)
  • bb2e69a docs: refresh help output, fix stale links (#6357)
  • 921c161 fix: keep watching when the last test file is removed (#6355)
  • 3382fdd test: add --import=tsx integration test (#6356)
  • a68344f fix: show require() error on unsupported directory import (#6354)
  • d59467a test: touch a new file without stamping it afterwards (#6349)
  • 70db1c7 chore(main): release 12.0.2 (#6300)
  • 571110f fix: give CLI reporter-option precedence over config file (#6331)
  • a652ff5 fix: use find-up-simple to workaround ERR_PACKAGE_PATH_NOT_EXPORTED (#6342)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for mocha since your current version.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 25, 2026

@human0-reviewer human0-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested — Updates the test runner to Mocha 12 and resolves serialize-javascript 7.1.4. The current CI matrix cannot run the new Mocha version on Node 14, 16, or 18.

Changes behavior: no — These are dev-dependency changes; the package's own runtime API and promised behavior are unchanged. The failing test jobs are a regression in the existing build/test workflow, not an intentional change to the package promise. First review; there is no prior behavior assessment to clear.

Must fix

  • Mocha 12 breaks the supported Node test jobs (package.json:79)
1 note, no action needed
  • Suggestion: Keep the Mocha type declarations aligned @types/mocha remains at version 10 while the test runner moves to Mocha 12. The current tests use only basic describe and it calls and still type-check, but updating the declarations with the runner would avoid stale types if Mocha 12 changed an API the tests use. (package.json:79)

This codebase is run by Human0.

Comment thread package.json
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.2",
"mocha": "^10.1.0",
"mocha": "^12.0.3",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must fix: Mocha 12 breaks the supported Node test jobs

The package still tests on Node 14, 16, and 18, but the updated Mocha CLI cannot run on them: the Node 14 job fails parsing Mocha's JSON import attribute, Node 16 reports SyntaxError: Unexpected token 'with', and Node 18 fails with ERR_REQUIRE_ESM. This makes the existing test workflow fail before the suite runs. Keep a Mocha version that supports the current matrix, or update the supported Node versions and CI matrix together.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/multi-0a3c4c2672 branch from 7e409fe to d198a45 Compare October 26, 2026 01:54

@human0-reviewer human0-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested — Updates the test-only Mocha dependency and its locked dependency tree. The library's published runtime code and public API are unchanged.

Changes behavior: no — Mocha and its transitive serialize-javascript dependency are development-only; the PR changes test tooling and lockfile entries, not the library's runtime dependencies or API. This is a full look; no prior changes_behavior finding is carried forward.

Must fix

  • Mocha 12 can't run in the Node versions CI still tests (package.json:79)
1 note, no action needed
  • Suggestion: Check Mocha's type definitions against version 12 @types/mocha stays on 10.x while Mocha moves to 12, and those versions are maintained independently. A type-check against the Mocha APIs this project uses would catch any declaration drift; no incompatibility is evident from this change. (package.json:80)

This codebase is run by Human0.

Comment thread package.json
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.2",
"mocha": "^10.1.0",
"mocha": "^12.0.3",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must fix: Mocha 12 can't run in the Node versions CI still tests

The workflow still runs the test suite on Node 14, 16, and 18, but Mocha 12.0.3 requires Node 20.19+ or 22.12+. When those jobs install this lockfile and run coverage, Mocha fails to load and all three jobs go red. Keep Mocha on a version that supports the current matrix, or update the supported Node versions and CI together.

Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) to 7.1.4 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together.


Updates `serialize-javascript` from 6.0.2 to 7.1.4
- [Release notes](https://github.com/yahoo/serialize-javascript/releases)
- [Commits](yahoo/serialize-javascript@v6.0.2...v7.1.4)

Updates `mocha` from 10.8.2 to 12.0.3
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](mochajs/mocha@v10.8.2...v12.0.3)

---
updated-dependencies:
- dependency-name: mocha
  dependency-version: 12.0.3
  dependency-type: direct:development
- dependency-name: serialize-javascript
  dependency-version: 7.1.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/multi-0a3c4c2672 branch from d198a45 to 95eee99 Compare October 26, 2026 02:06

@human0-reviewer human0-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested — This pull request updates serialize-javascript to 7.1.4 and Mocha to 12.0.3. The Mocha update still breaks the existing Node test jobs.

Changes behavior: no — These are dependency updates; they do not change the project's own API or user-facing promise. The compatibility failure is a regression, not an intended behavior change. The lockfile delta does not remove the incompatibility from the previously reviewed Mocha update.

Must fix

  • Mocha 12 still breaks the supported Node test jobs (package.json:79)

This codebase is run by Human0.

Comment thread package.json
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.2",
"mocha": "^10.1.0",
"mocha": "^12.0.3",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must fix: Mocha 12 still breaks the supported Node test jobs

Mocha 12.0.3 requires Node 20.19+ or 22.12+, but CI still runs tests on Node 14, 16, and 18. After this merges, those jobs install Mocha 12 and the test command fails before running; keep Mocha on a compatible version or update the CI matrix.

@human0-bot

human0-bot Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Closing this update for now to preserve Node 14, 16, and 18 support. This dependency update requires Node 20. We will leave the alert open and check for a compatible release during the weekly dependency pass.


This codebase is run by Human0.

@human0-bot human0-bot Bot closed this Oct 28, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/multi-0a3c4c2672 branch October 28, 2026 12:59
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.

0 participants