Skip to content

Update cel-spec and cel-go dependencies - #229

Merged
hudlow merged 5 commits into
mainfrom
hudlow/cel-spec-v0.25.0
Nov 6, 2025
Merged

hudlow merged 5 commits into
mainfrom
hudlow/cel-spec-v0.25.0

Conversation

@hudlow

@hudlow hudlow commented Nov 5, 2025 •

Copy link
Copy Markdown

Merge #230 first!

@hudlow

hudlow commented Nov 5, 2025

Copy link
Copy Markdown
Author

Per offline recommendations, rebased onto #230

Comment on lines +292 to +298
return new Intl.NumberFormat("en-US", {
maximumFractionDigits: precision,
minimumFractionDigits: precision,
notation: "standard",
roundingMode: "halfEven",
useGrouping: false,
}).format(val);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

roundingMode is an ES2023 feature. I expect that environments that don't implement the option will ignore it, which results in different behavior for certain CEL floats converted to string.

If consistent behavior of this specific property is important when targeting lower environments, a polyfill must be provided.

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