Skip to content

chore(deps): postgres.js 4.1.0 and jsdom 31.0.0, with the adjustments they need - #451

Merged
rafaelpessoap merged 4 commits into
mainfrom
chore/deps-2026-11-17
Nov 17, 2026
Merged

rafaelpessoap merged 4 commits into
mainfrom
chore/deps-2026-11-17

Conversation

@rafaelpessoap

Copy link
Copy Markdown
Collaborator

Combines the two open Dependabot majors into one PR (the strict ruleset costs one CI run per PR) with the adjustments each needs.

Closes #449
Closes #450

jsdom 30.1.3 → 31.0.0 (web, dev only)

jsdom 31 serialises translate(50px, 0px) as translate(50px), as browsers do, which broke three PhylogenyViewer assertions on #449. The test now parses the offset (offsetOf) instead of matching the string; it reads both forms.

postgres.js 3.4.9 → 4.1.0 (api)

Checked against the v4 upgrade guide:

  • Every date/time column is timestamptz; there are no timestamp, date, time, bytea or domain columns, so the time-zone and domain changes do not apply.
  • sql.array() is not used; the one array parameter (TREE_FLAGS) is cast to text[].
  • No raw BEGIN; Drizzle transactions go through client.begin, the migrator runs at max: 1.
  • Drizzle 0.45.4 still overrides the date parsers/serializers on the v4 client; no code binds a raw Date, bigint, boolean or Buffer where the server cannot type it (all ~900 template parameters reviewed).
  • The COPY hang in docs/gotchas/import.md reproduces on 3.4.9 (3/3) and not on 4.1.0 (3/3, rejects with 22P04), with a malformed row piped straight into .writable(). The gotcha, the pipelineWithIdleGuard JSDoc and the test comments now say so; the guard stays, and a new unit test (src/db/copy.test.ts) pins its abort with a stalled destination, since the integration tests no longer reach it.
  • The cursor return() gotcha (docs/gotchas/dataset.md) still reproduces on 4.1.0 and stays as is.

Follow-up: postgres.js 4.1.1 (un-awaited statements inside sql.begin could run after commit; none found here) clears the 7-day cooldown on 2026-11-18 and will come through Dependabot as a patch.

Merging this deploys the rewritten database driver to production through the Deploy job.

Verification

pnpm lint, pnpm typecheck, pnpm rfc:check and pnpm test (328 files, 2848 tests) pass locally; reviewed by a fresh-context agent before the PR.

🤖 Generated with Claude Code

dependabot Bot and others added 4 commits November 17, 2026 12:23
Bumps [jsdom](https://github.com/jsdom/jsdom) from 30.1.3 to 31.0.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Commits](jsdom/jsdom@v30.1.3...v31.0.0)

---
updated-dependencies:
- dependency-name: jsdom
  dependency-version: 31.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [postgres](https://github.com/porsager/postgres) from 3.4.9 to 4.1.0.
- [Release notes](https://github.com/porsager/postgres/releases)
- [Changelog](https://github.com/porsager/postgres/blob/master/CHANGELOG.md)
- [Commits](porsager/postgres@v3.4.9...v4.1.0)

---
updated-dependencies:
- dependency-name: postgres
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…n; docs: postgres.js 4 fixes the COPY hang

jsdom 31 serialises translate(50px, 0px) as translate(50px), as browsers do,
so the PhylogenyViewer assertions compare the parsed offset instead of the
string. The COPY hang gotcha now records that postgres.js 4.1.0 rejects the
writable with the server's error; the idle guard stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On postgres.js 4.1.0 a malformed row rejects through the driver before the
guard fires, so the integration tests no longer exercise the abort. A unit
test now does; the JSDoc and test comments stop describing the 3.4.9 hang
in the present tense.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 933093d4-69a2-48c5-b019-bd73690559e4
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@rafaelpessoap
rafaelpessoap merged commit d193ba3 into main Nov 17, 2026
15 checks passed
@rafaelpessoap
rafaelpessoap deleted the chore/deps-2026-11-17 branch November 17, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant