Skip to content

Support non-string label values in polar signals library - #11

Merged
umanwizard merged 2 commits into
polarsignals:masterfrom
azizcodesthings:codex/label-value-types
Feb 20, 2026
Merged

umanwizard merged 2 commits into
polarsignals:masterfrom
azizcodesthings:codex/label-value-types

Conversation

@azizcodesthings

Copy link
Copy Markdown
Contributor

Often times, we end up passing in a bunch of bools/numbers/etc that we just map to String(...) everywhere before calling it. The library should just accept reasonable primitive types (number | string | boolean | undefined | null). I'm open to feedback on how to accomplish this, I had Codex update the C++ implementation (which should work on nulls/bools/etc according to it?), but a "safe" approach could also be to re-map and wrap everything in String(...) in JS land.

Comment thread js/addon.cpp Resolved
@umanwizard
umanwizard merged commit 3b305ad into polarsignals:master Feb 20, 2026
2 checks passed
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.

2 participants