arkenv 0.9.3 → 0.10.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 (40) hide show
  1. package/dist/core-Byznlywt.cjs +11 -0
  2. package/dist/core-DzT5rjcY.mjs +6 -0
  3. package/dist/core-DzT5rjcY.mjs.map +1 -0
  4. package/dist/core.cjs +8 -0
  5. package/dist/core.d.cts +45 -0
  6. package/dist/core.d.cts.map +1 -0
  7. package/dist/core.d.mts +39 -0
  8. package/dist/core.d.mts.map +1 -0
  9. package/dist/core.mjs +1 -0
  10. package/dist/{create-env-CbYz5hip.d.mts → index-Cic20SzT.d.mts} +85 -170
  11. package/dist/index-Cic20SzT.d.mts.map +1 -0
  12. package/dist/{create-env-CcbhZDpx.d.cts → index-bSO6Cmhi.d.cts} +85 -170
  13. package/dist/index-bSO6Cmhi.d.cts.map +1 -0
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.d.cts +153 -28
  16. package/dist/index.d.cts.map +1 -1
  17. package/dist/index.d.mts +153 -28
  18. package/dist/index.d.mts.map +1 -1
  19. package/dist/index.mjs +1 -1
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/standard.cjs +8 -0
  22. package/dist/standard.d.cts +70 -0
  23. package/dist/standard.d.cts.map +1 -0
  24. package/dist/standard.d.mts +64 -0
  25. package/dist/standard.d.mts.map +1 -0
  26. package/dist/standard.mjs +3 -0
  27. package/dist/standard.mjs.map +1 -0
  28. package/package.json +19 -7
  29. package/dist/arktype/index.cjs +0 -8
  30. package/dist/arktype/index.d.cts +0 -116
  31. package/dist/arktype/index.d.cts.map +0 -1
  32. package/dist/arktype/index.d.mts +0 -110
  33. package/dist/arktype/index.d.mts.map +0 -1
  34. package/dist/arktype/index.mjs +0 -3
  35. package/dist/arktype/index.mjs.map +0 -1
  36. package/dist/create-env-CbYz5hip.d.mts.map +0 -1
  37. package/dist/create-env-CcbhZDpx.d.cts.map +0 -1
  38. package/dist/errors-Bi-pULbt.mjs +0 -7
  39. package/dist/errors-Bi-pULbt.mjs.map +0 -1
  40. package/dist/errors-BtUS5QYF.cjs +0 -12
@@ -0,0 +1,11 @@
1
+ const e=(e,t=2,{dontDetectNewlines:n=!1}={})=>n?`${` `.repeat(t)}${e}`:e.split(`
2
+ `).map(e=>`${` `.repeat(t)}${e}`).join(`
3
+ `),t={red:`\x1B[31m`,yellow:`\x1B[33m`,cyan:`\x1B[36m`,reset:`\x1B[0m`},n=()=>typeof process<`u`&&process.versions!=null&&process.versions.node!=null,r=()=>!!(!n()||process.env.NO_COLOR!==void 0||process.env.CI!==void 0||process.stdout&&!process.stdout.isTTY),i=(e,i)=>n()&&!r()?`${t[e]}${i}${t.reset}`:i,a=e=>e.map(e=>`${i(`yellow`,e.path)} ${e.message.trimStart()}`).join(`
4
+ `);var o=class extends Error{constructor(t,n=`Errors found while validating environment variables`){let r=a(t);super(`${i(`red`,n)}\n${e(r)}\n`),this.name=`ArkEnvError`}};Object.defineProperty(o,`name`,{value:`ArkEnvError`}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
5
+
6
+ // CJS Interop Shim
7
+ if (module.exports && module.exports.default) {
8
+ Object.assign(module.exports.default, module.exports);
9
+ module.exports = module.exports.default;
10
+ }
11
+
@@ -0,0 +1,6 @@
1
+ const e=(e,t=2,{dontDetectNewlines:n=!1}={})=>n?`${` `.repeat(t)}${e}`:e.split(`
2
+ `).map(e=>`${` `.repeat(t)}${e}`).join(`
3
+ `),t={red:`\x1B[31m`,yellow:`\x1B[33m`,cyan:`\x1B[36m`,reset:`\x1B[0m`},n=()=>typeof process<`u`&&process.versions!=null&&process.versions.node!=null,r=()=>!!(!n()||process.env.NO_COLOR!==void 0||process.env.CI!==void 0||process.stdout&&!process.stdout.isTTY),i=(e,i)=>n()&&!r()?`${t[e]}${i}${t.reset}`:i,a=e=>e.map(e=>`${i(`yellow`,e.path)} ${e.message.trimStart()}`).join(`
4
+ `);var o=class extends Error{constructor(t,n=`Errors found while validating environment variables`){let r=a(t);super(`${i(`red`,n)}\n${e(r)}\n`),this.name=`ArkEnvError`}};Object.defineProperty(o,`name`,{value:`ArkEnvError`});export{a as n,i as r,o as t};
5
+
6
+ //# sourceMappingURL=core-DzT5rjcY.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-DzT5rjcY.mjs","names":[],"sources":["../src/utils/indent.ts","../src/utils/style-text.ts","../src/core.ts"],"sourcesContent":["/**\n * Options for the `indent` function\n */\ntype IndentOptions = {\n\t/**\n\t * Whether to detect newlines and indent each line individually, defaults to false (indenting the whole string)\n\t */\n\tdontDetectNewlines?: boolean;\n};\n\n/**\n * Indent a string by a given amount\n * @param str - The string to indent\n * @param amt - The amount to indent by, defaults to 2\n * @param options - {@link IndentOptions}\n * @returns The indented string\n */\nexport const indent = (\n\tstr: string,\n\tamt = 2,\n\t{ dontDetectNewlines = false }: IndentOptions = {},\n) => {\n\tconst detectNewlines = !dontDetectNewlines;\n\tif (detectNewlines) {\n\t\treturn str\n\t\t\t.split(\"\\n\")\n\t\t\t.map((line) => `${\" \".repeat(amt)}${line}`)\n\t\t\t.join(\"\\n\");\n\t}\n\n\treturn `${\" \".repeat(amt)}${str}`;\n};\n","/**\n * Cross-platform text styling utility\n * Uses ANSI colors in Node environments, plain text in browsers\n * Respects NO_COLOR, CI environment variables, and TTY detection\n */\n\n// ANSI color codes for Node environments\nconst colors = {\n\tred: \"\\x1b[31m\",\n\tyellow: \"\\x1b[33m\",\n\tcyan: \"\\x1b[36m\",\n\treset: \"\\x1b[0m\",\n} as const;\n\n/**\n * Check if we're in a Node environment (not browser)\n * Checked dynamically to allow for testing with mocked globals\n */\nconst isNode = (): boolean =>\n\ttypeof process !== \"undefined\" &&\n\tprocess.versions != null &&\n\tprocess.versions.node != null;\n\n/**\n * Check if colors should be disabled based on environment\n * Respects NO_COLOR, CI environment variables, and TTY detection\n */\nconst shouldDisableColors = (): boolean => {\n\tif (!isNode()) return true;\n\n\t// Respect NO_COLOR environment variable (https://no-color.org/)\n\tif (process.env.NO_COLOR !== undefined) return true;\n\n\t// Disable colors in CI environments by default\n\tif (process.env.CI !== undefined) return true;\n\n\t// Disable colors if not writing to a TTY\n\tif (process.stdout && !process.stdout.isTTY) return true;\n\n\treturn false;\n};\n\n/**\n * Style text with color. Uses ANSI codes in Node, plain text in browsers.\n * @param color - The color to apply\n * @param text - The text to style\n * @returns Styled text in Node (if colors enabled), plain text otherwise\n */\nexport const styleText = (\n\tcolor: \"red\" | \"yellow\" | \"cyan\",\n\ttext: string,\n): string => {\n\t// Use ANSI colors only in Node environments with colors enabled\n\tif (isNode() && !shouldDisableColors()) {\n\t\treturn `${colors[color]}${text}${colors.reset}`;\n\t}\n\t// Fall back to plain text in browsers or when colors are disabled\n\treturn text;\n};\n","import { indent } from \"./utils/indent.ts\";\nimport { styleText } from \"./utils/style-text.ts\";\n\n/**\n * A single validation issue produced during environment variable parsing.\n * Used by {@link ArkEnvError} to report which key failed and why.\n */\nexport type ValidationIssue = {\n\tpath: string;\n\tmessage: string;\n};\n\nexport const formatInternalErrors = (errors: ValidationIssue[]): string =>\n\terrors\n\t\t.map(\n\t\t\t(error) =>\n\t\t\t\t`${styleText(\"yellow\", error.path)} ${error.message.trimStart()}`,\n\t\t)\n\t\t.join(\"\\n\");\n\n/**\n * Error thrown when environment variable validation fails.\n *\n * This error extends the native `Error` class and provides formatted error messages\n * that clearly indicate which environment variables are invalid and why.\n *\n * @example\n * ```ts\n * import arkenv, { ArkEnvError } from 'arkenv';\n *\n * try {\n * const env = arkenv({\n * PORT: 'number.port',\n * HOST: 'string.host',\n * });\n * } catch (error) {\n * if (error instanceof ArkEnvError) {\n * console.error('Environment validation failed:', error.message);\n * }\n * }\n * ```\n */\nexport class ArkEnvError extends Error {\n\tconstructor(\n\t\terrors: ValidationIssue[],\n\t\tmessage = \"Errors found while validating environment variables\",\n\t) {\n\t\tconst formattedErrors = formatInternalErrors(errors);\n\t\tsuper(`${styleText(\"red\", message)}\\n${indent(formattedErrors)}\\n`);\n\t\tthis.name = \"ArkEnvError\";\n\t}\n}\n\nObject.defineProperty(ArkEnvError, \"name\", { value: \"ArkEnvError\" });\n"],"mappings":"AAiBA,MAAa,GACZ,EACA,EAAM,EACN,CAAE,qBAAqB,IAAyB,EAAE,GAE1B,EAQjB,GAAG,IAAI,OAAO,EAAI,GAAG,IANpB,EACL,MAAM;EAAK,CACX,IAAK,GAAS,GAAG,IAAI,OAAO,EAAI,GAAG,IAAO,CAC1C,KAAK;EAAK,CCpBR,EAAS,CACd,IAAK,WACL,OAAQ,WACR,KAAM,WACN,MAAO,UACP,CAMK,MACL,OAAO,QAAY,KACnB,QAAQ,UAAY,MACpB,QAAQ,SAAS,MAAQ,KAMpB,MAUL,GATI,CAAC,GAAQ,EAGT,QAAQ,IAAI,WAAa,IAAA,IAGzB,QAAQ,IAAI,KAAO,IAAA,IAGnB,QAAQ,QAAU,CAAC,QAAQ,OAAO,OAW1B,GACZ,EACA,IAGI,GAAQ,EAAI,CAAC,GAAqB,CAC9B,GAAG,EAAO,KAAS,IAAO,EAAO,QAGlC,EC7CK,EAAwB,GACpC,EACE,IACC,GACA,GAAG,EAAU,SAAU,EAAM,KAAK,CAAC,GAAG,EAAM,QAAQ,WAAW,GAChE,CACA,KAAK;EAAK,CAwBb,IAAa,EAAb,cAAiC,KAAM,CACtC,YACC,EACA,EAAU,sDACT,CACD,IAAM,EAAkB,EAAqB,EAAO,CACpD,MAAM,GAAG,EAAU,MAAO,EAAQ,CAAC,IAAI,EAAO,EAAgB,CAAC,IAAI,CACnE,KAAK,KAAO,gBAId,OAAO,eAAe,EAAa,OAAQ,CAAE,MAAO,cAAe,CAAC"}
package/dist/core.cjs ADDED
@@ -0,0 +1,8 @@
1
+ const e=require(`./core-Byznlywt.cjs`);exports.ArkEnvError=e.t,exports.formatInternalErrors=e.n;
2
+
3
+ // CJS Interop Shim
4
+ if (module.exports && module.exports.default) {
5
+ Object.assign(module.exports.default, module.exports);
6
+ module.exports = module.exports.default;
7
+ }
8
+
@@ -0,0 +1,45 @@
1
+ //#region src/core.d.ts
2
+ /**
3
+ * A single validation issue produced during environment variable parsing.
4
+ * Used by {@link ArkEnvError} to report which key failed and why.
5
+ */
6
+ type ValidationIssue = {
7
+ path: string;
8
+ message: string;
9
+ };
10
+ declare const formatInternalErrors: (errors: ValidationIssue[]) => string;
11
+ /**
12
+ * Error thrown when environment variable validation fails.
13
+ *
14
+ * This error extends the native `Error` class and provides formatted error messages
15
+ * that clearly indicate which environment variables are invalid and why.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * import arkenv, { ArkEnvError } from 'arkenv';
20
+ *
21
+ * try {
22
+ * const env = arkenv({
23
+ * PORT: 'number.port',
24
+ * HOST: 'string.host',
25
+ * });
26
+ * } catch (error) {
27
+ * if (error instanceof ArkEnvError) {
28
+ * console.error('Environment validation failed:', error.message);
29
+ * }
30
+ * }
31
+ * ```
32
+ */
33
+ declare class ArkEnvError extends Error {
34
+ constructor(errors: ValidationIssue[], message?: string);
35
+ }
36
+ //#endregion
37
+ export { ArkEnvError, ValidationIssue, formatInternalErrors };
38
+
39
+ // CJS Interop Shim
40
+ if (module.exports && module.exports.default) {
41
+ Object.assign(module.exports.default, module.exports);
42
+ module.exports = module.exports.default;
43
+ }
44
+
45
+ //# sourceMappingURL=core.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.cts","names":[],"sources":["../src/core.ts"],"sourcesContent":[],"mappings":";;AAOA;AAKA;AA8BA;KAnCY,eAAA;;;;cAKC,+BAAgC;;;;;;;;;;;;;;;;;;;;;;;cA8BhC,WAAA,SAAoB,KAAA;sBAEvB"}
@@ -0,0 +1,39 @@
1
+ //#region src/core.d.ts
2
+ /**
3
+ * A single validation issue produced during environment variable parsing.
4
+ * Used by {@link ArkEnvError} to report which key failed and why.
5
+ */
6
+ type ValidationIssue = {
7
+ path: string;
8
+ message: string;
9
+ };
10
+ declare const formatInternalErrors: (errors: ValidationIssue[]) => string;
11
+ /**
12
+ * Error thrown when environment variable validation fails.
13
+ *
14
+ * This error extends the native `Error` class and provides formatted error messages
15
+ * that clearly indicate which environment variables are invalid and why.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * import arkenv, { ArkEnvError } from 'arkenv';
20
+ *
21
+ * try {
22
+ * const env = arkenv({
23
+ * PORT: 'number.port',
24
+ * HOST: 'string.host',
25
+ * });
26
+ * } catch (error) {
27
+ * if (error instanceof ArkEnvError) {
28
+ * console.error('Environment validation failed:', error.message);
29
+ * }
30
+ * }
31
+ * ```
32
+ */
33
+ declare class ArkEnvError extends Error {
34
+ constructor(errors: ValidationIssue[], message?: string);
35
+ }
36
+ //#endregion
37
+ export { ArkEnvError, ValidationIssue, formatInternalErrors };
38
+
39
+ //# sourceMappingURL=core.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.mts","names":[],"sources":["../src/core.ts"],"sourcesContent":[],"mappings":";;AAOA;AAKA;AA8BA;KAnCY,eAAA;;;;cAKC,+BAAgC;;;;;;;;;;;;;;;;;;;;;;;cA8BhC,WAAA,SAAoB,KAAA;sBAEvB"}
package/dist/core.mjs ADDED
@@ -0,0 +1 @@
1
+ import{n as e,t}from"./core-DzT5rjcY.mjs";export{t as ArkEnvError,e as formatInternalErrors};
@@ -1,8 +1,90 @@
1
1
  import * as arktype0 from "arktype";
2
- import { Type, distill, type } from "arktype";
2
+ import { Type, type } from "arktype";
3
3
  import * as arktype_internal_keywords_string_ts0 from "arktype/internal/keywords/string.ts";
4
4
  import * as arktype_internal_attributes_ts0 from "arktype/internal/attributes.ts";
5
5
 
6
+ //#region ../internal/scope/dist/index.d.ts
7
+
8
+ //#region src/root.d.ts
9
+ /**
10
+ * The root scope for the ArkEnv library,
11
+ * containing extensions to the ArkType scopes with ArkEnv-specific types
12
+ * like `string.host` and `number.port`.
13
+ */
14
+ declare const $: arktype0.Scope<{
15
+ string: arktype0.Submodule<{
16
+ trim: arktype0.Submodule<arktype_internal_keywords_string_ts0.trim.$ & {
17
+ " arkInferred": (In: string) => arktype_internal_attributes_ts0.To<string>;
18
+ }>;
19
+ normalize: arktype0.Submodule<arktype_internal_keywords_string_ts0.normalize.$ & {
20
+ " arkInferred": (In: string) => arktype_internal_attributes_ts0.To<string>;
21
+ }>;
22
+ root: string;
23
+ alpha: string;
24
+ alphanumeric: string;
25
+ hex: string;
26
+ base64: arktype0.Submodule<{
27
+ root: string;
28
+ url: string;
29
+ } & {
30
+ " arkInferred": string;
31
+ }>;
32
+ capitalize: arktype0.Submodule<arktype_internal_keywords_string_ts0.capitalize.$ & {
33
+ " arkInferred": (In: string) => arktype_internal_attributes_ts0.To<string>;
34
+ }>;
35
+ creditCard: string;
36
+ date: arktype0.Submodule<arktype_internal_keywords_string_ts0.stringDate.$ & {
37
+ " arkInferred": string;
38
+ }>;
39
+ digits: string;
40
+ email: string;
41
+ integer: arktype0.Submodule<arktype_internal_keywords_string_ts0.stringInteger.$ & {
42
+ " arkInferred": string;
43
+ }>;
44
+ ip: arktype0.Submodule<arktype_internal_keywords_string_ts0.ip.$ & {
45
+ " arkInferred": string;
46
+ }>;
47
+ json: arktype0.Submodule<arktype_internal_keywords_string_ts0.stringJson.$ & {
48
+ " arkInferred": string;
49
+ }>;
50
+ lower: arktype0.Submodule<arktype_internal_keywords_string_ts0.lower.$ & {
51
+ " arkInferred": (In: string) => arktype_internal_attributes_ts0.To<string>;
52
+ }>;
53
+ numeric: arktype0.Submodule<arktype_internal_keywords_string_ts0.stringNumeric.$ & {
54
+ " arkInferred": string;
55
+ }>;
56
+ regex: string;
57
+ semver: string;
58
+ upper: arktype0.Submodule<{
59
+ root: (In: string) => arktype_internal_attributes_ts0.To<string>;
60
+ preformatted: string;
61
+ } & {
62
+ " arkInferred": (In: string) => arktype_internal_attributes_ts0.To<string>;
63
+ }>;
64
+ url: arktype0.Submodule<arktype_internal_keywords_string_ts0.url.$ & {
65
+ " arkInferred": string;
66
+ }>;
67
+ uuid: arktype0.Submodule<arktype_internal_keywords_string_ts0.uuid.$ & {
68
+ " arkInferred": string;
69
+ }>;
70
+ " arkInferred": string;
71
+ host: string;
72
+ }>;
73
+ number: arktype0.Submodule<{
74
+ NaN: number;
75
+ Infinity: number;
76
+ root: number;
77
+ integer: number;
78
+ " arkInferred": number;
79
+ epoch: number;
80
+ safe: number;
81
+ NegativeInfinity: number;
82
+ port: number;
83
+ }>;
84
+ }>;
85
+ type $ = (typeof $)["t"];
86
+ //#endregion
87
+ //#endregion
6
88
  //#region ../internal/types/dist/helpers.d.ts
7
89
  type Dict<T> = Record<string, T | undefined>;
8
90
  //#endregion
@@ -103,87 +185,6 @@ type InferType<T> = T extends StandardSchemaV1<infer _Input, infer Output> ? Out
103
185
  t: infer U;
104
186
  } ? U : T extends type.Any<infer U, infer _Scope> ? U : never;
105
187
  //#endregion
106
- //#region ../internal/scope/dist/index.d.ts
107
- //#region src/root.d.ts
108
- /**
109
- * The root scope for the ArkEnv library,
110
- * containing extensions to the ArkType scopes with ArkEnv-specific types
111
- * like `string.host` and `number.port`.
112
- */
113
- declare const $: arktype0.Scope<{
114
- string: arktype0.Submodule<{
115
- trim: arktype0.Submodule<arktype_internal_keywords_string_ts0.trim.$ & {
116
- " arkInferred": (In: string) => arktype_internal_attributes_ts0.To<string>;
117
- }>;
118
- normalize: arktype0.Submodule<arktype_internal_keywords_string_ts0.normalize.$ & {
119
- " arkInferred": (In: string) => arktype_internal_attributes_ts0.To<string>;
120
- }>;
121
- root: string;
122
- alpha: string;
123
- alphanumeric: string;
124
- hex: string;
125
- base64: arktype0.Submodule<{
126
- root: string;
127
- url: string;
128
- } & {
129
- " arkInferred": string;
130
- }>;
131
- capitalize: arktype0.Submodule<arktype_internal_keywords_string_ts0.capitalize.$ & {
132
- " arkInferred": (In: string) => arktype_internal_attributes_ts0.To<string>;
133
- }>;
134
- creditCard: string;
135
- date: arktype0.Submodule<arktype_internal_keywords_string_ts0.stringDate.$ & {
136
- " arkInferred": string;
137
- }>;
138
- digits: string;
139
- email: string;
140
- integer: arktype0.Submodule<arktype_internal_keywords_string_ts0.stringInteger.$ & {
141
- " arkInferred": string;
142
- }>;
143
- ip: arktype0.Submodule<arktype_internal_keywords_string_ts0.ip.$ & {
144
- " arkInferred": string;
145
- }>;
146
- json: arktype0.Submodule<arktype_internal_keywords_string_ts0.stringJson.$ & {
147
- " arkInferred": string;
148
- }>;
149
- lower: arktype0.Submodule<arktype_internal_keywords_string_ts0.lower.$ & {
150
- " arkInferred": (In: string) => arktype_internal_attributes_ts0.To<string>;
151
- }>;
152
- numeric: arktype0.Submodule<arktype_internal_keywords_string_ts0.stringNumeric.$ & {
153
- " arkInferred": string;
154
- }>;
155
- regex: string;
156
- semver: string;
157
- upper: arktype0.Submodule<{
158
- root: (In: string) => arktype_internal_attributes_ts0.To<string>;
159
- preformatted: string;
160
- } & {
161
- " arkInferred": (In: string) => arktype_internal_attributes_ts0.To<string>;
162
- }>;
163
- url: arktype0.Submodule<arktype_internal_keywords_string_ts0.url.$ & {
164
- " arkInferred": string;
165
- }>;
166
- uuid: arktype0.Submodule<arktype_internal_keywords_string_ts0.uuid.$ & {
167
- " arkInferred": string;
168
- }>;
169
- " arkInferred": string;
170
- host: string;
171
- }>;
172
- number: arktype0.Submodule<{
173
- NaN: number;
174
- Infinity: number;
175
- root: number;
176
- integer: number;
177
- " arkInferred": number;
178
- epoch: number;
179
- safe: number;
180
- NegativeInfinity: number;
181
- port: number;
182
- }>;
183
- }>;
184
- type $ = (typeof $)["t"];
185
- //#endregion
186
- //#endregion
187
188
  //#region ../internal/types/dist/schema.d.ts
188
189
  type SchemaShape = Record<string, unknown>;
189
190
  /**
@@ -200,92 +201,6 @@ type SchemaShape = Record<string, unknown>;
200
201
  */
201
202
  type CompiledEnvSchema = Type<SchemaShape, $>;
202
203
  //#endregion
203
- //#region src/create-env.d.ts
204
- /**
205
- * Declarative environment schema definition accepted by ArkEnv.
206
- *
207
- * Represents a declarative schema object mapping environment
208
- * variable names to schema definitions (e.g. ArkType DSL strings
209
- * or Standard Schema validators).
210
- *
211
- * This type is used to validate that a schema object is compatible with
212
- * ArkEnv’s validator scope before being compiled or parsed.
213
- *
214
- * Most users will provide schemas in this form.
215
- *
216
- * @template def - The schema shape object
217
- */
218
- type EnvSchema<def$1> = type.validate<def$1, $>;
219
- type RuntimeEnvironment = Dict<string>;
220
- /**
221
- * Configuration options for `createEnv`
222
- */
223
- type ArkEnvConfig = {
224
- /**
225
- * The environment variables to parse. Defaults to `process.env`
226
- */
227
- env?: RuntimeEnvironment;
228
- /**
229
- * Whether to coerce environment variables to their defined types. Defaults to `true`
230
- */
231
- coerce?: boolean;
232
- /**
233
- * Control how ArkEnv handles environment variables that are not defined in your schema.
234
- *
235
- * Defaults to `'delete'` to ensure your output object only contains
236
- * keys you've explicitly declared. This differs from ArkType's standard behavior, which
237
- * mirrors TypeScript by defaulting to `'ignore'`.
238
- *
239
- * - `delete` (ArkEnv default): Undeclared keys are allowed on input but stripped from the output.
240
- * - `ignore` (ArkType default): Undeclared keys are allowed and preserved in the output.
241
- * - `reject`: Undeclared keys will cause validation to fail.
242
- *
243
- * @default "delete"
244
- * @see https://arktype.io/docs/configuration#onundeclaredkey
245
- */
246
- onUndeclaredKey?: "ignore" | "delete" | "reject";
247
- /**
248
- * The format to use for array parsing when coercion is enabled.
249
- *
250
- * - `comma` (default): Strings are split by comma and trimmed.
251
- * - `json`: Strings are parsed as JSON.
252
- *
253
- * @default "comma"
254
- */
255
- arrayFormat?: "comma" | "json";
256
- /**
257
- * Choose the validator engine to use.
258
- *
259
- * - `arktype` (default): Uses ArkType for all validation and coercion.
260
- * - `standard`: Uses Standard Schema 1.0 directly for validation. Coercion is not supported in this mode.
261
- *
262
- * @default "arktype"
263
- */
264
- validator?: "arktype" | "standard";
265
- };
266
- /**
267
- * TODO: `SchemaShape` is basically `Record<string, unknown>`.
268
- * If possible, find a better type than "const T extends Record<string, unknown>",
269
- * and be as close as possible to the type accepted by ArkType's `type`.
270
- */
271
- /**
272
- * Utility to parse environment variables using ArkType or Standard Schema
273
- * @param def - The schema definition
274
- * @param config - The evaluation configuration
275
- * @returns The parsed environment variables
276
- * @throws An {@link ArkEnvError | error} if the environment variables are invalid.
277
- */
278
- declare function createEnv<const T extends SchemaShape>(def: EnvSchema<T>, config?: Omit<ArkEnvConfig, "validator"> & {
279
- validator?: "arktype";
280
- }): distill.Out<type.infer<T, $>>;
281
- declare function createEnv<T extends CompiledEnvSchema>(def: T, config?: Omit<ArkEnvConfig, "validator"> & {
282
- validator?: "arktype";
283
- }): InferType<T>;
284
- declare function createEnv<const T extends Record<string, StandardSchemaV1>>(def: T, config: ArkEnvConfig & {
285
- validator: "standard";
286
- }): { [K in keyof T]: StandardSchemaV1.InferOutput<T[K]> };
287
- declare function createEnv<const T extends SchemaShape>(def: EnvSchema<T> | CompiledEnvSchema, config?: ArkEnvConfig): distill.Out<type.infer<T, $>> | InferType<typeof def>;
288
- //#endregion
289
- export { SchemaShape as i, EnvSchema as n, createEnv as r, ArkEnvConfig as t };
204
+ export { Dict as a, StandardSchemaV1 as i, SchemaShape as n, $ as o, InferType as r, CompiledEnvSchema as t };
290
205
 
291
- //# sourceMappingURL=create-env-CbYz5hip.d.mts.map
206
+ //# sourceMappingURL=index-Cic20SzT.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-Cic20SzT.d.mts","names":["arktype0","arktype_internal_keywords_string_ts0","arktype_internal_attributes_ts0","$","trim","To","Submodule","normalize","capitalize","stringDate","stringInteger","ip","stringJson","lower","stringNumeric","url","uuid","Scope","Dict","T","Record","StandardTypedV1","Input","Output","Props","Schema","Types","NonNullable","StandardSchemaV1","Options","Result","Promise","SuccessResult","FailureResult","Record","Issue","ReadonlyArray","PropertyKey","PathSegment","InferInput","InferOutput","StandardJSONSchemaV1","Converter","Target","type","StandardSchemaV1","InferType","T","Record","errors","Any","$","Type","SchemaShape","Record","CompiledEnvSchema"],"sources":["../../internal/scope/dist/index.d.ts","../../internal/types/dist/helpers.d.ts","../../internal/types/dist/standard-schema.d.ts","../../internal/types/dist/infer-type.d.ts","../../internal/types/dist/schema.d.ts"],"sourcesContent":["import * as arktype0 from \"arktype\";\nimport * as arktype_internal_keywords_string_ts0 from \"arktype/internal/keywords/string.ts\";\nimport * as arktype_internal_attributes_ts0 from \"arktype/internal/attributes.ts\";\n\n//#region src/root.d.ts\n/**\n * The root scope for the ArkEnv library,\n * containing extensions to the ArkType scopes with ArkEnv-specific types\n * like `string.host` and `number.port`.\n */\ndeclare const $: arktype0.Scope<{\n string: arktype0.Submodule<{\n trim: arktype0.Submodule<arktype_internal_keywords_string_ts0.trim.$ & {\n \" arkInferred\": (In: string) => arktype_internal_attributes_ts0.To<string>;\n }>;\n normalize: arktype0.Submodule<arktype_internal_keywords_string_ts0.normalize.$ & {\n \" arkInferred\": (In: string) => arktype_internal_attributes_ts0.To<string>;\n }>;\n root: string;\n alpha: string;\n alphanumeric: string;\n hex: string;\n base64: arktype0.Submodule<{\n root: string;\n url: string;\n } & {\n \" arkInferred\": string;\n }>;\n capitalize: arktype0.Submodule<arktype_internal_keywords_string_ts0.capitalize.$ & {\n \" arkInferred\": (In: string) => arktype_internal_attributes_ts0.To<string>;\n }>;\n creditCard: string;\n date: arktype0.Submodule<arktype_internal_keywords_string_ts0.stringDate.$ & {\n \" arkInferred\": string;\n }>;\n digits: string;\n email: string;\n integer: arktype0.Submodule<arktype_internal_keywords_string_ts0.stringInteger.$ & {\n \" arkInferred\": string;\n }>;\n ip: arktype0.Submodule<arktype_internal_keywords_string_ts0.ip.$ & {\n \" arkInferred\": string;\n }>;\n json: arktype0.Submodule<arktype_internal_keywords_string_ts0.stringJson.$ & {\n \" arkInferred\": string;\n }>;\n lower: arktype0.Submodule<arktype_internal_keywords_string_ts0.lower.$ & {\n \" arkInferred\": (In: string) => arktype_internal_attributes_ts0.To<string>;\n }>;\n numeric: arktype0.Submodule<arktype_internal_keywords_string_ts0.stringNumeric.$ & {\n \" arkInferred\": string;\n }>;\n regex: string;\n semver: string;\n upper: arktype0.Submodule<{\n root: (In: string) => arktype_internal_attributes_ts0.To<string>;\n preformatted: string;\n } & {\n \" arkInferred\": (In: string) => arktype_internal_attributes_ts0.To<string>;\n }>;\n url: arktype0.Submodule<arktype_internal_keywords_string_ts0.url.$ & {\n \" arkInferred\": string;\n }>;\n uuid: arktype0.Submodule<arktype_internal_keywords_string_ts0.uuid.$ & {\n \" arkInferred\": string;\n }>;\n \" arkInferred\": string;\n host: string;\n }>;\n number: arktype0.Submodule<{\n NaN: number;\n Infinity: number;\n root: number;\n integer: number;\n \" arkInferred\": number;\n epoch: number;\n safe: number;\n NegativeInfinity: number;\n port: number;\n }>;\n}>;\ntype $ = (typeof $)[\"t\"];\n//#endregion\nexport { $ };\n//# sourceMappingURL=index.d.ts.map","export type Dict<T> = Record<string, T | undefined>;\n//# sourceMappingURL=helpers.d.ts.map","/**\n * @see https://github.com/standard-schema/standard-schema/tree/3130ce43fdd848d9ab49dbb0458d04f18459961c/packages/spec\n *\n * Copied from standard-schema (MIT License)\n * Copyright (c) 2024 Colin McDannell\n */\n/** The Standard Typed interface. This is a base type extended by other specs. */\nexport interface StandardTypedV1<Input = unknown, Output = Input> {\n /** The Standard properties. */\n readonly \"~standard\": StandardTypedV1.Props<Input, Output>;\n}\nexport declare namespace StandardTypedV1 {\n /** The Standard Typed properties interface. */\n interface Props<Input = unknown, Output = Input> {\n /** The version number of the standard. */\n readonly version: 1;\n /** The vendor name of the schema library. */\n readonly vendor: string;\n /** Inferred types associated with the schema. */\n readonly types?: Types<Input, Output> | undefined;\n }\n /** The Standard Typed types interface. */\n interface Types<Input = unknown, Output = Input> {\n /** The input type of the schema. */\n readonly input: Input;\n /** The output type of the schema. */\n readonly output: Output;\n }\n /** Infers the input type of a Standard Typed. */\n type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema[\"~standard\"][\"types\"]>[\"input\"];\n /** Infers the output type of a Standard Typed. */\n type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema[\"~standard\"][\"types\"]>[\"output\"];\n}\n/** The Standard Schema interface. */\nexport interface StandardSchemaV1<Input = unknown, Output = Input> {\n /** The Standard Schema properties. */\n readonly \"~standard\": StandardSchemaV1.Props<Input, Output>;\n}\nexport declare namespace StandardSchemaV1 {\n /** The Standard Schema properties interface. */\n interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {\n /** Validates unknown input values. */\n readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;\n }\n /** The result interface of the validate function. */\n type Result<Output> = SuccessResult<Output> | FailureResult;\n /** The result interface if validation succeeds. */\n interface SuccessResult<Output> {\n /** The typed output value. */\n readonly value: Output;\n /** A falsy value for `issues` indicates success. */\n readonly issues?: undefined;\n }\n interface Options {\n /** Explicit support for additional vendor-specific parameters, if needed. */\n readonly libraryOptions?: Record<string, unknown> | undefined;\n }\n /** The result interface if validation fails. */\n interface FailureResult {\n /** The issues of failed validation. */\n readonly issues: ReadonlyArray<Issue>;\n }\n /** The issue interface of the failure output. */\n interface Issue {\n /** The error message of the issue. */\n readonly message: string;\n /** The path of the issue, if any. */\n readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;\n }\n /** The path segment interface of the issue. */\n interface PathSegment {\n /** The key representing a path segment. */\n readonly key: PropertyKey;\n }\n /** The Standard types interface. */\n interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {\n }\n /** Infers the input type of a Standard. */\n type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;\n /** Infers the output type of a Standard. */\n type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;\n}\n/** The Standard JSON Schema interface. */\nexport interface StandardJSONSchemaV1<Input = unknown, Output = Input> {\n /** The Standard JSON Schema properties. */\n readonly \"~standard\": StandardJSONSchemaV1.Props<Input, Output>;\n}\nexport declare namespace StandardJSONSchemaV1 {\n /** The Standard JSON Schema properties interface. */\n interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {\n /** Methods for generating the input/output JSON Schema. */\n readonly jsonSchema: StandardJSONSchemaV1.Converter;\n }\n /** The Standard JSON Schema converter interface. */\n interface Converter {\n /** Converts the input type to JSON Schema. May throw if conversion is not supported. */\n readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;\n /** Converts the output type to JSON Schema. May throw if conversion is not supported. */\n readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;\n }\n /**\n * The target version of the generated JSON Schema.\n *\n * It is *strongly recommended* that implementers support `\"draft-2020-12\"` and `\"draft-07\"`, as they are both in wide use. All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.\n *\n * The `\"openapi-3.0\"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `\"draft-04\"`.\n */\n type Target = \"draft-2020-12\" | \"draft-07\" | \"openapi-3.0\" | ({} & string);\n /** The options for the input/output methods. */\n interface Options {\n /** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */\n readonly target: Target;\n /** Explicit support for additional vendor-specific parameters, if needed. */\n readonly libraryOptions?: Record<string, unknown> | undefined;\n }\n /** The Standard types interface. */\n interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {\n }\n /** Infers the input type of a Standard. */\n type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;\n /** Infers the output type of a Standard. */\n type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;\n}\n//# sourceMappingURL=standard-schema.d.ts.map","import type { type } from \"arktype\";\nimport type { StandardSchemaV1 } from \"./standard-schema\";\n/**\n * Extract the inferred type from a schema definition.\n * Supports both ArkType type definitions and Standard Schema 1.0 validators.\n *\n * For Standard Schema validators (e.g., Zod, Valibot), extracts the output type.\n * For ArkType definitions, checks the call signature or type properties.\n *\n * @template T - The schema definition to infer from\n */\nexport type InferType<T> = T extends StandardSchemaV1<infer _Input, infer Output> ? Output : T extends (value: Record<string, string | undefined>) => infer R ? R extends type.errors ? never : R : T extends {\n t: infer U;\n} ? U : T extends type.Any<infer U, infer _Scope> ? U : never;\n//# sourceMappingURL=infer-type.d.ts.map","import type { $ } from \"@repo/scope\";\nimport type { Type } from \"arktype\";\nexport type SchemaShape = Record<string, unknown>;\n/**\n * @internal\n *\n * Compiled ArkType schema accepted by ArkEnv.\n * Produced by `arktype.type(...)` or `scope(...)`.\n *\n * Represents an already-constructed ArkType `Type` instance that\n * defines the full environment schema.\n *\n * This form bypasses schema validation and is intended for advanced\n * or programmatic use cases where schemas are constructed dynamically.\n */\nexport type CompiledEnvSchema = Type<SchemaShape, $>;\n//# sourceMappingURL=schema.d.ts.map"],"mappings":";;;;;;;;;AAEkF;;;;cAQpEG,CAKoBF,EALjBD,QAAAA,CAASiB,KAKQhB,CAAAA;EACIC,MAAAA,EAL5BF,QAAAA,CAASM,SAKmBJ,CAAAA;IADvBF,IAAAA,EAHLA,QAAAA,CAASM,SAGKA,CAHKL,oCAAAA,CAAqCG,IAAAA,CAAKD,CAG/CG,GAAAA;MAOZN,cAASM,EAAAA,CAAAA,EAAAA,EAAAA,MAAAA,EAAAA,GATiBJ,+BAAAA,CAAgCG,EASjDC,CAAAA,MAAAA,CAAAA;IAMcL,CAAAA,CAAAA;IACGC,SAAAA,EAdvBF,QAAAA,CAASM,SAc8CD,CAdpCJ,oCAAAA,CAAqCM,SAAAA,CAAUJ,CAcXE,GAAAA;MADtDL,cAASM,EAAAA,CAAAA,EAAAA,EAAAA,MAAAA,EAAAA,GAZaJ,+BAAAA,CAAgCG,EAY7CC,CAAAA,MAAAA,CAAAA;IAIIL,CAAAA,CAAAA;IAAnBD,IAAAA,EAASM,MAAAA;IAKaL,KAAAA,EAAAA,MAAAA;IAAnBD,YAASM,EAAAA,MAAAA;IAGKL,GAAAA,EAA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