stacks 0.58.59 → 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/clean.js +2 -2
- package/core/actions/dist/src/lint/fix.js +4 -1
- 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/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/lint/fix.ts +6 -1
- package/core/actions/src/migrate/dns.ts +1 -1
- package/core/actions/src/upgrade.ts +5 -2
- package/core/ai/package.json +1 -1
- 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-7b24d1e3e585766e.js → chunk-6658b07ce4c24cac.js} +62 -1
- package/core/buddy/dist/cli.js +1 -1
- package/core/buddy/dist/index.js +1 -1
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/commands/build.ts +25 -25
- package/core/buddy/src/commands/deploy.ts +1 -1
- package/core/buddy/src/commands/dev.ts +33 -34
- package/core/buddy/src/commands/upgrade.ts +23 -24
- 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 +1 -1
- package/core/chat/package.json +1 -1
- package/core/cli/dist/index.js +27 -20
- package/core/cli/package.json +1 -1
- package/core/cli/src/console.ts +18 -18
- package/core/cli/src/exec.ts +9 -6
- package/core/cli/src/parse.ts +3 -3
- package/core/cloud/dist/index.js +1 -1
- package/core/cloud/package.json +2 -2
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
- package/core/cloud/src/cloud/dashboard.ts +86 -85
- package/core/cloud/src/cloud/docs.ts +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 +3 -3
- package/core/config/package.json +1 -1
- package/core/config/src/defaults.ts +4 -2
- 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 +1 -1
- package/core/development/package.json +1 -1
- package/core/dns/package.json +1 -1
- package/core/docs/package.json +1 -1
- package/core/email/package.json +2 -1
- 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/package.json +1 -1
- package/core/env/dist/index.js +1 -1
- package/core/env/package.json +1 -1
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/build.ts +1 -1
- package/core/eslint-config/package.json +3 -1
- 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 +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/build.ts +1 -1
- package/core/logging/dist/index.js +13 -11043
- 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/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/package.json +1 -1
- 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 +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 +5 -3
- package/core/tinker/package.json +1 -1
- package/core/tunnel/package.json +1 -1
- package/core/types/package.json +1 -1
- package/core/types/src/app.ts +1 -1
- package/core/types/src/docs.ts +3 -3
- package/core/types/src/team.ts +1 -1
- package/core/ui/package.json +2 -2
- package/core/utils/dist/index.js +12 -10
- package/core/utils/package.json +1 -1
- package/core/utils/src/hash.ts +9 -9
- package/core/validation/package.json +1 -1
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +1 -1
- 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/package.json +3 -3
- package/ide/vscode/package.json +3 -4
- package/package.json +1 -1
package/core/orm/package.json
CHANGED
package/core/path/package.json
CHANGED
package/core/push/package.json
CHANGED
package/core/queue/package.json
CHANGED
package/core/repl/package.json
CHANGED
package/core/router/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/scheduler",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.60",
|
|
5
5
|
"description": "The Stacks scheduler.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"luxon": "^3.4.4"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
+
"@fast-check/jest": "^1.8.0",
|
|
57
58
|
"@stacksjs/development": "workspace:*",
|
|
58
59
|
"sinon": "^17.0.1"
|
|
59
60
|
}
|
|
@@ -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
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.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
package/core/tunnel/package.json
CHANGED
package/core/types/package.json
CHANGED
package/core/types/src/app.ts
CHANGED
package/core/types/src/docs.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { UserConfig } from 'vitepress'
|
|
2
2
|
|
|
3
|
-
interface
|
|
3
|
+
export interface DocsUserConfig extends UserConfig {
|
|
4
4
|
deploy: boolean
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
export type DocsConfig =
|
|
8
|
-
export type DocsOptions = DocsConfig
|
|
7
|
+
export type DocsConfig = DocsUserConfig
|
|
8
|
+
export type DocsOptions = Partial<DocsConfig>
|
|
9
9
|
|
|
10
10
|
export interface SocialLink {
|
|
11
11
|
icon: SocialLinkIcon
|
package/core/types/src/team.ts
CHANGED
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.60",
|
|
5
5
|
"description": "The Stacks UI engine.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -73,7 +73,7 @@
|
|
|
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.182",
|
|
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
|
@@ -147,12 +147,14 @@ function isTruthy(v) {
|
|
|
147
147
|
import {hashPaths} from "@stacksjs/storage";
|
|
148
148
|
import {path as p2} from "@stacksjs/path";
|
|
149
149
|
import {config as config2} from "@stacksjs/config";
|
|
150
|
-
|
|
151
|
-
try {
|
|
152
|
-
|
|
153
|
-
} catch (error) {
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
function originRequestFunctionHash() {
|
|
151
|
+
try {
|
|
152
|
+
return hashPaths(p2.cloudPath("src/edge"));
|
|
153
|
+
} catch (error) {
|
|
154
|
+
log.error("Are we in a Docker container? Failed to hash paths. Error below:");
|
|
155
|
+
log.error(error);
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
156
158
|
}
|
|
157
159
|
var docsSrc = [
|
|
158
160
|
p2.projectPath("docs"),
|
|
@@ -163,7 +165,7 @@ var websiteSrc = [
|
|
|
163
165
|
];
|
|
164
166
|
var websiteSourceHash = config2.app.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc);
|
|
165
167
|
// src/helpers.ts
|
|
166
|
-
import {log, runCommand} from "@stacksjs/cli";
|
|
168
|
+
import {log as log2, runCommand} from "@stacksjs/cli";
|
|
167
169
|
import {err, handleError, ok} from "@stacksjs/error-handling";
|
|
168
170
|
import {frameworkPath, projectPath} from "@stacksjs/path";
|
|
169
171
|
import * as storage2 from "@stacksjs/storage";
|
|
@@ -176,13 +178,13 @@ async function packageManager() {
|
|
|
176
178
|
}
|
|
177
179
|
async function initProject() {
|
|
178
180
|
if (app.env !== "production")
|
|
179
|
-
|
|
181
|
+
log2.info("Project not yet initialized, generating application key...");
|
|
180
182
|
else
|
|
181
183
|
handleError("Please run `buddy key:generate` to generate an application key");
|
|
182
184
|
const result = await runAction(Action.KeyGenerate, { cwd: projectPath() });
|
|
183
185
|
if (result.isErr())
|
|
184
186
|
return err(handleError(result.error));
|
|
185
|
-
|
|
187
|
+
log2.info("Application key generated.");
|
|
186
188
|
return ok(result.value);
|
|
187
189
|
}
|
|
188
190
|
async function ensureProjectIsInitialized() {
|
|
@@ -920,7 +922,7 @@ function prettyBytes(number, options) {
|
|
|
920
922
|
return prefix + numberString + separator + unit;
|
|
921
923
|
}
|
|
922
924
|
// package.json
|
|
923
|
-
var version = "0.58.
|
|
925
|
+
var version = "0.58.60";
|
|
924
926
|
export {
|
|
925
927
|
wordChar,
|
|
926
928
|
wordBoundary,
|
package/core/utils/package.json
CHANGED
package/core/utils/src/hash.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { hashPaths } from '@stacksjs/storage'
|
|
|
2
2
|
import { path as p } from '@stacksjs/path'
|
|
3
3
|
import { config } from '@stacksjs/config'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export function originRequestFunctionHash() {
|
|
6
|
+
try {
|
|
7
|
+
return hashPaths(p.cloudPath('src/edge'))
|
|
8
|
+
}
|
|
9
|
+
catch (error: any) {
|
|
10
|
+
log.error('Are we in a Docker container? Failed to hash paths. Error below:')
|
|
11
|
+
log.error(error)
|
|
12
|
+
return undefined
|
|
13
|
+
}
|
|
9
14
|
}
|
|
10
|
-
catch (error) {
|
|
11
|
-
console.error('Are we in a Docker container? Failed to hash paths:', error)
|
|
12
|
-
originRequestFunctionHash = null // or some default/fallback value
|
|
13
|
-
}
|
|
14
|
-
export { originRequestFunctionHash }
|
|
15
15
|
|
|
16
16
|
const docsSrc = [
|
|
17
17
|
p.projectPath('docs'),
|
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.60";
|
|
613
613
|
|
|
614
614
|
// src/plugin/docs.ts
|
|
615
615
|
var docsEngine = {
|
package/core/vite/package.json
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import type { ViteConfig } from '@stacksjs/types'
|
|
2
1
|
import { examplesPath } from '@stacksjs/path'
|
|
3
2
|
import { server } from '@stacksjs/server'
|
|
4
3
|
import { alias } from '@stacksjs/alias'
|
|
5
4
|
import { defineConfig } from 'vite'
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export const webComponentsExampleConfig: ViteConfig = {
|
|
6
|
+
export const webComponentsExampleConfig = {
|
|
10
7
|
root: examplesPath('web-components'),
|
|
11
8
|
|
|
12
9
|
resolve: {
|
|
@@ -2,10 +2,9 @@ import { path as p } from '@stacksjs/path'
|
|
|
2
2
|
import type { AutoImportsOptions } from '@stacksjs/types'
|
|
3
3
|
import { unheadVueComposablesImports as VueHeadImports } from '@unhead/vue'
|
|
4
4
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
5
|
-
import type { Plugin } from 'vite'
|
|
6
5
|
import { VueRouterAutoImports } from 'unplugin-vue-router'
|
|
7
6
|
|
|
8
|
-
export function autoImports(options?: AutoImportsOptions)
|
|
7
|
+
export function autoImports(options?: AutoImportsOptions) {
|
|
9
8
|
return AutoImport({
|
|
10
9
|
include: /\.(stx|js|ts|mdx?|elm|html)($|\?)/,
|
|
11
10
|
imports: [
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import Components from 'unplugin-vue-components/vite'
|
|
2
2
|
import { path as p } from '@stacksjs/path'
|
|
3
3
|
import type { ComponentOptions } from '@stacksjs/types'
|
|
4
|
-
import type { Plugin } from 'vite'
|
|
5
4
|
|
|
6
|
-
export function components(options?: ComponentOptions)
|
|
5
|
+
export function components(options?: ComponentOptions) {
|
|
7
6
|
return Components({
|
|
8
7
|
extensions: ['stx', 'vue', 'md'],
|
|
9
8
|
include: /\.(stx|vue|md)($|\?)/,
|
package/core/whois/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/whois",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.60",
|
|
5
5
|
"description": "Easily get whois info.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"node-fetch": "^3.3.2",
|
|
52
|
-
"socks": "^2.7.
|
|
52
|
+
"socks": "^2.7.3"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"node-fetch": "^3.3.2",
|
|
56
|
-
"socks": "^2.7.
|
|
56
|
+
"socks": "^2.7.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@stacksjs/development": "workspace:*"
|