internal-slot is a JavaScript utility that provides truly private per-object storage similar to the JS spec’s internal slots. It uses WeakMap when available, otherwise falls back to Map or an object, which helps modules store hidden values with environment-dependent performance and garbage collection behavior.
Project status
- The repository appears actively maintained, with a recent update on 2024-12-13 (v1.1.0) and additional versioned updates earlier in 2024 and 2023.
- Update cadence looks intermittent rather than frequent, for example v1.0.7 in 2024-02-06, then v1.1.0 in 2024-12-13 (with a previous update in 2023-10-21).
AI summary generated Today
Recent updates
v1.1.0
12/13/2024v1.1.0 introduces TypeScript type definitions for the `internal-slot` module and updates several dependencies and development/CI tooling. The runtime logic in `index.js` appears effectively unchanged, with modifications largely limited to type-directed indexing.
v1.0.7
2/6/2024Release v1.0.7 includes a small refactor in index.js to replace get-intrinsic usage with es-errors for retrieving the TypeError intrinsic, plus minor dev dependency version bumps. The provided release notes section is empty, so consumers should rely on the code diff and changelog changes to understand what actually shipped.
v1.0.6
10/21/2023Release v1.0.6 was published on 2023-10-21, but no release notes or changelog details were provided by the publisher. As a result, there is no documented information about new features, fixes, breaking changes, or dependency updates in this release.