@neondatabase/functions 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,19 +1,21 @@
1
- # @neondatabase/functions
1
+ # @neon/functions
2
2
 
3
3
  Runtime helpers for [Neon Functions](https://neon.com). Currently provides a `waitUntil` primitive for deferring background work past a response.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm install @neondatabase/functions
8
+ npm install @neon/functions
9
9
  ```
10
10
 
11
+ > **Requirements:** Node.js >= 20.19.
12
+
11
13
  ## Usage
12
14
 
13
15
  The API mirrors [`@vercel/functions`](https://vercel.com/docs/functions/functions-api-reference/vercel-functions-package): import `waitUntil` and call it directly with the promise you want to keep alive.
14
16
 
15
17
  ```ts
16
- import { waitUntil } from "@neondatabase/functions";
18
+ import { waitUntil } from "@neon/functions";
17
19
 
18
20
  export default {
19
21
  async fetch(req: Request): Promise<Response> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neondatabase/functions",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Runtime helpers for Neon Functions. Currently provides a `waitUntil` primitive for deferring async work past a response.",
5
5
  "keywords": [
6
6
  "neon",
@@ -43,7 +43,7 @@
43
43
  "vitest": "^3.0.9"
44
44
  },
45
45
  "engines": {
46
- "node": ">=22"
46
+ "node": ">=20.19.0"
47
47
  },
48
48
  "publishConfig": {
49
49
  "provenance": false