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
- The upstream repo shows an activity ping as of 2024-06-12, but the most recent published updates in the provided history are much older (newest shown: 6.0.3 on 2020-01-16), so the project appears quiet or in maintenance mode rather than actively iterating on new functionality.
- The apparent update cadence (based on the provided list) is bursty and infrequent: several updates in 2017, another in early 2020, and then a long gap up to the last upstream push in 2024.
AI summary generated
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.
BreakingFeatures6.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.
BreakingFeatures5.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).
Features5.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.
Featuresv0.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.