Skip to content

fix(api): stop exporting registerImplementation - #35

Merged
skjnldsv merged 1 commit into
mainfrom
fix/private-register-implementation
Sep 11, 2026
Merged

skjnldsv merged 1 commit into
mainfrom
fix/private-register-implementation

Conversation

@skjnldsv

Copy link
Copy Markdown
Contributor

registerImplementation showed up in the generated API docs at https://nextcloud-libraries.github.io/nextcloud-viewer/ next to registerHandler, as if an app should call it. It is what lib/index.ts calls on itself to offer this copy as the page's viewer; nothing outside the package has a reason to. The export goes, the ViewerCandidate type with it, and the README bullet that told people not to call it.

No behaviour change, the entry still calls it at import. Covered by the public API test in __tests__/entry.spec.ts.

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

It is what the entry calls on itself to offer this copy as the page's
viewer. Nothing outside the package has a reason to call it, the README
said as much, and exporting it put it in the generated API docs next to
registerHandler as if apps should. The ViewerCandidate type goes with it.

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv added status: review Waiting for reviews type: breaking 💥 changes that require a new major version AI assisted labels Sep 11, 2026
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.84%. Comparing base (a86decd) to head (46d0583).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #35      +/-   ##
==========================================
- Coverage   87.84%   87.84%   -0.01%     
==========================================
  Files          36       36              
  Lines        2477     2476       -1     
  Branches      519      519              
==========================================
- Hits         2176     2175       -1     
  Misses        297      297              
  Partials        4        4              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@skjnldsv
skjnldsv merged commit 864e026 into main Sep 11, 2026
18 checks passed
@skjnldsv
skjnldsv deleted the fix/private-register-implementation branch September 11, 2026 14:05
@skjnldsv skjnldsv mentioned this pull request Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI assisted status: review Waiting for reviews type: breaking 💥 changes that require a new major version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant