Skip to content

test: guard lazy segmenter package boundaries - #136

Merged
Justineo merged 2 commits into
mainfrom
test/lazy-segmenter-contracts
Sep 28, 2026
Merged

Justineo merged 2 commits into
mainfrom
test/lazy-segmenter-contracts

Conversation

@Justineo

Copy link
Copy Markdown
Owner

Summary

Follow-up to #127.

  • Guard importing a freshly built root entry without Intl.Segmenter in an isolated process.
  • Verify production Vite/Rolldown consumers remove segmentation for WrapClamp while retaining it for LineClamp.
  • Correct the guarantee: unit-safe grapheme preparation skips segmentation, but ASCII word boundaries still require the native API. No Unicode fallback or public API change.

Design

  • Build temporary artifacts independently of the workspace dist; the checks run in the existing test suite.
  • Both regressions fail when eager construction is restored, and the text-consumer control prevents an empty bundle from passing.

@pkg-pr-new

pkg-pr-new Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/vue-clamp@136

commit: 49f4674

@Justineo
Justineo merged commit 0ce1a7d into main Sep 28, 2026
2 checks passed
@Justineo
Justineo deleted the test/lazy-segmenter-contracts branch September 28, 2026 06:32
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