Repository navigation
build(deps): bump postgres from 3.4.9 to 4.0.0 - #4195
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [postgres](https://github.com/porsager/postgres) from 3.4.9 to 4.0.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.0.0) --- updated-dependencies: - dependency-name: postgres dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Contributor
Author
|
Superseded by #4202. |
dirkdev98
added a commit
that referenced
this pull request
Nov 14, 2026
postgres v4 rewrote everything below its public API, including the internals that Sentry's code injection hooked into, so v4 queries got no spans and we held off on the bump. Sentry 11.11 traces v4 through the tracing channels it now publishes (getsentry/sentry-javascript#26076), so `@compas/store` accepts both v3 and v4. - The range is `^3.4.9 || ^4.1.1`. An app that depends on `postgres@^3` itself keeps v3, since that copy satisfies the range. The suite passes on both. - v4 lets the server decide parameter types. Compas's own queries don't notice: generated tables use `timestamptz`, date-only and time-only values are strings, and the interval and jsonb updates cast their parameters. - The lazy `postgres` import only matters for v3 now. It can go once we drop v3. - `compasWithSentry` now requires 11.11. With an older Sentry, an app that picks up v4 silently loses its query spans, and I'd rather have it fail on install. Replaces #4195. BREAKING CHANGE: - `@compas/store` supports postgres v4 and installs it unless your app depends on v3 itself. Add `postgres@^3` to your dependencies to stay on v3. v4 lets the server decide the type of each parameter: a `Date` compared with a `timestamp` or `date` column is taken as UTC, and a `Date` where the query doesn't decide the type, as in `date_trunc('day', ${date})`, needs a cast. Pass `infer: true` to `newPostgresConnection` to keep v3's behaviour. See the [postgres upgrade guide](https://github.com/porsager/postgres#upgrading-from-v3) for the other changes, like the removal of `sql.array()`. - Compas requires `@sentry/node` v11.11 or higher, the first version that traces postgres v4 queries. `compasWithSentry` throws on older versions.
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 postgres from 3.4.9 to 4.0.0.
Release notes
Sourced from postgres's releases.
... (truncated)
Changelog
Sourced from postgres's changelog.
... (truncated)
Commits
570be764.0.0f609255v4 release06cf284v4411429eDo not mutate parameters when serializing in Bind9afd16dAdd tests for double serialization of parameters on prepared query retryDependabot 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 commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)