@ctx-core/env 16.0.0 → 16.0.5

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,39 @@
1
1
  # @ctx-core/env
2
2
 
3
+ ## 16.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - update dependencies
8
+
9
+ ## 16.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+ - @ctx-core/nanostores@0.6.0
15
+
16
+ ## 16.0.3
17
+
18
+ ### Patch Changes
19
+
20
+ - update dependencies
21
+ - Updated dependencies
22
+ - @ctx-core/error@11.3.1
23
+ - @ctx-core/nanostores@0.5.4
24
+
25
+ ## 16.0.2
26
+
27
+ ### Patch Changes
28
+
29
+ - update dependencies
30
+
31
+ ## 16.0.1
32
+
33
+ ### Patch Changes
34
+
35
+ - update dependencies
36
+
3
37
  ## 16.0.0
4
38
 
5
39
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/env",
3
- "version": "16.0.0",
3
+ "version": "16.0.5",
4
4
  "description": "ctx-core env",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -25,11 +25,11 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@ctx-core/error": "^11.3.0",
29
- "@ctx-core/function": "^20.4.0",
30
- "@ctx-core/nanostores": "^0.5.1",
31
- "@ctx-core/object": "^22.0.13",
32
- "svelte": "^3.46.3"
28
+ "@ctx-core/error": "^11.4.0",
29
+ "@ctx-core/function": "*",
30
+ "@ctx-core/nanostores": "^0.6.0",
31
+ "@ctx-core/object": "*",
32
+ "svelte": "^3.46.4"
33
33
  },
34
34
  "devDependencies": {
35
35
  "c8": "^7.11.0",
@@ -1,8 +1,7 @@
1
1
  import { atom$ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
- const key = 'CACHE_VERSION$'
4
3
  /** @type {import('./CACHE_VERSION$_').CACHE_VERSION$_} */
5
- export const CACHE_VERSION$_ = be_(key, ()=>
4
+ export const CACHE_VERSION$_ = be_('CACHE_VERSION$', ()=>
6
5
  atom$(typeof process === 'object' && process.env.CACHE_VERSION)
7
6
  )
8
7
  export { CACHE_VERSION$_ as b__CACHE_VERSION, }
package/src/NODE_ENV$_.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { atom$ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
- const key = 'NODE_ENV$'
4
3
  /** @type {import('NODE_ENV$_').NODE_ENV$_} */
5
- export const NODE_ENV$_ = be_(key, ()=>atom$(process.env.NODE_ENV)
4
+ export const NODE_ENV$_ = be_('NODE_ENV$', ()=>atom$(process.env.NODE_ENV)
6
5
  )
7
6
  export { NODE_ENV$_ as b__NODE_ENV }
package/src/VERSION$_.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import { atom$ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
- const key = 'VERSION$'
4
3
  /** @type {import('VERSION$_').VERSION$_} */
5
- export const VERSION$_ = be_(key, ()=>
4
+ export const VERSION$_ = be_('VERSION$', ()=>
6
5
  atom$(
7
6
  typeof process === 'object' && (
8
7
  process.env.VERSION || process.env.HEROKU_SLUG_COMMIT
@@ -1,9 +1,8 @@
1
1
  import { computed$ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
3
  import { NODE_ENV$_ } from './NODE_ENV$_.js'
4
- const key = 'is_development$'
5
4
  /** @type {import('is_development$_').is_development$_} */
6
- export const is_development$_ = be_(key, ctx=>
5
+ export const is_development$_ = be_('is_development$', ctx=>
7
6
  computed$(NODE_ENV$_(ctx),
8
7
  (NODE_ENV)=>
9
8
  NODE_ENV === 'dev' || NODE_ENV === 'development.js'
@@ -1,9 +1,8 @@
1
1
  import { computed$ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
3
  import { NODE_ENV$_ } from './NODE_ENV$_.js'
4
- const key = 'is_production$'
5
4
  /** @type {import('is_production$_').is_production$_} */
6
- export const is_production$_ = be_(key, ctx=>
5
+ export const is_production$_ = be_('is_production$', ctx=>
7
6
  computed$(NODE_ENV$_(ctx),
8
7
  (NODE_ENV)=>
9
8
  NODE_ENV === 'prod' || NODE_ENV === 'production.js'
@@ -2,9 +2,8 @@ import { eql_ } from '@ctx-core/function'
2
2
  import { computed$ } from '@ctx-core/nanostores'
3
3
  import { be_ } from '@ctx-core/object'
4
4
  import { NODE_ENV$_ } from './NODE_ENV$_.js'
5
- const key = 'is_staging$'
6
5
  /** @type {import('is_staging$_').is_staging$_} */
7
- export const is_staging$_ = be_(key, ctx=>
6
+ export const is_staging$_ = be_('is_staging$', ctx=>
8
7
  computed$(NODE_ENV$_(ctx),
9
8
  eql_([
10
9
  'staging'