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.
- package/core/actions/dist/src/index.js +9 -3
- package/core/actions/dist/src/release.js +9 -3
- package/core/actions/dist/src/upgrade.js +1 -1
- package/core/actions/package.json +1 -1
- package/core/actions/src/action.ts +11 -3
- package/core/ai/dist/index.js +4 -4
- package/core/ai/package.json +3 -3
- package/core/alias/package.json +1 -1
- package/core/analytics/package.json +1 -1
- package/core/api/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/buddy/package.json +1 -1
- package/core/build/package.json +1 -1
- package/core/bun-create/bud/package.json +1 -1
- package/core/bun-create/buddy/package.json +1 -1
- package/core/bun-create/stack/package.json +1 -1
- package/core/bun-create/stacks/package.json +1 -1
- package/core/bun-create/stx/package.json +1 -1
- package/core/bun-plugin-yaml/package.json +1 -1
- package/core/cache/package.json +2 -2
- package/core/chat/package.json +8 -8
- package/core/cli/dist/index.js +1 -1
- package/core/cli/package.json +1 -1
- package/core/cloud/dist/index.js +69 -39
- package/core/cloud/package.json +28 -28
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
- package/core/cloud/src/cloud/queue.ts +91 -51
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
- package/core/collections/package.json +1 -1
- package/core/config/package.json +1 -1
- package/core/database/package.json +1 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +9 -9
- package/core/development/package.json +1 -1
- package/core/dns/package.json +4 -4
- package/core/docs/package.json +1 -1
- package/core/email/package.json +12 -12
- package/core/enums/package.json +1 -1
- package/core/env/package.json +1 -1
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/package.json +1 -1
- package/core/events/package.json +1 -1
- package/core/faker/package.json +1 -1
- package/core/git/package.json +1 -1
- package/core/health/package.json +1 -1
- package/core/http/package.json +1 -1
- package/core/lint/package.json +1 -1
- package/core/logging/package.json +1 -1
- package/core/notifications/package.json +22 -22
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +1 -1
- package/core/path/package.json +1 -1
- package/core/payments/package.json +1 -1
- package/core/push/package.json +5 -5
- package/core/query-builder/package.json +1 -1
- package/core/queue/dist/index.js +3 -1
- package/core/queue/package.json +1 -1
- package/core/queue/src/index.ts +3 -1
- package/core/raycast/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/repl/package.json +1 -1
- package/core/router/package.json +1 -1
- package/core/scheduler/dist/index.js +4 -0
- package/core/scheduler/package.json +1 -1
- package/core/scheduler/src/index.ts +1 -0
- package/core/scheduler/src/schedule.ts +5 -0
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +1 -1
- package/core/signals/package.json +1 -1
- package/core/slug/package.json +1 -1
- package/core/sms/package.json +11 -11
- package/core/storage/package.json +1 -1
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +1 -1
- package/core/testing/package.json +1 -1
- package/core/tinker/package.json +1 -1
- package/core/tunnel/package.json +1 -1
- package/core/types/package.json +3 -3
- package/core/types/src/cron-jobs.ts +6 -1
- package/core/ui/package.json +6 -6
- package/core/utils/dist/index.js +32 -1
- package/core/utils/package.json +1 -1
- package/core/utils/src/index.ts +1 -0
- package/core/utils/src/retry.ts +33 -0
- package/core/validation/package.json +1 -1
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +1 -1
- package/core/whois/package.json +1 -1
- package/core/x-ray/package.json +1 -1
- package/core/zsh-buddy/package.json +1 -1
- package/ide/vscode/package.json +1 -1
- package/package.json +1 -1
package/core/repl/package.json
CHANGED
package/core/router/package.json
CHANGED
package/core/server/package.json
CHANGED
package/core/slug/package.json
CHANGED
package/core/sms/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/sms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
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.
|
|
69
|
-
"@novu/nexmo": "^0.23.
|
|
70
|
-
"@novu/node": "^0.23.
|
|
71
|
-
"@novu/plivo": "^0.23.
|
|
72
|
-
"@novu/sms77": "^0.23.
|
|
73
|
-
"@novu/sns": "^0.23.
|
|
74
|
-
"@novu/stateless": "^0.23.
|
|
75
|
-
"@novu/telnyx": "^0.23.
|
|
76
|
-
"@novu/termii": "^0.23.
|
|
77
|
-
"@novu/twilio": "^0.23.
|
|
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:*",
|
package/core/tables/package.json
CHANGED
package/core/tinker/package.json
CHANGED
package/core/tunnel/package.json
CHANGED
package/core/types/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
package/core/ui/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
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.
|
|
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.
|
|
68
|
+
"vue": "^3.4.16",
|
|
69
69
|
"vue-tsc": "^1.8.27"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@headlessui/vue": "^1.7.
|
|
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.
|
|
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.
|
|
87
|
+
"vue": "^3.4.16",
|
|
88
88
|
"vue-tsc": "^1.8.27"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
package/core/utils/dist/index.js
CHANGED
|
@@ -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.
|
|
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,
|
package/core/utils/package.json
CHANGED
package/core/utils/src/index.ts
CHANGED
|
@@ -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
|
+
}
|
package/core/vite/dist/index.js
CHANGED
|
@@ -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.
|
|
612
|
+
var version = "0.58.58";
|
|
613
613
|
|
|
614
614
|
// src/plugin/docs.ts
|
|
615
615
|
var docsEngine = {
|
package/core/vite/package.json
CHANGED
package/core/whois/package.json
CHANGED
package/core/x-ray/package.json
CHANGED
package/ide/vscode/package.json
CHANGED