Skip to content

Commit 30fe8d0

Browse files
authored
feat(postgres): Upgrade underlying @neondatabase/serverless to 0.9.3 (#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
1 parent 5c195e2 commit 30fe8d0

File tree

3 files changed

+262
-119
lines changed

3 files changed

+262
-119
lines changed

.changeset/rude-pandas-give.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"@vercel/postgres": major
3+
---
4+
5+
Upgrade underlying @neondatabase/serverless to 0.9.3.
6+
We follow @neondatabase/serverless's versioning scheme, thus the major bump.
7+
8+
The main changes, per https://github.com/neondatabase/serverless/blob/main/CHANGELOG.md, are:
9+
> - 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.
10+
> - 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).
11+
> - Pass username (and database name) through URL decoder, so all usernames can successfully authorize.
12+
13+
Upgrading to this version should be safe for all users.
14+
15+
Also fixes #701

packages/postgres/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
"testEnvironment": "node"
4545
},
4646
"dependencies": {
47-
"@neondatabase/serverless": "0.7.2",
48-
"bufferutil": "4.0.8",
49-
"utf-8-validate": "6.0.3",
50-
"ws": "8.14.2"
47+
"@neondatabase/serverless": "^0.9.3",
48+
"bufferutil": "^4.0.8",
49+
"utf-8-validate": "^6.0.4",
50+
"ws": "^8.17.1"
5151
},
5252
"devDependencies": {
5353
"@changesets/cli": "2.27.1",

0 commit comments

Comments
 (0)