stacks 0.58.58 → 0.58.60
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/build.js +18 -26
- package/core/actions/dist/src/bump.js +9 -3
- package/core/actions/dist/src/changelog.js +11 -3
- package/core/actions/dist/src/clean.js +2 -2
- package/core/actions/dist/src/dev/index.js +18 -26
- package/core/actions/dist/src/generate/index.js +18 -26
- package/core/actions/dist/src/helpers/index.js +18 -26
- package/core/actions/dist/src/helpers/utils.js +18 -26
- package/core/actions/dist/src/index.js +26 -34
- package/core/actions/dist/src/lint/fix.js +6 -2
- package/core/actions/dist/src/release.js +30 -35
- package/core/actions/dist/src/upgrade/index.js +18 -26
- package/core/actions/dist/src/upgrade.js +10 -7
- package/core/actions/package.json +1 -1
- package/core/actions/src/action.ts +18 -8
- package/core/actions/src/bump.ts +13 -6
- package/core/actions/src/changelog.ts +14 -4
- package/core/actions/src/clean.ts +2 -2
- package/core/actions/src/dev/api.ts +1 -2
- package/core/actions/src/domains/add.ts +12 -27
- package/core/actions/src/helpers/utils.ts +24 -36
- package/core/actions/src/lint/fix.ts +8 -2
- package/core/actions/src/migrate/dns.ts +1 -1
- package/core/actions/src/release.ts +4 -1
- package/core/actions/src/upgrade.ts +5 -2
- package/core/ai/dist/index.js +31 -29
- package/core/ai/package.json +3 -3
- package/core/alias/package.json +1 -1
- package/core/analytics/package.json +1 -1
- package/core/api/dist/index.js +6 -3
- 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-59a9de11428ba763.js +993 -0
- package/core/buddy/dist/{chunk-e9c0ec1a3b7be088.js → chunk-6658b07ce4c24cac.js} +604 -512
- package/core/buddy/dist/cli.js +3916 -19
- package/core/buddy/dist/index.js +2 -5
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/cli.ts +91 -17
- package/core/buddy/src/commands/add.ts +3 -0
- package/core/buddy/src/commands/build.ts +18 -3
- package/core/buddy/src/commands/changelog.ts +13 -6
- package/core/buddy/src/commands/clean.ts +3 -1
- package/core/buddy/src/commands/cloud.ts +14 -2
- package/core/buddy/src/commands/commit.ts +2 -0
- package/core/buddy/src/commands/configure.ts +6 -3
- package/core/buddy/src/commands/create.ts +3 -1
- package/core/buddy/src/commands/deploy.ts +4 -2
- package/core/buddy/src/commands/dev.ts +17 -4
- package/core/buddy/src/commands/dns.ts +7 -1
- package/core/buddy/src/commands/domains.ts +7 -1
- package/core/buddy/src/commands/fresh.ts +4 -2
- package/core/buddy/src/commands/generate.ts +36 -26
- package/core/buddy/src/commands/http.ts +6 -4
- package/core/buddy/src/commands/index.ts +0 -2
- package/core/buddy/src/commands/install.ts +3 -1
- package/core/buddy/src/commands/key.ts +2 -0
- package/core/buddy/src/commands/lint.ts +4 -0
- package/core/buddy/src/commands/list.ts +6 -2
- package/core/buddy/src/commands/make.ts +52 -30
- package/core/buddy/src/commands/migrate.ts +6 -2
- package/core/buddy/src/commands/prepublish.ts +3 -0
- package/core/buddy/src/commands/release.ts +12 -2
- package/core/buddy/src/commands/seed.ts +3 -1
- package/core/buddy/src/commands/setup.ts +16 -8
- package/core/buddy/src/commands/tinker.ts +3 -1
- package/core/buddy/src/commands/types.ts +4 -2
- package/core/buddy/src/commands/upgrade.ts +14 -3
- package/core/buddy/src/commands/version.ts +7 -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 +463 -81
- package/core/cli/package.json +1 -1
- package/core/cli/src/cli.ts +9 -31
- package/core/cli/src/console.ts +19 -19
- package/core/cli/src/exec.ts +25 -8
- package/core/cli/src/helpers.ts +3 -3
- package/core/cli/src/index.ts +1 -1
- package/core/cli/src/parse.ts +95 -17
- package/core/cli/src/run.ts +7 -7
- package/core/cli/src/utils.ts +62 -0
- package/core/cloud/dist/index.js +29 -30
- 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/dashboard.ts +86 -85
- package/core/cloud/src/cloud/docs.ts +1 -1
- package/core/cloud/src/cloud/queue.ts +35 -34
- 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 +52 -30
- package/core/config/package.json +1 -1
- package/core/config/src/config.ts +1 -1
- package/core/config/src/defaults.ts +32 -16
- package/core/config/src/overrides.ts +2 -0
- package/core/database/package.json +1 -1
- package/core/database/src/kysely-bun-worker/worker.ts +0 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +3 -3
- package/core/development/package.json +1 -1
- package/core/dns/package.json +7 -7
- package/core/docs/package.json +1 -1
- package/core/email/package.json +4 -3
- package/core/email/src/server/converter.ts +19 -19
- package/core/email/src/server/inbound.ts +24 -8
- package/core/email/src/server/outbound.ts +17 -17
- package/core/enums/dist/index.js +2 -2
- package/core/enums/package.json +1 -1
- package/core/enums/src/index.ts +2 -2
- package/core/env/dist/index.js +1 -1
- package/core/env/package.json +3 -2
- package/core/env/src/utils.ts +1 -0
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/build.ts +1 -1
- package/core/eslint-config/package.json +12 -10
- package/core/eslint-config/test/cli.spec.ts +2 -1
- package/core/eslint-config/tsconfig.json +2 -2
- package/core/events/package.json +1 -1
- package/core/faker/package.json +2 -2
- 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/build.ts +1 -1
- package/core/logging/dist/index.js +44 -1915
- package/core/logging/package.json +1 -1
- package/core/logging/src/index.ts +79 -13
- package/core/notifications/package.json +2 -2
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +1 -1
- package/core/path/dist/index.js +10 -0
- package/core/path/package.json +1 -1
- package/core/path/src/index.ts +10 -0
- package/core/payments/dist/index.js +34 -10
- package/core/payments/package.json +2 -2
- package/core/push/package.json +1 -1
- package/core/query-builder/package.json +1 -1
- package/core/queue/package.json +1 -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/dist/index.js +517 -14
- package/core/router/package.json +1 -1
- package/core/router/src/router.ts +10 -3
- package/core/scheduler/package.json +2 -1
- package/core/scheduler/tests/cron.test.ts +11 -9
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +2 -2
- 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 +2 -2
- package/core/testing/package.json +5 -3
- package/core/tinker/package.json +1 -1
- package/core/tunnel/package.json +1 -1
- package/core/types/dist/index.js +1787 -6
- package/core/types/package.json +6 -6
- package/core/types/src/ai.ts +1 -0
- package/core/types/src/app.ts +1 -1
- package/core/types/src/binary.ts +1 -0
- package/core/types/src/cli.ts +13 -3
- package/core/types/src/docs.ts +6 -2
- package/core/types/src/index.ts +1 -0
- package/core/types/src/logger.ts +54 -0
- package/core/types/src/router.ts +2 -1
- package/core/types/src/stacks.ts +10 -0
- package/core/ui/package.json +4 -4
- package/core/utils/dist/index.js +13 -5
- package/core/utils/package.json +2 -2
- package/core/utils/src/hash.ts +10 -1
- package/core/validation/package.json +1 -1
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +4 -4
- package/core/vite/src/example-wc.ts +1 -4
- package/core/vite/src/plugin/auto-imports.ts +1 -2
- package/core/vite/src/plugin/components.ts +1 -2
- package/core/vite/src/plugin/docs.ts +1 -1
- package/core/whois/package.json +3 -3
- package/core/x-ray/package.json +1 -1
- package/core/zsh-buddy/buddy.plugin.zsh +4 -0
- package/core/zsh-buddy/package.json +3 -3
- package/ide/dictionary.txt +1 -0
- package/ide/vscode/package.json +3 -4
- package/package.json +1 -1
- package/core/buddy/src/commands/example.ts +0 -66
- package/core/buddy/src/commands/inspire.ts +0 -24
- package/core/cli/src/utilities.ts +0 -2
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-new */
|
|
2
2
|
import { DateTime } from 'luxon'
|
|
3
|
+
|
|
4
|
+
// @ts-expect-error types aren't there
|
|
3
5
|
import sinon from 'sinon'
|
|
4
6
|
import { CronJob, CronTime } from '../src'
|
|
5
7
|
|
|
@@ -19,7 +21,7 @@ describe('cron', () => {
|
|
|
19
21
|
expect(callback).toHaveBeenCalledTimes(1)
|
|
20
22
|
})
|
|
21
23
|
|
|
22
|
-
it('should run second with onComplete (* * * * * *)', (done) => {
|
|
24
|
+
it('should run second with onComplete (* * * * * *)', (done: any) => {
|
|
23
25
|
const clock = sinon.useFakeTimers()
|
|
24
26
|
const callback = jest.fn()
|
|
25
27
|
|
|
@@ -63,7 +65,7 @@ describe('cron', () => {
|
|
|
63
65
|
expect(callback).toHaveBeenCalledTimes(5)
|
|
64
66
|
})
|
|
65
67
|
|
|
66
|
-
it('should run every second for 5 seconds with onComplete (* * * * * *)', (done) => {
|
|
68
|
+
it('should run every second for 5 seconds with onComplete (* * * * * *)', (done: any) => {
|
|
67
69
|
const callback = jest.fn()
|
|
68
70
|
const clock = sinon.useFakeTimers()
|
|
69
71
|
const job = new CronJob(
|
|
@@ -110,7 +112,7 @@ describe('cron', () => {
|
|
|
110
112
|
expect(callback).toHaveBeenCalledTimes(2)
|
|
111
113
|
})
|
|
112
114
|
|
|
113
|
-
it('should run every second for 5 seconds with onComplete (*/1 * * * * *)', (done) => {
|
|
115
|
+
it('should run every second for 5 seconds with onComplete (*/1 * * * * *)', (done: any) => {
|
|
114
116
|
const clock = sinon.useFakeTimers()
|
|
115
117
|
const callback = jest.fn()
|
|
116
118
|
const job = new CronJob(
|
|
@@ -137,7 +139,7 @@ describe('cron', () => {
|
|
|
137
139
|
expect(callback).toHaveBeenCalledTimes(8)
|
|
138
140
|
})
|
|
139
141
|
|
|
140
|
-
it('should run every second for a range ([start]-[end] * * * * *) with onComplete', (done) => {
|
|
142
|
+
it('should run every second for a range ([start]-[end] * * * * *) with onComplete', (done: any) => {
|
|
141
143
|
const clock = sinon.useFakeTimers()
|
|
142
144
|
const callback = jest.fn()
|
|
143
145
|
const job = new CronJob(
|
|
@@ -154,7 +156,7 @@ describe('cron', () => {
|
|
|
154
156
|
clock.restore()
|
|
155
157
|
})
|
|
156
158
|
|
|
157
|
-
it('should default to full range when upper range not provided (1/2 * * * * *)', (done) => {
|
|
159
|
+
it('should default to full range when upper range not provided (1/2 * * * * *)', (done: any) => {
|
|
158
160
|
const clock = sinon.useFakeTimers()
|
|
159
161
|
const callback = jest.fn()
|
|
160
162
|
const job = new CronJob(
|
|
@@ -185,7 +187,7 @@ describe('cron', () => {
|
|
|
185
187
|
expect(callback).toHaveBeenCalledTimes(1)
|
|
186
188
|
})
|
|
187
189
|
|
|
188
|
-
it('should run every second with onComplete (* * * * * *) using the object constructor', (done) => {
|
|
190
|
+
it('should run every second with onComplete (* * * * * *) using the object constructor', (done: any) => {
|
|
189
191
|
const clock = sinon.useFakeTimers()
|
|
190
192
|
const callback = jest.fn()
|
|
191
193
|
const job = CronJob.from({
|
|
@@ -236,7 +238,7 @@ describe('cron', () => {
|
|
|
236
238
|
expect(callback).toHaveBeenCalledTimes(4)
|
|
237
239
|
})
|
|
238
240
|
|
|
239
|
-
it('should run every 45 minutes for 2 hours (0 */45 * * * *) with onComplete', (done) => {
|
|
241
|
+
it('should run every 45 minutes for 2 hours (0 */45 * * * *) with onComplete', (done: any) => {
|
|
240
242
|
const clock = sinon.useFakeTimers()
|
|
241
243
|
const callback = jest.fn()
|
|
242
244
|
const job = new CronJob(
|
|
@@ -254,7 +256,7 @@ describe('cron', () => {
|
|
|
254
256
|
})
|
|
255
257
|
})
|
|
256
258
|
|
|
257
|
-
it('should start and stop job from outside', (done) => {
|
|
259
|
+
it('should start and stop job from outside', (done: any) => {
|
|
258
260
|
const clock = sinon.useFakeTimers()
|
|
259
261
|
const callback = jest.fn()
|
|
260
262
|
const job = new CronJob(
|
|
@@ -273,7 +275,7 @@ describe('cron', () => {
|
|
|
273
275
|
job.stop()
|
|
274
276
|
})
|
|
275
277
|
|
|
276
|
-
it('should start and stop job from inside (default context)', (done) => {
|
|
278
|
+
it('should start and stop job from inside (default context)', (done: any) => {
|
|
277
279
|
const clock = sinon.useFakeTimers()
|
|
278
280
|
const callback = jest.fn()
|
|
279
281
|
new CronJob(
|
package/core/server/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.60",
|
|
5
5
|
"description": "Local development and production-ready.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@stacksjs/path": "workspace:*",
|
|
61
61
|
"@stacksjs/router": "workspace:*",
|
|
62
62
|
"@stacksjs/validation": "workspace:*",
|
|
63
|
-
"vite": "^5.
|
|
63
|
+
"vite": "^5.1.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@stacksjs/development": "workspace:*"
|
package/core/slug/package.json
CHANGED
package/core/sms/package.json
CHANGED
package/core/tables/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/tables",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.60",
|
|
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",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"meilisearch": "^0.37.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"vite": "^5.
|
|
44
|
+
"vite": "^5.1.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@stacksjs/development": "workspace:*"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/testing",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.60",
|
|
5
5
|
"description": "The Stacks way of testing.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -52,10 +52,12 @@
|
|
|
52
52
|
"prepublishOnly": "bun --bun run build"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@playwright/test": "^1.41.2"
|
|
55
|
+
"@playwright/test": "^1.41.2",
|
|
56
|
+
"vitest": "^1.2.2"
|
|
56
57
|
},
|
|
57
58
|
"dependencies": {
|
|
58
|
-
"@playwright/test": "^1.41.2"
|
|
59
|
+
"@playwright/test": "^1.41.2",
|
|
60
|
+
"vitest": "^1.2.2"
|
|
59
61
|
},
|
|
60
62
|
"devDependencies": {
|
|
61
63
|
"@stacksjs/development": "workspace:*"
|
package/core/tinker/package.json
CHANGED