guard-pinned-zod-import: Guard pinned Zod import map #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/guard-pinned-zod-import"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Assigned idea
Add a small deterministic check that ensures import_map.json continues to map "zod" to the pinned "npm:zod@3.25.64" specifier currently used by the project.
Approach: Create a repository script or test that reads import_map.json as JSON, verifies the top-level imports object exists, and asserts imports.zod is exactly "npm:zod@3.25.64". Keep the check focused on this dependency so future dependency changes must be intentional.
Verification: Run the new validation command, for example
deno testor the added script command, and also rundeno fmt --check import_map.jsonto confirm the import map remains valid and formatted.Risk: Low risk; the change only adds validation around an existing import-map entry. The main risk is choosing a command style that does not match the repository's existing tooling, so the implementation should reuse any existing Deno/test convention if present.
Agent context
Task slug: guard-pinned-zod-import
Branch: task/guard-pinned-zod-import
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.