@stacksjs/utils 0.62.0 → 0.63.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/utils",
3
3
  "type": "module",
4
- "version": "0.62.0",
4
+ "version": "0.63.1",
5
5
  "description": "The Stacks helper functions.",
6
6
  "author": "Chris Breuer",
7
7
  "funding": "https://github.com/sponsors/chrisbbreuer",
@@ -51,29 +51,7 @@
51
51
  "prepublishOnly": "bun run build",
52
52
  "size": "bun scripts/export-size.ts"
53
53
  },
54
- "peerDependencies": {
55
- "@stacksjs/actions": "latest",
56
- "@stacksjs/arrays": "latest",
57
- "@stacksjs/cli": "latest",
58
- "@stacksjs/config": "latest",
59
- "@stacksjs/development": "latest",
60
- "@stacksjs/lint": "latest",
61
- "@stacksjs/path": "latest",
62
- "@stacksjs/storage": "latest",
63
- "@stacksjs/strings": "latest",
64
- "@stacksjs/types": "latest",
65
- "@types/js-yaml": "^4.0.9",
66
- "@vueuse/core": "^10.11.0",
67
- "@vueuse/head": "^2.0.0",
68
- "@vueuse/math": "^10.11.0",
69
- "@vueuse/shared": "^10.11.0",
70
- "bun-plugin-env": "^0.4.1",
71
- "bun-plugin-yml": "^0.3.1",
72
- "export-size": "^0.7.0",
73
- "yaml": "^2.4.5"
74
- },
75
54
  "dependencies": {
76
- "@dinero.js/currencies": "2.0.0-alpha.14",
77
55
  "@stacksjs/actions": "latest",
78
56
  "@stacksjs/arrays": "latest",
79
57
  "@stacksjs/cli": "latest",
@@ -83,16 +61,15 @@
83
61
  "@stacksjs/storage": "latest",
84
62
  "@stacksjs/strings": "latest",
85
63
  "@stacksjs/types": "latest",
86
- "@vueuse/core": "^10.11.0",
64
+ "@vueuse/core": "^11.0.0",
87
65
  "@vueuse/head": "^2.0.0",
88
- "@vueuse/math": "^10.11.0",
89
- "@vueuse/shared": "^10.11.0",
66
+ "@vueuse/math": "^11.0.0",
67
+ "@vueuse/shared": "^11.0.0",
90
68
  "bun-plugin-env": "^0.4.1",
91
69
  "bun-plugin-yml": "^0.3.1",
92
70
  "defu": "^6.1.4",
93
71
  "detect-indent": "^7.0.1",
94
72
  "detect-newline": "^4.0.1",
95
- "dinero.js": "2.0.0-alpha.14",
96
73
  "export-size": "^0.7.0",
97
74
  "js-yaml": "^4.1.0",
98
75
  "kolorist": "1.8.0",
@@ -100,10 +77,10 @@
100
77
  "magic-regexp": "^0.8.0",
101
78
  "perfect-debounce": "^1.0.0",
102
79
  "pretty-bytes": "^6.1.1",
103
- "ace-builds": "^1.35.2",
80
+ "ace-builds": "^1.35.4",
104
81
  "resize-observer-polyfill": "^1.5.1",
105
82
  "vue3-ace-editor": "^2.2.4",
106
- "yaml": "^2.4.5"
83
+ "yaml": "^2.5.0"
107
84
  },
108
85
  "devDependencies": {
109
86
  "@stacksjs/development": "latest",
package/src/clean.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { path as p } from '@stacksjs/path'
2
- import { $ } from 'bun'
3
2
 
4
3
  export async function cleanProject() {
4
+ const $ = Bun.$
5
5
  await $`rm -rf ${p.projectPath('bun.lockb')}`
6
6
  await $`rm -rf ${p.projectPath('yarn.lock')}` // just in case
7
7
  await $`rm -rf ${p.projectPath('node_modules/')}`
package/src/hash.ts CHANGED
@@ -14,12 +14,22 @@ export function originRequestFunctionHash() {
14
14
  }
15
15
 
16
16
  export function websiteSourceHash() {
17
- const docsSrc = [p.projectPath('docs'), p.projectPath('config/docs.ts')]
18
-
17
+ const docsSrc = [p.projectPath('docs')]
19
18
  const websiteSrc = [
20
19
  p.projectPath('resources/views'),
21
- // p.projectPath('config/app.ts'),
20
+ p.projectPath('resources/assets'),
21
+ p.projectPath('resources/lang'),
22
+ p.projectPath('resources/functions'),
23
+ p.projectPath('resources/components'),
24
+ p.projectPath('resources/modules'),
25
+ p.projectPath('resources/stores'),
22
26
  ]
23
27
 
24
28
  return config.app.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc)
25
29
  }
30
+
31
+ export function docsSourceHash() {
32
+ const docsSrc = [p.projectPath('docs')]
33
+
34
+ return hashPaths(docsSrc)
35
+ }
package/src/index.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export * from './base'
2
2
  export * from './clean'
3
3
  export * from './config'
4
- export * from './currency'
5
4
  export * from './debounce'
6
5
  export * from './equal'
7
6
  export * from './export-size'
package/src/currency.ts DELETED
@@ -1,29 +0,0 @@
1
- export {
2
- add,
3
- allocate,
4
- compare,
5
- convert,
6
- equal,
7
- greaterThan,
8
- greaterThanOrEqual,
9
- hasSubUnits,
10
- isZero,
11
- lessThan,
12
- lessThanOrEqual,
13
- maximum,
14
- minimum,
15
- multiply,
16
- normalizeScale,
17
- dinero,
18
- dinero as money,
19
- subtract,
20
- toSnapshot,
21
- toUnits,
22
- toDecimal,
23
- trimScale,
24
- haveSameCurrency,
25
- haveSameAmount,
26
- dinero as currency,
27
- } from 'dinero.js'
28
- export { USD } from '@dinero.js/currencies'
29
- export type { Dinero, Currency } from 'dinero.js'