@agnostack/env 1.4.0-beta.2 → 2.0.0-canary.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/CHANGELOG.md CHANGED
@@ -1,3 +1,33 @@
1
+ # [2.0.0-canary.1](https://github.com/[secure]/env/compare/v1.3.0...v2.0.0-canary.1) (2026-08-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * check every exports target exists in verify:dist ([3cab3fa](https://github.com/[secure]/env/commit/3cab3fad76ab00c0acfc513f73e899f4707f246b))
7
+ * drop rimraf for node's built-in recursive delete ([c8f99f9](https://github.com/[secure]/env/commit/c8f99f931d908a94febdb5a34b0f1c66a2d7c97c))
8
+ * enable composite builds to match verifyd ([695de68](https://github.com/[secure]/env/commit/695de68d2e7142c43d0ac84a6c0cfcf05ee00249))
9
+ * enable strict type checking and remove any from published types ([fa48be5](https://github.com/[secure]/env/commit/fa48be5c61d0842ea4e2b8fb150b39a5cf697cec))
10
+ * enforce the ^_ unused-arg convention ([231ab05](https://github.com/[secure]/env/commit/231ab05e0c54b6775fd01ed4caf757569659dcd6))
11
+ * keep argv values containing "=" intact ([0d0c656](https://github.com/[secure]/env/commit/0d0c6561755c17a40ad98836f0e7433c95de98c4))
12
+ * make tsconfig.json the check config so editors cover the specs ([bd1c2fa](https://github.com/[secure]/env/commit/bd1c2fae335e752ae86a94720e8598bcc8be70cd))
13
+ * resolve modules with node16 ([72da476](https://github.com/[secure]/env/commit/72da476837def9b5f6148673be21fa0e51f4648e))
14
+ * run clean without depending on node_modules ([18dcbfe](https://github.com/[secure]/env/commit/18dcbfe6fb2ab19e1e63d449e2c8deff8a40e217))
15
+
16
+
17
+ ### Features
18
+
19
+ * add ./esm subpath export ([b8a9732](https://github.com/[secure]/env/commit/b8a9732800af1977598a906b35672366658bb25f))
20
+ * declare the package side-effect free ([0a18234](https://github.com/[secure]/env/commit/0a18234a5ba2096783592fd79a51dc598f569f81))
21
+ * guard publishes against source leaks and unloadable ESM ([dce6d83](https://github.com/[secure]/env/commit/dce6d837b4fe5151fa3d508aa1f1fe2b6e163a3b))
22
+ * migrate eslint to v9 flat config ([eecca88](https://github.com/[secure]/env/commit/eecca88c9cd95cd792cd1d989cedf881affdeaaa))
23
+ * migrate the test suite from jest to vitest ([1e49534](https://github.com/[secure]/env/commit/1e49534005201926aba758efb9314534bcc383a8))
24
+ * require node 22 ([9c3f0d9](https://github.com/[secure]/env/commit/9c3f0d9eba1cf18356570bcc2897642ff065c0ce))
25
+
26
+
27
+ ### BREAKING CHANGES
28
+
29
+ * the minimum supported node is now 22.
30
+
1
31
  # [1.3.0](https://github.com/agnostack/env/compare/v1.2.6...v1.3.0) (2025-08-20)
2
32
 
3
33
 
package/LICENSE CHANGED
@@ -1,3 +1,4 @@
1
+ @license
1
2
  MIT License
2
3
 
3
4
  Copyright (c) 2021-present agnoStack, Inc. and Adam Grohs
package/dist/env.d.ts CHANGED
@@ -8,8 +8,8 @@ export const ENV_PREFIXES: string[];
8
8
  export function nextKeyValidator(envKey: string): boolean;
9
9
  export function lowerKeyValidator(envKey: string): boolean;
10
10
  export function publicKeyValidator(envKey: string): boolean;
11
- export function cleanLowerEnv(_env: Record<string, string | undefined> | undefined, keyValidator?: ((envKey: string) => boolean) | undefined): Record<string, string | undefined>;
12
- export function cleanPublicEnv(_env: Record<string, string | undefined> | undefined, keyValidator?: ((envKey: string) => boolean) | undefined): Record<string, string | undefined>;
11
+ export function cleanLowerEnv(_env: Record<string, string | undefined> | undefined, keyValidator?: (envKey: string) => boolean): Record<string, string | undefined>;
12
+ export function cleanPublicEnv(_env: Record<string, string | undefined> | undefined, keyValidator?: (envKey: string) => boolean): Record<string, string | undefined>;
13
13
  export function parseEnvData(_env?: NodeJS.ProcessEnv): {
14
14
  env: Record<string, string> & {
15
15
  ENVIRONMENT: string;
@@ -28,7 +28,7 @@ export function parseEnvData(_env?: NodeJS.ProcessEnv): {
28
28
  };
29
29
  export function getPublicEnvValue(publicEnv: Record<string, string | undefined> | undefined, key: string): string | undefined;
30
30
  export function replaceEnvTemplate(replaceable: unknown, { env: _env, template, callback, }?: {
31
- env?: Record<string, string | undefined> | undefined;
32
- template?: RegExp | undefined;
33
- callback?: ((replacedValue: string, replaceable: string) => string) | undefined;
34
- } | undefined): string;
31
+ env?: Record<string, string | undefined>;
32
+ template?: RegExp;
33
+ callback?: (replacedValue: string, replaceable: string) => string;
34
+ }): string;
package/dist/project.d.ts CHANGED
@@ -4,7 +4,7 @@ export function parseProjectName(_name: unknown): {
4
4
  organization: string;
5
5
  projectName: string;
6
6
  };
7
- export function parsePackageInfo(packageInfo?: PackageInfo | undefined): [{
7
+ export function parsePackageInfo(packageInfo?: PackageInfo): [{
8
8
  keywords: string[] | undefined;
9
9
  appOwner: string;
10
10
  appName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agnostack/env",
3
- "version": "1.4.0-beta.2",
3
+ "version": "2.0.0-canary.1",
4
4
  "author": "agnoStack Dev <developers@agnostack.com> (https://agnostack.com)",
5
5
  "owner": "agnoStack",
6
6
  "description": "Please contact agnoStack via info@agnostack.com for any questions",
@@ -36,54 +36,52 @@
36
36
  "*.md"
37
37
  ],
38
38
  "engines": {
39
- "node": ">=18.x"
39
+ "node": ">=22.x"
40
40
  },
41
41
  "scripts": {
42
42
  "tsc": "npx -p typescript tsc",
43
- "watch": "yarn tsc -w",
44
- "prebuild": "yarn tsc --build --clean && npx rimraf@4.4.1 dist _storage",
45
- "build": "yarn tsc && yarn tsc -p tsconfig.esm.json && node scripts/write-esm-pkg.mjs",
46
- "clean": "npx rimraf@4.4.1 dist node_modules _storage",
43
+ "watch": "yarn tsc -p tsconfig.build.json -w",
44
+ "prebuild": "yarn tsc -b tsconfig.build.json --clean && node scripts/clean.mjs dist _storage",
45
+ "build": "yarn tsc -p tsconfig.build.json && yarn tsc -p tsconfig.esm.json && node scripts/write-esm-pkg.mjs",
46
+ "clean": "node scripts/clean.mjs dist node_modules _storage",
47
47
  "clean:install": "yarn clean && yarn install --force",
48
- "lint": "eslint 'src/**' --fix",
49
- "typecheck": "yarn tsc -p tsconfig.test.json",
48
+ "lint:fix": "eslint . --fix",
49
+ "lint": "eslint .",
50
+ "typecheck": "yarn tsc",
50
51
  "verify:dist": "node scripts/verify-dist.mjs",
51
- "prepublishOnly": "yarn verify:dist",
52
- "test": "jest",
53
- "release": "npx semantic-release@22.0.12",
52
+ "test:watch": "vitest",
53
+ "test": "vitest run",
54
+ "release": "semantic-release",
54
55
  "release:debug": "yarn release --debug",
55
- "prepare": "husky install"
56
+ "prepublishOnly": "yarn verify:dist",
57
+ "prepare": "husky"
56
58
  },
57
59
  "lint-staged": {
58
60
  "{src,test,types}/**/*.{js,ts}": [
59
61
  "eslint --fix"
60
62
  ]
61
63
  },
64
+ "sideEffects": false,
62
65
  "devDependencies": {
63
- "@commitlint/cli": "18.6.1",
64
- "@commitlint/config-conventional": "18.6.1",
66
+ "@commitlint/cli": "19.x",
67
+ "@commitlint/config-conventional": "19.x",
68
+ "@eslint/js": "9.x",
65
69
  "@semantic-release/changelog": "6.0.3",
66
70
  "@semantic-release/git": "10.0.1",
67
- "@semantic-release/github": "9.2.6",
68
- "@semantic-release/npm": "11.0.3",
69
- "@semantic-release/release-notes-generator": "12.1.0",
70
- "@types/jest": "29.x",
71
- "@types/node": "18.x",
72
- "@typescript-eslint/eslint-plugin": "6.3.0",
73
- "@typescript-eslint/parser": "6.3.0",
74
- "eslint": "8.23.0",
75
- "eslint-plugin-import": "2.26.0",
76
- "husky": "6.0.0",
77
- "jest": "29.x",
78
- "lint-staged": "11.0.0",
79
- "rimraf": "4.4.1",
80
- "semantic-release": "22.0.12",
81
- "ts-jest": "29.x",
82
- "typescript": "5.4.2"
83
- },
84
- "resolutions": {
85
- "**/npm": "10.8.2",
86
- "**/rimraf": "4.4.1"
71
+ "@semantic-release/github": "11.x",
72
+ "@semantic-release/npm": "12.x",
73
+ "@semantic-release/release-notes-generator": "14.x",
74
+ "@types/node": "22.x",
75
+ "@typescript-eslint/eslint-plugin": "8.x",
76
+ "@typescript-eslint/parser": "8.x",
77
+ "eslint": "9.x",
78
+ "eslint-plugin-import": "2.x",
79
+ "globals": "16.x",
80
+ "husky": "9.x",
81
+ "lint-staged": "15.x",
82
+ "semantic-release": "25.x",
83
+ "typescript": "5.9.3",
84
+ "vitest": "3.x"
87
85
  },
88
86
  "publishConfig": {
89
87
  "access": "public"