Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 7, 2025

This PR contains the following updates:

Package Change Age Confidence
entities 5.0.0 -> 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

v6.0.1

Compare Source

What's Changed

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

v6.0.0

Compare Source

Features

  • Improved bundler tree shaking by adding pure annotations by @​Gravitonic in #​1501
  • BREAKING: Simplified deep import paths, to make entities work in old NodeJS versions by @​fb55 in #​1531
    • If you are using deep imports, you will have to update them. Instead of importing entities/dist/decode.js, import entities/decode. The same applies to escape.
  • Automated publishes by @​fb55 in #​1532
    • entities is now available on both npm and JSR
  • Enabled isolated declarations by @​fb55 in #​1522

Full Changelog: fb55/entities@v5.0.0...v6.0.0


Configuration

📅 Schedule: Branch creation - At 06:00 PM through 11:59 PM and 12:00 AM through 09:59 AM ( * 18-23,0-9 * * * ) in timezone Europe/Kiev, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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 added the frontend label Sep 7, 2025
@renovate renovate bot requested a review from a team as a code owner September 7, 2025 06:09
@renovate renovate bot requested review from Rafler and duch0416 and removed request for a team September 7, 2025 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

0 participants