envapt 7.0.2 → 7.0.3

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,5 +1,11 @@
1
1
  # envapt
2
2
 
3
+ ## 7.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - deprecate the envapt/workerd and envapt/browser subpaths. both still work but now log a deprecation warning on import. import directly from `envapt` instead. removed in v8.
8
+
3
9
  ## 7.0.2
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @deprecated The `envapt/browser` subpath is deprecated. Import from `envapt` instead, which resolves
3
+ * the portable build on the browser, Workers, and edge runtimes through package export conditions.
4
+ * Removed in v8.
5
+ * @module
6
+ */
7
+ export * from '../dist/types/index.portable.mjs';
@@ -0,0 +1,4 @@
1
+ console.warn(
2
+ "[envapt] The 'envapt/browser' subpath is deprecated and will be removed in v8. Import from 'envapt' instead, which resolves the portable build on the browser, Workers, and edge runtimes."
3
+ );
4
+ export * from '../dist/browser/index.mjs';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @deprecated The `envapt/workerd` subpath is deprecated. Import from `envapt` instead, which resolves
3
+ * the portable build on Workers, the browser, and edge runtimes through package export conditions.
4
+ * Removed in v8.
5
+ * @module
6
+ */
7
+ export * from '../dist/types/index.portable.mjs';
@@ -0,0 +1,4 @@
1
+ console.warn(
2
+ "[envapt] The 'envapt/workerd' subpath is deprecated and will be removed in v8. Import from 'envapt' instead, which resolves the portable build on Workers, the browser, and edge runtimes."
3
+ );
4
+ export * from '../dist/workerd/index.mjs';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "envapt",
3
3
  "type": "module",
4
- "version": "7.0.2",
4
+ "version": "7.0.3",
5
5
  "description": "Type-safe config for TypeScript. Read typed values from any source, process.env, .env files, Cloudflare Workers bindings, browser bundles, or any object you supply. Zero runtime dependencies, one API across Node, Bun, Deno, Workers, and the browser. TC39 accessor decorators (legacy decorators at envapt/legacy), converters, and Standard Schema (zod/valibot/arktype) validation.",
6
6
  "types": "./dist/types/index.d.mts",
7
7
  "exports": {
@@ -36,12 +36,12 @@
36
36
  }
37
37
  },
38
38
  "./workerd": {
39
- "types": "./dist/types/index.portable.d.mts",
40
- "default": "./dist/workerd/index.mjs"
39
+ "types": "./aliases/workerd.d.mts",
40
+ "default": "./aliases/workerd.mjs"
41
41
  },
42
42
  "./browser": {
43
- "types": "./dist/types/index.portable.d.mts",
44
- "default": "./dist/browser/index.mjs"
43
+ "types": "./aliases/browser.d.mts",
44
+ "default": "./aliases/browser.mjs"
45
45
  },
46
46
  "./config": {
47
47
  "import": {
@@ -86,13 +86,16 @@
86
86
  },
87
87
  "sideEffects": [
88
88
  "./dist/node/config.cjs",
89
- "./dist/node/config.mjs"
89
+ "./dist/node/config.mjs",
90
+ "./aliases/workerd.mjs",
91
+ "./aliases/browser.mjs"
90
92
  ],
91
93
  "files": [
92
94
  "dist/**/*.mjs",
93
95
  "dist/**/*.cjs",
94
96
  "dist/**/*.map",
95
97
  "dist/types",
98
+ "aliases",
96
99
  "NOTICE.md",
97
100
  "LICENSE",
98
101
  "README.md",