Commit 4601bbc
feat(flags): add semver targeting to local evaluation (#3186)
* add semver targeting to local evaluation
* chore: add changeset for semver operators
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: address PR feedback for semver operators
- Remove unreachable dead code by replacing nested switch with individual
case blocks for each semver comparison operator
- Add explicit digit-only check in parsePart to reject malformed versions
like '1.2.3alpha' (parseInt would silently truncate to 3)
- Add test case for malformed version strings with trailing characters
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7852a7c commit 4601bbc
File tree
3 files changed
+583
-0
lines changed- .changeset
- packages/node/src
- __tests__
- extensions/feature-flags
3 files changed
+583
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments