From 8b51bf9534bef6a3f1b2aef3d5419953cc73b78a Mon Sep 17 00:00:00 2001 From: Phillip9587 Date: Tue, 22 Oct 2024 09:40:55 +0200 Subject: [PATCH] Remove Object.setPrototypeOf polyfill --- HISTORY.md | 5 +++++ index.js | 3 +-- package.json | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index ad7f247..e48f19a 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,8 @@ +unreleased +================== + +* Remove `Object.setPrototypeOf` polyfill + 2.0.0 / 2024-09-09 ================== diff --git a/index.js b/index.js index 0dbe740..f5473f6 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,6 @@ const methods = require('methods') const mixin = require('utils-merge') const parseUrl = require('parseurl') const Route = require('./lib/route') -const setPrototypeOf = require('setprototypeof') /** * Module variables. @@ -60,7 +59,7 @@ function Router (options) { } // inherit from the correct prototype - setPrototypeOf(router, this) + Object.setPrototypeOf(router, this) router.caseSensitive = opts.caseSensitive router.mergeParams = opts.mergeParams diff --git a/package.json b/package.json index c118ec6..43154e4 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "methods": "~1.1.2", "parseurl": "~1.3.3", "path-to-regexp": "^8.0.0", - "setprototypeof": "1.2.0", "utils-merge": "1.0.1" }, "devDependencies": {