@dhlab/error-boundary
Version:
A universal React error boundary library that works with any router
90 lines (89 loc) • 2.37 kB
JSON
{
"name": "@dhlab/error-boundary",
"version": "0.1.2",
"type": "module",
"description": "A universal React error boundary library that works with any router",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"type-check": "tsc --noEmit",
"lint": "biome check src",
"lint:fix": "biome check --write src",
"format": "biome format --write src",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"prepublishOnly": "npm run build"
},
"keywords": [
"react",
"error-boundary",
"api-error",
"router-agnostic",
"next.js",
"react-router",
"tanstack-router"
],
"author": "dhlab-fe",
"license": "MIT",
"peerDependencies": {
"@tanstack/react-query": "^4.0.0 || ^5.0.0",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"axios": {
"optional": true
},
"ky": {
"optional": true
}
},
"dependencies": {
"react-error-boundary": "^4.0.0",
"ts-pattern": "^5.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.8.0",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-typescript": "^11.0.0",
"@tanstack/react-query": "^5.0.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@vitest/coverage-v8": "^3.2.4",
"axios": "^1.10.0",
"jsdom": "^26.1.0",
"ky": "^1.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^4.0.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"tslib": "^2.8.1",
"typescript": "^5.0.0",
"vitest": "^3.2.4",
"whatwg-fetch": "^3.6.20"
},
"repository": {
"type": "git",
"url": "https://github.com/dhlab-org/error-boundary"
},
"bugs": {
"url": "https://github.com/dhlab-org/error-boundary/issues"
},
"homepage": "https://github.com/dhlab-org/error-boundary#readme",
"packageManager": "yarn@4.5.1"
}