Skip to content

Update dependency entities to v7#11114

Merged
nbudin merged 1 commit intomainfrom
renovate/entities-7.x
Nov 15, 2025
Merged

Update dependency entities to v7#11114
nbudin merged 1 commit intomainfrom
renovate/entities-7.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Nov 15, 2025

This PR contains the following updates:

Package Change Age Confidence
entities 6.0.1 -> 7.0.0 age confidence

Release Notes

fb55/entities (entities)

v7.0.0

Compare Source

No changes in public API; a lot of internals changed though, for faster encoding & decoding and reduced memory usage.

Improvements

Reduced length of the encoded trie by 21% for HTML (from 15,242 words (uint16) to 12075), by:

  • Adding a semicolon flag on value nodes, which means semicolons don't have to be encoded anymore.
  • Compacting dict keys: two keys are now stored in each word, instead of one
  • Compacting runs of 3 or more characters: successive characters are now also stored as two characters per word

Also reduces the size of the encoded table by 32% (after the previous change) by encoding it as base64.

Encodes the encode trie as a string, with a simple parser turning it into the previous structure on load. This leads to a 44% decrease in file size (from 24,034 to 13,392 bytes).

Uses bitmaps to replace regex when looking for ASCII code points that should be replaced with entities. Leads to a ~1.6x speed up for encodeHTML.

Miscellaneous

New Contributors

Full Changelog: fb55/entities@v6.0.1...v7.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/entities-7.x branch from 79a0faa to c8fc70b Compare November 15, 2025 17:33
@renovate renovate Bot force-pushed the renovate/entities-7.x branch from c8fc70b to 1b59197 Compare November 15, 2025 17:37
@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage Report: Only Changed Files listed

Package Coverage
Overall Coverage 🟢 51.08%

Minimum allowed coverage is 0%, this run produced 51.08%

@nbudin nbudin merged commit 3684f21 into main Nov 15, 2025
16 checks passed
@nbudin nbudin deleted the renovate/entities-7.x branch November 15, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant