Skip to content

Bump bicep-node to ^0.0.12 to remove deprecated transitive deps (#298)#302

Open
snehabandla wants to merge 2 commits into
mainfrom
snehab/fix-issue-298-deprecation-warnings
Open

Bump bicep-node to ^0.0.12 to remove deprecated transitive deps (#298)#302
snehabandla wants to merge 2 commits into
mainfrom
snehab/fix-issue-298-deprecation-warnings

Conversation

@snehabandla

Copy link
Copy Markdown
Contributor

Fixes #298.

bicep-node@0.0.10 dropped node-fetch in favor of Node's native fetch (Node 18+), which transitively removes whatwg-url@5 and tr46@0.0.3 — the source of the punycode (DEP0040) and url.parse() (DEP0169) deprecation warnings.

All consumed APIs (Bicep.initialize, getDownloadUrl, install, compile, compileParams, version, dispose) and types (Compile*Request/Response, CompileResponseDiagnostic) are unchanged between 0.0.8 and 0.0.12 — drop-in compatible.

Fixes #298.

bicep-node@0.0.10 dropped node-fetch in favor of Node's native fetch (Node 18+), which transitively removes whatwg-url@5 and tr46@0.0.3 — the source of the punycode (DEP0040) and url.parse() (DEP0169) deprecation warnings.

All consumed APIs (Bicep.initialize, getDownloadUrl, install, compile, compileParams, version, dispose) and types (Compile*Request/Response, CompileResponseDiagnostic) are unchanged between 0.0.8 and 0.0.12 — drop-in compatible.
The validation-error fixture used 'foo' as a storage account name,
which is syntactically valid (3 lowercase alphanumeric chars). The
test relied on Azure rejecting it via global name uniqueness.

stacks-validate does not perform global name uniqueness checks at
validate-time (unlike deployments-validate), so it returned success
and the assertion expect(failure).toContain("Validation failed")
fired against undefined.

Switch to 'INVALIDNAME' (uppercase) which violates the lowercase-only
constraint and is reliably rejected by the ARM resource provider with
InvalidTemplateDeployment for both APIs.
@snehabandla
snehabandla enabled auto-merge (squash) May 26, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The punycode module is deprecated

1 participant