stacks 0.52.9 → 0.53.1

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 (122) hide show
  1. package/api/nitro.config.ts +2 -2
  2. package/api/routes/index.ts +1 -1
  3. package/auto-imports.d.ts +6 -0
  4. package/core/actions/package.json +1 -5
  5. package/core/actions/src/clean.ts +1 -1
  6. package/core/actions/src/dev/index.ts +0 -9
  7. package/core/actions/src/generate/index.ts +3 -3
  8. package/core/actions/src/generate/settings.ts +3 -3
  9. package/core/actions/src/helpers/lib-entries.ts +11 -12
  10. package/core/actions/src/helpers/utils.ts +1 -1
  11. package/core/actions/src/make.ts +1 -1
  12. package/core/actions/src/release.ts +4 -2
  13. package/core/actions/src/upgrade/framework.ts +29 -29
  14. package/core/actions/src/upgrade/index.ts +13 -15
  15. package/core/actions/src/upgrade/node.ts +4 -4
  16. package/core/actions/src/upgrade/package-manager.ts +4 -4
  17. package/core/actions/src/upgrade.ts +1 -1
  18. package/core/ai/package.json +1 -1
  19. package/core/alias/package.json +1 -1
  20. package/core/analytics/package.json +1 -1
  21. package/core/arrays/package.json +1 -1
  22. package/core/auth/package.json +1 -1
  23. package/core/buddy/package.json +1 -1
  24. package/core/buddy/src/cli.ts +3 -26
  25. package/core/buddy/src/commands/fresh.ts +1 -1
  26. package/core/buddy/src/commands/lint.ts +2 -2
  27. package/core/buddy/src/commands/onboarding.ts +9 -15
  28. package/core/buddy/src/commands/setting.ts +10 -12
  29. package/core/buddy/src/commands/version.ts +7 -19
  30. package/core/buddy/src/index.ts +0 -21
  31. package/core/build/package.json +3 -3
  32. package/core/build/src/functions.ts +3 -3
  33. package/core/build/src/stacks.ts +3 -6
  34. package/core/build/src/web-components.ts +1 -1
  35. package/core/cache/package.json +2 -2
  36. package/core/cache/src/drivers/redis.ts +2 -2
  37. package/core/chat/package.json +1 -1
  38. package/core/cli/package.json +1 -1
  39. package/core/cli/src/run.ts +2 -2
  40. package/core/cloud/package.json +1 -1
  41. package/core/collections/package.json +1 -1
  42. package/core/config/package.json +1 -1
  43. package/core/database/package.json +1 -1
  44. package/core/database/src/factory/index.ts +2 -2
  45. package/core/database/src/migrations/index.ts +2 -2
  46. package/core/datetime/package.json +1 -1
  47. package/core/desktop/package.json +1 -1
  48. package/core/development/package.json +1 -1
  49. package/core/docs/node_modules/.bin/vitepress +4 -4
  50. package/core/docs/package.json +2 -2
  51. package/core/domains/package.json +1 -1
  52. package/core/email/package.json +1 -1
  53. package/core/email/src/actions/send.ts +2 -0
  54. package/core/email/src/tailwind.config.ts +3 -3
  55. package/core/error-handling/package.json +2 -2
  56. package/core/events/package.json +1 -1
  57. package/core/faker/package.json +1 -1
  58. package/core/git/package.json +1 -1
  59. package/core/health/package.json +1 -1
  60. package/core/lint/node_modules/.bin/publint +4 -4
  61. package/core/lint/package.json +4 -4
  62. package/core/logging/package.json +2 -2
  63. package/core/modules/package.json +1 -1
  64. package/core/notifications/package.json +1 -1
  65. package/core/notifications/tests/chat/Slack.test.ts +35 -35
  66. package/core/notifications/tests/email/Mailgun.test.ts +41 -41
  67. package/core/notifications/tests/email/Sendgrid.test.ts +41 -41
  68. package/core/notifications/tests/sms/Twilio.test.ts +38 -38
  69. package/core/objects/package.json +1 -1
  70. package/core/objects/src/index.ts +2 -1
  71. package/core/orm/package.json +1 -1
  72. package/core/pages/package.json +1 -1
  73. package/core/pages/src/index.ts +39 -39
  74. package/core/path/package.json +1 -1
  75. package/core/path/src/index.ts +14 -4
  76. package/core/payments/package.json +1 -1
  77. package/core/push/package.json +1 -1
  78. package/core/query-builder/package.json +2 -2
  79. package/core/queue/package.json +1 -1
  80. package/core/realtime/package.json +1 -1
  81. package/core/router/package.json +1 -1
  82. package/core/scheduler/package.json +1 -1
  83. package/core/search-engine/package.json +2 -2
  84. package/core/search-engine/src/helpers.ts +1 -1
  85. package/core/security/package.json +1 -1
  86. package/core/server/package.json +2 -1
  87. package/core/server/src/index.ts +2 -5
  88. package/core/server/src/nitro.config.ts +2 -2
  89. package/core/signals/package.json +1 -1
  90. package/core/slug/package.json +1 -1
  91. package/core/sms/package.json +1 -1
  92. package/core/sms/src/drivers/gupshup.ts +1 -1
  93. package/core/sms/src/drivers/nexmo.ts +3 -2
  94. package/core/sms/src/drivers/plivo.ts +3 -2
  95. package/core/sms/src/drivers/sms77.ts +3 -2
  96. package/core/sms/src/drivers/sns.ts +1 -1
  97. package/core/sms/src/drivers/telnyx.ts +3 -2
  98. package/core/sms/src/drivers/termii.ts +3 -2
  99. package/core/sms/src/drivers/twilio.ts +3 -2
  100. package/core/storage/package.json +1 -1
  101. package/core/storage/src/index.ts +3 -5
  102. package/core/strings/package.json +1 -1
  103. package/core/testing/node_modules/.bin/playwright +4 -4
  104. package/core/testing/package.json +2 -2
  105. package/core/tinker/package.json +1 -1
  106. package/core/types/node_modules/.bin/vite +4 -4
  107. package/core/types/node_modules/.bin/vitepress +4 -4
  108. package/core/types/package.json +8 -8
  109. package/core/types/src/cli.ts +9 -11
  110. package/core/types/src/fs.ts +5 -0
  111. package/core/types/src/model.ts +0 -1
  112. package/core/ui/package.json +3 -3
  113. package/core/utils/package.json +3 -3
  114. package/core/utils/src/guards.ts +3 -3
  115. package/core/utils/src/helpers.ts +26 -8
  116. package/core/utils/src/vendors.ts +1 -0
  117. package/core/validation/package.json +1 -1
  118. package/docs/node_modules/.bin/vitepress +4 -4
  119. package/docs/package.json +1 -1
  120. package/package.json +91 -91
  121. package/pages/web/main.ts +26 -26
  122. package/core/actions/src/generate/package-jsons.ts +0 -11
@@ -1,41 +1,41 @@
1
- import { describe, expect, it } from 'vitest'
2
- import { email, useEmail } from '@stacksjs/notifications'
3
- import { notification as env } from '@stacksjs/utils'
4
-
5
- describe('Mailgun Test', () => {
6
- it('should not send email', async () => {
7
- const notification = email.mailgun
8
- const test = await notification.send({
9
- from: 'repuestobrian2@gmail.com',
10
- to: 'repuestobrian@gmail',
11
- subject: 'Test Email',
12
- html: '<p> Test </p>',
13
- })
14
-
15
- expect(test).toBeDefined()
16
- })
17
-
18
- it('should send email using useEmail', async () => {
19
- const notification = useEmail('mailgun')
20
- const test = await notification.send({
21
- from: 'repuestobrian2@gmail.com',
22
- to: 'repuestobrian@gmail',
23
- subject: 'Test Email',
24
- html: '<p> Test </p>',
25
- })
26
-
27
- expect(test).toBeDefined()
28
- })
29
-
30
- it('should not send email when receiver is empty', async () => {
31
- const notification = email.mailgun
32
- const test = await notification.send({
33
- from: env.email.sendgrid.from,
34
- to: '',
35
- subject: 'Test Email',
36
- html: '<p> Test Email using SG!</p>',
37
- })
38
-
39
- expect(test.error).toThrowError(Error)
40
- })
41
- })
1
+ // import { describe, expect, it } from 'vitest'
2
+ // import { email, useEmail } from '@stacksjs/notifications'
3
+ // import { notification as env } from '@stacksjs/utils'
4
+ //
5
+ // describe('Mailgun Test', () => {
6
+ // it('should not send email', async () => {
7
+ // const notification = email.mailgun
8
+ // const test = await notification.send({
9
+ // from: 'repuestobrian2@gmail.com',
10
+ // to: 'repuestobrian@gmail',
11
+ // subject: 'Test Email',
12
+ // html: '<p> Test </p>',
13
+ // })
14
+ //
15
+ // expect(test).toBeDefined()
16
+ // })
17
+ //
18
+ // it('should send email using useEmail', async () => {
19
+ // const notification = useEmail('mailgun')
20
+ // const test = await notification.send({
21
+ // from: 'repuestobrian2@gmail.com',
22
+ // to: 'repuestobrian@gmail',
23
+ // subject: 'Test Email',
24
+ // html: '<p> Test </p>',
25
+ // })
26
+ //
27
+ // expect(test).toBeDefined()
28
+ // })
29
+ //
30
+ // it('should not send email when receiver is empty', async () => {
31
+ // const notification = email.mailgun
32
+ // const test = await notification.send({
33
+ // from: env.email.sendgrid.from,
34
+ // to: '',
35
+ // subject: 'Test Email',
36
+ // html: '<p> Test Email using SG!</p>',
37
+ // })
38
+ //
39
+ // expect(test.error).toThrowError(Error)
40
+ // })
41
+ // })
@@ -1,41 +1,41 @@
1
- import { describe, expect, it } from 'vitest'
2
- import { email, useEmail } from '@stacksjs/notifications'
3
- import { notification as env } from '@stacksjs/config'
4
-
5
- describe('Sendgrid Test', () => {
6
- it('should send email', async () => {
7
- const notification = email.sendgrid
8
- const test = await notification.send({
9
- from: env.email.sendgrid.from,
10
- to: 'repuestobrian2@gmail.com',
11
- subject: 'Test Email',
12
- html: '<p> Test Email using SG!</p>',
13
- })
14
-
15
- expect(test).toBeDefined()
16
- })
17
-
18
- it('should send email using useEmail', async () => {
19
- const notification = useEmail('sendgrid')
20
- const test = await notification.send({
21
- from: env.email.sendgrid.from,
22
- to: 'repuestobrian2@gmail.com',
23
- subject: 'Test Email',
24
- html: '<p> Test Email using SG!</p>',
25
- })
26
-
27
- expect(test).toBeDefined()
28
- })
29
-
30
- it('should not send email when receiver is empty', async () => {
31
- const notification = email.sendgrid
32
- const test = await notification.send({
33
- from: env.email.sendgrid.from,
34
- to: '',
35
- subject: 'Test Email',
36
- html: '<p> Test Email using SG!</p>',
37
- })
38
-
39
- expect(test.error).toThrowError(Error)
40
- })
41
- })
1
+ // import { describe, expect, it } from 'vitest'
2
+ // import { email, useEmail } from '@stacksjs/notifications'
3
+ // import { notification as env } from '@stacksjs/config'
4
+ //
5
+ // describe('Sendgrid Test', () => {
6
+ // it('should send email', async () => {
7
+ // const notification = email.sendgrid
8
+ // const test = await notification.send({
9
+ // from: env.email.sendgrid.from,
10
+ // to: 'repuestobrian2@gmail.com',
11
+ // subject: 'Test Email',
12
+ // html: '<p> Test Email using SG!</p>',
13
+ // })
14
+ //
15
+ // expect(test).toBeDefined()
16
+ // })
17
+ //
18
+ // it('should send email using useEmail', async () => {
19
+ // const notification = useEmail('sendgrid')
20
+ // const test = await notification.send({
21
+ // from: env.email.sendgrid.from,
22
+ // to: 'repuestobrian2@gmail.com',
23
+ // subject: 'Test Email',
24
+ // html: '<p> Test Email using SG!</p>',
25
+ // })
26
+ //
27
+ // expect(test).toBeDefined()
28
+ // })
29
+ //
30
+ // it('should not send email when receiver is empty', async () => {
31
+ // const notification = email.sendgrid
32
+ // const test = await notification.send({
33
+ // from: env.email.sendgrid.from,
34
+ // to: '',
35
+ // subject: 'Test Email',
36
+ // html: '<p> Test Email using SG!</p>',
37
+ // })
38
+ //
39
+ // expect(test.error).toThrowError(Error)
40
+ // })
41
+ // })
@@ -1,38 +1,38 @@
1
- import { describe, expect, it } from 'vitest'
2
- import { sms, useSMS } from '@stacksjs/notifications'
3
- import { notification } from '@stacksjs/config'
4
-
5
- describe('Twilio Test', () => {
6
- it('should send sms', async () => {
7
- const notif = sms.twilio
8
- const test = await notif.send({
9
- content: 'Test SMS from Stacks',
10
- to: notification.sms.twilio.to,
11
- from: notification.sms.twilio.from,
12
- })
13
-
14
- expect(test).toBeDefined()
15
- })
16
-
17
- it('should send sms using useSMS', async () => {
18
- const notif = useSMS('twilio')
19
- const test = await notif.send({
20
- content: 'Test SMS from Stacks',
21
- to: notification.sms.twilio.to,
22
- from: notification.sms.twilio.from,
23
- })
24
-
25
- expect(test).toBeDefined()
26
- })
27
-
28
- it('should not send sms if receiver is empty', async () => {
29
- const notif = sms.twilio
30
- const test = await notif.send({
31
- content: 'Test SMS from Stacks',
32
- to: '',
33
- from: notification.sms.twilio.from,
34
- })
35
-
36
- expect(test.error).toThrowError(Error)
37
- })
38
- })
1
+ // import { describe, expect, it } from 'vitest'
2
+ // import { sms, useSMS } from '@stacksjs/notifications'
3
+ // import { notification } from '@stacksjs/config'
4
+ //
5
+ // describe('Twilio Test', () => {
6
+ // it('should send sms', async () => {
7
+ // const notif = sms.twilio
8
+ // const test = await notif.send({
9
+ // content: 'Test SMS from Stacks',
10
+ // to: notification.sms.twilio.to,
11
+ // from: notification.sms.twilio.from,
12
+ // })
13
+ //
14
+ // expect(test).toBeDefined()
15
+ // })
16
+ //
17
+ // it('should send sms using useSMS', async () => {
18
+ // const notif = useSMS('twilio')
19
+ // const test = await notif.send({
20
+ // content: 'Test SMS from Stacks',
21
+ // to: notification.sms.twilio.to,
22
+ // from: notification.sms.twilio.from,
23
+ // })
24
+ //
25
+ // expect(test).toBeDefined()
26
+ // })
27
+ //
28
+ // it('should not send sms if receiver is empty', async () => {
29
+ // const notif = sms.twilio
30
+ // const test = await notif.send({
31
+ // content: 'Test SMS from Stacks',
32
+ // to: '',
33
+ // from: notification.sms.twilio.from,
34
+ // })
35
+ //
36
+ // expect(test.error).toThrowError(Error)
37
+ // })
38
+ // })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/objects",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks objects.",
7
7
  "author": "Chris Breuer",
@@ -1,4 +1,5 @@
1
- import { isObject, notNullish } from '@stacksjs/utils'
1
+ import { notNullish } from '@stacksjs/utils'
2
+ import { isObject } from '@stacksjs/validation'
2
3
  import type { DeepMerge } from '@stacksjs/types'
3
4
 
4
5
  export { Collection, collect } from '@stacksjs/collections'
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/orm",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks ORM integration",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/pages",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks Pages engine.",
7
7
  "author": "Chris Breuer",
@@ -1,39 +1,39 @@
1
- import { page as config } from '@stacksjs/config'
2
- import { filesystem } from '@stacksjs/storage'
3
-
4
- const { fs } = filesystem
5
-
6
- function generateSettings() {
7
- config.settings?.pages.forEach((page: string) => {
8
- fs.appendFile(
9
- `${config.settings?.path}/${page}.vue`,
10
- '',
11
- (err) => {
12
- if (err)
13
- throw err
14
- // eslint-disable-next-line no-console
15
- console.log(`${page}.vue was generated successfully!`)
16
- },
17
- )
18
- })
19
- }
20
-
21
- function generateOnboarding() {
22
- config.onboarding?.pages.forEach((page: string) => {
23
- fs.appendFile(
24
- `${config.onboarding?.path}/${page}.vue`,
25
- '',
26
- (err) => {
27
- if (err)
28
- throw err
29
- // eslint-disable-next-line no-console
30
- console.log(`${page}.vue was generated successfully!`)
31
- },
32
- )
33
- })
34
- }
35
-
36
- export {
37
- generateSettings,
38
- generateOnboarding,
39
- }
1
+ // import { page as config } from '@stacksjs/config'
2
+ // import { filesystem } from '@stacksjs/storage'
3
+ //
4
+ // const { fs } = filesystem
5
+ //
6
+ // function generateSettings() {
7
+ // config.settings?.pages.forEach((page: string) => {
8
+ // fs.appendFile(
9
+ // `${config.settings?.path}/${page}.vue`,
10
+ // '',
11
+ // (err) => {
12
+ // if (err)
13
+ // throw err
14
+ // // eslint-disable-next-line no-console
15
+ // console.log(`${page}.vue was generated successfully!`)
16
+ // },
17
+ // )
18
+ // })
19
+ // }
20
+ //
21
+ // function generateOnboarding() {
22
+ // config.onboarding?.pages.forEach((page: string) => {
23
+ // fs.appendFile(
24
+ // `${config.onboarding?.path}/${page}.vue`,
25
+ // '',
26
+ // (err) => {
27
+ // if (err)
28
+ // throw err
29
+ // // eslint-disable-next-line no-console
30
+ // console.log(`${page}.vue was generated successfully!`)
31
+ // },
32
+ // )
33
+ // })
34
+ // }
35
+ //
36
+ // export {
37
+ // generateSettings,
38
+ // generateOnboarding,
39
+ // }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks path.",
7
7
  "author": "Chris Breuer",
@@ -103,7 +103,7 @@ export function collectionsPath(path?: string) {
103
103
  }
104
104
 
105
105
  export function componentsPath(path?: string) {
106
- return projectPath(`components/${path || ''}`)
106
+ return resourcesPath(`components/${path || ''}`)
107
107
  }
108
108
 
109
109
  export function configPath(path?: string) {
@@ -179,7 +179,7 @@ export function storagePath(path?: string) {
179
179
  }
180
180
 
181
181
  export function functionsPath(path?: string) {
182
- return projectPath(`functions/${path || ''}`)
182
+ return resourcesPath(`functions/${path || ''}`)
183
183
  }
184
184
 
185
185
  export function gitPath(path?: string) {
@@ -187,7 +187,7 @@ export function gitPath(path?: string) {
187
187
  }
188
188
 
189
189
  export function langPath(path?: string) {
190
- return projectPath(`lang/${path || ''}`)
190
+ return resourcesPath(`lang/${path || ''}`)
191
191
  }
192
192
 
193
193
  export function libraryEntryPath(type: 'vue-components' | 'web-components' | 'functions') {
@@ -244,7 +244,7 @@ export function packageJsonPath(type: 'vue-components' | 'web-components' | 'fun
244
244
  }
245
245
 
246
246
  export function pagesPath(path?: string) {
247
- return appPath(`pages/${path || ''}`)
247
+ return resourcesPath(`pages/${path || ''}`)
248
248
  }
249
249
 
250
250
  export function pathPath(path?: string) {
@@ -305,6 +305,14 @@ export function signalsPath(path?: string) {
305
305
  return corePath(`signals/${path || ''}`)
306
306
  }
307
307
 
308
+ export function storesPath(path?: string) {
309
+ return resourcesPath(`stores/${path || ''}`)
310
+ }
311
+
312
+ export function resourcesPath(path?: string) {
313
+ return projectPath(`resources/${path || ''}`)
314
+ }
315
+
308
316
  export function routesPath(path?: string) {
309
317
  return projectPath(`routes/${path || ''}`)
310
318
  }
@@ -415,6 +423,7 @@ const path = {
415
423
  queryBuilderPath,
416
424
  queuePath,
417
425
  realtimePath,
426
+ resourcesPath,
418
427
  routerPath,
419
428
  routesPath,
420
429
  searchEnginePath,
@@ -428,6 +437,7 @@ const path = {
428
437
  serverlessPath,
429
438
  stacksPath,
430
439
  stringsPath,
440
+ storesPath,
431
441
  tablesPath,
432
442
  testingPath,
433
443
  testsPath,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/payments",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks payments package. Currently supporting Stripe.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/push",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks Push integration",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/query-builder",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks Query Builder integration",
7
7
  "author": "Chris Breuer",
@@ -44,7 +44,7 @@
44
44
  "peerDependencies": {
45
45
  "@stacksjs/types": "workspace:*",
46
46
  "kysely": "^0.24.2",
47
- "mysql2": "^3.3.1",
47
+ "mysql2": "^3.3.2",
48
48
  "pg": "^8.11.0"
49
49
  },
50
50
  "dependencies": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/queue",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks Queue system.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/realtime",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks realtime integration.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/router",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks framework router.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/scheduler",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks scheduler.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/search-engine",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks search engine integrations.",
7
7
  "author": "Chris Breuer",
@@ -51,7 +51,7 @@
51
51
  "typecheck": "tsc --noEmit"
52
52
  },
53
53
  "peerDependencies": {
54
- "meilisearch": "^0.32.3"
54
+ "meilisearch": "^0.32.4"
55
55
  },
56
56
  "dependencies": {
57
57
  "@stacksjs/cli": "workspace:*",
@@ -122,7 +122,7 @@ export function determineState(): SearchEngineStore {
122
122
  const ls = localStorage.getItem('search-engine')
123
123
 
124
124
  if (isString(ls))
125
- return JSON.parse(ls)
125
+ return JSON.parse(ls) as any
126
126
 
127
127
  return { // default state
128
128
  source: 'http://127.0.0.1:7700',
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/security",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks framework security.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/server",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "Local development and production-ready.",
7
7
  "author": "Chris Breuer",
@@ -50,6 +50,7 @@
50
50
  "peerDependencies": {
51
51
  "@stacksjs/config": "workspace:*",
52
52
  "@stacksjs/path": "workspace:*",
53
+ "@stacksjs/validation": "workspace:*",
53
54
  "nitropack": "^2.4.1",
54
55
  "vite": "^4.3.8"
55
56
  },
@@ -1,5 +1,2 @@
1
- import * as server from './config'
2
-
3
- export { server }
4
-
5
- export default { server }
1
+ export { config as server } from './config'
2
+ export { defineNitroConfig as defineServerConfig } from 'nitropack/config'
@@ -1,7 +1,7 @@
1
- import { defineNitroConfig } from 'nitropack'
1
+ import { defineServerConfig } from '@stacksjs/server'
2
2
  import { projectPath } from '@stacksjs/path'
3
3
 
4
- export default defineNitroConfig({
4
+ export default defineServerConfig({
5
5
  preset: 'aws-lambda',
6
6
  srcDir: projectPath(),
7
7
  })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/signals",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks signals integration, based on Maverick.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/slug",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks slug functionality.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/sms",
3
3
  "type": "module",
4
- "version": "0.52.9",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
7
7
  "author": "Chris Breuer",
@@ -4,7 +4,7 @@ import type { SmsOptions } from '@stacksjs/types'
4
4
  import { ResultAsync } from '@stacksjs/error-handling'
5
5
  import { notification } from '@stacksjs/config'
6
6
 
7
- const env = notification.sms?.gupshup
7
+ const env = notification.sms?.drivers.gupshup
8
8
 
9
9
  const provider = new GupshupSmsProvider({
10
10
  userId: env?.user || '',