@ssa-ui-kit/core 3.20.0 → 3.20.1

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.
@@ -10,9 +10,18 @@
10
10
  * `if (true) return;` in the published bundle, silently, while still firing in
11
11
  * this repo's Jest runs.
12
12
  *
13
- * The `typeof process` guard is what makes leaving the value unresolved safe:
14
- * a runtime that never defines `process` (a plain `<script type="module">`, a
15
- * bare worker) gets silence rather than a ReferenceError. Erring toward silence
16
- * is rightno diagnostic is worth crashing a consumer over.
13
+ * The expression must be a *bare* `process.env.NODE_ENV`, with nothing guarding
14
+ * it. Bundlers substitute that literal token sequence and nothing else: a
15
+ * `typeof process === 'undefined'` check in front of it is left untouched, so
16
+ * in a browser where there is no `process` global the guard returns `false`
17
+ * before the correctly-substituted value is ever reached, and every diagnostic
18
+ * goes dark for exactly the consumers they exist for. Same bug as the one
19
+ * above, entered from the other side.
20
+ *
21
+ * `try/catch` keeps the guarantee the guard was there for: a runtime that never
22
+ * defines `process` *and* whose bundler substituted nothing (a plain
23
+ * `<script type="module">`, a bare worker) throws a ReferenceError, which is
24
+ * caught here as silence rather than a crash. Erring toward silence is right —
25
+ * no diagnostic is worth crashing a consumer over.
17
26
  */
18
27
  export declare const isDevEnvironment: () => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssa-ui-kit/core",
3
- "version": "3.20.0",
3
+ "version": "3.20.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -40,8 +40,8 @@
40
40
  "luxon": "3.5.0",
41
41
  "plotly.js": "3.0.0",
42
42
  "react-plotly.js": "2.6.0",
43
- "@ssa-ui-kit/hooks": "^3.20.0",
44
- "@ssa-ui-kit/utils": "^3.20.0"
43
+ "@ssa-ui-kit/hooks": "^3.20.1",
44
+ "@ssa-ui-kit/utils": "^3.20.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@emotion/css": "11.13.5",