Skip to content

0.159.0: the collision rule compares file names by the folder format's fold - #84

Merged
tmoosting merged 2 commits into
mainfrom
collision-fold
Nov 28, 2026
Merged

tmoosting merged 2 commits into
mainfrom
collision-fold

Conversation

@tmoosting

Copy link
Copy Markdown
Member

Changed: the collision rule compares file names by the folder format's fold. Two elements whose short file names would land on one path are now compared after NFC and simple case folding (the fold the archive reader uses), where before the language's own lowercase was used. A file name changes only for an id whose lowercase and fold differ, such as a ς against a σ in the tail: the higher id now takes its full-id name and both are written, where before they were refused. No ASCII id and no UUID changes; a differential over every committed fixture and recorded export found no name that differs. Two written cases join the shared file, each with its two file names.

🤖 Generated with Claude Code

tmoosting and others added 2 commits November 28, 2026 20:32
… fold

resolve_filenames bucketed short file names (slug and id tail) by
str.lower(). It now buckets them by _fold_name, NFC then simple case folding
at Unicode 15.1, the fold the archive reader compares names by and the
refusal of two names that fold to one already uses: one fold for folder spec
3.2. A name changes only for an id whose lowercase and fold differ, all of
them beyond ASCII: two elements named Bob with ids a1234567<final sigma> and
b1234567<sigma> kept two short names that the refusal joined, and are now
written, the higher id under its full id. No ASCII id and no UUID changes.

The shared cases add that pair and one with the Kelvin sign in a tail, each
with its two file names (tests/fixtures/case-collide.cases.json, the same
bytes as the npm SDK's; the sha256 pin moves).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s fold

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tmoosting
tmoosting merged commit f23a7d4 into main Nov 28, 2026
11 checks passed

This branch was successfully deployed

1 active deployment
pypi — f23a7d47 Deployed Nov 28, 2026 by tmoosting via publish #262
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.

1 participant