@thi.ng/errors 2.3.5 → 2.4.0

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-08-27T11:20:59Z
3
+ - **Last updated**: 2023-10-24T08:38:23Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,15 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.4.0) (2023-10-24)
13
+
14
+ #### 🚀 Features
15
+
16
+ - update assert() import.meta.env check ([#425](https://github.com/thi-ng/umbrella/issues/425)) ([d30d000](https://github.com/thi-ng/umbrella/commit/d30d000))
17
+ - also check for `import.meta.env.UMBRELLA_ASSERTS` for non-ViteJS tooling
18
+ - btw. this is **not** a fix for the esbuild issue in [#425](https://github.com/thi-ng/umbrella/issues/425)
19
+ (but part of its solution posted in comments)
20
+
12
21
  ## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.3.0) (2023-08-04)
13
22
 
14
23
  #### 🚀 Features
package/assert.js CHANGED
@@ -13,6 +13,7 @@ export const assert = (typeof process !== "undefined" && process.env !== undefin
13
13
  !!process.env.UMBRELLA_ASSERTS
14
14
  : import.meta.env
15
15
  ? import.meta.env.MODE !== "production" ||
16
+ !!import.meta.env.UMBRELLA_ASSERTS ||
16
17
  !!import.meta.env.VITE_UMBRELLA_ASSERTS
17
18
  : true)
18
19
  ? (test, msg) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/errors",
3
- "version": "2.3.5",
3
+ "version": "2.4.0",
4
4
  "description": "Custom error types and error factory functions",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,12 +34,12 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "devDependencies": {
37
- "@microsoft/api-extractor": "^7.36.4",
38
- "@thi.ng/testament": "^0.3.23",
39
- "@types/node": "^20.5.6",
40
- "rimraf": "^5.0.1",
37
+ "@microsoft/api-extractor": "^7.38.0",
38
+ "@thi.ng/testament": "^0.3.24",
39
+ "@types/node": "^20.8.7",
40
+ "rimraf": "^5.0.5",
41
41
  "tools": "^0.0.1",
42
- "typedoc": "^0.25.0",
42
+ "typedoc": "^0.25.2",
43
43
  "typescript": "^5.2.2"
44
44
  },
45
45
  "keywords": [
@@ -96,5 +96,5 @@
96
96
  "thi.ng": {
97
97
  "year": 2018
98
98
  },
99
- "gitHead": "5929dd20497668496af13415cdf784a4d6f69aa3\n"
99
+ "gitHead": "dc7eeaba72f3c3977f2d6cc201e595ed6d68e2ad\n"
100
100
  }