Back to Explore

inspect-js/is-generator-function

GitHub
2 watchersOpen source

Last release:

This is a small JavaScript utility that checks whether a given value is a native ES6 generator function. It’s useful when you need to detect generator functions (for example, to handle generator-based control flow differently).

Project status

  • Maintenance status: The repository shows recent activity in late 2025 (latest upstream push on 2025-12-30), and there have been multiple updates in 2025, indicating it is not clearly abandoned. However, there is no evidence of further updates in 2026 up to 2026-06-09.
  • Update cadence: Updates are sporadic, with a small cluster in late Sep 2025 (v1.1.1, v1.1.2), an earlier update in early Jan 2025 (v1.1.0), and otherwise much older releases (2021 and earlier).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v1.1.2

    This release updates the generator-function detection logic in index.js and bumps several dependencies in package.json. The provided release notes for v1.1.2 are empty, so the only stated changes visible are embedded in CHANGELOG.md.

  • v1.1.1

    v1.1.1 is a small refactor release that bumps the package version from 1.1.0 to 1.1.1. The main change in the code is how the generator function constructor is detected, moving from inline logic to using the external `generator-function` dependency.

  • v1.1.0

    Release v1.1.0 was published on 2025-01-02, but no release notes were provided by the publisher. As a result, this release cannot be assessed for specific new features, breaking changes, or fixes based on the available documentation.

  • v1.0.10

    Release v1.0.10 updates the generator-function detection logic to use the has-tostringtag package shim, improving correctness in environments with symbol shams. The release also bumps several dev dependencies and adds has-tostringtag as a runtime dependency.

  • v1.0.9

    No publisher release notes were provided for v1.0.9. The actual code change is a small modification to generator-function detection logic (plus several repository/CI and packaging script updates).

  • v1.0.8

    No publisher release notes were provided for v1.0.8. The code diff shows a small behavioral change in generator-function detection (guarding access to the internal getProto helper), plus substantial test and tooling/CI configuration updates.

    Security
  • v1.0.7

    v1.0.7 primarily updates development and CI tooling. The code diff shows changes to linting configuration, npm scripts, test execution (including an added uglified test run), and the Travis CI Node.js test matrix.

    Features
  • v1.0.6

    v1.0.6 updates the generator-function detection logic to work in environments that do not provide native generator support (for example, when core-js is involved). The release also adjusts package metadata and the test setup to include a core-js runtime check.

  • v1.0.5

    v1.0.5 primarily updates the generator-function detection logic to handle Safari 10 misreporting via Object#toString. The release also modernizes the test and lint workflow (eslint/jscs, pretest/posttest), expands CI coverage across many Node and io.js versions, and bumps development dependencies.

  • v1.0.4

    Release v1.0.4 was published, but no release notes or change log details were provided by the publisher. As a result, the upgrade impact cannot be determined from the release description alone.