generator-function is a small JavaScript module that exposes the normally hidden GeneratorFunction constructor when it is available in the runtime. It is useful for creating generator functions dynamically, then calling them to get an iterator.
Project status
- Active maintenance: The most recent available update is v2.0.1 on 2025-09-30, and the changes appear limited to metadata and README badge links, with no evidence of ongoing feature work since then. Overall, the source looks quiet/dormant relative to today (2026-06-09).
- Update cadence: There were major updates in late September 2025 (v2.0.0 on 2025-09-29, v2.0.1 on 2025-09-30), but there is no evidence of further updates for the last ~8 months.
AI summary generated
Recent updates
v2.0.1
Release v2.0.1 does not appear to include any runtime or API changes. The diff shows only metadata updates, including the package version and the repository/homepage/issue URLs, plus corresponding README badge links.
v2.0.0
Release v2.0.0 introduces a major refactor of the package API, adding ESM entry points and TypeScript typings. The implementation now exports a callable function that returns the `GeneratorFunction` constructor (or a sentinel value), instead of exporting the constructor directly.
Featuresv1.0.0
This release (v1.0.0) has no release notes provided by the publisher. As a result, there is no documented information about new features, bug fixes, breaking changes, or security updates in the available materials.