Skip to content

fix: improve round function - #901

Merged
harttle merged 1 commit into
harttle:masterfrom
timbze:round_fix
Jun 22, 2026
Merged

harttle merged 1 commit into
harttle:masterfrom
timbze:round_fix

Conversation

@timbze

@timbze timbze commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

I realized after I did #873 that there were still some rounding issues, here's a better fix.

What I did now I have been using in production for years and it works with existing tests and the additional tests that it was not working with.

edit: you might wonder why I submitted the other code when I already had this from before. It was simply because I thought it was a better way of solving the issue. Which I now realize it was not.

@harttle
harttle merged commit 956b51e into harttle:master Jun 22, 2026
13 checks passed
github-actions Bot pushed a commit that referenced this pull request Jun 23, 2026
## [10.27.1](v10.27.0...v10.27.1) (2026-06-23)

### Bug Fixes

* improve round function; improvement to [#873](#873) ([#901](#901)) ([956b51e](956b51e))
* **security:** charge pop filter allocation to memoryLimit ([#907](#907)) ([8a0c74a](8a0c74a))
* **strip_html:** infinite loop for strip_html ([5c3522f](5c3522f))

### Performance Improvements

* **parser:** memoize createTrie to avoid rebuilding tries per Tokenizer ([#911](#911)) ([3a0d80d](3a0d80d))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 10.27.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants