Skip to content

Commit

Permalink
Remove Object.setPrototypeOf polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillip9587 committed Oct 22, 2024
1 parent 2e7fb67 commit 8b51bf9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
unreleased
==================

* Remove `Object.setPrototypeOf` polyfill

2.0.0 / 2024-09-09
==================

Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 8b51bf9

Please sign in to comment.