Back to Explore

inspect-js/which-collection

GitHub
3 watchersOpen source

Last release:

which-collection exports a function that tells you which built-in JavaScript collection type (Map, Set, WeakMap, WeakSet) a given value is. It works across realms without using `instanceof`, and it can detect the type even when Symbol.toStringTag is set. Useful for runtime type checks of collection objects.

Project status

  • Maintenance status: Appears quiet or in maintenance mode, with the most recent upstream push on 2026-03-19 but the last published update in the provided history dating to 2024-03-08 (and older updates in 2020 and 2019).
  • Update cadence: No regular cadence is evident from the available timeline, with multi-year gaps between updates (2019 to 2020, then to 2024).

AI summary generated

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

Recent updates

  • v1.0.2

    v1.0.2 primarily modernizes the project tooling, publishing configuration, and test/coverage setup, and adds TypeScript typings. The functional runtime code change in index.js appears to be typing-only (JSDoc), but several packaging and module-resolution metadata changes could impact how consumers resolve the package. Release notes were not provided by the publisher, so most changes below are effectively undocumented.

    Features
  • v1.0.1

    Release v1.0.1 updates the package metadata and dependency versions, with no release notes provided by the publisher. The largest functional change in the diff is the addition of an npm package.exports map and version bump in package.json.

    Features
  • v1.0.0

    The release is v1.0.0 (published 2019-11-13) but no release notes were provided by the publisher. As a result, there is no documented information about new features, breaking changes, bug fixes, security updates, or migration steps in the available materials.