Skip to content

feat(micro-utilities): add is-redirect to replacements - #1224

Merged
43081j merged 2 commits into
e18e:mainfrom
kelvindesman:feat/micro-utilities-is-redirect
Nov 10, 2026
Merged

43081j merged 2 commits into
e18e:mainfrom
kelvindesman:feat/micro-utilities-is-redirect

Conversation

@kelvindesman

Copy link
Copy Markdown
Contributor

🔗 Linked issue

resolves #1198

📚 Description

Adds a snippet::is-redirect micro-utility and maps is-redirect to it, using the same status codes as the package (300, 301, 302, 303, 305, 307, 308).

I checked the snippet against is-redirect for every status code from 100 to 599 and they match. The only difference is that the package throws a TypeError for non-number input, and the snippet returns false.

I used Claude Code to help with this, and I checked the change and the notes above myself. pnpm lint and scripts/validate-pr.ts pass locally.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread manifests/micro-utilities.json Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@43081j
43081j merged commit 1b55b00 into e18e:main Nov 10, 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.

[Replacement]: is-redirect

2 participants