is-generator-fn is a small JavaScript utility that checks whether a given value is a generator function. It’s useful for runtime type checks before handling functions that yield values via `function*`.
Project status
- The source appears not actively maintained, with the last upstream push on 2022-07-08 and no evidence of updates since then, so it is effectively quiet/dormant as of 2026-08-12.
- Update cadence is sporadic and long-interval, major changes occurred in 2018, 2019, and a major release in 2021, with a multi-year gap afterward.
AI summary generated
Recent updates
v3.0.0
v3.0.0 is a major release that converts the package to a pure ESM distribution and raises the required Node.js version. The core generator-function detection logic remains the same, but the module export style and TypeScript declaration shape changed.
Breakingv2.1.0
v2.1.0 primarily refactors the TypeScript type definitions to be CommonJS compatible. The runtime JavaScript implementation appears unchanged aside from minor variable renaming and a comment.
v2.0.0
v2.0.0 introduces a major requirement update by changing the minimum supported Node.js version, which may affect older environments. It also adds TypeScript type definitions to improve developer tooling and type safety.
BreakingFeatures