Back to Explore

jonschlinkert/kind-of

GitHub
1 watchersOpen source

Last release:

kind-of is a fast JavaScript utility that returns the native type of a value (for example, `string`, `array`, `date`, `regexp`, `map`, `set`, and others). It is useful when you need more consistent or better type checking than plain `typeof`, and it is used by other libraries such as superstruct and micromatch.

Project status

  • Maintenance status: The source does not show recent npm/package activity in the provided update history (latest listed update is 6.0.3 from 2020-01-16), suggesting it is largely stable with no active feature development visible here, even though the upstream repository had a push on 2024-06-12.
  • Update cadence: Updates appear infrequent (clusters in 2017, a later one in 2020, and no further updates shown after that), with the most recent upstream push not reflected in additional version updates in the provided summaries.

AI summary generated

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

Recent updates

  • 6.0.3

    Release 6.0.3 is a small patch release that primarily updates internal type-detection logic and bumps the package version. The only actual code behavior change visible in the diff is in how the library determines an object's constructor name, plus related changes in the generated browser bundle.

  • 6.0.2

    No release notes were provided for version 6.0.2. However, the code diff shows a large refactor of the main `kind-of` implementation (from a small type check to a significantly more comprehensive classifier), plus major additions to tests/benchmarks and repository tooling configuration.

    BreakingFeatures
  • 6.0.1

    Release 6.0.1 is a refactor of kind-of's runtime type detection logic (in index.js and the generated browser bundle) with accompanying benchmark and documentation updates. Release notes from the publisher were not provided, so the behavioral changes below are not officially documented there.

    BreakingFeatures
  • 5.1.0

    Release 5.1.0 has no release notes provided by the publisher. The code changes indicate a behavioral update to `kindOf` to recognize additional iterator types beyond those previously covered (Set and Map iterators).

    Features
  • 5.0.2

    Release 5.0.2 contains small maintenance changes with a notable update to how generator functions are detected. No release notes were provided by the publisher, so it is unclear what was intended versus what actually changed.

  • 5.0.1

    Release 5.0.1 does not include any publisher-provided release notes. The diff shows only metadata/docs updates plus a small dev dependency change, with no application code modifications evident in the provided changeset.

  • 5.0.0

    Release 5.0.0 introduces additional type classifications for ES6 constructs, including generator functions and iterator objects from Map and Set. The bundled behavior of `kindOf` appears to have changed in ways that are not described in the provided release notes (which state none were supplied).

  • 4.0.0

    Release 4.0.0 adds explicit detection for Promises, so kind-of can now classify Promise objects as type "promise". The change is implemented in both the main Node entrypoint and the browser build, with new tests covering resolved and rejected Promises.

  • 3.2.2

    This release (3.2.2) has no published release notes. The code diff shows a substantial rewrite of the main `kindOf` function to add explicit ES6 type detection (Map, Set, WeakMap, WeakSet, Symbol, typed arrays) and to introduce special-case handling for Buffers via a new dependency.

    Features
  • v0.1.2

    Release v0.1.2 was published on 2014-10-26, but no release notes were provided by the publisher. As a result, there is no documented information about new features, bug fixes, breaking changes, security, or migrations in this release.