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
- Maintenance status: Not actively maintained today. The last upstream push and the most recent updates were in 2022-11-15, with no evidence of ongoing work since then, so it appears quiet or in maintenance mode.
- Update cadence: Historically periodic (notably 2016-2022), but there has been a long gap since 2022 (about 3.5 years as of 2026-06-09), indicating cadence has essentially stopped.
AI summary generated
Recent updates
3.1.0
Release 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
Release 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
This 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.
BreakingFeatures2.0.4
Release 2.0.4 appears to be a documentation-focused update per the release notes ("Refactor prose"). The code diff, however, also includes changes to project metadata and multiple devDependency version bumps in package.json.
2.0.3
Release 2.0.3, based on the release notes, is primarily documentation and code-style related (badges, HTTP to HTTPS URLs, and renaming LICENSE to license). The actual diff shows mostly formatting changes in the runtime entrypoint, plus several substantial but undocumented changes to the repository tooling, CI configuration, and build/test scripts.
2.0.2
The release notes only state that 2.0.2 contains a fix to package.json. However, the actual diff includes changes to CI configuration and even a small code change in index.js, along with multiple devDependency and build/lint configuration updates.
2.0.1
Release 2.0.1 is described as a small bug fix for a single-character case. The code changes are minimal, and the test suite adds coverage for matching a one-character string containing backtick quoting.
1.0.0
Release 1.0.0 was published on 2016-11-11, but the provided release notes contain no actionable information beyond a generic emoji. No details are available about new features, breaking changes, bug fixes, security updates, performance improvements, or migration steps.
2.0.0
Release 2.0.0 refactors the longest-streak computation logic, and updates CI/deployment to automatically publish on tags. It also removes various repository artifacts and legacy config files to slim down the project.
Features