stacks 0.58.49 → 0.58.50
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 +2 -0
- package/core/actions/dist/src/release.js +2 -0
- package/core/actions/dist/src/upgrade.js +1 -1
- package/core/actions/package.json +1 -1
- package/core/actions/src/action.ts +2 -0
- package/core/actions/src/generate/custom-cli-file.ts +24 -0
- package/core/ai/dist/index.js +6 -6
- 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/dist/{chunk-b32089b9556f373c.js → chunk-91084836e95161e8.js} +1 -1
- package/core/buddy/dist/cli.js +13 -1
- package/core/buddy/dist/index.js +1 -1
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/cli.ts +17 -0
- package/core/buddy/src/commands/deploy.ts +1 -1
- package/core/buddy/src/custom-cli.ts +36 -0
- 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 +1 -1
- package/core/cli/dist/index.js +2 -2
- package/core/cli/package.json +1 -1
- package/core/cli/src/cli.ts +1 -1
- package/core/cloud/deploy.ts +2 -2
- package/core/cloud/dist/index.js +144 -60
- package/core/cloud/package.json +32 -32
- 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/cdn.ts +5 -5
- package/core/cloud/src/cloud/compute.ts +150 -28
- package/core/cloud/src/cloud/index.ts +13 -9
- package/core/cloud/src/cloud/network.ts +4 -24
- package/core/cloud/src/cloud/package/package.json +1 -1
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
- package/core/collections/package.json +1 -1
- package/core/config/dist/index.js +13 -12
- package/core/config/package.json +2 -2
- package/core/config/src/config.ts +1 -1
- package/core/config/src/defaults.ts +3 -3
- package/core/config/src/overrides.ts +22 -22
- package/core/database/package.json +1 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +1 -1
- package/core/development/package.json +1 -1
- package/core/dns/package.json +7 -7
- package/core/docs/package.json +3 -3
- package/core/email/package.json +3 -3
- 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 +4 -4
- 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 +3 -3
- package/core/logging/package.json +1 -1
- package/core/notifications/package.json +1 -1
- 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 +1 -1
- 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 +4 -2
- 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 +3 -2
- package/core/scheduler/package.json +1 -1
- package/core/scheduler/src/index.ts +1 -1
- 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 +1 -1
- 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 +3 -3
- package/core/tinker/package.json +1 -1
- package/core/tsconfig.json +1 -0
- package/core/tunnel/package.json +1 -1
- package/core/types/package.json +4 -4
- package/core/types/src/api.ts +2 -0
- package/core/types/src/cron-jobs.ts +2 -1
- package/core/types/src/stacks.ts +6 -6
- package/core/ui/package.json +4 -4
- package/core/utils/dist/index.js +1 -1
- package/core/utils/package.json +1 -1
- 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/cloud/src/cloud/stacksjs-router-0.58.48.tgz +0 -0
package/core/env/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.50",
|
|
5
5
|
"description": "The Stacks.js ESLint config preset, heavily inspired by Anthony's ESLint config.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"eslint-plugin-unicorn": "^50.0.1",
|
|
91
91
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
92
92
|
"eslint-plugin-vitest": "^0.3.21",
|
|
93
|
-
"eslint-plugin-vue": "^9.21.
|
|
93
|
+
"eslint-plugin-vue": "^9.21.1",
|
|
94
94
|
"eslint-plugin-yml": "^1.12.2",
|
|
95
95
|
"eslint-processor-vue-blocks": "^0.1.1",
|
|
96
96
|
"globals": "^13.24.0",
|
|
@@ -106,13 +106,13 @@
|
|
|
106
106
|
"@stacksjs/utils": "workspace:*",
|
|
107
107
|
"@stylistic/eslint-plugin-migrate": "^1.5.4",
|
|
108
108
|
"@types/eslint": "^8.56.2",
|
|
109
|
-
"@types/node": "^20.11.
|
|
109
|
+
"@types/node": "^20.11.16",
|
|
110
110
|
"@unocss/eslint-plugin": "^0.58.4",
|
|
111
111
|
"eslint": "^8.56.0",
|
|
112
112
|
"eslint-flat-config-viewer": "^0.1.11",
|
|
113
113
|
"eslint-plugin-format": "^0.1.0",
|
|
114
114
|
"eslint-ts-patch": "^8.55.0-1",
|
|
115
|
-
"lint-staged": "^15.2.
|
|
115
|
+
"lint-staged": "^15.2.1",
|
|
116
116
|
"rimraf": "^5.0.5",
|
|
117
117
|
"tsup": "^8.0.1",
|
|
118
118
|
"typescript": "^5.3.3"
|
package/core/events/package.json
CHANGED
package/core/faker/package.json
CHANGED
package/core/git/package.json
CHANGED
package/core/health/package.json
CHANGED
package/core/http/package.json
CHANGED
package/core/lint/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/lint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.50",
|
|
5
5
|
"description": "The Stacks way to lint.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@types/eslint": "^8.56.2",
|
|
54
54
|
"eslint": "^8.56.0",
|
|
55
55
|
"eslint-ts-patch": "^8.55.0-1",
|
|
56
|
-
"lint-staged": "^15.2.
|
|
56
|
+
"lint-staged": "^15.2.1",
|
|
57
57
|
"publint": "^0.2.7"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@types/eslint": "^8.56.2",
|
|
62
62
|
"eslint": "^8.56.0",
|
|
63
63
|
"eslint-ts-patch": "^8.55.0-1",
|
|
64
|
-
"lint-staged": "^15.2.
|
|
64
|
+
"lint-staged": "^15.2.1",
|
|
65
65
|
"publint": "^0.2.7"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
package/core/orm/package.json
CHANGED
package/core/path/package.json
CHANGED
package/core/push/package.json
CHANGED
package/core/queue/dist/index.js
CHANGED
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
class Job {
|
|
4
4
|
name;
|
|
5
5
|
description;
|
|
6
|
+
action;
|
|
6
7
|
handle;
|
|
7
8
|
tries;
|
|
8
9
|
backoff;
|
|
9
|
-
constructor({ name, description, handle, tries, backoff }) {
|
|
10
|
+
constructor({ name, description, handle, tries, backoff, action }) {
|
|
10
11
|
this.name = name;
|
|
11
12
|
this.description = description;
|
|
12
13
|
this.handle = handle;
|
|
14
|
+
this.action = action;
|
|
13
15
|
this.tries = tries;
|
|
14
16
|
this.backoff = backoff;
|
|
15
17
|
}
|
package/core/queue/package.json
CHANGED
package/core/queue/src/index.ts
CHANGED
|
@@ -3,14 +3,16 @@ import type { JobOptions } from '@stacksjs/types'
|
|
|
3
3
|
export class Job {
|
|
4
4
|
name: JobOptions['name']
|
|
5
5
|
description: JobOptions['description']
|
|
6
|
-
|
|
6
|
+
action?: JobOptions['action']
|
|
7
|
+
handle?: JobOptions['handle']
|
|
7
8
|
tries: JobOptions['tries']
|
|
8
9
|
backoff: JobOptions['backoff']
|
|
9
10
|
|
|
10
|
-
constructor({ name, description, handle, tries, backoff }: JobOptions) {
|
|
11
|
+
constructor({ name, description, handle, tries, backoff, action }: JobOptions) {
|
|
11
12
|
this.name = name
|
|
12
13
|
this.description = description
|
|
13
14
|
this.handle = handle
|
|
15
|
+
this.action = action
|
|
14
16
|
this.tries = tries
|
|
15
17
|
this.backoff = backoff
|
|
16
18
|
}
|
package/core/repl/package.json
CHANGED
package/core/router/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/index.ts
|
|
3
3
|
import cron from "node-cron";
|
|
4
|
-
|
|
4
|
+
function run(callback) {
|
|
5
5
|
return {
|
|
6
6
|
everySecond: () => {
|
|
7
7
|
cron.schedule("* * * * * *", callback);
|
|
@@ -82,7 +82,7 @@ var run = function(callback) {
|
|
|
82
82
|
timezone ? cron.schedule(interval, callback, { scheduled: true, timezone }) : cron.schedule(interval, callback);
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
}
|
|
85
|
+
}
|
|
86
86
|
function useScheduler() {
|
|
87
87
|
return {
|
|
88
88
|
run
|
|
@@ -204,5 +204,6 @@ class ScheduleImpl {
|
|
|
204
204
|
}
|
|
205
205
|
export {
|
|
206
206
|
useScheduler,
|
|
207
|
+
run,
|
|
207
208
|
ScheduleImpl
|
|
208
209
|
};
|
|
@@ -231,7 +231,7 @@ export interface Scheduler {
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
// function run(callback: Function): Scheduler {
|
|
234
|
-
function run(callback: ((now: Date | 'manual' | 'init') => void) | string): Scheduler {
|
|
234
|
+
export function run(callback: ((now: Date | 'manual' | 'init') => void) | string): Scheduler {
|
|
235
235
|
return {
|
|
236
236
|
everySecond: () => {
|
|
237
237
|
cron.schedule('* * * * * *', callback)
|
package/core/server/package.json
CHANGED
package/core/slug/package.json
CHANGED
package/core/sms/package.json
CHANGED
package/core/tables/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/testing",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.50",
|
|
5
5
|
"description": "The Stacks way of testing.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"prepublishOnly": "bun --bun run build"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@playwright/test": "^1.41.
|
|
55
|
+
"@playwright/test": "^1.41.2"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@playwright/test": "^1.41.
|
|
58
|
+
"@playwright/test": "^1.41.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@stacksjs/development": "workspace:*"
|
package/core/tinker/package.json
CHANGED
package/core/tsconfig.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.50",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@types/fs-extra": "^11.0.4",
|
|
63
63
|
"@types/markdown-it-link-attributes": "^3.0.4",
|
|
64
64
|
"@types/minimatch": "^5.1.2",
|
|
65
|
-
"@types/node": "^20.11.
|
|
65
|
+
"@types/node": "^20.11.16",
|
|
66
66
|
"@types/nprogress": "^0.2.3",
|
|
67
67
|
"@vinejs/vine": "^1.7.1",
|
|
68
68
|
"cac": "^6.7.14",
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"vite-plugin-inspect": "^0.8.3",
|
|
78
78
|
"vite-plugin-pwa": "^0.17.5",
|
|
79
79
|
"vite-ssg": "^0.23.6",
|
|
80
|
-
"vitepress": "1.0.0-rc.
|
|
80
|
+
"vitepress": "1.0.0-rc.41",
|
|
81
81
|
"vue": "^3.4.15"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"aws-cdk-lib": "^2.
|
|
84
|
+
"aws-cdk-lib": "^2.126.0",
|
|
85
85
|
"typescript": "^5.3.3"
|
|
86
86
|
}
|
|
87
87
|
}
|
package/core/types/src/api.ts
CHANGED
|
@@ -7,12 +7,13 @@ export interface JobOptions {
|
|
|
7
7
|
*/
|
|
8
8
|
name?: string
|
|
9
9
|
|
|
10
|
-
handle
|
|
10
|
+
handle?: string | Function
|
|
11
11
|
action?: string
|
|
12
12
|
description?: string
|
|
13
13
|
timezone?: string
|
|
14
14
|
tries?: number
|
|
15
15
|
backoff?: number | number[]
|
|
16
|
+
schedule?: string | Every
|
|
16
17
|
enabled?: boolean
|
|
17
18
|
}
|
|
18
19
|
|
package/core/types/src/stacks.ts
CHANGED
|
@@ -52,22 +52,22 @@ export interface StacksOptions {
|
|
|
52
52
|
app: AppConfig
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* **
|
|
55
|
+
* **Cache Options**
|
|
56
56
|
*
|
|
57
|
-
* This configuration defines all of your
|
|
57
|
+
* This configuration defines all of your Cache options. Because Stacks is fully-typed, you
|
|
58
58
|
* may hover any of the options below and the definitions will be provided. In case you
|
|
59
59
|
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
cache: CacheConfig
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
|
-
* **
|
|
64
|
+
* **CLI / Binary Options**
|
|
65
65
|
*
|
|
66
|
-
* This configuration defines all of your
|
|
66
|
+
* This configuration defines all of your Binary options. Because Stacks is fully-typed, you
|
|
67
67
|
* may hover any of the options below and the definitions will be provided. In case you
|
|
68
68
|
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
cli: BinaryConfig
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* **Cloud Options**
|
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.50",
|
|
5
5
|
"description": "The Stacks UI engine.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"prepublishOnly": "bun --bun run build"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@headlessui/vue": "^1.7.
|
|
61
|
+
"@headlessui/vue": "^1.7.18",
|
|
62
62
|
"@stacksjs/build": "workspace:*",
|
|
63
63
|
"@stacksjs/config": "workspace:*",
|
|
64
64
|
"@stacksjs/router": "workspace:*",
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
"vue-tsc": "^1.8.27"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@headlessui/vue": "^1.7.
|
|
72
|
+
"@headlessui/vue": "^1.7.18",
|
|
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.178",
|
|
77
77
|
"@julr/unocss-preset-forms": "^0.1.0",
|
|
78
78
|
"@stacksjs/build": "workspace:*",
|
|
79
79
|
"@stacksjs/config": "workspace:*",
|
package/core/utils/dist/index.js
CHANGED
package/core/utils/package.json
CHANGED