wirejs-resources 0.1.189 → 0.1.190

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 (2) hide show
  1. package/dist/config.d.ts +18 -9
  2. package/package.json +1 -1
package/dist/config.d.ts CHANGED
@@ -62,16 +62,12 @@ export type DeploymentConfig = {
62
62
  * - `none`: Function URL does not require SigV4 (useful for CI smoke tests)
63
63
  */
64
64
  functionUrlAuthType?: 'aws-iam' | 'none';
65
- /**
66
- * Optional list of custom domain names to use for hosting.
67
- * Supported by `wirejs-deploy-cdk`. When provided, the deployment
68
- * will configure CloudFront with these domain names and output DNS
69
- * configuration instructions.
70
- */
71
- domainNames?: string[];
72
65
  /**
73
66
  * Optional mapping of branch name to custom domain(s).
74
67
  *
68
+ * This is the only custom-domain entrypoint. Global domain fallbacks are
69
+ * intentionally not supported.
70
+ *
75
71
  * Example:
76
72
  * {
77
73
  * main: 'app.example.com',
@@ -115,11 +111,24 @@ export type DeploymentConfig = {
115
111
  */
116
112
  redirects?: RedirectRule[];
117
113
  /**
118
- * Optional arbitrary Route53 DNS records.
114
+ * Optional mapping of branch name to arbitrary Route53 DNS records.
115
+ *
116
+ * This is the only DNS-record entrypoint. Global dns-record fallbacks are
117
+ * intentionally not supported.
119
118
  *
120
119
  * Use this when migrating existing DNS into CDK-managed infrastructure,
121
120
  * including TXT/MX/CAA/CNAME and additional A/AAAA records.
122
121
  *
122
+ * Example:
123
+ * {
124
+ * main: [
125
+ * { name: '@', zoneDomain: 'example.com', type: 'MX', values: ['1 aspmx.l.google.com.'] },
126
+ * ],
127
+ * '*': [
128
+ * { name: '_verify.{branch}', zoneDomain: 'example.com', type: 'TXT', values: ['"ok-{branch}"'] },
129
+ * ],
130
+ * }
131
+ *
123
132
  * Notes:
124
133
  * - Record values are passed directly to Route53 resource records.
125
134
  * - Hosted zones are looked up automatically for FQDN names.
@@ -127,5 +136,5 @@ export type DeploymentConfig = {
127
136
  * provide `zoneDomain`.
128
137
  * - Supports `{branch}` token substitution in `name`, `zoneDomain`, and `values`.
129
138
  */
130
- dnsRecords?: DeploymentDnsRecord[];
139
+ dnsRecordsByBranch?: Record<string, DeploymentDnsRecord | DeploymentDnsRecord[]>;
131
140
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-resources",
3
- "version": "0.1.189",
3
+ "version": "0.1.190",
4
4
  "description": "Basic services and server-side resources for wirejs apps",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",