@ctx-core/env 17.2.17 → 17.2.18

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,5 +1,11 @@
1
1
  # @ctx-core/env
2
2
 
3
+ ## 17.2.18
4
+
5
+ ### Patch Changes
6
+
7
+ - import*meta_env*() instead of process.env
8
+
3
9
  ## 17.2.17
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/env",
3
- "version": "17.2.17",
3
+ "version": "17.2.18",
4
4
  "description": "ctx-core env",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -1,8 +1,9 @@
1
1
  import { atom_ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
+ import { import_meta_env_ } from '../import_meta_env/index.js'
3
4
  /** @type {typeof import('./index.d.ts').CACHE_VERSION__} */
4
5
  export const CACHE_VERSION__ = be_('CACHE_VERSION__', ()=>
5
- atom_(typeof process === 'object' && process.env.CACHE_VERSION))
6
+ atom_(typeof process === 'object' && import_meta_env_().CACHE_VERSION))
6
7
  export {
7
8
  CACHE_VERSION__ as CACHE_VERSION$_,
8
9
  CACHE_VERSION__ as b__CACHE_VERSION,
@@ -1,8 +1,9 @@
1
1
  import { atom_ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
+ import { import_meta_env_ } from '../import_meta_env/index.js'
3
4
  /** @type {typeof import('./index.d.ts').NODE_ENV__} */
4
5
  export const NODE_ENV__ = be_('NODE_ENV__', ()=>
5
- atom_(process.env.NODE_ENV))
6
+ atom_(import_meta_env_().NODE_ENV))
6
7
  export {
7
8
  NODE_ENV__ as NODE_ENV$_,
8
9
  NODE_ENV__ as b__NODE_ENV,
@@ -1,10 +1,11 @@
1
1
  import { atom_ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
+ import { import_meta_env_ } from '../import_meta_env/index.js'
3
4
  /** @type {typeof import('./index.d.ts').VERSION__} */
4
5
  export const VERSION__ = be_('VERSION__', ()=>
5
6
  atom_(
6
7
  typeof process === 'object' && (
7
- process.env.VERSION || process.env.HEROKU_SLUG_COMMIT
8
+ import_meta_env_().VERSION || import_meta_env_().HEROKU_SLUG_COMMIT
8
9
  )
9
10
  || Math.random().toString())
10
11
  )