Skip to content

Commit 8b51bf9

Browse files
committed
Remove Object.setPrototypeOf polyfill
1 parent 2e7fb67 commit 8b51bf9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
unreleased
2+
==================
3+
4+
* Remove `Object.setPrototypeOf` polyfill
5+
16
2.0.0 / 2024-09-09
27
==================
38

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const methods = require('methods')
1919
const mixin = require('utils-merge')
2020
const parseUrl = require('parseurl')
2121
const Route = require('./lib/route')
22-
const setPrototypeOf = require('setprototypeof')
2322

2423
/**
2524
* Module variables.
@@ -60,7 +59,7 @@ function Router (options) {
6059
}
6160

6261
// inherit from the correct prototype
63-
setPrototypeOf(router, this)
62+
Object.setPrototypeOf(router, this)
6463

6564
router.caseSensitive = opts.caseSensitive
6665
router.mergeParams = opts.mergeParams

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"methods": "~1.1.2",
1515
"parseurl": "~1.3.3",
1616
"path-to-regexp": "^8.0.0",
17-
"setprototypeof": "1.2.0",
1817
"utils-merge": "1.0.1"
1918
},
2019
"devDependencies": {

0 commit comments

Comments
 (0)