@thi.ng/expose 1.1.37 → 1.2.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-10-23T07:37:37Z
3
+ - **Last updated**: 2023-10-25T12:40:55Z
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/README.md CHANGED
@@ -58,7 +58,7 @@ For Node.js REPL:
58
58
  const expose = await import("@thi.ng/expose");
59
59
  ```
60
60
 
61
- Package sizes (brotli'd, pre-treeshake): ESM: 201 bytes
61
+ Package sizes (brotli'd, pre-treeshake): ESM: 205 bytes
62
62
 
63
63
  ## Dependencies
64
64
 
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.37",
3
+ "version": "1.2.1",
4
4
  "description": "Conditional global variable exposition",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -68,5 +68,5 @@
68
68
  }
69
69
  },
70
70
  "thi.ng": {},
71
- "gitHead": "8d46d9326a9f9b81d65e7e274446f5964f9942ac\n"
71
+ "gitHead": "fc6e14052ed24bf9196896980ceb9f398b6ea6c1\n"
72
72
  }