Skip to content

Add BigInt support for React 19#29

Merged
grrowl merged 1 commit into
masterfrom
feature/bigint-support
Nov 27, 2025
Merged

Add BigInt support for React 19#29
grrowl merged 1 commit into
masterfrom
feature/bigint-support

Conversation

@grrowl
Copy link
Copy Markdown
Owner

@grrowl grrowl commented Nov 27, 2025

Summary

  • Adds bigint to the type check in flattenChildren, alongside string and number
  • React 19 added native BigInt rendering support, but the library was silently filtering them out
  • Adds test coverage for BigInt children (both literal syntax 10n and BigInt())

Fixes #28

Test plan

  • Existing tests pass (28/28)
  • New BigInt tests pass
  • BigInt literals (10n) are preserved in output
  • BigInt() constructor values are preserved
  • BigInts in nested fragments are flattened correctly

🤖 Generated with Claude Code

React 19 added native BigInt rendering support, but flattenChildren was
silently filtering them out. This adds bigint to the type check alongside
string and number.

Fixes #28

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@grrowl grrowl merged commit 0eddaea into master Nov 27, 2025
0 of 6 checks passed
@grrowl grrowl mentioned this pull request Nov 27, 2025
2 tasks
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.

BigInts are not supported

1 participant