Skip to content

feat: add delete: false support to DnsRecords resource#1360

Merged
Mkassabov merged 3 commits intoalchemy-run:mainfrom
gingerhendrix:feat/dns-records-delete-flag
Mar 13, 2026
Merged

feat: add delete: false support to DnsRecords resource#1360
Mkassabov merged 3 commits intoalchemy-run:mainfrom
gingerhendrix:feat/dns-records-delete-flag

Conversation

@gingerhendrix
Copy link
Contributor

Adds a delete property to DnsRecordsProps that prevents DNS records from being deleted when the resource is destroyed or when records are removed from the records array during updates. This follows the same pattern used by Zone, D1Database, Bucket, and 15+ other resources.

Adds a `delete` property to DnsRecordsProps that prevents DNS records
from being deleted when the resource is destroyed or when records are
removed from the records array during updates. This follows the same
pattern used by Zone, D1Database, Bucket, and 15+ other resources.
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 13, 2026

Open in StackBlitz

npm i https://pkg.pr.new/alchemy@1360

commit: 9ed7d07

Copy link
Collaborator

@Mkassabov Mkassabov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests arent passing

}
});

test("delete: false preserves records on destroy", async (scope) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

: is not allowed in test names, please remove the :

@Mkassabov Mkassabov merged commit 822a883 into alchemy-run:main Mar 13, 2026
5 checks passed
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.

3 participants