Skip to content

Commit

Permalink
feat(postgres): Upgrade underlying @neondatabase/serverless to 0.9.3 (#…
Browse files Browse the repository at this point in the history
…702)

We follow @neondatabase/serverless's versioning scheme, thus the major bump.

The main changes, per https://github.com/neondatabase/serverless/blob/main/CHANGELOG.md, are:
> - Use a single (per-region) domain name for all connections to Neon databases. Intended to help with connection caching in V8. Passes the endpoint ID inside connection options for WebSocket connections.
> - Deprecate fetchConnectionCache option, which is now always enabled. For neon http fetch queries, enable setting options on individual queries within a batch transaction (but note that the types still do not allow this).
> - Pass username (and database name) through URL decoder, so all usernames can successfully authorize.

Upgrading to this version should be safe for all users.

Also fixes #701
  • Loading branch information
vvo committed Jun 24, 2024
1 parent 5c195e2 commit 30fe8d0
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 119 deletions.
15 changes: 15 additions & 0 deletions .changeset/rude-pandas-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"@vercel/postgres": major
---

Upgrade underlying @neondatabase/serverless to 0.9.3.
We follow @neondatabase/serverless's versioning scheme, thus the major bump.

The main changes, per https://github.com/neondatabase/serverless/blob/main/CHANGELOG.md, are:
> - Use a single (per-region) domain name for all connections to Neon databases. Intended to help with connection caching in V8. Passes the endpoint ID inside connection options for WebSocket connections.
> - Deprecate fetchConnectionCache option, which is now always enabled. For neon http fetch queries, enable setting options on individual queries within a batch transaction (but note that the types still do not allow this).
> - Pass username (and database name) through URL decoder, so all usernames can successfully authorize.
Upgrading to this version should be safe for all users.

Also fixes #701
8 changes: 4 additions & 4 deletions packages/postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
"testEnvironment": "node"
},
"dependencies": {
"@neondatabase/serverless": "0.7.2",
"bufferutil": "4.0.8",
"utf-8-validate": "6.0.3",
"ws": "8.14.2"
"@neondatabase/serverless": "^0.9.3",
"bufferutil": "^4.0.8",
"utf-8-validate": "^6.0.4",
"ws": "^8.17.1"
},
"devDependencies": {
"@changesets/cli": "2.27.1",
Expand Down
Loading

0 comments on commit 30fe8d0

Please sign in to comment.