@intentius/chant-lexicon-azure 0.124.40 → 0.124.42
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/components/arm-deploy.d.ts +2 -1
- package/dist/components/arm-deploy.d.ts.map +1 -1
- package/dist/components/arm-deploy.js +3 -1
- package/dist/integrity.json +2 -2
- package/dist/manifest.json +1 -1
- package/package.json +2 -2
- package/src/components/arm-deploy.test.ts +4 -0
- package/src/components/arm-deploy.ts +3 -1
|
@@ -70,7 +70,8 @@ export declare class ArmDeployPlanMovedError extends Error {
|
|
|
70
70
|
/**
|
|
71
71
|
* The `arm-deploy` capability over an injectable HTTP transport (the
|
|
72
72
|
* `AzHttp` seam `azApply` and the read client share). Tests pass a fake;
|
|
73
|
-
* the default is `fetch`.
|
|
73
|
+
* the default is `fetch`. There is no rollback: like `gcp-apply`, it mutates
|
|
74
|
+
* with no undo, so COMP003 has a component acknowledge the gap.
|
|
74
75
|
*/
|
|
75
76
|
export declare function createArmDeployCapability(options?: {
|
|
76
77
|
http?: AzHttp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arm-deploy.d.ts","sourceRoot":"","sources":["../../src/components/arm-deploy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAiD,MAAM,wCAAwC,CAAC;AAQxH,OAAO,EAUL,KAAK,MAAM,EACX,KAAK,aAAa,EACnB,MAAM,2BAA2B,CAAC;AAOnC,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,mFAAmF;IACnF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6FAA6F;IAC7F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB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8 @@ async function planArmDeploy(http, ctx, input) {
|
|
|
354
354
|
/**
|
|
355
355
|
* The `arm-deploy` capability over an injectable HTTP transport (the
|
|
356
356
|
* `AzHttp` seam `azApply` and the read client share). Tests pass a fake;
|
|
357
|
-
* the default is `fetch`.
|
|
357
|
+
* the default is `fetch`. There is no rollback: like `gcp-apply`, it mutates
|
|
358
|
+
* with no undo, so COMP003 has a component acknowledge the gap.
|
|
358
359
|
*/
|
|
359
360
|
export function createArmDeployCapability(options = {}) {
|
|
360
361
|
const http = options.http ?? (async (method, url, body, signal) => {
|
|
@@ -368,6 +369,7 @@ export function createArmDeployCapability(options = {}) {
|
|
|
368
369
|
});
|
|
369
370
|
return {
|
|
370
371
|
kind: "arm-deploy",
|
|
372
|
+
rollbackPolicy: "needs-opt-out",
|
|
371
373
|
plan(ctx, input) {
|
|
372
374
|
return planArmDeploy(http, ctx, input);
|
|
373
375
|
},
|
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "722f4782d88d5dbcd708b62a85c061aa570a2bc42f0342f3787db9783dcc12d6",
|
|
5
5
|
"meta.json": "d2521221ed616d882ded4296f0071685bd74e4b645d55dabc9685733c37dc419",
|
|
6
6
|
"types/index.d.ts": "29631032bda9533849178968290e65d72250eab0b8bab424f2d9ef9b4e8546a4",
|
|
7
7
|
"rules/hardcoded-location.ts": "0b895449c8c94066e81721c46be24249231029fe13b471477456df5c4e45b8bf",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"skills/chant-azure-patterns.md": "2d8cb8bbeda73b695856cec4ddaf5b3a0efce76e4ee6e3cf14b90ca69dee5757",
|
|
38
38
|
"skills/chant-azure-aks.md": "2d4e0098c1a22b54ffadd410564d9df0f3a04cb4eb7c6261f20ae33106e7aca8"
|
|
39
39
|
},
|
|
40
|
-
"composite": "
|
|
40
|
+
"composite": "a327d1484a2b5ff1ec612f0a623b1a7c3f20bd675b8e75f7be084c8323fe7efc"
|
|
41
41
|
}
|
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-azure",
|
|
3
|
-
"version": "0.124.
|
|
3
|
+
"version": "0.124.42",
|
|
4
4
|
"description": "Azure lexicon for chant — declarative IaC in TypeScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -79,6 +79,6 @@
|
|
|
79
79
|
"typescript": "^5.9.3"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@intentius/chant": "^0.124.
|
|
82
|
+
"@intentius/chant": "^0.124.42"
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -78,6 +78,10 @@ const site = {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
describe("arm-deploy (#4273)", () => {
|
|
81
|
+
test("mutates with no undo, so COMP003 needs the component to opt out of rollback", () => {
|
|
82
|
+
expect(createArmDeployCapability().rollbackPolicy).toBe("needs-opt-out");
|
|
83
|
+
});
|
|
84
|
+
|
|
81
85
|
let dir: string;
|
|
82
86
|
let template: string;
|
|
83
87
|
const ctx: DeployContext = { env: "local", component: "app" };
|
|
@@ -443,7 +443,8 @@ async function planArmDeploy(http: AzHttp, ctx: DeployContext, input: ArmDeployI
|
|
|
443
443
|
/**
|
|
444
444
|
* The `arm-deploy` capability over an injectable HTTP transport (the
|
|
445
445
|
* `AzHttp` seam `azApply` and the read client share). Tests pass a fake;
|
|
446
|
-
* the default is `fetch`.
|
|
446
|
+
* the default is `fetch`. There is no rollback: like `gcp-apply`, it mutates
|
|
447
|
+
* with no undo, so COMP003 has a component acknowledge the gap.
|
|
447
448
|
*/
|
|
448
449
|
export function createArmDeployCapability(options: { http?: AzHttp } = {}): Capability<ArmDeployInput, ArmDeployOutput> {
|
|
449
450
|
const http: AzHttp = options.http ?? (async (method, url, body, signal) => {
|
|
@@ -457,6 +458,7 @@ export function createArmDeployCapability(options: { http?: AzHttp } = {}): Capa
|
|
|
457
458
|
});
|
|
458
459
|
return {
|
|
459
460
|
kind: "arm-deploy",
|
|
461
|
+
rollbackPolicy: "needs-opt-out",
|
|
460
462
|
plan(ctx, input) {
|
|
461
463
|
return planArmDeploy(http, ctx, input);
|
|
462
464
|
},
|