- a2a4757: Removes utf-8-validate dependency and sets minimum Node.js version to 18.14
-
30fe8d0: 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
- e36fa70: feat(types): re-export pg-types for Drizzle
- 5d84a4a: chore(deps): update dependency kysely to v0.27.2
- abfdf65: fix(deps): update dependency @neondatabase/serverless to v0.7.2
- 4e8161a: chore(deps): update dependency @neondatabase/serverless to v0.6.0
- 4701d58: Upgrade neon to latest, reverts cache-control on request to undefined
- d90e973: Removed
"types"
field from package.json to support"moduleResolution": "Node16"
- 6104c9f: Upgrade to latest neon database driver
- Upgrade @neon/serverless to the latest version Automatically uses @neon http layer with Pool.query/sql`` Stop minifying and add sourcemaps for better debugging
-
52ce540: Before this release, when using our default pooling client (
import { sql } from '@vercel/storage'
), and deploying on Vercel Edge Functions, then your Edge Functions would timeout after 11 requests.Full explanation: we set node-postgres Pool
maxUses
parameter to1
in Edge Function, because clients can't be reused between requests in this serverless context. This combined with how our module is made (a JavaScript proxy) triggered a specific condition where clients would never be released to the Pool.The exact line that failed under these circumstances was: https://github.com/brianc/node-postgres/blob/735683c5cb41bcbf043c6490be4b7f38cfe3ac48/packages/pg-pool/index.js#L166
This is now fixed, thanks @cramforce.
- cec1d6b: Upgrade @neondatabase/serverless to 0.4.11
- 34defd9: feat: Allow users to connect to local databases
- 6b8b7a9: fix: Make it even harder to call
sql
incorrectly
- 18b69a5: feat: Prevent incorrect usage of tagged literal
sql
for non-ts users
- 8b51d48: chore: Simplify
sqlTemplate
- c4a8aa5: feat: Docs section for Vite environment config
- 1ade1f0: chore: Update package.json and licenses
- f41b5e0: Fix licensing
- 312a0b7: chore: We're live!
- 6445b6d: Make VercelClients in VercelPool
- e1d2446: fix: Lockfile...?
- 10c8d3a: Explicit depend on ws
- 40ca953: fix: Add logging when overriding user config in edge environments
- b58a4f9: Depend on optional ws modules
- f3b3519: explicitly declare node in export map
- 71977ca: feat: Everything works!
- 2a9b401: breaking: Changed public API of both projects
- ce5f3f1: Support expording a pool instance as db
- 21f20b2: fix: Unpatch nextTick, incorporate upstream patch from Neon
- 66fb7f0: feat: Make
sql
a callable Pool instance - 4d2f4fa: chore: Convert to monorepo, split packages
fix: Add
bufferutils
andutf-8-validate
as deps of@vercel/postgres
- fb0f276: Polyfill nextTick
- 7c542aa: chore: Just testing to see if this passes publish
- 034ded3: We have side effects
- 3372fe1: No client reuse in the edge runtme
- 6445b6d: Make VercelClients in VercelPool
- ce5f3f1: Support expording a pool instance as db
- 3372fe1: No client reuse in the edge runtme
- 2a9b401: breaking: Changed public API of both projects
- 7c542aa: chore: Just testing to see if this passes publish
- e1d2446: fix: Lockfile...?
- 4d2f4fa: chore: Convert to monorepo, split packages
fix: Add
bufferutils
andutf-8-validate
as deps of@vercel/postgres
- b58a4f9: Depend on optional ws modules
- 71977ca: feat: Everything works!
- 10c8d3a: Explicit depend on ws
- 034ded3: We have side effects
- f3b3519: explicitly declare node in export map
- 21f20b2: fix: Unpatch nextTick, incorporate upstream patch from Neon
- fb0f276: Polyfill nextTick