Skip to content

feat: boolean#5

Merged
brunozoric merged 2 commits into
mainfrom
bruno/feat/common/boolean
May 9, 2026
Merged

feat: boolean#5
brunozoric merged 2 commits into
mainfrom
bruno/feat/common/boolean

Conversation

@brunozoric
Copy link
Copy Markdown
Contributor

No description provided.

brunozoric and others added 2 commits May 9, 2026 21:56
Replaces the `boolean` npm package with a native @webiny/stdlib
implementation. Exact coercion parity: truthy strings are
"true", "t", "yes", "y", "on", "1" (case-insensitive, trimmed);
truthy number is 1 only; booleans pass through.
isTruthy and isFalsy are readable wrappers on top.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
JSDoc on toBoolean was restating the visible implementation — collapsed
to the parity claim only. Added Infinity/-Infinity to the number falsy
set to close a regression gap in the Number branch.
@brunozoric brunozoric merged commit a416ce2 into main May 9, 2026
16 checks passed
@brunozoric brunozoric deleted the bruno/feat/common/boolean branch May 9, 2026 20:04
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