Skip to content

Releases: cto-af/unicode-trie

Browser support

07 Mar 04:48
v2.0.0
cb3cf14
Compare
Choose a tag to compare

Should work in the browser now. Removed all use of Buffer.
Breaking change: format changed, now uses gzip instead of brotli, since the encoder/decoder is quite small.
Breaking change: now only tested in node 18+.

Updated dependencies

31 Oct 21:24
v1.2.2
0e3b01e
Compare
Choose a tag to compare

Updated all dependencies.

toModule

14 Jun 14:01
v1.2.0
d4905a4
Compare
Choose a tag to compare

Builder now includes a toModule() function which compacts the trie, converts it to a buffer, base64-encodes the buffer, and embeds it into a module that will recreate the Trie at runtime without needing to read another file. The module is returned as a string for you to save to a file.

getString

23 May 14:20
v1.1.0
b16eeac
Compare
Choose a tag to compare

Move the string-getting functionality to it's own function getString, so that the consumer has a choice of what type to receive.

Initial version

22 May 19:48
v1.0.0
67c37ad
Compare
Choose a tag to compare
  • Dependencies removed in favor of node built-ins (use browserify bits if needed in the browser)
  • Compression switched to a single pass of brotli from double pass of deflate (see #10)
  • Typescript types built in
  • Switch to ESM module
  • Ability to store mapped strings with trie
  • An example (see #13)
  • Linting
  • Small amounts of test coverage