Skip to content

Match API and internal packages on package boundaries - #33

Merged
omphile-matheolane merged 2 commits into
mainfrom
fix/package-pattern-boundary
Nov 14, 2026
Merged

omphile-matheolane merged 2 commits into
mainfrom
fix/package-pattern-boundary

Conversation

@omphile-matheolane

@omphile-matheolane omphile-matheolane commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Two changes on this branch.

Package matching stops at a package boundary. isPublicApi and the internal-package predicate compared class names by string prefix, so an API package of .c. also matched com.example.b.cache, and .api. matched .apiinternal.. Both now go through ModuleDefinition.classMatchesPackagePattern, which matches the package itself or a sub-package and nothing else. ModuleDefinitionTest covers sibling packages sharing a prefix, sub-packages, absolute patterns with and without the trailing dots, and nested classes.

Zenodo metadata. Adds .zenodo.json so each GitHub release is archived with a DOI once the Zenodo GitHub integration is switched on for the repo.

omphile-matheolane and others added 2 commits November 14, 2026 13:00
isPublicApi and the internal-package predicate compared class names by
string prefix after stripping the trailing dots, so an API package of
.c. also matched com.example.b.cache, and .api. matched .apiinternal.
Both now go through ModuleDefinition.classMatchesPackagePattern, which
matches the package itself or a sub-package and nothing else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kau5wVS3uJKM78ge7ULSGJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kau5wVS3uJKM78ge7ULSGJ
@omphile-matheolane
omphile-matheolane force-pushed the fix/package-pattern-boundary branch from a395c2a to 421e409 Compare November 14, 2026 11:01
@omphile-matheolane
omphile-matheolane merged commit a80f659 into main Nov 14, 2026
2 checks passed
omphile-matheolane added a commit that referenced this pull request Nov 17, 2026
…dary

Match API and internal packages on package boundaries
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