This package counts the number of the longest adjacent repeating streak of a given substring within a string. It is useful for niche string analysis, including serializing markdown ASTs like fenced code and math.
Project status
- The repository appears maintained historically, but there have been no new
updatessince 2022-11-15 (latest known update: 3.1.0), suggesting maintenance rather than active development at present. - The apparent update cadence is low, with updates roughly spaced by years (3.0.0 in 2021-03, 3.0.1 in 2021-10, 3.1.0 in 2022-11).
AI summary generated Today
Recent updates
3.1.0
11/15/2022Release 3.1.0 updates longest-streak to support matching and counting repeating adjacent substrings, including emoji sequences that are multiple code points. The API documentation and implementation were adjusted from a single-character matcher to a general substring matcher.
Features3.0.1
10/27/2021Release 3.0.1 is primarily documentation and typing/tooling related. The runtime API for `longestStreak(value, character)` appears unchanged, but the build and type-checking pipeline became stricter, with updated dev dependencies and additional type coverage enforcement.
3.0.0
3/8/2021This release converts the package from CommonJS to ESM and adds JSDoc-based type definitions. The runtime implementation of `longestStreak` is mostly unchanged, but the module export shape and build tooling were updated.
BreakingFeatures