@neondatabase/config-runtime 0.8.0 → 0.8.1
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.
- package/README.md +24 -0
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @neondatabase/config-runtime
|
|
2
|
+
|
|
3
|
+
Imperative runtime for [`@neondatabase/config`](../config): run a `neon.ts` policy against the Neon API — `inspect`, `plan`, `apply` (push/pull) — and bundle + deploy Neon Functions.
|
|
4
|
+
|
|
5
|
+
> This package pulls in `esbuild`, so import it from your CLI or CI — **not** from a `neon.ts` policy. Keep policies side-effect-free; that's what `@neondatabase/config` is for. New code should import from `@neondatabase/config-runtime/v1` to pin a major.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @neondatabase/config-runtime
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## API
|
|
14
|
+
|
|
15
|
+
- `inspect` / `plan` / `apply` — read the current branch state, diff a policy against it, and apply the changes.
|
|
16
|
+
- `pullConfig` / `pushConfig` — lower-level pull/push primitives.
|
|
17
|
+
- `createBranch` — create a branch to target.
|
|
18
|
+
- `buildFunctionBundle` — bundle Neon Functions for deploy.
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import { inspect, plan, apply } from "@neondatabase/config-runtime/v1";
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
See [`@neondatabase/config`](../config) for authoring the `neon.ts` policy these operate on.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neondatabase/config-runtime",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Imperative runtime for @neondatabase/config: inspect/plan/apply a neon.ts policy against the Neon API and bundle + deploy Neon Functions. Pulls in esbuild; import this from CLIs and CI, not from neon.ts.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"neon",
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
"package.json"
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@neondatabase/api-client": "^2.7.1",
|
|
45
44
|
"@types/node": "^20.19.0",
|
|
46
45
|
"@vitest/coverage-v8": "3.0.9",
|
|
47
46
|
"console-fail-test": "0.5.0",
|
|
48
47
|
"tsdown": "^0.14.1",
|
|
49
48
|
"typescript": "^5.8.2",
|
|
50
|
-
"vitest": "^3.0.9"
|
|
49
|
+
"vitest": "^3.0.9",
|
|
50
|
+
"@neon/sdk": "0.1.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"esbuild": "^0.25.0",
|
|
54
54
|
"fflate": "^0.8.2",
|
|
55
|
-
"@neondatabase/config": "0.8.
|
|
55
|
+
"@neondatabase/config": "0.8.1"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": ">=22"
|