Skip to content

[Replacement]: domexception #1312

Backlog
Backlog

Description

@rickysinghmba

Package to replace

domexception

Package link

https://npmx.dev/package/domexception

Native replacement(s)

DOMException

Documentation

https://developer.mozilla.org/en-US/docs/Web/API/DOMException

Availability

Global in Node.js 17+, and in all browsers

Rationale

domexception (from jsdom) is deprecated on npm with the message "Use your platform's native DOMException instead". It's the same case as node-domexception (#718), which is already in the native manifest mapped to DOMException, so this would be one more mapping to the existing replacement. ~27.8M weekly downloads.

Code example (optional)

import DOMException from 'domexception' // [!code --]

throw new DOMException('The operation was aborted', 'AbortError')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions