From 74dfc159c01a5f41d333078284fb996a5461df52 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 19 Sep 2024 22:56:56 -0700 Subject: [PATCH] [Breaking] update to es-shims API v3 --- index.js | 14 +------------- package.json | 4 ++-- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/index.js b/index.js index b8ba091..76c4066 100644 --- a/index.js +++ b/index.js @@ -1,17 +1,5 @@ 'use strict'; -var define = require('define-properties'); - -var implementation = require('./implementation'); var getPolyfill = require('./polyfill'); -var shim = require('./shim'); - -var polyfill = getPolyfill(); - -define(polyfill, { - getPolyfill: getPolyfill, - implementation: implementation, - shim: shim -}); -module.exports = polyfill; +module.exports = getPolyfill(); diff --git a/package.json b/package.json index 895e8b0..015b77d 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "prepublish": "not-in-publish || npm run prepublishOnly", "pretest": "npm run lint", "lint": "eslint --ext=js,mjs .", - "postlint": "es-shim-api --bound", + "postlint": "es-shim-api --type=constructor", "tests-only": "nyc tape 'test/**/*.js'", "test": "npm run tests-only", "posttest": "npx npm@'>=10.2' audit --production", @@ -48,7 +48,7 @@ }, "homepage": "https://github.com/es-shims/Set#readme", "devDependencies": { - "@es-shims/api": "=2.5.0", + "@es-shims/api": "^3.0.1", "@ljharb/eslint-config": "^21.1.1", "array.from": "^1.1.6", "auto-changelog": "^2.5.0",