brilliant-errors
Advanced tools
Comparing version 0.7.0 to 0.7.1
{ | ||
"name": "brilliant-errors", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "A set of configurators to help your Apps and Libraries build brilliant error classes", | ||
@@ -18,3 +18,2 @@ "keywords": [ | ||
"author": "Ken Snyder <ken@ken.net>", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
@@ -25,4 +24,3 @@ "typings": "./dist/index.d.ts", | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
"import": "./dist/index.js" | ||
} | ||
@@ -34,3 +32,3 @@ }, | ||
"scripts": { | ||
"build": "npx tsup src/index.ts --format=esm,cjs --dts --clean", | ||
"build": "npx tsup src/index.ts --format=esm --dts --clean", | ||
"latest": "yarn do latest -v", | ||
@@ -46,3 +44,3 @@ "lint": "run-s lint:*", | ||
"watch:ai": "npx dd autoindex --watch", | ||
"watch:tsup": "npx tsup src/index.ts --format=esm,cjs --dts --watch", | ||
"watch:tsup": "npx tsup src/index.ts --format=esm --dts --watch", | ||
"release": "run-s build lint test:ci release:latest audit:fix release:bump", | ||
@@ -49,0 +47,0 @@ "release:latest": "pnpm install", |
# Brilliant Errors | ||
> **Note:** the version 6.x of this library had moved to newer dependencies wand the `callsites` library _only_ support the ESM module system these days but because we were packaging up in both ESM and CJS it was causing errors. I had intended to keep CJS around for a while longer but in most cases you really should be preferring ESM anyway. In version **7.x** and going forward we are only publishing version ESM. If you still need CJS you can use the latest `0.5.x` release. | ||
The base errors you get from Javascript leave a lot to be desired and this library attempts to provide a _consistent_ way to provide solid meta information on errors raised in Typescript/Javascript projects. | ||
@@ -36,3 +38,2 @@ | ||
All errors have the following attributes: | ||
@@ -52,2 +53,3 @@ | ||
`src/error/MyError.ts`: | ||
```ts | ||
@@ -57,2 +59,2 @@ export default MyError = createLibraryError('MyError', { ... }); | ||
All options in the configurators are strongly typed which includes full documentatory information so rather than try to repeat that here we emplore you to use the _built-in_ Typescript documentation within your code editor of choice. | ||
All options in the configurators are strongly typed which includes full documentatory information so rather than try to repeat that here we emplore you to use the _built-in_ Typescript documentation within your code editor of choice. |
58
18191
5
278