@simbo/user-facing-error 3.0.0 → 3.1.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/package.json +10 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @simbo/user-facing-error
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 209dc05: Support browsers in addition to Node.js.
8
+
9
+ - The packages declare the shared Browserslist configuration
10
+ `@simbo/browserslist-config` next to `engines`.
11
+ - They are built and linted with the `universal` configurations of
12
+ `@simbo/tsconfig` and `@simbo/eslint-config`, which reject Node.js and DOM
13
+ APIs.
14
+
15
+ ### Patch Changes
16
+
17
+ - 209dc05: Declare the packages free of side effects with
18
+ `"sideEffects": false`, so bundlers can drop unused modules.
19
+ - Updated dependencies [209dc05]
20
+ - Updated dependencies [209dc05]
21
+ - @simbo/stringify-error@3.1.0
22
+
3
23
  ## 3.0.0
4
24
 
5
25
  ### Major Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simbo/user-facing-error",
3
3
  "description": "A custom Error class for creating user-facing error messages with an optional hint to guide users toward resolving issues.",
4
- "version": "3.0.0",
4
+ "version": "3.1.0",
5
5
  "keywords": [
6
6
  "error",
7
7
  "error-handling",
@@ -27,7 +27,11 @@
27
27
  "engines": {
28
28
  "node": "^24.15.0 || >=26.0.0"
29
29
  },
30
+ "browserslist": [
31
+ "extends @simbo/browserslist-config"
32
+ ],
30
33
  "type": "module",
34
+ "sideEffects": false,
31
35
  "exports": {
32
36
  ".": "./dist/index.js"
33
37
  },
@@ -38,11 +42,12 @@
38
42
  "README.md"
39
43
  ],
40
44
  "dependencies": {
41
- "@simbo/stringify-error": "3.0.0"
45
+ "@simbo/stringify-error": "3.1.0"
42
46
  },
43
47
  "devDependencies": {
44
- "@simbo/eslint-config": "5.0.0",
45
- "@simbo/tsconfig": "3.0.0",
48
+ "@simbo/browserslist-config": "1.0.1",
49
+ "@simbo/eslint-config": "5.1.0",
50
+ "@simbo/tsconfig": "4.0.0",
46
51
  "@types/node": "^24.19.2",
47
52
  "@vitest/coverage-v8": "^5.1.1",
48
53
  "@vitest/ui": "^5.1.1",
@@ -55,6 +60,7 @@
55
60
  "build": "tsc --project tsconfig.build.json",
56
61
  "check": "pnpm run check:eslint && pnpm run check:types",
57
62
  "check:eslint": "eslint --config ./eslint.config.ts --max-warnings 0",
63
+ "check:pack": "node ../../scripts/check-pack.js",
58
64
  "check:types": "tsc --noEmit",
59
65
  "clean": "pnpm run clean:dist && pnpm run clean:coverage && pnpm run clean:turbo && pnpm run clean:node_modules",
60
66
  "clean:dist": "rm -rf dist",