パッケージの詳細

es-set

es-shims104.8kMIT2.0.1

An ES-spec-compliant Set shim/polyfill/replacement that works as far down as ES3

Set, Map, collections, shim

readme

es-set Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ESnext spec-compliant Set shim/polyfill/replacement that works as far down as ES3.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.

Getting started

npm install --save es-set

Usage/Examples

var set = new Set();
var obj = {};

set.add(obj);

set.has(obj); // true
map.has(3); // false

Tests

Simply clone the repo, npm install, and run npm test

更新履歴

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v2.0.1 - 2024-12-11

Commits

  • [actions] split out node 10-20, and 20+ 90dd4ed
  • [Deps] update call-bind, es-abstract, es-map, get-intrinsic, gopd, has-symbols cd5ff06
  • [Refactor] use call-bound directly 8d75133
  • [Dev Deps] update object-inspect 97dea11

v2.0.0 - 2024-09-22

Commits

  • [Refactor] remove useless ESM c4c52eb
  • [Breaking] update to es-shims API v3 74dfc15

v1.1.2 - 2024-09-18

Commits

  • [Refactor] update es-abstract usage to 2024 40d271f
  • [Fix] polyfill: node 0.12 and io.js v1 and v2 have bugs with -0 ed296af
  • [Deps] update call-bind, define-properties, es-abstract, es-map, es-set-tostringtag, get-intrinsic, globalthis, has-property-descriptors, internal-slot, object.entries dc732db
  • [Dev Deps] update @es-shims/api, @ljharb/eslint-config, array.from, auto-changelog, npmignore, tape 8fc1319
  • [meta] add missing engines.node 665656c
  • [Tests] replace aud with npm audit 7473c3c
  • [Dev Deps] temporarily pin @es-shims/api d41aeb6
  • [Dev Deps] add missing peer dep c55907f

v1.1.1 - 2023-08-28

Commits

  • [Deps] update define-properties, es-abstract, es-map, get-intrinsic, internal-slot, object.entries 0d4cd51
  • [Dev Deps] update @es-shims/api, @ljharb/eslint-config, array.from, aud, tape f454b52

v1.1.0 - 2023-01-14

Commits

  • [New] add tools export, for a trivial add/set/delete/has/forEach/size wrapper c22ba07

v1.0.3 - 2023-01-13

Commits

  • [Refactor] use stop-iteration-iterator ed7528c
  • [Deps] update es-get-iterator d0e7d4c
  • [Deps] update es-set-to-stringtag 666ccde

v1.0.2 - 2023-01-12

Commits

  • [Fix] prevent identity discontinuity by improving polyfill/shim logic ce360a0
  • [Fix] handle older versions of Firefox 0f02556
  • [Tests] use for-each for arrays c60ce24
  • [Deps] update es-abstract, es-map, es-set-tostringtag 54a8bf1
  • [Dev Deps] update @ljharb/eslint-config 6349496

v1.0.1 - 2022-12-21

Commits

  • [Refactor] use es-set-totringtag 6f5204b
  • [Deps] update es-abstract, internal-slot 4f68104
  • [Dev Deps] update aud 9a56484

v1.0.0 - 2022-12-02

Commits

  • Write tests 384ce9e
  • Implementation 1f6328c
  • Initial commit 0476c40
  • [actions] reuse common workflows 136bfc8
  • [meta] fix package.json indentation 8afa587
  • [Refactor] use internal-slot for internal slots e2e6b86
  • [Deps] update call-bind, es-abstract, es-get-iterator, get-intrinsic, globalthis, has-symbols, internal-slot, object.entries ebbb022
  • [actions] update workflows acb55bd
  • [Refactor] remove ESM entry points 588c36e
  • [Deps] update define-properties, es-abstract, functions-have-names, get-intrinsic, globalthis, has-symbols, object.entries 0a82d8b
  • [meta] fix URLs 27d2075
  • [Dev Deps] update eslint, @ljharb/eslint-config, array.from, safe-publish-latest, tape e9cf4b0
  • [Tests] add implementation tests 5868b55
  • [Tests] run nyc on all tests 7390e29
  • [Dev Deps] update eslint, @ljharb/eslint-config, array.from, aud, auto-changelog, tape bffd518
  • [actions] update codecov uploader 9c4e436
  • [Deps] update call-bind; add functions-have-names, get-intrinsic and use where applicable 5890f55
  • [readme] remove travis badge, fix URLs 70e90b8
  • Fix iojs 2.5 d2e6838
  • [actions] update rebase action to use reusable workflow d173489
  • [Fix] shim: ensure Map.call(new Map()) throws e6550fe
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, tape cd17a1c
  • [meta] use npmignore to autogenerate an npmignore file f2f6e39
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, has-strict-mode 98eea4b
  • [readme] add github actions/codecov badges 8de67c8
  • [Tests] increase coverage 313a6d6
  • [Refactor] use for-each instead of foreach f60071f
  • [Dev Deps] update eslint, tape 3baccd0
  • [Deps] use actual es-map 98e2fb6
  • [Tests] fix tests in symbol-less node 122e2cb
  • [Tests] add @es-shims/api 56d12c2
  • [Dev Deps] update tape cb861dd