Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: es-shims/Map
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.2
Choose a base ref
...
head repository: es-shims/Map
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.3
Choose a head ref
  • 4 commits
  • 4 files changed
  • 1 contributor

Commits on Dec 21, 2022

  1. [Dev Deps] update aud

    ljharb committed Dec 21, 2022

    Unverified

    No user is associated with the committer email.
    Copy the full SHA
    03eab86 View commit details
  2. Unverified

    No user is associated with the committer email.
    Copy the full SHA
    ab6fec0 View commit details
  3. Copy the full SHA
    06ddf53 View commit details
  4. v1.0.3

    ljharb committed Dec 21, 2022
    Copy the full SHA
    7ba9730 View commit details
Showing with 15 additions and 16 deletions.
  1. +8 −0 CHANGELOG.md
  2. +2 −10 lib/map-iterator.js
  3. +0 −2 lib/support.js
  4. +5 −4 package.json
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v1.0.3](https://github.com/es-shims/es-map/compare/v1.0.2...v1.0.3) - 2022-12-21

### Commits

- [Refactor] use `es-set-tostringtag` [`06ddf53`](https://github.com/es-shims/es-map/commit/06ddf5363178a6a0e178af5cc29d0da615af99c4)
- [Deps] update `es-abstract`, `internal-slot` [`ab6fec0`](https://github.com/es-shims/es-map/commit/ab6fec06fdc2c5d5a2ee263258dc61bfd185498c)
- [Dev Deps] update `aud` [`03eab86`](https://github.com/es-shims/es-map/commit/03eab860ce3aa419852d16043c91f5e8a0f7623b)

## [v1.0.2](https://github.com/es-shims/es-map/compare/v1.0.1...v1.0.2) - 2022-12-02

### Commits
12 changes: 2 additions & 10 deletions lib/map-iterator.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
'use strict';

var hasSymbols = require('has-symbols')();
var SLOT = require('internal-slot');
var setToStringTag = require('es-set-tostringtag');

var GetIntrinsic = require('get-intrinsic');
var CreateIterResultObject = require('es-abstract/2022/CreateIterResultObject');
var CreateMethodProperty = require('es-abstract/2022/CreateMethodProperty');
var DefinePropertyOrThrow = require('es-abstract/2022/DefinePropertyOrThrow');
var OrdinaryObjectCreate = require('es-abstract/2022/OrdinaryObjectCreate');

var requireMapSlot = require('./validation').requireMapSlot;
@@ -69,13 +68,6 @@ CreateMethodProperty(
}
);

if (hasSymbols && Symbol.toStringTag) {
DefinePropertyOrThrow(MapIterator.prototype, Symbol.toStringTag, {
'[[Configurable]]': true,
'[[Enumerable]]': false,
'[[Value]]': 'Map Iterator',
'[[Writable]]': false
});
}
setToStringTag(MapIterator.prototype, 'Map Iterator');

module.exports = MapIterator;
2 changes: 0 additions & 2 deletions lib/support.js
Original file line number Diff line number Diff line change
@@ -76,8 +76,6 @@ exports.mapIterationFinishes = valueOrFalseIfThrows(function () {
});

exports.mapHasOldFirefoxInterface = function () {
/* eslint-disable operator-linebreak */

/*
* In Firefox < 19, Map#clear does not exist.
* In Firefox < 23, Map#size is a function.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "es-map",
"version": "1.0.2",
"version": "1.0.3",
"description": "An ES-spec-compliant Map shim/polyfill/replacement that works as far down as ES3",
"main": "index.js",
"exports": {
@@ -58,7 +58,7 @@
"@es-shims/api": "^2.2.3",
"@ljharb/eslint-config": "^21.0.0",
"array.from": "^1.1.3",
"aud": "^2.0.1",
"aud": "^2.0.2",
"auto-changelog": "^2.4.0",
"eslint": "=8.8.0",
"functions-have-names": "^1.2.3",
@@ -72,13 +72,14 @@
"dependencies": {
"call-bind": "^1.0.2",
"define-properties": "^1.1.4",
"es-abstract": "^1.20.4",
"es-abstract": "^1.20.5",
"es-get-iterator": "^1.1.2",
"es-set-tostringtag": "^1.0.0",
"for-each": "^0.3.3",
"get-intrinsic": "^1.1.3",
"globalthis": "^1.0.3",
"has-symbols": "^1.0.3",
"internal-slot": "^1.0.3",
"internal-slot": "^1.0.4",
"object.entries": "^1.1.6"
},
"auto-changelog": {