@thi.ng/errors 2.5.42 → 2.5.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +102 -102
  2. package/CHANGELOG.md +0 -61
package/package.json CHANGED
@@ -1,103 +1,103 @@
1
1
  {
2
- "name": "@thi.ng/errors",
3
- "version": "2.5.42",
4
- "description": "Custom error types and error factory functions",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://thi.ng/errors",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- },
23
- {
24
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "test": "bun test",
39
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
- },
41
- "devDependencies": {
42
- "@types/node": "^24.3.0",
43
- "esbuild": "^0.25.9",
44
- "typedoc": "^0.28.12",
45
- "typescript": "^5.9.2"
46
- },
47
- "keywords": [
48
- "assert",
49
- "errors",
50
- "typescript"
51
- ],
52
- "publishConfig": {
53
- "access": "public"
54
- },
55
- "browser": {
56
- "process": false,
57
- "setTimeout": false
58
- },
59
- "engines": {
60
- "node": ">=18"
61
- },
62
- "files": [
63
- "./*.js",
64
- "./*.d.ts"
65
- ],
66
- "exports": {
67
- ".": {
68
- "default": "./index.js"
69
- },
70
- "./assert": {
71
- "default": "./assert.js"
72
- },
73
- "./deferror": {
74
- "default": "./deferror.js"
75
- },
76
- "./ensure": {
77
- "default": "./ensure.js"
78
- },
79
- "./illegal-arguments": {
80
- "default": "./illegal-arguments.js"
81
- },
82
- "./illegal-arity": {
83
- "default": "./illegal-arity.js"
84
- },
85
- "./illegal-state": {
86
- "default": "./illegal-state.js"
87
- },
88
- "./io": {
89
- "default": "./io.js"
90
- },
91
- "./out-of-bounds": {
92
- "default": "./out-of-bounds.js"
93
- },
94
- "./unsupported": {
95
- "default": "./unsupported.js"
96
- }
97
- },
98
- "thi.ng": {
99
- "alias": "err",
100
- "year": 2018
101
- },
102
- "gitHead": "e215a3e8de3809736ba0042c93bd8703a5a1a337\n"
103
- }
2
+ "name": "@thi.ng/errors",
3
+ "version": "2.5.46",
4
+ "description": "Custom error types and error factory functions",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://thi.ng/errors",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ },
23
+ {
24
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "test": "bun test",
39
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
+ },
41
+ "devDependencies": {
42
+ "@types/node": "^24.9.1",
43
+ "esbuild": "^0.25.11",
44
+ "typedoc": "^0.28.14",
45
+ "typescript": "^5.9.3"
46
+ },
47
+ "keywords": [
48
+ "assert",
49
+ "errors",
50
+ "typescript"
51
+ ],
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "browser": {
56
+ "process": false,
57
+ "setTimeout": false
58
+ },
59
+ "engines": {
60
+ "node": ">=18"
61
+ },
62
+ "files": [
63
+ "./*.js",
64
+ "./*.d.ts"
65
+ ],
66
+ "exports": {
67
+ ".": {
68
+ "default": "./index.js"
69
+ },
70
+ "./assert": {
71
+ "default": "./assert.js"
72
+ },
73
+ "./deferror": {
74
+ "default": "./deferror.js"
75
+ },
76
+ "./ensure": {
77
+ "default": "./ensure.js"
78
+ },
79
+ "./illegal-arguments": {
80
+ "default": "./illegal-arguments.js"
81
+ },
82
+ "./illegal-arity": {
83
+ "default": "./illegal-arity.js"
84
+ },
85
+ "./illegal-state": {
86
+ "default": "./illegal-state.js"
87
+ },
88
+ "./io": {
89
+ "default": "./io.js"
90
+ },
91
+ "./out-of-bounds": {
92
+ "default": "./out-of-bounds.js"
93
+ },
94
+ "./unsupported": {
95
+ "default": "./unsupported.js"
96
+ }
97
+ },
98
+ "thi.ng": {
99
+ "alias": "err",
100
+ "year": 2018
101
+ },
102
+ "gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
103
+ }
package/CHANGELOG.md DELETED
@@ -1,61 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ## [2.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.5.0) (2024-03-13)
15
-
16
- #### 🚀 Features
17
-
18
- - add CustomError interface, update docs, add tests ([d2ea8b2](https://github.com/thi-ng/umbrella/commit/d2ea8b2))
19
-
20
- ### [2.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.4.1) (2023-11-09)
21
-
22
- #### ♻️ Refactoring
23
-
24
- - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
25
-
26
- ## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.4.0) (2023-10-24)
27
-
28
- #### 🚀 Features
29
-
30
- - update assert() import.meta.env check ([#425](https://github.com/thi-ng/umbrella/issues/425)) ([d30d000](https://github.com/thi-ng/umbrella/commit/d30d000))
31
- - also check for `import.meta.env.UMBRELLA_ASSERTS` for non-ViteJS tooling
32
- - btw. this is **not** a fix for the esbuild issue in [#425](https://github.com/thi-ng/umbrella/issues/425)
33
- (but part of its solution posted in comments)
34
-
35
- ## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.3.0) (2023-08-04)
36
-
37
- #### 🚀 Features
38
-
39
- - add ensureXXX() functions ([be70868](https://github.com/thi-ng/umbrella/commit/be70868))
40
-
41
- ### [2.2.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.2.3) (2022-10-28)
42
-
43
- #### 🩹 Bug fixes
44
-
45
- - potential fix regression of env var check ([#361](https://github.com/thi-ng/umbrella/issues/361)) ([1d3a805](https://github.com/thi-ng/umbrella/commit/1d3a805))
46
-
47
- ### [2.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.2.2) (2022-10-04)
48
-
49
- #### 🩹 Bug fixes
50
-
51
- - update assertion switch logic ([781470d](https://github.com/thi-ng/umbrella/commit/781470d))
52
- - remove support for obsolete (& broken) snowpack setup
53
- - add support for Vite's env var handling
54
-
55
- ## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.2.0) (2022-09-21)
56
-
57
- #### 🚀 Features
58
-
59
- - add I/O error types & factories ([898584b](https://github.com/thi-ng/umbrella/commit/898584b))
60
- - add IOError
61
- - add FileNotFoundError