@neon/env 0.9.0 → 0.10.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 CHANGED
@@ -10,6 +10,8 @@ Builds on [`@neon/config`](../config) — it reuses the `Config` policy type and
10
10
  npm install @neon/env
11
11
  ```
12
12
 
13
+ > **Requirements:** Node.js >= 20.19.
14
+
13
15
  ## Functions
14
16
 
15
17
  The library functions are **filesystem- and env-agnostic**: `fetchEnv` requires an explicit `projectId` + `branch` (a branch **name** like `main`, or a `br-…` id). (The `neon-env` CLI does the `.neon`/`NEON_*` resolution and passes these in.)
@@ -1,4 +1,4 @@
1
1
  import { BranchTarget, BranchTuning, BranchTuningFn, BucketAccessLevel, BucketDef, ComputeSettings, ComputeUnit, Config, CredentialPrincipalType, CredentialScope, DATA_API_AUTH_PROVIDERS, DataApiAuthProvider, DataApiConfig, DataApiExternalAuthConfig, DataApiInput, DataApiNeonAuthConfig, DataApiSettings, DurationString, DurationUnit, FunctionDef, FunctionDevConfig, FunctionRuntime, FunctionTuning, PostgresConfig, PreviewInput, PreviewTuning, ServiceToggle, ServiceToggleInput } from "./lib/types.js";
2
2
  import { CreateBranchInput, CreateBucketInput, CreateCredentialInput, CreateProjectInput, DeployFunctionInput, EnableDataApiInput, GetConnectionUriInput, NeonApi, NeonAuthSnapshot, NeonBranchSnapshot, NeonBranchStorageSnapshot, NeonBucketSnapshot, NeonCredentialMeta, NeonCredentialSecret, NeonDataApiSnapshot, NeonDatabaseSnapshot, NeonEndpointSnapshot, NeonFunctionDeploymentSnapshot, NeonFunctionSnapshot, NeonProjectSnapshot, NeonRoleSnapshot, UpdateBranchInput } from "./lib/neon-api.js";
3
3
  import "zod";
4
- export {};
4
+ export { type Config, type NeonApi };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neon/env",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "description": "Resolve and inject Neon connection strings for the branch selected by your neon.ts policy. fetchEnv / parseEnv plus a `neon-env` CLI with `run` and `export`.",
5
5
  "keywords": [
6
6
  "neon",
@@ -45,15 +45,15 @@
45
45
  "tsdown": "^0.14.1",
46
46
  "typescript": "^5.8.2",
47
47
  "vitest": "^3.0.9",
48
- "@neon/sdk": "0.1.0"
48
+ "@neon/sdk": "1.0.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "zod": "^4.4.3",
52
52
  "yargs": "^18.0.0",
53
- "@neon/config": "0.8.1"
53
+ "@neon/config": "0.9.1"
54
54
  },
55
55
  "engines": {
56
- "node": ">=22"
56
+ "node": ">=20.19.0"
57
57
  },
58
58
  "publishConfig": {
59
59
  "provenance": false