stacks 0.58.57 → 0.58.58

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 (95) hide show
  1. package/core/actions/dist/src/index.js +9 -3
  2. package/core/actions/dist/src/release.js +9 -3
  3. package/core/actions/dist/src/upgrade.js +1 -1
  4. package/core/actions/package.json +1 -1
  5. package/core/actions/src/action.ts +11 -3
  6. package/core/ai/dist/index.js +4 -4
  7. package/core/ai/package.json +3 -3
  8. package/core/alias/package.json +1 -1
  9. package/core/analytics/package.json +1 -1
  10. package/core/api/package.json +1 -1
  11. package/core/arrays/package.json +1 -1
  12. package/core/auth/package.json +1 -1
  13. package/core/buddy/package.json +1 -1
  14. package/core/build/package.json +1 -1
  15. package/core/bun-create/bud/package.json +1 -1
  16. package/core/bun-create/buddy/package.json +1 -1
  17. package/core/bun-create/stack/package.json +1 -1
  18. package/core/bun-create/stacks/package.json +1 -1
  19. package/core/bun-create/stx/package.json +1 -1
  20. package/core/bun-plugin-yaml/package.json +1 -1
  21. package/core/cache/package.json +2 -2
  22. package/core/chat/package.json +8 -8
  23. package/core/cli/dist/index.js +1 -1
  24. package/core/cli/package.json +1 -1
  25. package/core/cloud/dist/index.js +69 -39
  26. package/core/cloud/package.json +28 -28
  27. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
  28. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
  29. package/core/cloud/src/cloud/queue.ts +91 -51
  30. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  31. package/core/collections/package.json +1 -1
  32. package/core/config/package.json +1 -1
  33. package/core/database/package.json +1 -1
  34. package/core/datetime/package.json +1 -1
  35. package/core/desktop/package.json +9 -9
  36. package/core/development/package.json +1 -1
  37. package/core/dns/package.json +4 -4
  38. package/core/docs/package.json +1 -1
  39. package/core/email/package.json +12 -12
  40. package/core/enums/package.json +1 -1
  41. package/core/env/package.json +1 -1
  42. package/core/error-handling/package.json +1 -1
  43. package/core/eslint-config/package.json +1 -1
  44. package/core/events/package.json +1 -1
  45. package/core/faker/package.json +1 -1
  46. package/core/git/package.json +1 -1
  47. package/core/health/package.json +1 -1
  48. package/core/http/package.json +1 -1
  49. package/core/lint/package.json +1 -1
  50. package/core/logging/package.json +1 -1
  51. package/core/notifications/package.json +22 -22
  52. package/core/objects/package.json +1 -1
  53. package/core/orm/package.json +1 -1
  54. package/core/path/package.json +1 -1
  55. package/core/payments/package.json +1 -1
  56. package/core/push/package.json +5 -5
  57. package/core/query-builder/package.json +1 -1
  58. package/core/queue/dist/index.js +3 -1
  59. package/core/queue/package.json +1 -1
  60. package/core/queue/src/index.ts +3 -1
  61. package/core/raycast/package.json +1 -1
  62. package/core/realtime/package.json +1 -1
  63. package/core/repl/package.json +1 -1
  64. package/core/router/package.json +1 -1
  65. package/core/scheduler/dist/index.js +4 -0
  66. package/core/scheduler/package.json +1 -1
  67. package/core/scheduler/src/index.ts +1 -0
  68. package/core/scheduler/src/schedule.ts +5 -0
  69. package/core/search-engine/package.json +1 -1
  70. package/core/security/package.json +1 -1
  71. package/core/server/package.json +1 -1
  72. package/core/signals/package.json +1 -1
  73. package/core/slug/package.json +1 -1
  74. package/core/sms/package.json +11 -11
  75. package/core/storage/package.json +1 -1
  76. package/core/strings/package.json +1 -1
  77. package/core/tables/package.json +1 -1
  78. package/core/testing/package.json +1 -1
  79. package/core/tinker/package.json +1 -1
  80. package/core/tunnel/package.json +1 -1
  81. package/core/types/package.json +3 -3
  82. package/core/types/src/cron-jobs.ts +6 -1
  83. package/core/ui/package.json +6 -6
  84. package/core/utils/dist/index.js +32 -1
  85. package/core/utils/package.json +1 -1
  86. package/core/utils/src/index.ts +1 -0
  87. package/core/utils/src/retry.ts +33 -0
  88. package/core/validation/package.json +1 -1
  89. package/core/vite/dist/index.js +1 -1
  90. package/core/vite/package.json +1 -1
  91. package/core/whois/package.json +1 -1
  92. package/core/x-ray/package.json +1 -1
  93. package/core/zsh-buddy/package.json +1 -1
  94. package/ide/vscode/package.json +1 -1
  95. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stacks-raycast",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
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.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks realtime integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/repl",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "A Stacks optimized TS & Vue REPL.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/router",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks framework router.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -520,6 +520,10 @@ class Schedule {
520
520
  this.cronPattern = "0 * * * * *";
521
521
  return this;
522
522
  }
523
+ everyTwoMinutes() {
524
+ this.cronPattern = "*/2 * * * * *";
525
+ return this;
526
+ }
523
527
  everyFiveMinutes() {
524
528
  this.cronPattern = "*/5 * * * *";
525
529
  return this;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/scheduler",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks scheduler.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -13,6 +13,7 @@ export type {
13
13
  Ranges,
14
14
  TimeUnit,
15
15
  } from './types/cron'
16
+ export * from './types/utils'
16
17
 
17
18
  export * from './schedule'
18
19
 
@@ -23,6 +23,11 @@ export class Schedule {
23
23
  return this
24
24
  }
25
25
 
26
+ everyTwoMinutes() {
27
+ this.cronPattern = '*/2 * * * * *'
28
+ return this
29
+ }
30
+
26
31
  everyFiveMinutes() {
27
32
  this.cronPattern = '*/5 * * * *'
28
33
  return this
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/search-engine",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks search engine integrations.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/security",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks framework security.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/server",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "Local development and production-ready.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/signals",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks signals integration, based on Maverick.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/slug",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks slug functionality.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/sms",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -65,16 +65,16 @@
65
65
  "@stacksjs/types": "workspace:*"
66
66
  },
67
67
  "optionalDependencies": {
68
- "@novu/gupshup": "^0.23.0",
69
- "@novu/nexmo": "^0.23.0",
70
- "@novu/node": "^0.23.0",
71
- "@novu/plivo": "^0.23.0",
72
- "@novu/sms77": "^0.23.0",
73
- "@novu/sns": "^0.23.0",
74
- "@novu/stateless": "^0.23.0",
75
- "@novu/telnyx": "^0.23.0",
76
- "@novu/termii": "^0.23.0",
77
- "@novu/twilio": "^0.23.0"
68
+ "@novu/gupshup": "^0.23.1",
69
+ "@novu/nexmo": "^0.23.1",
70
+ "@novu/node": "^0.23.1",
71
+ "@novu/plivo": "^0.23.1",
72
+ "@novu/sms77": "^0.23.1",
73
+ "@novu/sns": "^0.23.1",
74
+ "@novu/stateless": "^0.23.1",
75
+ "@novu/telnyx": "^0.23.1",
76
+ "@novu/termii": "^0.23.1",
77
+ "@novu/twilio": "^0.23.1"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@stacksjs/config": "workspace:*",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks file system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/strings",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks string utilities.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacksjs/tables",
3
- "version": "0.58.57",
3
+ "version": "0.58.58",
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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/testing",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks way of testing.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tinker",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "All you need to tinker.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tunnel",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "Local development tunnel.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -51,7 +51,7 @@
51
51
  "@mdit-vue/plugin-component": "^2.0.0",
52
52
  "@mdit-vue/plugin-frontmatter": "^2.0.0",
53
53
  "@mdit-vue/types": "^2.0.0",
54
- "@novu/stateless": "^0.23.0",
54
+ "@novu/stateless": "^0.23.1",
55
55
  "@rollup/pluginutils": "^5.1.0",
56
56
  "@stacksjs/validation": "workspace:*",
57
57
  "@types/aws4": "^1.11.6",
@@ -78,7 +78,7 @@
78
78
  "vite-plugin-pwa": "^0.17.5",
79
79
  "vite-ssg": "^0.23.6",
80
80
  "vitepress": "1.0.0-rc.42",
81
- "vue": "^3.4.15"
81
+ "vue": "^3.4.16"
82
82
  },
83
83
  "devDependencies": {
84
84
  "aws-cdk-lib": "^2.126.0",
@@ -1,3 +1,5 @@
1
+ import type { IntRange } from '@stacksjs/scheduler'
2
+
1
3
  /**
2
4
  * Cron Job Options.
3
5
  */
@@ -12,7 +14,10 @@ export interface JobOptions {
12
14
  description?: string
13
15
  queue?: string
14
16
  timezone?: string
15
- tries?: number
17
+ /**
18
+ * Number of tries. Must be between 0 and 185.
19
+ */
20
+ tries?: IntRange<0, 185>
16
21
  backoff?: number | number[]
17
22
  rate?: string | Every
18
23
  enabled?: boolean
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks UI engine.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -58,22 +58,22 @@
58
58
  "prepublishOnly": "bun --bun run build"
59
59
  },
60
60
  "peerDependencies": {
61
- "@headlessui/vue": "^1.7.18",
61
+ "@headlessui/vue": "^1.7.19",
62
62
  "@stacksjs/build": "workspace:*",
63
63
  "@stacksjs/config": "workspace:*",
64
64
  "@stacksjs/router": "workspace:*",
65
65
  "pinia": "^2.1.7",
66
66
  "unocss": "^0.58.5",
67
67
  "vite-plugin-vue-layouts": "^0.11.0",
68
- "vue": "^3.4.15",
68
+ "vue": "^3.4.16",
69
69
  "vue-tsc": "^1.8.27"
70
70
  },
71
71
  "dependencies": {
72
- "@headlessui/vue": "^1.7.18",
72
+ "@headlessui/vue": "^1.7.19",
73
73
  "@iconify-json/heroicons": "^1.1.19",
74
74
  "@iconify-json/heroicons-outline": "^1.1.10",
75
75
  "@iconify-json/heroicons-solid": "^1.1.11",
76
- "@iconify/json": "^2.2.180",
76
+ "@iconify/json": "^2.2.181",
77
77
  "@julr/unocss-preset-forms": "^0.1.0",
78
78
  "@stacksjs/build": "workspace:*",
79
79
  "@stacksjs/config": "workspace:*",
@@ -84,7 +84,7 @@
84
84
  "unocss": "^0.58.5",
85
85
  "unocss-preset-primitives": "0.0.2-beta.0",
86
86
  "vite-plugin-vue-layouts": "^0.11.0",
87
- "vue": "^3.4.15",
87
+ "vue": "^3.4.16",
88
88
  "vue-tsc": "^1.8.27"
89
89
  },
90
90
  "devDependencies": {
@@ -487,6 +487,36 @@ var createRegExp = (...inputs) => {
487
487
  const flags = inputs.length > 1 && (Array.isArray(inputs[inputs.length - 1]) || inputs[inputs.length - 1] instanceof Set) ? inputs.pop() : undefined;
488
488
  return new RegExp(exactly(...inputs).toString(), [...flags || ""].join(""));
489
489
  };
490
+ // src/retry.ts
491
+ function retry(fn, options) {
492
+ const { retries = 3, initialDelay = 1000, backoffFactor = 2, jitter = true } = options;
493
+ return new Promise((resolve, reject) => {
494
+ let attemptCount = 0;
495
+ const attempt = async () => {
496
+ try {
497
+ resolve(await fn());
498
+ } catch (err2) {
499
+ if (attemptCount >= retries) {
500
+ reject(err2);
501
+ } else {
502
+ const delay = calculateDelay(attemptCount, initialDelay, backoffFactor, jitter);
503
+ setTimeout(() => attempt(), delay);
504
+ attemptCount++;
505
+ }
506
+ }
507
+ };
508
+ attempt();
509
+ });
510
+ }
511
+ var calculateDelay = function(attemptCount, initialDelay, backoffFactor, jitter) {
512
+ let delay = initialDelay * backoffFactor ** attemptCount;
513
+ if (jitter) {
514
+ const random = Math.random();
515
+ const jitterValue = delay * 0.3;
516
+ delay = delay + jitterValue * (random - 0.5) * 2;
517
+ }
518
+ return delay;
519
+ };
490
520
  // src/sleep.ts
491
521
  function sleep(ms) {
492
522
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -884,7 +914,7 @@ function prettyBytes(number, options) {
884
914
  return prefix + numberString + separator + unit;
885
915
  }
886
916
  // package.json
887
- var version = "0.58.57";
917
+ var version = "0.58.58";
888
918
  export {
889
919
  wordChar,
890
920
  wordBoundary,
@@ -1102,6 +1132,7 @@ export {
1102
1132
  setEnvValue,
1103
1133
  runNpmScript,
1104
1134
  rimraf,
1135
+ retry,
1105
1136
  resolveUnref,
1106
1137
  resolveRef,
1107
1138
  renderHeadToString,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/utils",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks helper functions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -16,6 +16,7 @@ export * from './math'
16
16
  export * from './p'
17
17
  export * from './promise'
18
18
  export * from './regex'
19
+ export * from './retry'
19
20
  export * from './sleep'
20
21
  export * from './throttle'
21
22
  export * from './vendors'
@@ -0,0 +1,33 @@
1
+ export function retry(fn, options) {
2
+ const { retries = 3, initialDelay = 1000, backoffFactor = 2, jitter = true } = options
3
+
4
+ return new Promise((resolve, reject) => {
5
+ let attemptCount = 0
6
+ const attempt = async () => {
7
+ try {
8
+ resolve(await fn())
9
+ }
10
+ catch (err) {
11
+ if (attemptCount >= retries) {
12
+ reject(err)
13
+ }
14
+ else {
15
+ const delay = calculateDelay(attemptCount, initialDelay, backoffFactor, jitter)
16
+ setTimeout(() => attempt(), delay)
17
+ attemptCount++
18
+ }
19
+ }
20
+ }
21
+ attempt()
22
+ })
23
+ }
24
+
25
+ function calculateDelay(attemptCount, initialDelay, backoffFactor, jitter) {
26
+ let delay = initialDelay * backoffFactor ** attemptCount
27
+ if (jitter) {
28
+ const random = Math.random() // Generates a number between 0 and 1
29
+ const jitterValue = delay * 0.3 // Jitter will be up to 30% of the delay
30
+ delay = delay + jitterValue * (random - 0.5) * 2 // Adjust delay randomly within ±30%
31
+ }
32
+ return delay
33
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/validation",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Validation ways.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -609,7 +609,7 @@ var web_components_default = defineConfig6(({ command }) => {
609
609
  // src/plugin/docs.ts
610
610
  import {kolorist as c2} from "@stacksjs/cli";
611
611
  // package.json
612
- var version = "0.58.57";
612
+ var version = "0.58.58";
613
613
 
614
614
  // src/plugin/docs.ts
615
615
  var docsEngine = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/vite",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Vite plugin.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/whois",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "Easily get whois info.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/x-ray",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "All you need to debug, log & analyze.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zsh-buddy",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "A better Stacks zsh experience.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.58.57",
5
+ "version": "0.58.58",
6
6
  "description": "A modern Stacks development environment.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stacks",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks framework.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",