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
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/desktop",
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 Desktop engine.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  ],
44
44
  "engines": {
45
45
  "node": ">=v18.13.0",
46
- "pnpm": ">=7.25.0"
46
+ "pnpm": ">=7.25.1"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "mkdist -d",
@@ -55,7 +55,7 @@
55
55
  "@stacksjs/build": "workspace:*",
56
56
  "@stacksjs/server": "workspace:*",
57
57
  "@tauri-apps/api": "1.2.0",
58
- "@tauri-apps/cli": "1.2.2",
58
+ "@tauri-apps/cli": "1.2.3",
59
59
  "unified-network": "0.6.2",
60
60
  "unstorage": "^1.0.1",
61
61
  "vue": "3.2.45",
@@ -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_2r467mdhb7mblpaox4bg7fatdi/node_modules/vitepress/bin/vitepress.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.38_2r467mdhb7mblpaox4bg7fatdi/node_modules/vitepress/bin/vitepress.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.36_2r467mdhb7mblpaox4bg7fatdi/node_modules/vitepress/bin/vitepress.js" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.38_2r467mdhb7mblpaox4bg7fatdi/node_modules/vitepress/bin/vitepress.js" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/docs",
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 to document.",
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",
@@ -43,7 +43,7 @@
43
43
  "typecheck": "tsc --noEmit"
44
44
  },
45
45
  "peerDependencies": {
46
- "vitepress": "1.0.0-alpha.36"
46
+ "vitepress": "1.0.0-alpha.38"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@stacksjs/testing": "workspace:*",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/domains",
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": "Easily manage your domains.",
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/drivers",
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": "Easily create a driver-based system.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "engines": {
35
35
  "node": ">=v18.13.0",
36
- "pnpm": ">=7.25.0"
36
+ "pnpm": ">=7.25.1"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/email",
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 Email integration. Painlessly create & manage your inboxes, templates, and send emails.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  ],
44
44
  "engines": {
45
45
  "node": ">=v18.13.0",
46
- "pnpm": ">=7.25.0"
46
+ "pnpm": ">=7.25.1"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "mkdist -d",
@@ -52,7 +52,7 @@
52
52
  "typecheck": "tsc --noEmit"
53
53
  },
54
54
  "peerDependencies": {
55
- "@maizzle/framework": "latest",
55
+ "@maizzle/framework": "^4.3.1",
56
56
  "@novu/emailjs": "^0.10.2",
57
57
  "@novu/mailgun": "^0.10.2",
58
58
  "@novu/mailjet": "^0.10.2",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/error-handling",
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": "Type safe error handling.",
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/events",
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": "Functional event emitting.",
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",
@@ -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/commitizen@4.2.6/node_modules/commitizen/bin/commitizen" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/commitizen@4.3.0/node_modules/commitizen/bin/commitizen" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/commitizen@4.2.6/node_modules/commitizen/bin/commitizen" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/commitizen@4.3.0/node_modules/commitizen/bin/commitizen" "$@"
17
17
  fi
@@ -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/commitizen@4.2.6/node_modules/commitizen/bin/git-cz" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/commitizen@4.3.0/node_modules/commitizen/bin/git-cz" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/commitizen@4.2.6/node_modules/commitizen/bin/git-cz" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/commitizen@4.3.0/node_modules/commitizen/bin/git-cz" "$@"
17
17
  fi
@@ -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/commitizen@4.2.6/node_modules/commitizen/bin/git-cz" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/commitizen@4.3.0/node_modules/commitizen/bin/git-cz" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/commitizen@4.2.6/node_modules/commitizen/bin/git-cz" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/commitizen@4.3.0/node_modules/commitizen/bin/git-cz" "$@"
17
17
  fi
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/git",
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 git utilities & conventions.",
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/health",
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 Health services.",
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/lint",
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 to lint.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "engines": {
38
38
  "node": ">=v18.13.0",
39
- "pnpm": ">=7.25.0"
39
+ "pnpm": ">=7.25.1"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/logging",
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 logging system.",
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/modules",
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 modules.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "engines": {
34
34
  "node": ">=v18.13.0",
35
- "pnpm": ">=7.25.0"
35
+ "pnpm": ">=7.25.1"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "mkdist -d",
@@ -41,11 +41,13 @@ There are different option types for Chat, Email, and SMS drivers. To use any dr
41
41
 
42
42
  ```ts
43
43
  interface ChatOptions {
44
+ providerName?: 'discord' | 'slack'
44
45
  webhookUrl: string
45
46
  content: string
46
47
  }
47
48
 
48
49
  interface EmailOptions {
50
+ providerName?: 'sendgrid' | 'emailjs' | 'mailjet' | 'mandrill' | 'netcore' | 'nodemailer' | 'postmark' | 'ses'
49
51
  to: string | string[]
50
52
  subject: string
51
53
  html: string
@@ -56,6 +58,7 @@ interface EmailOptions {
56
58
  }
57
59
 
58
60
  interface SMSOptions {
61
+ providerName?: 'gupshup' | 'nexmo' | 'plivo' | 'sms77' | 'sns' | 'telnyx' | 'termii' | 'twilio'
59
62
  to: string
60
63
  content: string
61
64
  from?: string
@@ -3,6 +3,7 @@ import { defineBuildConfig } from 'unbuild'
3
3
  export default defineBuildConfig({
4
4
  entries: [
5
5
  './src/utils/config',
6
+ './src/index',
6
7
  ],
7
8
  declaration: true,
8
9
  clean: true,
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/notifications",
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 notifications integration.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -28,7 +28,6 @@
28
28
  "discord",
29
29
  "webhooks",
30
30
  "stacks",
31
- "Maizzle",
32
31
  "maizzle"
33
32
  ],
34
33
  "main": "dist/index.mjs",
@@ -43,7 +42,7 @@
43
42
  ],
44
43
  "engines": {
45
44
  "node": ">=v18.13.0",
46
- "pnpm": ">=7.25.0"
45
+ "pnpm": ">=7.25.1"
47
46
  },
48
47
  "scripts": {
49
48
  "build": "unbuild",
@@ -52,7 +51,6 @@
52
51
  "typecheck": "tsc --noEmit"
53
52
  },
54
53
  "peerDependencies": {
55
- "@maizzle/framework": "latest",
56
54
  "@novu/discord": "^0.10.2",
57
55
  "@novu/emailjs": "^0.10.2",
58
56
  "@novu/gupshup": "^0.10.2",
@@ -83,6 +81,9 @@
83
81
  "@stacksjs/sms": "workspace:*",
84
82
  "@stacksjs/types": "workspace:*"
85
83
  },
84
+ "dependencies": {
85
+ "@maizzle/framework": "^4.3.1"
86
+ },
86
87
  "devDependencies": {
87
88
  "@stacksjs/testing": "workspace:*",
88
89
  "mkdist": "^1.1.0",
@@ -16,7 +16,7 @@ const useSMS = (driver = 'twilio') => {
16
16
  return sms[driver as keyof typeof sms]
17
17
  }
18
18
 
19
- const useNotification = (typeParam = null, driverParam = null) => {
19
+ function useNotification(typeParam = 'email', driverParam = 'sendgrid'): any {
20
20
  const type = typeParam || config.type
21
21
  const driver = driverParam || config.driver
22
22
 
@@ -32,7 +32,7 @@ const useNotification = (typeParam = null, driverParam = null) => {
32
32
  }
33
33
  }
34
34
 
35
- const notification = () => {
35
+ function notification(): any {
36
36
  return useNotification()
37
37
  }
38
38
 
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/objects",
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 objects.",
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",
@@ -108,11 +108,27 @@ function isMergeableObject(item: any): item is Object {
108
108
  }
109
109
 
110
110
  /**
111
- * Clear undefined fields from an object. It mutates the object
111
+ * Create a new subset object by providing keys.
112
+ *
113
+ * @category Object
114
+ */
115
+ export function objectPick<O extends object, T extends keyof O>(obj: O, keys: T[], omitUndefined = false) {
116
+ return keys.reduce((n, k) => {
117
+ if (k in obj) {
118
+ if (!omitUndefined || obj[k] !== undefined)
119
+ n[k] = obj[k]
120
+ }
121
+ return n
122
+ }, {} as Pick<O, T>)
123
+ }
124
+
125
+ /**
126
+ * Clear undefined fields from an object. It mutates the object.
112
127
  *
113
128
  * @category Object
114
129
  */
115
130
  export function clearUndefined<T extends object>(obj: T): T {
131
+ // @ts-expect-error some description
116
132
  Object.keys(obj).forEach((key: string) => (obj[key] === undefined ? delete obj[key] : {}))
117
133
  return obj
118
134
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
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 path.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "engines": {
38
38
  "node": ">=v18.13.0",
39
- "pnpm": ">=7.25.0"
39
+ "pnpm": ">=7.25.1"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/payments",
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 payments package. Currently supporting Stripe.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "engines": {
38
38
  "node": ">=v18.13.0",
39
- "pnpm": ">=7.25.0"
39
+ "pnpm": ">=7.25.1"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "mkdist -d",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/push",
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 Push 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",
@@ -44,7 +44,6 @@
44
44
  "typecheck": "tsc --noEmit"
45
45
  },
46
46
  "peerDependencies": {
47
- "@maizzle/framework": "latest",
48
47
  "@novu/node": "^0.10.2",
49
48
  "@novu/stateless": "^0.10.2",
50
49
  "@stacksjs/cli": "workspace:*",
@@ -0,0 +1,59 @@
1
+ # Stacks Router
2
+
3
+ This package contains the Stacks Router.
4
+
5
+ ## ☘️ Features
6
+
7
+ wip
8
+
9
+ - ⚡️
10
+
11
+ wip
12
+
13
+ ## 🤖 Usage
14
+
15
+ wip
16
+
17
+ ```bash
18
+ pnpm i -D @stacksjs/actions
19
+ ```
20
+
21
+ Now, you can use it in your project:
22
+
23
+ ```js
24
+ import * as router from '@stacksjs/router'
25
+
26
+ // wip
27
+ ```
28
+
29
+ Learn more in the docs.
30
+
31
+ ## 🧪 Testing
32
+
33
+ ```bash
34
+ pnpm test
35
+ ```
36
+
37
+ ## 📈 Changelog
38
+
39
+ Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
40
+
41
+ ## 💪🏼 Contributing
42
+
43
+ Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
44
+
45
+ ## 🏝 Community
46
+
47
+ For help, discussion about best practices, or any other conversation that would benefit from being searchable:
48
+
49
+ [Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
50
+
51
+ For casual chit-chat with others using this package:
52
+
53
+ [Join the Stacks Discord Server](https://discord.ow3.org)
54
+
55
+ ## 📄 License
56
+
57
+ The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
58
+
59
+ Made with ❤️
@@ -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/@maizzle+framework@4.3.1_glob@7.2.3/node_modules/@maizzle/framework/bin/maizzle" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/@maizzle+framework@4.3.1_glob@7.2.3/node_modules/@maizzle/framework/bin/maizzle" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
17
  fi
@@ -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/@maizzle+framework@4.3.1_glob@7.2.3/node_modules/@maizzle/framework/bin/maizzle" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsc" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/@maizzle+framework@4.3.1_glob@7.2.3/node_modules/@maizzle/framework/bin/maizzle" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsc" "$@"
17
17
  fi
@@ -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/@maizzle+framework@4.3.1_glob@7.2.3/node_modules/@maizzle/framework/bin/maizzle" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsserver" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/@maizzle+framework@4.3.1_glob@7.2.3/node_modules/@maizzle/framework/bin/maizzle" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsserver" "$@"
17
17
  fi