@thi.ng/expose 1.1.36 → 1.2.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 (3) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/index.js +1 -0
  3. package/package.json +7 -7
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
+ ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/expose@1.2.0) (2023-10-24)
13
+
14
+ #### 🚀 Features
15
+
16
+ - update import.meta.env check ([#425](https://github.com/thi-ng/umbrella/issues/425)) ([c8aa353](https://github.com/thi-ng/umbrella/commit/c8aa353))
17
+ - also check for `import.meta.env.UMBRELLA_GLOBALS` 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
  ### [1.1.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/expose@1.1.15) (2022-10-29)
13
22
 
14
23
  #### 🩹 Bug fixes
package/index.js CHANGED
@@ -20,6 +20,7 @@ export const exposeGlobal = (id, value, always = false) => {
20
20
  !!process.env.UMBRELLA_GLOBALS
21
21
  : import.meta.env
22
22
  ? import.meta.env.MODE !== "production" ||
23
+ !!import.meta.env.UMBRELLA_GLOBALS ||
23
24
  !!import.meta.env.VITE_UMBRELLA_GLOBALS
24
25
  : true))) {
25
26
  glob[id] = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/expose",
3
- "version": "1.1.36",
3
+ "version": "1.2.0",
4
4
  "description": "Conditional global variable exposition",
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": [
@@ -68,5 +68,5 @@
68
68
  }
69
69
  },
70
70
  "thi.ng": {},
71
- "gitHead": "5929dd20497668496af13415cdf784a4d6f69aa3\n"
71
+ "gitHead": "dc7eeaba72f3c3977f2d6cc201e595ed6d68e2ad\n"
72
72
  }