Skip to content

feat!: remove HTML rendering support - #149

Merged
patrickkabwe merged 1 commit into
mainfrom
fix/remove-html-support
Sep 17, 2026
Merged

patrickkabwe merged 1 commit into
mainfrom
fix/remove-html-support

Conversation

@patrickkabwe

Copy link
Copy Markdown
Owner

Summary

  • remove the public renderer prop and Renderer type
  • delete the HTML/CSS parser, example screen, documentation, and generated renderer bindings
  • keep HTML-like strings as literal text and add runtime/API contract tests

Breaking change

NitroText no longer accepts renderer="html" or renderer="plaintext", and the package no longer exports Renderer.

Verification

  • bun run test -- --runInBand --no-watchman
  • bun run build
  • bunx nitrogen --logLevel=debug regenerated the same substantive native diff
  • ./gradlew :app:assembleDebug --no-daemon --stacktrace
  • npm pack --dry-run --json contains no removed renderer/parser files
  • git diff --check

Local environment notes

  • ESLint cannot start on main or this branch because eslint.config.mjs imports the undeclared eslint-plugin-nitro-modules package.
  • The local Xcode 26.5 build stops in React Native’s CocoaPods fmt/format-inl.h consteval code before NitroText compiles. The repository CI uses Xcode 16.4.

BREAKING CHANGE: NitroText no longer accepts the `renderer` prop or exports the `Renderer` type.
@patrickkabwe
patrickkabwe merged commit c54fdaf into main Sep 17, 2026
5 of 6 checks passed
@patrickkabwe
patrickkabwe deleted the fix/remove-html-support branch September 17, 2026 22:09
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