stacks 0.58.50 → 0.58.52

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 (209) hide show
  1. package/core/actions/dist/src/deploy/index.js +2 -2
  2. package/core/actions/dist/src/upgrade.js +1 -1
  3. package/core/actions/package.json +1 -1
  4. package/core/actions/src/build/cli.ts +1 -1
  5. package/core/actions/src/build/server.ts +9 -0
  6. package/core/actions/src/deploy/index.ts +2 -2
  7. package/core/actions/tsconfig.json +3 -0
  8. package/core/ai/package.json +1 -1
  9. package/core/ai/tsconfig.json +3 -0
  10. package/core/alias/package.json +1 -1
  11. package/core/alias/tsconfig.json +3 -0
  12. package/core/analytics/package.json +1 -1
  13. package/core/analytics/tsconfig.json +3 -0
  14. package/core/api/package.json +1 -1
  15. package/core/api/tsconfig.json +3 -0
  16. package/core/arrays/package.json +1 -1
  17. package/core/arrays/tsconfig.json +3 -0
  18. package/core/auth/package.json +1 -1
  19. package/core/auth/tsconfig.json +3 -0
  20. package/core/buddy/dist/{chunk-91084836e95161e8.js → chunk-d52e40a990b45728.js} +152 -84
  21. package/core/buddy/dist/cli.js +4 -1
  22. package/core/buddy/dist/index.js +3 -1
  23. package/core/buddy/package.json +1 -1
  24. package/core/buddy/src/cli.ts +2 -0
  25. package/core/buddy/src/commands/build.ts +17 -1
  26. package/core/buddy/src/commands/deploy.ts +2 -2
  27. package/core/buddy/src/commands/index.ts +1 -0
  28. package/core/buddy/src/commands/list.ts +39 -0
  29. package/core/buddy/src/commands/setup.ts +57 -1
  30. package/core/buddy/tsconfig.json +3 -0
  31. package/core/build/package.json +1 -1
  32. package/core/build/tsconfig.json +3 -0
  33. package/core/bun-create/bud/package.json +1 -1
  34. package/core/bun-create/buddy/package.json +1 -1
  35. package/core/bun-create/stack/package.json +1 -1
  36. package/core/bun-create/stacks/package.json +1 -1
  37. package/core/bun-create/stx/package.json +2 -1
  38. package/core/bun-plugin-yaml/package.json +1 -1
  39. package/core/bun-plugin-yaml/tsconfig.json +3 -0
  40. package/core/cache/package.json +1 -1
  41. package/core/cache/tsconfig.json +3 -0
  42. package/core/chat/package.json +8 -8
  43. package/core/chat/tsconfig.json +3 -0
  44. package/core/cli/dist/index.js +1 -1
  45. package/core/cli/package.json +1 -1
  46. package/core/cli/tsconfig.json +3 -0
  47. package/core/cloud/build.ts +1 -1
  48. package/core/cloud/deploy.ts +10 -1
  49. package/core/cloud/dist/index.js +167 -807
  50. package/core/cloud/package.json +2 -3
  51. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
  52. package/core/cloud/src/cloud/cdn.ts +59 -6
  53. package/core/cloud/src/cloud/compute.ts +29 -19
  54. package/core/cloud/src/cloud/dns.ts +8 -0
  55. package/core/cloud/src/cloud/index.ts +8 -2
  56. package/core/cloud/src/cloud/queue.ts +46 -0
  57. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  58. package/core/cloud/src/cloud/security.ts +1 -1
  59. package/core/cloud/src/helpers.ts +13 -1
  60. package/core/cloud/tsconfig.json +3 -0
  61. package/core/collections/package.json +1 -1
  62. package/core/collections/tsconfig.json +3 -0
  63. package/core/config/dist/index.js +154 -83
  64. package/core/config/package.json +2 -2
  65. package/core/config/tsconfig.json +3 -0
  66. package/core/database/package.json +1 -1
  67. package/core/database/src/kysely-bun-worker/mitt.ts +1 -1
  68. package/core/database/tsconfig.json +3 -0
  69. package/core/datetime/package.json +1 -1
  70. package/core/datetime/tsconfig.json +3 -0
  71. package/core/desktop/package.json +1 -1
  72. package/core/desktop/tsconfig.json +3 -0
  73. package/core/development/package.json +1 -1
  74. package/core/development/tsconfig.json +3 -0
  75. package/core/dns/package.json +1 -1
  76. package/core/dns/tsconfig.json +3 -0
  77. package/core/docs/package.json +1 -1
  78. package/core/docs/tsconfig.json +3 -0
  79. package/core/email/package.json +12 -12
  80. package/core/email/tsconfig.json +3 -0
  81. package/core/enums/dist/index.js +1 -0
  82. package/core/enums/package.json +1 -1
  83. package/core/enums/src/index.ts +1 -0
  84. package/core/enums/tsconfig.json +3 -0
  85. package/core/env/package.json +1 -1
  86. package/core/env/tsconfig.json +3 -0
  87. package/core/error-handling/package.json +1 -1
  88. package/core/error-handling/tsconfig.json +3 -0
  89. package/core/eslint-config/package.json +3 -3
  90. package/core/eslint-config/src/configs/typescript.ts +1 -0
  91. package/core/eslint-config/src/factory.ts +1 -0
  92. package/core/events/package.json +1 -1
  93. package/core/events/src/index.ts +3 -6
  94. package/core/events/tsconfig.json +3 -0
  95. package/core/faker/package.json +1 -1
  96. package/core/faker/tsconfig.json +3 -0
  97. package/core/git/package.json +1 -1
  98. package/core/git/tsconfig.json +3 -0
  99. package/core/health/package.json +1 -1
  100. package/core/health/tsconfig.json +3 -0
  101. package/core/http/package.json +1 -1
  102. package/core/http/tsconfig.json +3 -0
  103. package/core/lint/package.json +1 -1
  104. package/core/lint/tsconfig.json +3 -0
  105. package/core/logging/package.json +1 -1
  106. package/core/logging/tsconfig.json +3 -0
  107. package/core/notifications/package.json +22 -22
  108. package/core/notifications/tsconfig.json +3 -0
  109. package/core/objects/package.json +1 -1
  110. package/core/objects/tsconfig.json +3 -0
  111. package/core/orm/package.json +1 -1
  112. package/core/orm/tsconfig.json +3 -0
  113. package/core/path/package.json +1 -1
  114. package/core/path/tsconfig.json +3 -0
  115. package/core/payments/dist/index.js +21 -3
  116. package/core/payments/package.json +1 -1
  117. package/core/payments/tsconfig.json +3 -0
  118. package/core/push/package.json +5 -5
  119. package/core/push/tsconfig.json +3 -0
  120. package/core/query-builder/package.json +1 -1
  121. package/core/query-builder/tsconfig.json +3 -0
  122. package/core/queue/package.json +1 -1
  123. package/core/queue/tsconfig.json +3 -0
  124. package/core/raycast/package.json +1 -1
  125. package/core/realtime/package.json +1 -1
  126. package/core/realtime/tsconfig.json +3 -0
  127. package/core/repl/package.json +1 -1
  128. package/core/repl/tsconfig.json +3 -0
  129. package/core/router/dist/index.js +3 -4
  130. package/core/router/package.json +1 -1
  131. package/core/router/src/router.ts +11 -11
  132. package/core/router/src/server.ts +4 -4
  133. package/core/router/tsconfig.json +3 -0
  134. package/core/scheduler/build.ts +1 -1
  135. package/core/scheduler/dist/index.js +682 -152
  136. package/core/scheduler/package.json +7 -4
  137. package/core/scheduler/src/constants.ts +81 -0
  138. package/core/scheduler/src/errors.ts +7 -0
  139. package/core/scheduler/src/index.ts +15 -317
  140. package/core/scheduler/src/job.ts +315 -0
  141. package/core/scheduler/src/schedule.ts +111 -0
  142. package/core/scheduler/src/time.ts +823 -0
  143. package/core/scheduler/src/types/cron.ts +98 -0
  144. package/core/scheduler/src/types/utils.ts +14 -0
  145. package/core/scheduler/src/utils.ts +19 -0
  146. package/core/scheduler/tests/cron.fuzz.ts +120 -0
  147. package/core/scheduler/tests/cron.test.ts +1241 -0
  148. package/core/scheduler/tests/crontime.test.ts +778 -0
  149. package/core/scheduler/tsconfig.json +3 -0
  150. package/core/search-engine/package.json +1 -1
  151. package/core/search-engine/tsconfig.json +3 -0
  152. package/core/security/package.json +1 -1
  153. package/core/security/tsconfig.json +3 -0
  154. package/core/server/package.json +1 -1
  155. package/core/server/tsconfig.json +3 -0
  156. package/core/signals/package.json +1 -1
  157. package/core/signals/tsconfig.json +3 -0
  158. package/core/slug/package.json +1 -1
  159. package/core/slug/tsconfig.json +3 -0
  160. package/core/sms/package.json +11 -11
  161. package/core/sms/tsconfig.json +3 -0
  162. package/core/storage/package.json +1 -1
  163. package/core/storage/tsconfig.json +3 -0
  164. package/core/strings/package.json +1 -1
  165. package/core/strings/tsconfig.json +3 -0
  166. package/core/tables/package.json +1 -1
  167. package/core/tables/tsconfig.json +3 -0
  168. package/core/testing/package.json +1 -1
  169. package/core/testing/tsconfig.json +3 -0
  170. package/core/tinker/package.json +1 -1
  171. package/core/tinker/tsconfig.json +3 -0
  172. package/core/tunnel/package.json +1 -1
  173. package/core/tunnel/tsconfig.json +3 -0
  174. package/core/types/package.json +3 -3
  175. package/core/types/src/app.ts +2 -2
  176. package/core/types/src/cli.ts +1 -1
  177. package/core/types/src/cloud.ts +5 -1
  178. package/core/types/src/cron-jobs.ts +1 -0
  179. package/core/types/src/queue.ts +3 -1
  180. package/core/types/tsconfig.json +3 -0
  181. package/core/ui/package.json +4 -4
  182. package/core/ui/tsconfig.json +3 -0
  183. package/core/utils/dist/index.js +1 -1
  184. package/core/utils/package.json +1 -1
  185. package/core/utils/src/promise.ts +2 -2
  186. package/core/utils/tsconfig.json +3 -0
  187. package/core/validation/package.json +1 -1
  188. package/core/validation/src/rules.ts +3 -3
  189. package/core/validation/tsconfig.json +3 -0
  190. package/core/vite/dist/index.js +1 -1
  191. package/core/vite/package.json +1 -1
  192. package/core/vite/tsconfig.json +3 -0
  193. package/core/whois/package.json +1 -1
  194. package/core/whois/tsconfig.json +3 -0
  195. package/core/x-ray/package.json +1 -1
  196. package/core/x-ray/tsconfig.json +3 -0
  197. package/core/zsh-buddy/README.md +6 -2
  198. package/core/zsh-buddy/buddy.plugin.zsh +109 -0
  199. package/core/zsh-buddy/package.json +1 -1
  200. package/ide/dictionary.txt +2 -0
  201. package/ide/vscode/package.json +1 -1
  202. package/package.json +1 -1
  203. package/buddy +0 -2
  204. package/core/actions/src/zip/api.ts +0 -22
  205. package/core/bud +0 -2
  206. package/core/cloud/buddy +0 -2
  207. package/core/cloud/src/cloud/package/README.md +0 -59
  208. package/core/cloud/src/cloud/package/package.json +0 -63
  209. package/core/scheduler/tests/example.test.ts +0 -5
@@ -23,14 +23,11 @@ export type EventHandlerMap<Events extends Record<EventType, unknown>> = Map<
23
23
  export interface Emitter<Events extends Record<EventType, unknown>> {
24
24
  all: EventHandlerMap<Events>
25
25
 
26
- on<Key extends keyof Events>(type: Key, handler: Handler<Events[Key]>): void
27
- on(type: '*', handler: WildcardHandler<Events>): void
26
+ on: (<Key extends keyof Events>(type: Key, handler: Handler<Events[Key]>) => void) & ((type: '*', handler: WildcardHandler<Events>) => void)
28
27
 
29
- off<Key extends keyof Events>(type: Key, handler?: Handler<Events[Key]>): void
30
- off(type: '*', handler: WildcardHandler<Events>): void
28
+ off: (<Key extends keyof Events>(type: Key, handler?: Handler<Events[Key]>) => void) & ((type: '*', handler: WildcardHandler<Events>) => void)
31
29
 
32
- emit<Key extends keyof Events>(type: Key, event: Events[Key]): void
33
- emit<Key extends keyof Events>(type: undefined extends Events[Key] ? Key : never): void
30
+ emit: (<Key extends keyof Events>(type: Key, event: Events[Key]) => void) & (<Key extends keyof Events>(type: undefined extends Events[Key] ? Key : never) => void)
34
31
  }
35
32
 
36
33
  /**
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/faker",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "Faker functions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/git",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks git utilities & conventions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/health",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks Health services.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/http",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "Stacks HTTP methods.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/lint",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks way to lint.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/logging",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks logging system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/notifications",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks notifications integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -76,27 +76,27 @@
76
76
  "@stacksjs/types": "workspace:*"
77
77
  },
78
78
  "optionalDependencies": {
79
- "@novu/discord": "^0.22.0",
80
- "@novu/emailjs": "^0.22.0",
81
- "@novu/gupshup": "^0.22.0",
82
- "@novu/mailgun": "^0.22.0",
83
- "@novu/mailjet": "^0.22.0",
84
- "@novu/mandrill": "^0.22.0",
85
- "@novu/netcore": "^0.22.0",
86
- "@novu/nexmo": "^0.22.0",
87
- "@novu/node": "^0.22.0",
88
- "@novu/nodemailer": "^0.22.0",
89
- "@novu/plivo": "^0.22.0",
90
- "@novu/postmark": "^0.22.0",
91
- "@novu/sendgrid": "^0.22.0",
92
- "@novu/ses": "^0.22.0",
93
- "@novu/slack": "^0.22.0",
94
- "@novu/sms77": "^0.22.0",
95
- "@novu/sns": "^0.22.0",
96
- "@novu/stateless": "^0.22.0",
97
- "@novu/telnyx": "^0.22.0",
98
- "@novu/termii": "^0.22.0",
99
- "@novu/twilio": "^0.22.0"
79
+ "@novu/discord": "^0.23.0",
80
+ "@novu/emailjs": "^0.23.0",
81
+ "@novu/gupshup": "^0.23.0",
82
+ "@novu/mailgun": "^0.23.0",
83
+ "@novu/mailjet": "^0.23.0",
84
+ "@novu/mandrill": "^0.23.0",
85
+ "@novu/netcore": "^0.23.0",
86
+ "@novu/nexmo": "^0.23.0",
87
+ "@novu/node": "^0.23.0",
88
+ "@novu/nodemailer": "^0.23.0",
89
+ "@novu/plivo": "^0.23.0",
90
+ "@novu/postmark": "^0.23.0",
91
+ "@novu/sendgrid": "^0.23.0",
92
+ "@novu/ses": "^0.23.0",
93
+ "@novu/slack": "^0.23.0",
94
+ "@novu/sms77": "^0.23.0",
95
+ "@novu/sns": "^0.23.0",
96
+ "@novu/stateless": "^0.23.0",
97
+ "@novu/telnyx": "^0.23.0",
98
+ "@novu/termii": "^0.23.0",
99
+ "@novu/twilio": "^0.23.0"
100
100
  },
101
101
  "devDependencies": {
102
102
  "@stacksjs/development": "workspace:*"
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/objects",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks objects.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/orm",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks ORM integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks path.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -26,6 +26,21 @@ var __export = (target, all) => {
26
26
  });
27
27
  };
28
28
 
29
+ // /home/runner/work/stacks/stacks/node_modules/es-errors/range.js
30
+ var require_range = __commonJS((exports, module) => {
31
+ module.exports = RangeError;
32
+ });
33
+
34
+ // /home/runner/work/stacks/stacks/node_modules/es-errors/syntax.js
35
+ var require_syntax = __commonJS((exports, module) => {
36
+ module.exports = SyntaxError;
37
+ });
38
+
39
+ // /home/runner/work/stacks/stacks/node_modules/es-errors/type.js
40
+ var require_type = __commonJS((exports, module) => {
41
+ module.exports = TypeError;
42
+ });
43
+
29
44
  // /home/runner/work/stacks/stacks/node_modules/has-symbols/shams.js
30
45
  var require_shams = __commonJS((exports, module) => {
31
46
  module.exports = function hasSymbols() {
@@ -191,9 +206,10 @@ var require_hasown = __commonJS((exports, module) => {
191
206
  // /home/runner/work/stacks/stacks/node_modules/get-intrinsic/index.js
192
207
  var require_get_intrinsic = __commonJS((exports, module) => {
193
208
  var undefined2;
194
- var $SyntaxError = SyntaxError;
209
+ var $RangeError = require_range();
210
+ var $SyntaxError = require_syntax();
211
+ var $TypeError = require_type();
195
212
  var $Function = Function;
196
- var $TypeError = TypeError;
197
213
  var getEvalledConstructor = function(expressionSyntax) {
198
214
  try {
199
215
  return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
@@ -231,6 +247,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
231
247
  var needsEval = {};
232
248
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
233
249
  var INTRINSICS = {
250
+ __proto__: null,
234
251
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
235
252
  "%Array%": Array,
236
253
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
@@ -275,7 +292,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
275
292
  "%parseInt%": parseInt,
276
293
  "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
277
294
  "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
278
- "%RangeError%": RangeError,
295
+ "%RangeError%": $RangeError,
279
296
  "%ReferenceError%": ReferenceError,
280
297
  "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
281
298
  "%RegExp%": RegExp,
@@ -330,6 +347,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
330
347
  return value;
331
348
  };
332
349
  var LEGACY_ALIASES = {
350
+ __proto__: null,
333
351
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
334
352
  "%ArrayPrototype%": ["Array", "prototype"],
335
353
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/payments",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks payments package. Currently supporting Stripe.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/push",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks Push integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -46,15 +46,15 @@
46
46
  "prepublishOnly": "bun --bun run build"
47
47
  },
48
48
  "peerDependencies": {
49
- "@novu/node": "^0.22.0",
50
- "@novu/stateless": "^0.22.0",
49
+ "@novu/node": "^0.23.0",
50
+ "@novu/stateless": "^0.23.0",
51
51
  "@stacksjs/cli": "workspace:*",
52
52
  "@stacksjs/config": "workspace:*",
53
53
  "@stacksjs/error-handling": "workspace:*"
54
54
  },
55
55
  "dependencies": {
56
- "@novu/node": "^0.22.0",
57
- "@novu/stateless": "^0.22.0",
56
+ "@novu/node": "^0.23.0",
57
+ "@novu/stateless": "^0.23.0",
58
58
  "@stacksjs/cli": "workspace:*",
59
59
  "@stacksjs/config": "workspace:*",
60
60
  "@stacksjs/error-handling": "workspace:*"
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/query-builder",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks Query Builder integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/queue",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks Queue system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stacks-raycast",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks Raycast plugin.",
6
6
  "scripts": {
7
7
  "build": "echo 'No build step required yet.'"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/realtime",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks realtime integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/repl",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "A Stacks optimized TS & Vue REPL.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -159,9 +159,8 @@ var request = new Request;
159
159
  // src/server.ts
160
160
  import {extname as extname2} from "path";
161
161
  import {URL} from "url";
162
- import {localUrl} from "@stacksjs/config";
163
162
  async function serve(options = {}) {
164
- const hostname = options.host || options.tunnel ? await localUrl({ type: "backend" }) : "127.0.0.1";
163
+ const hostname = options.host || "localhost";
165
164
  const port = options.port || 3000;
166
165
  Bun.serve({
167
166
  hostname,
@@ -173,7 +172,7 @@ async function serve(options = {}) {
173
172
  });
174
173
  }
175
174
  async function serverResponse(req) {
176
- console.log("serverResponse", req);
175
+ console.log("serverResponse", JSON.stringify(req));
177
176
  const routesList = await route.getRoutes();
178
177
  const url = new URL(req.url);
179
178
  const foundRoute = routesList.find((route2) => {
@@ -181,7 +180,7 @@ async function serverResponse(req) {
181
180
  return pattern.test(url.pathname);
182
181
  });
183
182
  if (!foundRoute)
184
- return new Response("Not found", { status: 404 });
183
+ return new Response("Pretty 404 page coming soon", { status: 404 });
185
184
  addRouteParamsAndQuery(url, foundRoute);
186
185
  executeMiddleware(foundRoute);
187
186
  return execute(foundRoute, req, { statusCode: foundRoute?.statusCode });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/router",
3
3
  "type": "module",
4
- "version": "0.58.50",
4
+ "version": "0.58.52",
5
5
  "description": "The Stacks framework router.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -2,17 +2,17 @@ import type { RedirectCode, Route, RouteGroupOptions, StatusCode } from '@stacks
2
2
  import { projectPath } from '@stacksjs/path'
3
3
 
4
4
  export interface RouterInterface {
5
- get(url: Route['url'], callback: Route['callback']): this
6
- post(url: Route['url'], callback: Route['callback']): this
7
- view(url: Route['url'], callback: Route['callback']): this
8
- redirect(url: Route['url'], callback: Route['callback'], status?: RedirectCode): this
9
- delete(url: Route['url'], callback: Route['callback']): this
10
- patch(url: Route['url'], callback: Route['callback']): this
11
- put(url: Route['url'], callback: Route['callback']): this
12
- group(options: RouteGroupOptions, callback: () => void): this
13
- name(name: string): this
14
- middleware(middleware: Route['middleware']): this
15
- getRoutes(): Promise<Route[]>
5
+ get: (url: Route['url'], callback: Route['callback']) => this
6
+ post: (url: Route['url'], callback: Route['callback']) => this
7
+ view: (url: Route['url'], callback: Route['callback']) => this
8
+ redirect: (url: Route['url'], callback: Route['callback'], status?: RedirectCode) => this
9
+ delete: (url: Route['url'], callback: Route['callback']) => this
10
+ patch: (url: Route['url'], callback: Route['callback']) => this
11
+ put: (url: Route['url'], callback: Route['callback']) => this
12
+ group: (options: RouteGroupOptions, callback: () => void) => this
13
+ name: (name: string) => this
14
+ middleware: (middleware: Route['middleware']) => this
15
+ getRoutes: () => Promise<Route[]>
16
16
  }
17
17
 
18
18
  export class Router implements RouterInterface {
@@ -1,7 +1,6 @@
1
1
  import { extname } from 'node:path'
2
2
  import { URL } from 'node:url'
3
3
  import type { MiddlewareType, Route, StatusCode } from '@stacksjs/types'
4
- import { localUrl } from '@stacksjs/config'
5
4
  import { middlewares } from './middleware'
6
5
  import { request } from './request'
7
6
  import { route } from '.'
@@ -13,7 +12,8 @@ interface ServeOptions {
13
12
  }
14
13
 
15
14
  export async function serve(options: ServeOptions = {}) {
16
- const hostname = options.host || options.tunnel ? await localUrl({ type: 'backend' }) : '127.0.0.1'
15
+ // maybe make use of localUrl({ type: 'backend' }) here & options.tunnel
16
+ const hostname = options.host || 'localhost'
17
17
  const port = options.port || 3000
18
18
 
19
19
  Bun.serve({
@@ -30,7 +30,7 @@ export async function serve(options: ServeOptions = {}) {
30
30
 
31
31
  export async function serverResponse(req: Request) {
32
32
  // eslint-disable-next-line no-console
33
- console.log('serverResponse', req)
33
+ console.log('serverResponse', JSON.stringify(req))
34
34
  const routesList: Route[] = await route.getRoutes()
35
35
  const url = new URL(req.url)
36
36
 
@@ -44,7 +44,7 @@ export async function serverResponse(req: Request) {
44
44
  // return new Response('')
45
45
 
46
46
  if (!foundRoute)
47
- return new Response('Not found', { status: 404 }) // TODO: create a pretty 404 page
47
+ return new Response('Pretty 404 page coming soon', { status: 404 }) // TODO: create a pretty 404 page
48
48
 
49
49
  addRouteParamsAndQuery(url, foundRoute)
50
50
  executeMiddleware(foundRoute)
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../tsconfig.json"
3
+ }
@@ -1,6 +1,6 @@
1
1
  import { log, runCommand } from '@stacksjs/cli'
2
2
 
3
- const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external node-cron --target bun', {
3
+ const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external luxon --external @stacksjs/cli --target bun', {
4
4
  cwd: import.meta.dir,
5
5
  })
6
6