Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 23, 2026

Bumps cmpstr from 3.1.1 to 3.2.0.

Release notes

Sourced from cmpstr's releases.

vers. 3.2.0

This release focuses on a comprehensive internal overhaul with a strong emphasis on performance, correctness, and long-term maintainability. While the public API changes are deliberately minimal, large parts of the internal architecture were refined, resulting in faster execution, improved caching behavior, better memory safety, and more predictable results across synchronous and asynchronous workflows.


What’s New

Public API:

  • Added Filter.has() to check for the existence of registered filters per hook
  • Introduced unified return type aliases for comparison operations:
    • ResultLike, BatchResultLike
    • StructuredResultLike
  • Renamed TextAnalyzer.getUnicodeStats() to TextAnalyzer.getUnicodeCodepoints()
  • Added new TextAnalyzer metrics:
    • getAvgSyllablesPerWord()
    • getMedianSyllablesPerWord()

Root / Advanced Access:

  • Exposed Hasher.fastFNV1a() for high-performance hashing use cases

Changes & Fixes

Performance & Memory:

  • Eliminated potential memory leaks by guarding pool allocations with try / finally
  • Replaced Uint16Array with Int32Array to correctly handle negative values
  • Improved performance through static RegExp construction
  • Optimized score-based metrics (Needleman–Wunsch, Smith–Waterman) using Int32Array
  • Reduced local allocations in hash generators for faster execution
  • Added optional LRU support to hash tables and fixed overflow detection
  • Replaced modulo operations with bit masking for pool pointer arithmetic

Caching & Correctness:

  • Fixed incorrect cache hits for metrics and phonetic algorithms with differing options
  • Added missing cache layer in async phonetic index computation
  • Performed input swapping (shorter string first) for symmetric metrics before cache lookup
  • Fixed incorrect handling of the phonetic middle rule
  • Normalizer now uses canonicalized flags to improve cache efficiency

Internal Architecture:

  • Filters now use per-hook Map instances for faster lookup
  • Filters precompute execution pipelines per hook to reduce runtime overhead
  • DeepMerge utility optimized via linear traversal and path caching
  • Pool implementation fixed pointer positioning and improved utilization

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [cmpstr](https://github.com/komed3/cmpstr) from 3.1.1 to 3.2.0.
- [Release notes](https://github.com/komed3/cmpstr/releases)
- [Commits](komed3/cmpstr@v3.1.1...v3.2.0)

---
updated-dependencies:
- dependency-name: cmpstr
  dependency-version: 3.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jan 23, 2026
@komed3 komed3 merged commit 0be9dec into main Jan 23, 2026
2 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/cmpstr-3.2.0 branch January 23, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant