Skip to content

fix/improve localhost detection#2461

Merged
forgetso merged 4 commits intomainfrom
fix/improve-localhost-detection
Mar 23, 2026
Merged

fix/improve localhost detection#2461
forgetso merged 4 commits intomainfrom
fix/improve-localhost-detection

Conversation

@forgetso
Copy link
Copy Markdown
Member

  • Improve localhost detection
  • lint-fix
  • docs(changeset): Improve localhost detection

Copilot AI review requested due to automatic review settings March 23, 2026 20:49
@forgetso forgetso enabled auto-merge (squash) March 23, 2026 20:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates @prosopo/util URL utilities to better recognize localhost-like domains (including ports/subdomains/IPv6) and adds a changeset for a patch release.

Changes:

  • Expand domainIsLocalhost to normalize case, strip ports, and recognize additional localhost variants (e.g., *.localhost, IPv6 loopback).
  • Add JSDoc for validateDomainPattern.
  • Add a changeset describing the improvement.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/util/src/url.ts Updates localhost detection logic and adds documentation for domain pattern validation.
.changeset/tough-plants-happen.md Declares a patch release for @prosopo/util noting improved localhost detection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@forgetso forgetso merged commit f3f23e3 into main Mar 23, 2026
9 checks passed
@forgetso forgetso deleted the fix/improve-localhost-detection branch March 23, 2026 21:24
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.

2 participants