Skip to content

0.3.78

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 18:45
6ade93c

Merged PRs

dolt-workbench

  • 1042: Support Postgres-shaped key_column_usage for Doltgres foreign keys
    dolthub/doltgresql#3992 changes information_schema.key_column_usage to match Postgres, which drops the referenced_* columns the foreign keys query relied on. This breaks table pages on new Doltgres.
    The foreign keys query now joins table_constraints, key_column_usage and referential_constraints, and falls back to the old query on older Doltgres versions.
    Tested against Doltgres main and 0.56.1.
  • 1040: Fix cross-spawn, terser and ws security alerts
    Fixes the 8 new Dependabot alerts across graphql-server, web and workbench-cypress.
    • Refreshes cross-spawn (7.1.2), terser (5.51.4) and ws (7.5.14 / 8.23.1) in all three lockfiles.
    • Pins ws@npm:8.21.3 to 8.23.1 in graphql-server; @nestjs/graphql 13.4.5 depends on ws 8.21.3 exactly.
      yarn ci passes locally in all three projects (graphql-server 274 tests incl. check-server, web 320 tests incl. next build).
  • 1030: Bump prettier from 3.6.2 to 3.10.1 in /graphql-server
    Bumps prettier from 3.6.2 to 3.10.1.
    Release notes

    Sourced from prettier's releases.

    3.10.1

    🔗 Changelog

    3.10.0

    diff

    🔗 Prettier 3.10: New Flow syntax, new JavaScript syntax, and new plugin powered by Yuku

    3.9.10

    • Markdown: Update micromark-extension-gfm-table to fix the table parse issue on performance (#20266 by @​fisker)

    🔗 Changelog

    3.9.9

    • Markdown: Fix text with $ been incorrectly parsed as math syntax (#20140 by @​fisker)

    🔗 Changelog

    3.9.8

    • Markdown: Don't let Liquid objects interrupt paragraphs (#20087 by @​seiyab)

    🔗 Changelog

    3.9.7

    • Support Angular 22.2
    • Fix regressions in v3.9

    🔗 Changelog

    3.9.6

    What's Changed

    🔗 Changelog

    3.9.5

    🔗 Changelog

    3.9.4

    • Angular: Format @content(name) -> @content (name) to align with other block syntax (#19499 by @​fisker)

    🔗 Changelog

    ... (truncated)

    Changelog

    Sourced from prettier's changelog.

    3.10.1

    diff

    GraphQL: Fix empty selection set with comments (#20504 by @​fisker)

    # Input
    fragment F on Query {
    # x
    }
    Prettier 3.10.0
    Error: Comment "x" was not printed. Please report this error!
    Prettier 3.10.1
    fragment F on Query {
    x
    }

    3.10.0

    diff

    🔗 Release Notes

    3.9.10

    diff

    Markdown: Update micromark-extension-gfm-table to fix the table parse issue on performance (#20266 by @​fisker)

    See micromark/micromark-extension-gfm-table@4f43ead for details.

    3.9.9

    diff

    Markdown: Fix text with $ been incorrectly parsed as math syntax (#20140 by @​fisker)

    <!-- Input -->
    **Uses $FOO** from `a.sh` and `b.sh`, plus `$BAR` from `c.sh`, before anything else runs here.
    <!-- Prettier 3.9.8 -->
    Uses $FOO from a.sh and b.sh, plus $BARfromc.sh, before anything else runs here.
    </tr></table>

    ... (truncated)

    Commits
    Maintainer changes

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


    [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=prettier&package-manager=npm_and_yarn&previous-version=3.6.2&new-version=3.10.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
    Dependabot commands and options
    You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • 1029: Fix Dependabot security alerts
    Fixes the 58 open Dependabot alerts across graphql-server, web and workbench-cypress.

    Changes

    • Direct bumps: next ^15.5.29, electron ^42.11.16 (resolves to 42.11.18), sharp 0.35.5, and @nestjs/graphql / @nestjs/apollo ^13.4.5.
    • Builder configs: electronVersion in all four web/build/builder-*-config.yaml files goes from 42.11.10 to 42.11.18. Without this, packaged apps would still ship the vulnerable Electron.
    • Existing pins moved to patched versions: multer 2.5.0, qs 6.16.1, serialize-javascript 7.1.3.
    • New pin @graphql-tools/utils 12.1.0 (graphql-server, web). The 8–11 lines have no patched release; @nestjs/graphql 13.4.5 already uses 12.
    • minimatch: the fix only exists in v11, which breaks glob 10/11 (** silently matches nothing). So glob is pinned to 14.0.7, which uses minimatch 11, and the minimatch 9.x/10.x ranges are pinned to 11.0.9. glob 7 and minimatch 3/5 are left alone because they aren't affected.
    • In-range lockfile refreshes: undici, fast-uri, handlebars, shell-quote, body-parser, proxy-addr, ip-address, source-map-js, postcss-selector-parser, executor-legacy-ws, systeminformation, fast-xml-parser.
    • Cypress 15.21.2: GitHub runners now ship Chrome 158, which crashes Cypress 15.21.1 with * is not a valid URL when it opens the second spec (cypress-io/cypress#35195). 15.21.2 fixes that and includes two Cypress security fixes.

    Testing

    • graphql-server: build, 274 tests, lint; the server boots and schema.gql is unchanged.
    • web: yarn ci (typecheck, lint, 320 tests, Next build). generate-types output is byte-for-byte unchanged.
    • workbench-cypress: yarn ci.
    • Cypress e2e against a local copy of the public us-jails database, run on both main and this branch. Results were identical before adding test data. With the add-view / delete-rows branches recreated, all 19 specs pass on this branch, in a single Cypress run on Chrome 158. This hasn't been run against the private automated-testing/us-jails database.
    • Built the DMG locally, unsigned. The bundled file filters produce the expected contents, and Electron is 42.11.18. I launched the app from the mounted DMG and clicked through: connecting, table data, SQL queries, commit log, ER diagram, a pull request and its diff, CSV upload, creating a database, committing and creating a branch.
    • Not tested: signing/notarization, and the Windows, Linux and Mac App Store builds.
  • 1026: Make remote branches list scrollable
    Long remote branch lists in the fetch modal now scroll instead of overflowing the window.
  • 1024: Update dmg build version to 0.3.107
    Increment version
  • 1023: Update versions for release 0.3.77
    Increment versions
  • 1022: Build Mac releases on macos-15
    GitHub no longer supports the macos-14 runner, so the dmg and Mac App Store release jobs were cancelled before starting in the 0.3.77 release ("The configuration 'macos-14-arm64-us-default' is not supported"). This moves both to macos-15.
    The Mac builds may still fail at "Download provisioning profiles" until the pending Apple Developer agreement is accepted, as in the 0.3.76 release (FORBIDDEN.REQUIRED_AGREEMENTS_MISSING_OR_EXPIRED).
  • 1021: Speed up SQL paging, schema and diff pages
    The SQL editor re-ran the whole query for every 50-row page and read every row of the result each time. This keeps the query open as a server-side cursor and reads the next page from it, plus a few other slow spots.

    Changes

    • Cursor paging for all six engines (queryFactory/cursor, plus a cursor source each for MySQL/Dolt, Postgres/Doltgres and SQLite/DoltLite). Page 0 opens a cursor; later offsets read the next rows from it. If there's no cursor at that offset, the resolver falls back to the old re-execute-and-slice path.
    • Dolt schema page: 3 batched information_schema queries instead of 3 per table. Dolt system tables, which information_schema leaves out, keep the per-table lookup.
    • Working-set diff highlighting uses DOLT_DIFF('HEAD', 'WORKING', t) instead of filtering dolt_diff_<t> by to_commit = 'WORKING', which walks the table's whole history. On tags and commits, which have no working set, it returns no rows as before. Also fixes the IN () error on empty tables.
    • Startup polls for the GraphQL server every 50ms instead of every 1s.
    • Scroll race: rows appended while a diff page was loading were dropped.
    • Grid: fewer re-renders (typing lag 416ms → 9ms).
    • doltlite 0.51.8, which includes lazy StatementSync.iterate() (dolthub/doltlite-node#12).

    Results

    On a 739k-row DoltLite table (select * from records):
    main this PR
    First page 5.4s 3ms
    First page + 10 scrolled pages 57s 20ms
    Diff stat / row diffs 2.2s / 5.6s 0.1s / 0.1s
    Scrolling 2,000 rows of a 100k-row table: Dolt 15.3s → 0.36s, MySQL 3.7s → 0.14s, Postgres 5.7s → 0.07s, Doltgres 16.4s → 0.47s, SQLite 6.9s → 0.08s. Dolt schema page with 152 tables: 3.0s → 72ms.

    Keeping cursors safe

    • Writes run once. A cursor hands a query back to the normal path only when its connection can't have written: a read-only connection (SQLite, DoltLite), a read-only session (Postgres, plain MySQL), or an error raised before the statement started (Doltgres parse errors). MySQL, Dolt and Doltgres statements finish before their first page, because they can still be writing while rows stream (MySQL CALL, Dolt and Doltgres INSERT ... RETURNING). Dolt ignores read-only sessions, and its read-only transactions still allow DDL and Dolt procedures, so it can't stream safely.
    • Bounded memory. Streaming cursors read one page ahead and drop served rows. Statements that must finish first are capped at 64MB: past that, a read-only cursor stops the statement and falls back, and any other cursor keeps only the first page while the statement finishes, serves it, and then lets later pages re-run.
    • No stuck locks. At most one cursor is open per connection. It closes when a new query starts, before any GraphQL mutation (CloseCursorsInterceptor), and after 60s idle. A first page that may have written finishes before its cursor closes.
    • Connections. Abandoned MySQL/Postgres connections are destroyed rather than pooled, so a late KILL QUERY or pg_cancel_backend can't hit the next user. Read-only sessions are reset before release.
    • Same results as main. SQLite/DoltLite skip the cursor while the main connection has an open transaction, temp tables or attached databases. DoltLite resolves non-branch refs to commits the same way the normal path does. Postgres keeps the database-name check. Warnings are sent once.

    Testing

    • Server 273/273, web 320/320. New: cursor store unit tests, SQLite cursor integration tests, more DoltLite cursor tests.
    • Compared against main on live Dolt, MySQL 8.4, Postgres 17 and Doltgres servers and SQLite/DoltLite files: empty results, paging to the end, inserts/updates/RETURNING, DDL, errors, procedures (including MySQL procedures that read then write), sequences, multi-statement strings and wrong database names. Results match, apart from main reporting a next page after the last one.
    • ALTER TABLE with a cursor open on a 100k-row table completes in milliseconds on all four servers.
    • An independent review found nine issues, including two ways a write could run twice on Doltgres. All are fixed and re-verified with its reproduction scripts.

    Known gaps

    • Doltgres reports the wrong row count for large INSERT ... RETURNING (e.g. "104 rows affected" for 1,000 rows). main shows the same number.
  • 1005: Bump ace-builds from 1.37.5 to 1.45.0 in /web
    Bumps ace-builds from 1.37.5 to 1.45.0.
    Changelog

    Sourced from ace-builds's changelog.

    1.45.0 (2026-10-16)

    Features

    • better support of variable width fonts

    Bug Fixes

    • allow string modes in createEditSession types (#5972) (64f5ed4)
    • avoid repeated document reads during search highlighting (#5994) (078a211)
    • support a leading lookbehind in rules with token arrays (#6007) (80fe26a), closes #6001
    • V-001 security vulnerability (#6009) (62d5ffd)

    1.44.0 (2026-05-11)

    Features

    • Extension to show whitespaces in selection (#5844) (9498a7f)
    • mode: Add Cedar and CedarSchema language modes for Ace Editor (#5944) (c5c19dc)
    • rust: Include raw borrow operator in keyword list (#5942) (93581d6)
    • update Flix keywords (#5931) (f45eb67)

    Bug Fixes

    • mode type to accept both SyntaxMode and string across definitions and implementations (#5925) (a6b1cb1)
    • row calculation for fractional coords in virtual_renderer (#5914) (a6724b7)

    1.43.6 (2026-01-23)

    Bug Fixes

    1.43.5 (2025-12-02)

    1.43.4 (2025-10-17)

    Bug Fixes

    • Update for compliance with typescript 5.9.2 (#5855) (6e110b0)

    1.43.3 (2025-09-02)

    Bug Fixes

    ... (truncated)

    Commits
    Maintainer changes

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


    [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ace-builds&package-manager=npm_and_yarn&previous-version=1.37.5&new-version=1.45.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
    Dependabot commands and options
    You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    > **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
  • 1004: Bump zod from 4.3.6 to 4.6.7 in /web
    Bumps zod from 4.3.6 to 4.6.7.
    Release notes

    Sourced from zod's releases.

    v4.6.7

    Commits:

    • b500a2ee95134f81d74da7911d7378dd2853d042 4.6.7

    v4.6.6

    Six malicious commits pushed to main on September 21 with a compromised git credential were reverted the same day in #6620 and have since been removed from the history of main. None were ever published to npm. The npm provenance for 4.6.6 names 284243fb, the pre-rewrite copy of 9c219833 with identical contents.

    Commits:

    • 0cd3af5e9f50ad11bbcd4407a46a21b8848ba574 docs: load the en locale directly in Zod Mini
    • 9d5e60f162997b764b40d45aa02481888db50dea docs: import locales from zod/locales, not z.locales
    • 34a626f307871ecbb0123947559328dc52ed5e3e docs: tighten the z.locales tree-shaking note
    • 74304ce5b5796b5edb9a88ceb8e170b6ea3e82df release: stage npm versions instead of publishing them (#6622)
    • b2ef983e0711ff6517d6020b021071e2e5653efa docs: add Code for Japan to bronze sponsors
    • 8fb2faf0584828a6a027d8279db36f6f52784462 docs: crop the Code for Japan logo and list it first in bronze
    • bacad518c41610d654658172d325874bf0ee6290 docs: square the Code for Japan logo to match the other bronze tiles
    • c42596bd1c87e941d7241d10e012c5c196adcc10 release: hold the run on the release-approval environment until the staged versions are approved (#6638)
    • a2ba4a67986a3e6b2b131be30084a2f460d9ea67 fix(types): declare record output and input as members, not base type arguments (#6645)
    • a0ebf970f2d752e5f58527cd2942ff48be4f46bd fix(v4): check array, set and map size bounds before parsing elements (#6652)
    • 529f78dd9431b07f49647fee3aa0819b3f8b66b7 4.6.6
    • 9c219833c3a3764fa1f1ea9c5ecec8254a63c0b1 ci: stage at verbose so a failed OIDC token exchange says why

    v4.6.5

    Commits:

    • d2b135cfb7a3582b9eb515756b9166bcb9521f4a docs: add the 4.6.x patch highlights to the 4.6 post
    • f1448f7cee00df9fe1e9ad84a000aa1828cc8bc1 docs: fold the 4.6.x patch highlights into the 4.6 post's own sections
    • de65a5cb39ed22a507fac935788f718fa88d104f docs: lead the properties section with the check and add a Zod Mini tab (#6598)
    • 56222cd1532c07bcb91b67df529cab4c0a215330 feat(instanceof): key the .properties() shape off the instance type (#6600)
    • ca0229a404818290e6cdcfefcd7eb2d04bcbb543 Revert "feat: add z.currencyCode() over a vendored ISO 4217 list, refreshed weekly by CI (#6595)"
    • cc4cd4ee9c52fcaa10964e48cc144541e41a5ed9 Revert "Revert "feat: add z.currencyCode() over a vendored ISO 4217 list, refreshed weekly by CI (#6595)""
    • 0f3f5ee3ca56c7574bf849e54f79e9a6e02562ee 4.6.5
    • 59bbc03e10c636b9eb3c393dfeb552819774ec21 chore: re-pin the integration peers to the workspace zod after the 4.6.5 bump

    v4.6.4

    A patch on top of 4.6.3.

    • d6bc1e30 feat: add z.currencyCode() over a vendored ISO 4217 list, refreshed weekly by CI (#6595)
    • ad32d751 perf: z.url() rejects an invalid URL with URL.canParse() instead of a throwing constructor, about 50x faster; fewer allocations on the validation path (#6588)
    • 2bb08717 chore: re-pin the integration peers to the workspace zod after the 4.6.4 bump
    • f6e1701a chore(deps): bump next to 15.5.25 and vite to 7.3.6 (#6153)

    v4.6.3

    A patch on top of 4.6.2.

    • 413cce9a fix(v4): make z.properties() a check again (#6594) — removes the standalone z.properties() schema from 4.6.0; z.instanceof().properties() and .check(...z.properties()) are unchanged
    • 75d63ee1 docs: show only the .properties() method form in the 4.6 post
    • 46da9572 docs: match the error-message examples to what the parsers emit

    ... (truncated)

    Commits
    • b500a2e 4.6.7
    • 9c21983 ci: stage at verbose so a failed OIDC token exchange says why
    • 529f78d 4.6.6
    • a0ebf97 fix(v4): check array, set and map size bounds before parsing elements (#6652)
    • a2ba4a6 fix(types): declare record output and input as members, not base type argumen...
    • c42596b release: hold the run on the release-approval environment until the staged ve...
    • bacad51 docs: square the Code for Japan logo to match the other bronze tiles
    • 8fb2faf docs: crop the Code for Japan logo and list it first in bronze
    • b2ef983 docs: add Code for Japan to bronze sponsors
    • 74304ce release: stage npm versions instead of publishing them (#6622)
    • Additional commits viewable in compare view
    Maintainer changes

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


    [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=zod&package-manager=npm_and_yarn&previous-version=4.3.6&new-version=4.6.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
    Dependabot commands and options
    You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    > **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
  • 1003: Bump @types/adm-zip from 0.5.7 to 0.6.0 in /web
    Bumps @types/adm-zip from 0.5.7 to 0.6.0.
    Commits

    [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/adm-zip&package-manager=npm_and_yarn&previous-version=0.5.7&new-version=0.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
    Dependabot commands and options
    You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    > **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
  • 1001: Bump jest from 30.2.0 to 30.5.2 in /graphql-server in the jest group across 1 directory
    Bumps the jest group with 1 update in the /graphql-server directory: jest.
    Updates jest from 30.2.0 to 30.5.2
    Release notes

    Sourced from jest's releases.

    v30.5.2

    Features

    • [@jest/transform] Strip TypeScript types with Node when no transformer claims a .ts, .mts or .cts file (#16421)

    Fixes

    • [jest-core, jest-haste-map, jest-transform] Keep require('../package.json') external when bundling, so jest --version and the transform and haste-map cache keys report the released version instead of the previous one (#16422)
    • [jest-each] Escape a table row's keys before building the $variable interpolation RegExp, so a column name such as count(*) no longer fails the whole table with Invalid regular expression, and a . or | in a column name is matched literally (#16345)
    • [@jest/source-map] Resolve absolute Windows paths in a source map's sources and sourceRoot again, instead of appending them to the transformed file's directory (#16439)

    New Contributors

    Full Changelog: jestjs/jest@v30.5.1...v30.5.2

    v30.5.1

    Fixes

    • [jest-config] Don't warn about global-only options in the config that supplies the global config - the root config a project resolves to, or the first entry of --projects when no root config is passed (#16411)
    • [jest-config, jest-types] Stop accepting reporters, coverageReporters, workerIdleMemoryLimit, cwd and runnerOptions in a project config - they were silently ignored, and now warn like the other global-only options (#16411)
    • [jest-config, jest-validate] Warn about maxWorkers and coverageThreshold in a project config instead of dropping them without a word (#16411)
    • [jest-resolve] Match moduleNameMapper patterns against the specifier as written again (reverting #16390) (#16417)
    • [jest-runtime] Resolve package imports specifiers like #dep under ESM again (#16413)

    Chore & Maintenance

    • [jest-util] Name the testEnvironmentOptions.globalsCleanup option and link the docs from the JEST-01 deprecation warning, and document the option's modes (#16404)

    New Contributors

    Full Changelog: jestjs/jest@v30.5.0...v30.5.1

    v30.5.0

    On a personal note: King Harald V of Norway passed away this morning. He ascended the throne 35 years ago, two months before I was born. This release is dedicated to his memory. Hvil i fred 🇳🇴


    This is a big release. It touches jest-runtime, jest-resolve and jest-haste-map in many places, and with this many changes there might be regressions 😬. If your suite behaves differently after upgrading, please open an issue.

    Highlights

    whenCalledWith

    Mock functions can now configure return values per argument list, contributed by @​timkindberg (#16053):

    const fn = jest.fn();
    fn.whenCalledWith('apple').mockReturnValue('red');
    </tr></table>

    ... (truncated)

    Changelog

    Sourced from jest's changelog.

    30.5.2

    Features

    • [@jest/transform] Strip TypeScript types with Node when no transformer claims a .ts, .mts or .cts file (#16421)

    Fixes

    • [jest-core, jest-haste-map, jest-transform] Keep require('../package.json') external when bundling, so jest --version and the transform and haste-map cache keys report the released version instead of the previous one (#16422)
    • [jest-each] Escape a table row's keys before building the $variable interpolation RegExp, so a column name such as count(*) no longer fails the whole table with Invalid regular expression, and a . or | in a column name is matched literally (#16345)
    • [@jest/source-map] Resolve absolute Windows paths in a source map's sources and sourceRoot again, instead of appending them to the transformed file's directory (#16439)

    30.5.1

    Fixes

    • [jest-config] Don't warn about global-only options in the config that supplies the global config - the root config a project resolves to, or the first entry of --projects when no root config is passed (#16411)
    • [jest-config, jest-types] Stop accepting reporters, coverageReporters, workerIdleMemoryLimit, cwd and runnerOptions in a project config - they were silently ignored, and now warn like the other global-only options (#16411)
    • [jest-config, jest-validate] Warn about maxWorkers and coverageThreshold in a project config instead of dropping them without a word (#16411)
    • [jest-resolve] Match moduleNameMapper patterns against the specifier as written again (reverting #16390) (#16417)
    • [jest-runtime] Resolve package imports specifiers like #dep under ESM again (#16413)

    Chore & Maintenance

    • [jest-util] Name the testEnvironmentOptions.globalsCleanup option and link the docs from the JEST-01 deprecation warning, and document the option's modes (#16404)

    30.5.0

    Features

    • [@jest/expect-utils, jest-mock] Add mockFn.whenCalledWith(...args) for configuring return values per argument list, with first-class asymmetric-matcher support (#16053)
    • [@jest/expect-utils] Export AsymmetricMatcher and FunctionParameters types (previously private to expect) (#16053)
    • [jest-circus, jest-core, jest-jasmine2, jest-test-result, jest-types] --collectTests now expands test.each/describe.each cases and reports per-status counts (skipped/todo via the new wouldRun flag for selected tests) plus a summary line that match a real run, including under --testNamePattern and .only/fdescribe focus on both the circus and jasmine2 runners (#16259)
    • [jest-circus, jest-environment, jest-runtime, jest-types] Add describe-level retries via jest.retryTimes(..., {entireDescribe: true}) (#16322)
    • [jest-circus, jest-message-util, jest-reporters, jest-types] Add retryMessages to AssertionResult and export formatErrorStack, so the retry log renders nested cause and AggregateError sections with code frames instead of serialized [cause]:/[errors]: markers (#16316)
    • [jest-circus, jest-types] Add unhandledErrorsDetailed to Circus.RunResult, so an unhandled rejection reports its cause chain and AggregateError entries with code frames instead of a pre-serialized stack (#16316)
    • [jest-haste-map] Replace NodeWatcher and FSEventsWatcher with @parcel/watcher for the non-watchman watch path (#16188)
    • [jest-resolve] Bump unrs-resolver to 1.12.1, remove jest-pnp-resolver and unnecessary checks (#15721)
    • [jest-resolve] Honor Node's --preserve-symlinks / NODE_PRESERVE_SYMLINKS in the default resolver by passing symlinks: false to unrs-resolver (#16260)
    • [jest-runtime] Apply automocking and manual __mocks__ files to synchronously evaluable ESM graphs on Node 24.9+ - static imports, dynamic import() and require() of an ESM file now generate an automock from the real module's namespace instead of failing with "Attempting to import a mock without a factory". Graphs that need async evaluation (top-level await) or an async-only resolver or transformer still throw (#16391)
    • [jest-runtime] Route process.getBuiltinModule through the sandbox, so it returns the sandbox process and the hooked node:module instead of the host's (#16391)
    • [jest-runtime] Throw an actionable error from module.register() and module.registerHooks() inside a test - the hooks attached to the loader running Jest itself, never saw the sandboxed requires they were meant for, and stayed registered for every later test file in the worker (#16391)
    • [jest-runtime] Surface resolution and import-attribute errors in an ESM graph before executing any of its CJS dependencies on Node 24.9+, matching Node's run-nothing-on-a-broken-graph behavior; the legacy loader on older versions keeps its linking-time execution order (#16391)
    • [jest-runtime] Throw ERR_SOURCE_PHASE_NOT_DEFINED with an actionable message for import source and import.source(), instead of failing at instantiation with V8's bare "Source phase import object is not defined" (#16391)
    • [jest-runtime] Emit the JSON-without-import-attribute deprecation warning once per test file instead of once per worker, so it is no longer silently swallowed for every file after the first (#16391)
    • [jest-runtime] Set import.meta.main to true in the test file and false in every module it loads, matching Node 24+ (#16367)
    • [jest-runtime] Resolve the module-sync export condition, so a package that exposes its ESM entry point for require() loads the same file Node would (#16336)
    • [jest-snapshot] Add external snapshot paths to custom reporter failure details (#16374)

    Fixes

    ... (truncated)

    Commits

    > **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Closed Issues