Repository navigation
Reject Unicode lookalikes and verify the installed alpha package - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A ticket reference containing the Unicode Kelvin sign (
K) could pass validation after JavaScript folded it to ASCIIk. Reject non-ASCII input before case normalization. Also snapshot configuration once: a changing prefix getter previously made the generated namespace disagree with the length plan.The first-alpha candidate now verifies its actual distribution archive: an offline installation with an empty store, public ESM imports, TypeScript namespace brands, private-export boundaries, documentation links, licenses and measured JavaScript hashes. Include the README graphic and supporting documents in the package; use LF builds across platforms and default future npm publications to the
alphatag.Extend finite checksum tests with insertions, deletions, adjacent swaps and 3,000 distinct multi-substitution samples. Add a Unicode regression to the browser form and refresh the specification, changelog and measured README graphic. Runtime dependencies remain zero; no speed advantage or human-error reduction is claimed.
Validation:
pnpm checkpasses (22 tests plus TypeScript),pnpm evidencerejects all 4,216 enumerated single substitutions, andpnpm test:packagepasses locally on Node 24.19.0. CI run 40477403419 passed all six jobs on headfed62ebb4866a90e45eec444030ed0193223724a: Node 22/24/26 across Windows/macOS/Linux, plus all nine form tests in Chromium/Firefox/WebKit. Local browser binaries are absent; browser results above are from hosted CI.This updates the unreleased 0.1.0-alpha.1 candidate. It does not publish to npm or create a GitHub Release.