@fjall/util 3.1.0 → 3.3.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.
package/dist/.minified CHANGED
@@ -1 +1 @@
1
- 87 files minified at 2026-07-18T06:58:18.456Z
1
+ 87 files minified at 2026-07-18T12:18:40.218Z
@@ -18,7 +18,7 @@
18
18
  */
19
19
  import { z } from "zod";
20
20
  /** Bump when the params wire shape changes incompatibly; `z.literal`-pinned below. */
21
- export declare const DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION: 1;
21
+ export declare const DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION: 2;
22
22
  /**
23
23
  * The params file the worker writes into the workspace and the entrypoint reads.
24
24
  * A single const both sides share so the filename cannot drift.
@@ -35,7 +35,9 @@ export declare const DevSubstrateSynthPropsSchema: z.ZodObject<{
35
35
  zone: "zone";
36
36
  }>>;
37
37
  domain: z.ZodOptional<z.ZodObject<{
38
- appDomain: z.ZodString;
38
+ devDomain: z.ZodString;
39
+ hostedZoneId: z.ZodOptional<z.ZodString>;
40
+ parentDomain: z.ZodOptional<z.ZodString>;
39
41
  parentDelegationRoleArn: z.ZodOptional<z.ZodString>;
40
42
  }, z.core.$strict>>;
41
43
  }, z.core.$strict>;
@@ -50,7 +52,7 @@ export type DevSubstrateSynthProps = z.infer<typeof DevSubstrateSynthPropsSchema
50
52
  * mis-constructed params object fails at the parse boundary, not at synth.
51
53
  */
52
54
  export declare const DevSubstrateParamsSchema: z.ZodObject<{
53
- version: z.ZodLiteral<1>;
55
+ version: z.ZodLiteral<2>;
54
56
  appName: z.ZodString;
55
57
  appId: z.ZodString;
56
58
  appKebab: z.ZodString;
@@ -61,7 +63,9 @@ export declare const DevSubstrateParamsSchema: z.ZodObject<{
61
63
  zone: "zone";
62
64
  }>>;
63
65
  domain: z.ZodOptional<z.ZodObject<{
64
- appDomain: z.ZodString;
66
+ devDomain: z.ZodString;
67
+ hostedZoneId: z.ZodOptional<z.ZodString>;
68
+ parentDomain: z.ZodOptional<z.ZodString>;
65
69
  parentDelegationRoleArn: z.ZodOptional<z.ZodString>;
66
70
  }, z.core.$strict>>;
67
71
  }, z.core.$strict>;
@@ -1 +1 @@
1
- import{z as t}from"zod";const n=1,i="dev-substrate-params.json",o=t.object({appDomain:t.string().min(1),parentDelegationRoleArn:t.string().min(1).optional()}).strict(),a={appId:t.string().min(1),appKebab:t.string().min(1),engineVersion:t.string().min(1).optional(),adoptSlotEcr:t.boolean().optional(),phase:t.enum(["zone","full"]).optional(),domain:o.optional()},s=t.object(a).strict(),r=t.object({...a,version:t.literal(n),appName:t.string().min(1)}).strict().refine(e=>e.appName===`fjall-dev-${e.appKebab}`,{message:"appName must equal `fjall-dev-${appKebab}` (single-source identity)",path:["appName"]});export{i as DEV_SUBSTRATE_PARAMS_FILENAME,n as DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION,r as DevSubstrateParamsSchema,s as DevSubstrateSynthPropsSchema};
1
+ import{z as e}from"zod";const o=2,r="dev-substrate-params.json",i=e.object({devDomain:e.string().min(1),hostedZoneId:e.string().min(1).optional(),parentDomain:e.string().min(1).optional(),parentDelegationRoleArn:e.string().min(1).optional()}).strict().superRefine((t,n)=>{if(t.hostedZoneId!==void 0){t.parentDomain!==void 0&&n.addIssue({code:"custom",path:["parentDomain"],message:"hostedZoneId (adopt mode) is mutually exclusive with parentDomain \u2014 the adopted zone was already delegated; omit parentDomain"}),t.parentDelegationRoleArn!==void 0&&n.addIssue({code:"custom",path:["parentDelegationRoleArn"],message:"hostedZoneId (adopt mode) is mutually exclusive with parentDelegationRoleArn \u2014 the adopted zone was already delegated; omit parentDelegationRoleArn"});return}t.parentDelegationRoleArn!==void 0&&t.parentDomain===void 0&&n.addIssue({code:"custom",path:["parentDomain"],message:"parentDelegationRoleArn requires parentDomain \u2014 set parentDomain to the parent zone the DelegationRole belongs to"}),t.parentDomain!==void 0&&!t.devDomain.endsWith(`.${t.parentDomain}`)&&n.addIssue({code:"custom",path:["parentDomain"],message:"parentDomain must be a proper DNS suffix of devDomain \u2014 devDomain must end with `.<parentDomain>`"})}),a={appId:e.string().min(1),appKebab:e.string().min(1),engineVersion:e.string().min(1).optional(),adoptSlotEcr:e.boolean().optional(),phase:e.enum(["zone","full"]).optional(),domain:i.optional()},p=e.object(a).strict(),d=e.object({...a,version:e.literal(o),appName:e.string().min(1)}).strict().refine(t=>t.appName===`fjall-dev-${t.appKebab}`,{message:"appName must equal `fjall-dev-${appKebab}` (single-source identity)",path:["appName"]});export{r as DEV_SUBSTRATE_PARAMS_FILENAME,o as DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION,d as DevSubstrateParamsSchema,p as DevSubstrateSynthPropsSchema};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fjall/util",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "description": "Common utility methods",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -134,5 +134,5 @@
134
134
  "engines": {
135
135
  "node": ">=22.0.0"
136
136
  },
137
- "gitHead": "0f27cc5e260fdf218d33de546ba8610be89e1d81"
137
+ "gitHead": "cc1e0f520f4b6b5312e16df3751d60ea746dfb7d"
138
138
  }