stacks 0.49.1 → 0.49.3

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 (99) hide show
  1. package/README.md +2 -2
  2. package/buddy/README.md +2 -2
  3. package/buddy/package.json +3 -3
  4. package/buddy/src/commands/dev.ts +15 -2
  5. package/buddy/src/commands/fresh.ts +1 -1
  6. package/buddy/src/commands/lint.ts +2 -2
  7. package/buddy/src/commands/release.ts +8 -0
  8. package/components/vue/package.json +1 -1
  9. package/components/web/package.json +1 -1
  10. package/core/actions/package.json +3 -3
  11. package/core/actions/src/dev.ts +0 -2
  12. package/core/actions/src/helpers/utils.ts +2 -2
  13. package/core/actions/src/lint-fix.ts +1 -1
  14. package/core/ai/package.json +3 -3
  15. package/core/alias/package.json +3 -3
  16. package/core/arrays/package.json +3 -3
  17. package/core/arrays/src/index.ts +14 -0
  18. package/core/auth/package.json +3 -3
  19. package/core/build/package.json +3 -3
  20. package/core/cache/package.json +7 -5
  21. package/core/cache/src/drivers/memcached.ts +1 -1
  22. package/core/cache/src/drivers/upstash.ts +2 -0
  23. package/core/cache/src/index.ts +1 -0
  24. package/core/chat/package.json +3 -4
  25. package/core/cli/README.md +1 -1
  26. package/core/cli/package.json +3 -3
  27. package/core/cli/src/actions/run.ts +4 -1
  28. package/core/cli/src/helpers.ts +1 -1
  29. package/core/cloud/package.json +3 -3
  30. package/core/collections/package.json +3 -3
  31. package/core/config/package.json +3 -3
  32. package/core/dashboard/package.json +3 -3
  33. package/core/database/package.json +4 -4
  34. package/core/datetime/package.json +3 -3
  35. package/core/desktop/node_modules/.bin/tauri +2 -2
  36. package/core/desktop/package.json +4 -4
  37. package/core/docs/node_modules/.bin/vitepress +2 -2
  38. package/core/docs/package.json +4 -4
  39. package/core/domains/package.json +3 -3
  40. package/core/drivers/package.json +3 -3
  41. package/core/email/package.json +4 -4
  42. package/core/error-handling/package.json +3 -3
  43. package/core/events/package.json +3 -3
  44. package/core/git/node_modules/.bin/commitizen +2 -2
  45. package/core/git/node_modules/.bin/cz +2 -2
  46. package/core/git/node_modules/.bin/git-cz +2 -2
  47. package/core/git/package.json +3 -3
  48. package/core/health/package.json +3 -3
  49. package/core/lint/package.json +3 -3
  50. package/core/logging/package.json +3 -3
  51. package/core/modules/package.json +3 -3
  52. package/core/notifications/README.md +3 -0
  53. package/core/notifications/build.config.ts +1 -0
  54. package/core/notifications/package.json +6 -5
  55. package/core/notifications/src/index.ts +2 -2
  56. package/core/objects/package.json +3 -3
  57. package/core/objects/src/index.ts +17 -1
  58. package/core/path/package.json +3 -3
  59. package/core/payments/package.json +3 -3
  60. package/core/push/package.json +3 -4
  61. package/core/queue/README.md +59 -0
  62. package/core/{chat/node_modules/.bin/maizzle → queue/node_modules/.bin/mkdist} +2 -2
  63. package/core/{push/node_modules/.bin/maizzle → queue/node_modules/.bin/tsc} +2 -2
  64. package/core/{sms/node_modules/.bin/maizzle → queue/node_modules/.bin/tsserver} +2 -2
  65. package/core/queue/package.json +54 -0
  66. package/core/queue/src/index.ts +1 -0
  67. package/core/queue/tests/example.test.ts +7 -0
  68. package/core/realtime/package.json +3 -3
  69. package/core/router/package.json +3 -3
  70. package/core/search-engine/package.json +4 -4
  71. package/core/search-engine/src/index.ts +0 -1
  72. package/core/security/package.json +3 -3
  73. package/core/server/package.json +3 -3
  74. package/core/sms/package.json +3 -5
  75. package/core/storage/package.json +3 -3
  76. package/core/storage/src/index.ts +1 -3
  77. package/core/strings/package.json +3 -3
  78. package/core/tables/dist/index.html +15 -0
  79. package/core/tables/package.json +2 -2
  80. package/core/tables/vite.config.ts +1 -1
  81. package/core/testing/node_modules/.bin/vitest +2 -2
  82. package/core/testing/package.json +6 -6
  83. package/core/types/node_modules/.bin/vitepress +2 -2
  84. package/core/types/package.json +5 -5
  85. package/core/types/src/cli.ts +5 -5
  86. package/core/types/src/notifications.ts +2 -2
  87. package/core/ui/package.json +4 -4
  88. package/core/utils/node_modules/.bin/rimraf +2 -2
  89. package/core/utils/package.json +7 -7
  90. package/core/utils/src/base.ts +14 -5
  91. package/core/utils/src/equal.ts +27 -0
  92. package/core/utils/src/helpers.ts +2 -1
  93. package/core/utils/src/index.ts +5 -4
  94. package/core/utils/src/is.ts +11 -9
  95. package/core/utils/src/p.ts +4 -3
  96. package/core/utils/src/promise.ts +50 -17
  97. package/core/x-ray/package.json +3 -3
  98. package/functions/package.json +1 -1
  99. package/package.json +4 -4
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@stacksjs/queue",
3
+ "type": "module",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
+ "description": "The Stacks Queue system.",
7
+ "author": "Chris Breuer",
8
+ "license": "MIT",
9
+ "funding": "https://github.com/sponsors/chrisbbreuer",
10
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/queue#readme",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/stacksjs/stacks.git",
14
+ "directory": "./.stacks/core/queue"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/stacksjs/stacks/issues"
18
+ },
19
+ "keywords": [
20
+ "queue",
21
+ "bee-queue",
22
+ "redis",
23
+ "upstash",
24
+ "stacks",
25
+ "framework",
26
+ "typescript",
27
+ "javascript"
28
+ ],
29
+ "main": "dist/index.mjs",
30
+ "module": "dist/index.mjs",
31
+ "types": "dist/index.d.ts",
32
+ "contributors": [
33
+ "Chris Breuer <chris@ow3.org>"
34
+ ],
35
+ "files": [
36
+ "dist",
37
+ "README.md"
38
+ ],
39
+ "engines": {
40
+ "node": ">=v18.13.0",
41
+ "pnpm": ">=7.25.1"
42
+ },
43
+ "scripts": {
44
+ "build": "mkdist -d",
45
+ "dev": "mkdist -d",
46
+ "prepublishOnly": "pnpm run build",
47
+ "typecheck": "tsc --noEmit"
48
+ },
49
+ "devDependencies": {
50
+ "@stacksjs/testing": "workspace:*",
51
+ "mkdist": "^1.1.0",
52
+ "typescript": "^4.9.4"
53
+ }
54
+ }
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,7 @@
1
+ import { assert, describe, test } from 'vitest'
2
+
3
+ describe('example test', () => {
4
+ test('assert', () => {
5
+ assert.equal(1, 1)
6
+ })
7
+ })
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/realtime",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks realtime integration.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "engines": {
37
37
  "node": ">=v18.13.0",
38
- "pnpm": ">=7.25.0"
38
+ "pnpm": ">=7.25.1"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/router",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks framework router.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "engines": {
37
37
  "node": ">=v18.13.0",
38
- "pnpm": ">=7.25.0"
38
+ "pnpm": ">=7.25.1"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/search-engine",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks search engine integrations.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  ],
42
42
  "engines": {
43
43
  "node": ">=v18.13.0",
44
- "pnpm": ">=7.25.0"
44
+ "pnpm": ">=7.25.1"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "mkdist -d",
@@ -52,7 +52,7 @@
52
52
  "peerDependencies": {
53
53
  "@stacksjs/cli": "workspace:*",
54
54
  "@stacksjs/config": "workspace:*",
55
- "@vueuse/core": "^9.10.0",
55
+ "@vueuse/core": "^9.11.0",
56
56
  "meilisearch": "^0.30.0",
57
57
  "vue": "^3.2.45"
58
58
  },
@@ -22,7 +22,6 @@ export const lastPageNumber = computed(() => table.lastPageNumber)
22
22
  export const perPage = computed(() => table.perPage)
23
23
  export const query = computed(() => table.query)
24
24
  export const results = computed(() => table.results)
25
- export const search = computed(() => table.search)
26
25
  export const searchFilters = computed(() => table.searchFilters)
27
26
  export const searchParams = computed(() => table.searchParams)
28
27
  export const setTotalHits = computed(() => table.setTotalHits)
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/security",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks framework security.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "engines": {
36
36
  "node": ">=v18.13.0",
37
- "pnpm": ">=7.25.0"
37
+ "pnpm": ">=7.25.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/server",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "Local development and production-ready.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "engines": {
39
39
  "node": ">=v18.13.0",
40
- "pnpm": ">=7.25.0"
40
+ "pnpm": ">=7.25.1"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/sms",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -18,7 +18,6 @@
18
18
  },
19
19
  "keywords": [
20
20
  "sms",
21
- "ses",
22
21
  "stacks",
23
22
  "gupshup",
24
23
  "nexmo",
@@ -41,7 +40,7 @@
41
40
  ],
42
41
  "engines": {
43
42
  "node": ">=v18.13.0",
44
- "pnpm": ">=7.25.0"
43
+ "pnpm": ">=7.25.1"
45
44
  },
46
45
  "scripts": {
47
46
  "build": "mkdist -d",
@@ -50,7 +49,6 @@
50
49
  "typecheck": "tsc --noEmit"
51
50
  },
52
51
  "peerDependencies": {
53
- "@maizzle/framework": "latest",
54
52
  "@novu/gupshup": "^0.10.2",
55
53
  "@novu/nexmo": "^0.10.2",
56
54
  "@novu/node": "^0.10.2",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks file system.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "engines": {
40
40
  "node": ">=v18.13.0",
41
- "pnpm": ">=7.25.0"
41
+ "pnpm": ">=7.25.1"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "mkdist -d",
@@ -1,7 +1,6 @@
1
1
  import { fileURLToPath } from 'node:url'
2
2
  import fs from 'fs-extra'
3
- import detectIndent from 'detect-indent'
4
- import { detectNewline } from 'detect-newline'
3
+ import { detectIndent, detectNewline } from '@stacksjs/utils'
5
4
  import type { JsonFile, TextFile } from '@stacksjs/types'
6
5
  import { componentsPath, dirname, functionsPath, join, projectPath } from '@stacksjs/path'
7
6
  import { contains } from '@stacksjs/arrays'
@@ -200,7 +199,6 @@ export const filesystem = {
200
199
  doesFolderExist,
201
200
  fs, // potentially refactor to `...fs` but, currently, there is an issues when building @stacksjs/config
202
201
  // the problem is relating to https://github.com/microsoft/TypeScript/issues/5711#issuecomment-157793294
203
- fileURLToPath,
204
202
  }
205
203
 
206
204
  export default filesystem
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/strings",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks string utilities.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  ],
47
47
  "engines": {
48
48
  "node": ">=v18.13.0",
49
- "pnpm": ">=7.25.0"
49
+ "pnpm": ">=7.25.1"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "unbuild",
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Vite + Vue</title>
8
+ <script type="module" crossorigin src="/assets/index-ee90d6db.js"></script>
9
+ <link rel="stylesheet" href="/assets/index-b1ae86b3.css">
10
+ </head>
11
+ <body>
12
+ <div id="app"></div>
13
+
14
+ </body>
15
+ </html>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacksjs/tables",
3
- "version": "0.49.1",
3
+ "version": "0.49.3",
4
4
  "description": "The easy & modern way to work with tables. Facet filtering, searching, pagination, ...",
5
5
  "author": "Open Web Labs",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "engines": {
30
30
  "node": ">=v18.13.0",
31
- "pnpm": ">=7.25.0"
31
+ "pnpm": ">=7.25.1"
32
32
  },
33
33
  "scripts": {
34
34
  "dev": "vite",
@@ -10,7 +10,7 @@ export default defineConfig({
10
10
  },
11
11
  build: {
12
12
  rollupOptions: {
13
- external: ['vue', 'vue-demi'],
13
+ external: ['vue', 'vue-demi', 'chalk', 'cac', 'human-signals', 'execa', 'node-ray', 'node:url'],
14
14
  output: {
15
15
  // exports: 'named',
16
16
  globals: {
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.27.1_@vitest+ui@0.27.1/node_modules/vitest/vitest.mjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.27.2_@vitest+ui@0.27.2/node_modules/vitest/vitest.mjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.27.1_@vitest+ui@0.27.1/node_modules/vitest/vitest.mjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.27.2_@vitest+ui@0.27.2/node_modules/vitest/vitest.mjs" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/testing",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks way of testing.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  ],
41
41
  "engines": {
42
42
  "node": ">=v18.13.0",
43
- "pnpm": ">=7.25.0"
43
+ "pnpm": ">=7.25.1"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "mkdist -d",
@@ -50,9 +50,9 @@
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@playwright/test": "^1.29.2",
53
- "@vitest/coverage-istanbul": "^0.27.1",
54
- "@vitest/ui": "^0.27.1",
55
- "vitest": "^0.27.1"
53
+ "@vitest/coverage-istanbul": "^0.27.2",
54
+ "@vitest/ui": "^0.27.2",
55
+ "vitest": "^0.27.2"
56
56
  },
57
57
  "devDependencies": {
58
58
  "mkdist": "^1.1.0",
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.36_j73j5xdbzpkigstapj6vkce2xy/node_modules/vitepress/bin/vitepress.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.38_j73j5xdbzpkigstapj6vkce2xy/node_modules/vitepress/bin/vitepress.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.36_j73j5xdbzpkigstapj6vkce2xy/node_modules/vitepress/bin/vitepress.js" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.38_j73j5xdbzpkigstapj6vkce2xy/node_modules/vitepress/bin/vitepress.js" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks framework types.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "engines": {
36
36
  "node": ">=v18.13.0",
37
- "pnpm": ">=7.25.0"
37
+ "pnpm": ">=7.25.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "mkdist -d",
@@ -46,7 +46,7 @@
46
46
  "@mdit-vue/plugin-component": "^0.11.2",
47
47
  "@mdit-vue/plugin-frontmatter": "^0.11.1",
48
48
  "@mdit-vue/types": "^0.11.0",
49
- "@prisma/client": "^4.8.1",
49
+ "@prisma/client": "^4.9.0",
50
50
  "@rollup/pluginutils": "^5.0.2",
51
51
  "@types/bcryptjs": "^2.4.2",
52
52
  "@types/crypto-js": "^4.1.1",
@@ -67,6 +67,6 @@
67
67
  "vite-plugin-inspect": "^0.7.14",
68
68
  "vite-plugin-vue-layouts": "^0.7.0",
69
69
  "vite-ssg": "^0.22.1",
70
- "vitepress": "1.0.0-alpha.36"
70
+ "vitepress": "1.0.0-alpha.38"
71
71
  }
72
72
  }
@@ -32,9 +32,9 @@ export interface CliOptions {
32
32
  /**
33
33
  * **CLI Debug Level**
34
34
  *
35
- * When your application is in debug mode, a different level of information,
36
- * like stack traces, will be shown on every error that occurs within the
37
- * application. When disabled, it defaults to the "normal experience."
35
+ * When your application is in debug mode, a different level
36
+ * of information, like stack traces, will be shown. When
37
+ * disabled, it defaults to the "normal experience."
38
38
  *
39
39
  * @default false
40
40
  */
@@ -58,7 +58,7 @@ export interface CliOptions {
58
58
  *
59
59
  * @default true
60
60
  */
61
- shouldShowSpinner?: boolean | SpinnerOptions
61
+ showSpinner?: boolean | SpinnerOptions
62
62
 
63
63
  /**
64
64
  * **Spinner Text**
@@ -177,7 +177,7 @@ export const enum NpmScript {
177
177
  BuildStacks = 'build:stacks',
178
178
  Clean = 'rimraf ./pnpm-lock.yaml ./node_modules/ ./.stacks/**/node_modules',
179
179
  Dev = 'dev',
180
- DevComponents = 'vite --config ./.stacks/core/build/src/vue-components.ts',
180
+ DevComponents = 'vite --config ./core/build/src/vue-components.ts',
181
181
  DevDocs = 'dev:docs',
182
182
  DevDesktop = 'dev:desktop',
183
183
  DevPages = 'dev:pages',
@@ -1,8 +1,8 @@
1
1
  import type { IChatOptions, IEmailOptions, ISendMessageSuccessResponse, ISmsOptions } from '@novu/stateless'
2
2
 
3
3
  export interface NotificationOptions {
4
- type?: string
5
- driver?: string
4
+ type?: 'email' | 'sms' | 'chat' | 'push'
5
+ driver?: 'sendgrid' | 'emailjs' | 'mailjet' | 'mandrill' | 'netcore' | 'nodemailer' | 'postmark' | 'ses' | 'mailgun' | 'twilio' | 'nexmo' | 'gupshup' | 'plivo' | 'sms77' | 'sns'
6
6
 
7
7
  email: {
8
8
  purgeCSS: boolean
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks atomic UI engine, powered by UnoCSS.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "engines": {
40
40
  "node": ">=v18.13.0",
41
- "pnpm": ">=7.25.0"
41
+ "pnpm": ">=7.25.1"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "mkdist -d",
@@ -53,7 +53,7 @@
53
53
  "@stacksjs/build": "workspace:*",
54
54
  "@stacksjs/config": "workspace:*",
55
55
  "@unocss/transformer-compile-class": "^0.48.4",
56
- "pinia": "^2.0.28",
56
+ "pinia": "^2.0.29",
57
57
  "unocss": "^0.48.4",
58
58
  "vue": "^3.2.45",
59
59
  "vue-tsc": "^1.0.24"
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/rimraf@4.0.5/node_modules/rimraf/dist/cjs/src/bin.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/rimraf@4.1.1/node_modules/rimraf/dist/cjs/src/bin.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/rimraf@4.0.5/node_modules/rimraf/dist/cjs/src/bin.js" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/rimraf@4.1.1/node_modules/rimraf/dist/cjs/src/bin.js" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/utils",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks helper functions.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "engines": {
40
40
  "node": ">=v18.13.0",
41
- "pnpm": ">=7.25.0"
41
+ "pnpm": ">=7.25.1"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "mkdist -d",
@@ -54,10 +54,10 @@
54
54
  "@stacksjs/path": "workspace:*",
55
55
  "@stacksjs/storage": "workspace:*",
56
56
  "@stacksjs/types": "workspace:*",
57
- "@vueuse/core": "^9.10.0",
57
+ "@vueuse/core": "^9.11.0",
58
58
  "@vueuse/head": "^1.0.22",
59
- "@vueuse/math": "^9.10.0",
60
- "@vueuse/shared": "^9.10.0",
59
+ "@vueuse/math": "^9.11.0",
60
+ "@vueuse/shared": "^9.11.0",
61
61
  "defu": "^6.1.1",
62
62
  "detect-indent": "^7.0.1",
63
63
  "detect-newline": "^4.0.0",
@@ -66,7 +66,7 @@
66
66
  "fast-glob": "^3.2.12",
67
67
  "kolorist": "1.6.0",
68
68
  "p-limit": "^4.0.0",
69
- "rimraf": "^4.0.5",
69
+ "rimraf": "^4.1.1",
70
70
  "throttle-debounce": "^5.0.0"
71
71
  },
72
72
  "devDependencies": {
@@ -1,10 +1,19 @@
1
- // export const assert = (condition: boolean, message: string): asserts condition => {
2
- // if (!condition)
3
- // throw new Error(message)
4
- // }
1
+ export const assert = (condition: boolean, message: string): asserts condition => {
2
+ if (!condition)
3
+ throw new Error(message)
4
+ }
5
+
5
6
  export const toString = (v: any) => Object.prototype.toString.call(v)
6
- // export const noop = () => {}
7
+
8
+ export const noop = () => {}
7
9
 
8
10
  export const loop = (times: number, callback: any) => {
9
11
  [...Array(times)].forEach((item, i) => callback(i))
10
12
  }
13
+
14
+ export const getTypeName = (v: any) => {
15
+ if (v === null)
16
+ return 'null'
17
+ const type = toString(v).slice(8, -1).toLowerCase()
18
+ return typeof v === 'object' || typeof v === 'function' ? type : typeof v
19
+ }
@@ -0,0 +1,27 @@
1
+ import { getTypeName } from './base'
2
+
3
+ export function isDeepEqual(value1: any, value2: any): boolean {
4
+ const type1 = getTypeName(value1)
5
+ const type2 = getTypeName(value2)
6
+ if (type1 !== type2)
7
+ return false
8
+
9
+ if (type1 === 'array') {
10
+ if (value1.length !== value2.length)
11
+ return false
12
+
13
+ return value1.every((item: any, i: number) => {
14
+ return isDeepEqual(item, value2[i])
15
+ })
16
+ }
17
+ if (type1 === 'object') {
18
+ const keyArr = Object.keys(value1)
19
+ if (keyArr.length !== Object.keys(value2).length)
20
+ return false
21
+
22
+ return keyArr.every((key: string) => {
23
+ return isDeepEqual(value1[key], value2[key])
24
+ })
25
+ }
26
+ return Object.is(value1, value2)
27
+ }
@@ -3,6 +3,7 @@ import type { CliOptions, Manifest, NpmScript } from '@stacksjs/types'
3
3
  import { frameworkPath, projectPath } from '@stacksjs/path'
4
4
  import storage from '@stacksjs/storage'
5
5
  import { ui } from '@stacksjs/config'
6
+ import detectIndent from 'detect-indent'
6
7
 
7
8
  export async function isProjectCreated() {
8
9
  if (storage.isFile('.env'))
@@ -130,5 +131,5 @@ export function hasScript(manifest: Manifest, script: NpmScript): boolean {
130
131
 
131
132
  export * from '@dinero.js/currencies'
132
133
  export * from 'dinero.js'
133
- export * as detectIndent from 'detect-indent'
134
+ export { detectIndent }
134
135
  export { detectNewline } from 'detect-newline'
@@ -1,13 +1,14 @@
1
- export * from './base'
1
+ export { assert, toString, noop, loop, getTypeName } from './base'
2
+ export * from './equal'
2
3
  export * from './helpers'
3
- export * from './promise'
4
+ export type { SingletonPromiseReturn, ControlledPromise } from './promise'
5
+ export { createSingletonPromise, createPromiseLock, createControlledPromise, sleep } from './promise'
4
6
  export * from './function'
5
7
  export * from './guards'
6
- export * from './is'
8
+ export { isDef, isBoolean, isFunction, isNumber, isString, isObject, isWindow, isBrowser, isServer, isMap, isSet, isPromise } from './is'
7
9
  export * from './p'
8
10
  export * from './vendor'
9
11
 
10
12
  export * from '@vueuse/core'
11
13
  export * from '@vueuse/math'
12
- // export * from '@vueuse/head'
13
14
  export * from '@vueuse/shared'