stacks 0.58.59 → 0.58.61

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 (136) hide show
  1. package/core/actions/dist/src/clean.js +2 -2
  2. package/core/actions/dist/src/lint/fix.js +4 -1
  3. package/core/actions/dist/src/upgrade.js +10 -7
  4. package/core/actions/package.json +1 -1
  5. package/core/actions/src/action.ts +18 -8
  6. package/core/actions/src/clean.ts +2 -2
  7. package/core/actions/src/dev/api.ts +1 -2
  8. package/core/actions/src/domains/add.ts +12 -27
  9. package/core/actions/src/lint/fix.ts +6 -1
  10. package/core/actions/src/migrate/dns.ts +1 -1
  11. package/core/actions/src/upgrade.ts +5 -2
  12. package/core/ai/package.json +2 -2
  13. package/core/alias/package.json +4 -4
  14. package/core/analytics/package.json +1 -1
  15. package/core/api/package.json +4 -4
  16. package/core/arrays/package.json +4 -4
  17. package/core/auth/package.json +1 -1
  18. package/core/buddy/dist/{chunk-7b24d1e3e585766e.js → chunk-6658b07ce4c24cac.js} +62 -1
  19. package/core/buddy/dist/cli.js +1 -1
  20. package/core/buddy/dist/index.js +1 -1
  21. package/core/buddy/package.json +1 -1
  22. package/core/buddy/src/commands/build.ts +25 -25
  23. package/core/buddy/src/commands/deploy.ts +1 -1
  24. package/core/buddy/src/commands/dev.ts +33 -34
  25. package/core/buddy/src/commands/upgrade.ts +23 -24
  26. package/core/build/package.json +1 -1
  27. package/core/bun-create/bud/package.json +1 -1
  28. package/core/bun-create/buddy/package.json +1 -1
  29. package/core/bun-create/stack/package.json +1 -1
  30. package/core/bun-create/stacks/package.json +1 -1
  31. package/core/bun-create/stx/package.json +1 -1
  32. package/core/bun-create/tmp.json +0 -0
  33. package/core/bun-plugin-yaml/package.json +4 -4
  34. package/core/cache/package.json +4 -4
  35. package/core/chat/package.json +10 -10
  36. package/core/cli/dist/index.js +27 -20
  37. package/core/cli/package.json +1 -1
  38. package/core/cli/src/console.ts +18 -18
  39. package/core/cli/src/exec.ts +9 -6
  40. package/core/cli/src/parse.ts +3 -3
  41. package/core/cloud/dist/index.js +2 -2
  42. package/core/cloud/package.json +2 -2
  43. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
  44. package/core/cloud/src/cloud/dashboard.ts +86 -85
  45. package/core/cloud/src/cloud/docs.ts +2 -2
  46. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  47. package/core/cloud/zip.ts +1 -1
  48. package/core/collections/package.json +2 -2
  49. package/core/collections/tmp.json +0 -0
  50. package/core/config/dist/index.js +3 -3
  51. package/core/config/package.json +1 -1
  52. package/core/config/src/defaults.ts +4 -2
  53. package/core/database/package.json +1 -1
  54. package/core/database/src/kysely-bun-worker/worker.ts +0 -1
  55. package/core/datetime/package.json +1 -1
  56. package/core/desktop/package.json +1 -1
  57. package/core/development/package.json +1 -1
  58. package/core/dns/package.json +13 -13
  59. package/core/docs/package.json +1 -1
  60. package/core/email/package.json +2 -1
  61. package/core/email/src/server/converter.ts +19 -19
  62. package/core/email/src/server/inbound.ts +24 -8
  63. package/core/email/src/server/outbound.ts +17 -17
  64. package/core/enums/package.json +1 -1
  65. package/core/env/dist/index.js +1 -1
  66. package/core/env/package.json +4 -4
  67. package/core/env/tmp.json +0 -0
  68. package/core/error-handling/package.json +1 -1
  69. package/core/eslint-config/build.ts +1 -1
  70. package/core/eslint-config/package.json +3 -1
  71. package/core/eslint-config/test/cli.spec.ts +2 -1
  72. package/core/eslint-config/tsconfig.json +2 -2
  73. package/core/events/package.json +1 -1
  74. package/core/faker/package.json +1 -1
  75. package/core/git/package.json +1 -1
  76. package/core/health/package.json +1 -1
  77. package/core/http/package.json +1 -1
  78. package/core/lint/package.json +1 -1
  79. package/core/logging/build.ts +1 -1
  80. package/core/logging/dist/index.js +13 -11043
  81. package/core/logging/package.json +5 -5
  82. package/core/notifications/package.json +1 -1
  83. package/core/objects/package.json +1 -1
  84. package/core/orm/package.json +8 -8
  85. package/core/path/dist/index.js +5 -0
  86. package/core/path/package.json +3 -3
  87. package/core/path/src/index.ts +5 -0
  88. package/core/path/tmp.json +0 -0
  89. package/core/payments/package.json +1 -1
  90. package/core/push/package.json +1 -1
  91. package/core/query-builder/package.json +1 -1
  92. package/core/queue/package.json +2 -2
  93. package/core/queue/tmp.json +0 -0
  94. package/core/raycast/package.json +1 -1
  95. package/core/raycast/tmp.json +0 -0
  96. package/core/realtime/package.json +1 -1
  97. package/core/repl/package.json +4 -4
  98. package/core/router/dist/index.js +4 -0
  99. package/core/router/package.json +1 -1
  100. package/core/scheduler/package.json +3 -2
  101. package/core/scheduler/tests/cron.test.ts +11 -9
  102. package/core/search-engine/package.json +1 -1
  103. package/core/security/package.json +9 -9
  104. package/core/server/package.json +1 -1
  105. package/core/signals/package.json +1 -1
  106. package/core/slug/package.json +1 -1
  107. package/core/sms/package.json +11 -11
  108. package/core/storage/package.json +13 -13
  109. package/core/strings/package.json +1 -1
  110. package/core/tables/package.json +6 -6
  111. package/core/testing/package.json +6 -4
  112. package/core/tinker/package.json +4 -4
  113. package/core/tunnel/package.json +1 -1
  114. package/core/types/package.json +1 -1
  115. package/core/types/src/app.ts +1 -1
  116. package/core/types/src/docs.ts +3 -3
  117. package/core/types/src/team.ts +1 -1
  118. package/core/ui/package.json +2 -2
  119. package/core/utils/dist/index.js +15 -13
  120. package/core/utils/package.json +21 -21
  121. package/core/utils/src/clean.ts +3 -3
  122. package/core/utils/src/hash.ts +9 -9
  123. package/core/validation/package.json +7 -7
  124. package/core/vite/dist/index.js +1 -1
  125. package/core/vite/package.json +1 -1
  126. package/core/vite/src/example-wc.ts +1 -4
  127. package/core/vite/src/plugin/auto-imports.ts +1 -2
  128. package/core/vite/src/plugin/components.ts +1 -2
  129. package/core/vite/src/plugin/docs.ts +1 -1
  130. package/core/whois/package.json +4 -4
  131. package/core/x-ray/package.json +4 -4
  132. package/core/zsh-buddy/package.json +3 -3
  133. package/ide/vscode/package.json +3 -4
  134. package/package.json +1 -1
  135. package/core/cloud/cdk.json +0 -62
  136. package/core/cloud/deploy.ts +0 -85
@@ -18,7 +18,7 @@ const ses = new AWS.SES({
18
18
 
19
19
  // This lambda will read outgoing emails formatted in JSON, convert them
20
20
  // in to a raw email, send them using SES, and store them in S3.
21
- exports.handler = (event) => {
21
+ exports.handler = (event: any) => {
22
22
  // This JS object will contain all the data within the chain
23
23
  const container = {
24
24
  bucket: event.Records[0].s3.bucket.name,
@@ -56,7 +56,7 @@ exports.handler = (event) => {
56
56
  }
57
57
 
58
58
  // Load the JSON email that triggered this Lambda.
59
- function load_the_email(container) {
59
+ function load_the_email(container: any) {
60
60
  return new Promise((resolve, reject) => {
61
61
  console.info('load_the_email')
62
62
 
@@ -67,7 +67,7 @@ function load_the_email(container) {
67
67
  }
68
68
 
69
69
  // -> Execute the query.
70
- s3.getObject(params, (error, data) => {
70
+ s3.getObject(params, (error: any, data: any) => {
71
71
  // 1. Check for internal errors.
72
72
  if (error)
73
73
  return reject(error)
@@ -82,7 +82,7 @@ function load_the_email(container) {
82
82
  }
83
83
 
84
84
  // Extract all the data necessary to organize the incoming emails.
85
- function extract_data(container) {
85
+ function extract_data(container: any) {
86
86
  return new Promise((resolve, reject) => {
87
87
  console.info('extract_data')
88
88
 
@@ -116,7 +116,7 @@ function extract_data(container) {
116
116
 
117
117
  // 6. Create a human readable time stamp that matches the format
118
118
  // S3 Provides in its Event.
119
- date = moment().format('ddd, DD MMM YYYY HH:MM:SS ZZ')
119
+ const date = moment().format('ddd, DD MMM YYYY HH:MM:SS ZZ')
120
120
 
121
121
  // 7. Create the path where the email needs to be moved
122
122
  // so it is properly organized.
@@ -145,7 +145,7 @@ function extract_data(container) {
145
145
 
146
146
  // From the JSON file that we loaded in to memory we generate a RAW version that
147
147
  // can be used by SES, and later on stored and converted in multiple formats
148
- function generate_the_raw_email(container, callback) {
148
+ function generate_the_raw_email(container: any) {
149
149
  return new Promise((resolve, reject) => {
150
150
  console.info('generate_the_raw_email')
151
151
 
@@ -154,7 +154,7 @@ function generate_the_raw_email(container, callback) {
154
154
  const mail = new MailComposer(container.email.json)
155
155
 
156
156
  // 2. Take the email and compile it down to its text form for storage.
157
- mail.compile().build((error, raw_message) => {
157
+ mail.compile().build((error: any, raw_message: any) => {
158
158
  // 1. Check if there was an error
159
159
  if (error)
160
160
  return reject(error)
@@ -169,7 +169,7 @@ function generate_the_raw_email(container, callback) {
169
169
  }
170
170
 
171
171
  // Use the newly generated RAW email and send it using SES.
172
- function send_email(container) {
172
+ function send_email(container: any) {
173
173
  return new Promise((resolve, reject) => {
174
174
  console.info('send_email')
175
175
 
@@ -181,7 +181,7 @@ function send_email(container) {
181
181
  }
182
182
 
183
183
  // -> Send the email out
184
- ses.sendRawEmail(params, (error, data) => {
184
+ ses.sendRawEmail(params, (error: any, data: any) => {
185
185
  // 1. Check if there was an error
186
186
  if (error)
187
187
  return reject(error)
@@ -202,7 +202,7 @@ function send_email(container) {
202
202
  // and then we copy the object to the final destination, which triggers
203
203
  // the Convert action, and once the convert action makes a PUT nothing else
204
204
  // happens.
205
- function save_raw_email(container) {
205
+ function save_raw_email(container: any) {
206
206
  return new Promise((resolve, reject) => {
207
207
  console.info('save_raw_email')
208
208
 
@@ -214,7 +214,7 @@ function save_raw_email(container) {
214
214
  }
215
215
 
216
216
  // -> Execute the query.
217
- s3.putObject(params, (error, data) => {
217
+ s3.putObject(params, (error: any, data: any) => {
218
218
  // 1. Check for internal errors.
219
219
  if (error)
220
220
  return reject(error)
@@ -226,7 +226,7 @@ function save_raw_email(container) {
226
226
  }
227
227
 
228
228
  // Now that we have our RAW email saved we do a copy event so it will trigger the Conversion Lambda
229
- function copy_raw_email(container) {
229
+ function copy_raw_email(container: any) {
230
230
  return new Promise((resolve, reject) => {
231
231
  console.info('copy_raw_email')
232
232
 
@@ -238,7 +238,7 @@ function copy_raw_email(container) {
238
238
  }
239
239
 
240
240
  // -> Execute the query.
241
- s3.copyObject(params, (error, data) => {
241
+ s3.copyObject(params, (error: any, data: any) => {
242
242
  // 1. Check for internal errors.
243
243
  if (error)
244
244
  return reject(error)
@@ -250,7 +250,7 @@ function copy_raw_email(container) {
250
250
  }
251
251
 
252
252
  // And before we finish we clean up the environment by deleting the JSON email,
253
- function delete_json_email(container) {
253
+ function delete_json_email(container: any) {
254
254
  return new Promise((resolve, reject) => {
255
255
  console.info('delete_json_email')
256
256
 
@@ -261,7 +261,7 @@ function delete_json_email(container) {
261
261
  }
262
262
 
263
263
  // -> Execute the query.
264
- s3.deleteObject(params, (error, data) => {
264
+ s3.deleteObject(params, (error: any, data: any) => {
265
265
  // 1. Check for internal errors.
266
266
  if (error)
267
267
  return reject(error)
@@ -273,7 +273,7 @@ function delete_json_email(container) {
273
273
  }
274
274
 
275
275
  // And the temporary RAW email.
276
- function delete_raw_email(container) {
276
+ function delete_raw_email(container: any) {
277
277
  return new Promise((resolve, reject) => {
278
278
  console.info('delete_raw_email')
279
279
 
@@ -284,7 +284,7 @@ function delete_raw_email(container) {
284
284
  }
285
285
 
286
286
  // -> Execute the query.
287
- s3.deleteObject(params, (error, data) => {
287
+ s3.deleteObject(params, (error: any, data: any) => {
288
288
  // 1. Check for internal errors.
289
289
  if (error)
290
290
  return reject(error)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/enums",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
5
5
  "description": "Stacks enums.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -135,7 +135,7 @@ import {validator} from "@stacksjs/validation";
135
135
  import {validate} from "@stacksjs/validation";
136
136
  var env_default = {
137
137
  APP_NAME: validate.string(),
138
- APP_ENV: validate.enum(["development", "staging", "production"]),
138
+ APP_ENV: validate.enum(["local", "dev", "stage", "prod"]),
139
139
  APP_KEY: validate.string(),
140
140
  APP_URL: validate.string(),
141
141
  APP_PORT: validate.number(),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/env",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
5
5
  "description": "Stacks env helper methods.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -44,12 +44,12 @@
44
44
  "prepublishOnly": "bun --bun run build"
45
45
  },
46
46
  "dependencies": {
47
- "@stacksjs/validation": "workspace:*",
47
+ "@stacksjs/validation": "latest",
48
48
  "fs-extra": "^11.2.0",
49
49
  "std-env": "^3.7.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@stacksjs/development": "workspace:*",
53
- "@stacksjs/path": "workspace:*"
52
+ "@stacksjs/development": "latest",
53
+ "@stacksjs/path": "latest"
54
54
  }
55
55
  }
File without changes
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/error-handling",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
5
5
  "description": "Type safe error handling.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- import { log, runCommand } from '@stacksjs/cli'
1
+ import { log, runCommand } from '../cli/src'
2
2
 
3
3
  const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --target node', {
4
4
  cwd: import.meta.dir,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/eslint-config",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
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",
@@ -102,6 +102,8 @@
102
102
  "yaml-eslint-parser": "^1.2.2"
103
103
  },
104
104
  "devDependencies": {
105
+ "@stacksjs/cli": "workspace:*",
106
+ "@stacksjs/development": "workspace:*",
105
107
  "@stacksjs/eslint-config": "workspace:*",
106
108
  "@stacksjs/utils": "workspace:*",
107
109
  "@stylistic/eslint-plugin-migrate": "^1.6.1",
@@ -48,7 +48,8 @@ it('package.json updated', async () => {
48
48
 
49
49
  it('esm eslint.config.js', async () => {
50
50
  const pkgContent = await fs.readFile('package.json', 'utf-8')
51
- await fs.writeFile(join(genPath, 'package.json'), JSON.stringify({ ...JSON.parse(pkgContent), type: 'module' }, null, 2))
51
+ const options = JSON.parse(pkgContent)
52
+ await fs.writeFile(join(genPath, 'package.json'), JSON.stringify({ ...options, type: 'module' }, null, 2))
52
53
 
53
54
  const { stdout } = await run()
54
55
 
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es2020",
3
+ "target": "es2022",
4
4
  "baseUrl": ".",
5
- "module": "es2020",
5
+ "module": "es2022",
6
6
  "moduleResolution": "Bundler",
7
7
  "strict": true,
8
8
  "esModuleInterop": true,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/events",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
5
5
  "description": "Functional event emitting.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/faker",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
5
5
  "description": "Faker functions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/git",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
5
5
  "description": "The Stacks git utilities & conventions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/health",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
5
5
  "description": "The Stacks Health services.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/http",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
5
5
  "description": "Stacks HTTP methods.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/lint",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.61",
5
5
  "description": "The Stacks way to lint.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  import { log, runCommand } from '../cli/src'
2
2
 
3
- const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external @stacksjs/types --external @stacksjs/cli --external @stacksjs/path --external consola --target bun', {
3
+ const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external @stacksjs/types --external @stacksjs/cli --external @stacksjs/path --external consola --external @stacksjs/error-handling --external @stacksjs/types --external @stacksjs/config --target bun', {
4
4
  cwd: import.meta.dir,
5
5
  })
6
6