stacks 0.49.3 → 0.50.0

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 (63) hide show
  1. package/buddy/package.json +1 -1
  2. package/core/actions/package.json +1 -1
  3. package/core/ai/package.json +1 -1
  4. package/core/alias/package.json +1 -1
  5. package/core/arrays/package.json +1 -1
  6. package/core/auth/package.json +1 -1
  7. package/core/build/package.json +1 -1
  8. package/core/cache/package.json +2 -2
  9. package/core/chat/package.json +1 -1
  10. package/core/cli/package.json +1 -1
  11. package/core/cloud/package.json +1 -1
  12. package/core/collections/package.json +1 -1
  13. package/core/config/package.json +1 -1
  14. package/core/dashboard/package.json +1 -1
  15. package/core/database/package.json +1 -1
  16. package/core/datetime/package.json +1 -1
  17. package/core/desktop/package.json +1 -1
  18. package/core/docs/node_modules/.bin/vitepress +2 -2
  19. package/core/docs/package.json +2 -2
  20. package/core/domains/package.json +1 -1
  21. package/core/drivers/package.json +1 -1
  22. package/core/email/package.json +1 -1
  23. package/core/email/src/drivers/sendgrid.ts +6 -6
  24. package/core/error-handling/package.json +1 -1
  25. package/core/events/package.json +1 -1
  26. package/core/git/node_modules/.bin/changelogen +2 -2
  27. package/core/git/package.json +3 -3
  28. package/core/health/package.json +1 -1
  29. package/core/lint/package.json +1 -1
  30. package/core/logging/package.json +1 -1
  31. package/core/modules/package.json +1 -1
  32. package/core/notifications/package.json +1 -1
  33. package/core/objects/package.json +1 -1
  34. package/core/path/package.json +2 -2
  35. package/core/payments/package.json +1 -1
  36. package/core/push/package.json +1 -1
  37. package/core/queue/package.json +1 -1
  38. package/core/realtime/package.json +1 -1
  39. package/core/router/package.json +1 -1
  40. package/core/search-engine/package.json +2 -2
  41. package/core/security/package.json +1 -1
  42. package/core/server/package.json +1 -1
  43. package/core/sms/package.json +1 -1
  44. package/core/storage/package.json +1 -1
  45. package/core/strings/package.json +1 -1
  46. package/core/tables/package.json +1 -1
  47. package/core/testing/node_modules/.bin/vitest +2 -2
  48. package/core/testing/package.json +1 -1
  49. package/core/types/node_modules/.bin/vitepress +2 -2
  50. package/core/types/package.json +2 -2
  51. package/core/ui/package.json +1 -1
  52. package/core/utils/package.json +4 -4
  53. package/core/utils/src/helpers.ts +4 -2
  54. package/core/validation/README.md +53 -0
  55. package/core/validation/node_modules/.bin/mkdist +17 -0
  56. package/core/validation/node_modules/.bin/tsc +17 -0
  57. package/core/validation/node_modules/.bin/tsserver +17 -0
  58. package/core/validation/package.json +55 -0
  59. package/core/validation/src/index.ts +5 -0
  60. package/core/validation/tests/example.test.ts +7 -0
  61. package/core/x-ray/package.json +1 -1
  62. package/package.json +2 -2
  63. package/core/tables/dist/index.html +0 -15
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "Meet Buddy. The Stacks runtime.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/actions",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks actions.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ai",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "Stacks Artificial Intelligence.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/alias",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks aliases.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/arrays",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks array utilities.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/auth",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "A more simplistic way to authenticate.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/build",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks framework build tools and configurations.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cache",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks way of caching.",
7
7
  "author": "Chris Breuer",
@@ -47,7 +47,7 @@
47
47
  "typecheck": "tsc --noEmit"
48
48
  },
49
49
  "peerDependencies": {
50
- "@aws-sdk/client-dynamodb": "^3.252.0",
50
+ "@aws-sdk/client-dynamodb": "^3.254.0",
51
51
  "@stacksjs/config": "workspace:*",
52
52
  "@types/memjs": "^1.2.5",
53
53
  "memcached": "^2.2.2",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/chat",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks Chat Integration. Easy sending of messages for chat services",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cli",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The simple way to create beautiful CLIs.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cloud",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks cloud/serverless integration & implementation.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/collections",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks collections.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/config",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks configuration.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/dashboard",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks Dashboard.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/database",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks database integration.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/datetime",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks datetime helpers.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/desktop",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks Desktop engine.",
7
7
  "author": "Chris Breuer",
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.38_2r467mdhb7mblpaox4bg7fatdi/node_modules/vitepress/bin/vitepress.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.40_2r467mdhb7mblpaox4bg7fatdi/node_modules/vitepress/bin/vitepress.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.38_2r467mdhb7mblpaox4bg7fatdi/node_modules/vitepress/bin/vitepress.js" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.40_2r467mdhb7mblpaox4bg7fatdi/node_modules/vitepress/bin/vitepress.js" "$@"
17
17
  fi
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/docs",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks way to document.",
7
7
  "author": "Chris Breuer",
@@ -43,7 +43,7 @@
43
43
  "typecheck": "tsc --noEmit"
44
44
  },
45
45
  "peerDependencies": {
46
- "vitepress": "1.0.0-alpha.38"
46
+ "vitepress": "1.0.0-alpha.40"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@stacksjs/testing": "workspace:*",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/domains",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "Easily manage your domains.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/drivers",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "Easily create a driver-based system.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/email",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks Email integration. Painlessly create & manage your inboxes, templates, and send emails.",
7
7
  "author": "Chris Breuer",
@@ -3,16 +3,16 @@ import type { EmailOptions } from '@stacksjs/types'
3
3
  import { notification } from '@stacksjs/config'
4
4
  import { send as sendEmail } from '../actions/send'
5
5
 
6
- const env = notification.email.sendgrid
6
+ const config = notification.email.sendgrid
7
7
 
8
- const provider = new SendgridEmailProvider({
9
- apiKey: env.key,
10
- from: env.from,
11
- senderName: env.senderName,
8
+ const driver = new SendgridEmailProvider({
9
+ apiKey: config.key,
10
+ from: config.from,
11
+ senderName: config.senderName,
12
12
  })
13
13
 
14
14
  async function send(options: EmailOptions, css?: string) {
15
- return sendEmail(options, provider, 'Sendgrid', css)
15
+ return sendEmail(options, driver, 'Sendgrid', css)
16
16
  }
17
17
 
18
18
  export { send as Send, send }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/error-handling",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "Type safe error handling.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/events",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "Functional event emitting.",
7
7
  "author": "Chris Breuer",
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/changelogen@0.4.0/node_modules/changelogen/dist/cli.mjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/changelogen@0.4.1/node_modules/changelogen/dist/cli.mjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/changelogen@0.4.0/node_modules/changelogen/dist/cli.mjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/changelogen@0.4.1/node_modules/changelogen/dist/cli.mjs" "$@"
17
17
  fi
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/git",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks git utilities & conventions.",
7
7
  "author": "Chris Breuer",
@@ -45,8 +45,8 @@
45
45
  },
46
46
  "peerDependencies": {
47
47
  "bumpp": "^8.2.1",
48
- "changelogen": "^0.4.0",
49
- "commitizen": "^4.2.6",
48
+ "changelogen": "^0.4.1",
49
+ "commitizen": "^4.3.0",
50
50
  "cz-git": "^1.4.1",
51
51
  "giget": "^1.0.0",
52
52
  "simple-git-hooks": "^2.8.1"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/health",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks Health services.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/lint",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks way to lint.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/logging",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks logging system.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/modules",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks framework modules.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/notifications",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks notifications integration.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/objects",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks objects.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks path.",
7
7
  "author": "Chris Breuer",
@@ -45,7 +45,7 @@
45
45
  "typecheck": "tsc --noEmit"
46
46
  },
47
47
  "dependencies": {
48
- "pathe": "^1.0.0"
48
+ "pathe": "^1.1.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@stacksjs/testing": "workspace:*",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/payments",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.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.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks Push integration",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/queue",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.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.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.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.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks framework router.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/search-engine",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks search engine integrations.",
7
7
  "author": "Chris Breuer",
@@ -52,7 +52,7 @@
52
52
  "peerDependencies": {
53
53
  "@stacksjs/cli": "workspace:*",
54
54
  "@stacksjs/config": "workspace:*",
55
- "@vueuse/core": "^9.11.0",
55
+ "@vueuse/core": "^9.11.1",
56
56
  "meilisearch": "^0.30.0",
57
57
  "vue": "^3.2.45"
58
58
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/security",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.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.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "Local development and production-ready.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/sms",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks file system.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/strings",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks string utilities.",
7
7
  "author": "Chris Breuer",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacksjs/tables",
3
- "version": "0.49.3",
3
+ "version": "0.50.0",
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",
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.27.2_@vitest+ui@0.27.2/node_modules/vitest/vitest.mjs" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.27.3_@vitest+ui@0.27.3/node_modules/vitest/vitest.mjs" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.27.2_@vitest+ui@0.27.2/node_modules/vitest/vitest.mjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.27.3_@vitest+ui@0.27.3/node_modules/vitest/vitest.mjs" "$@"
17
17
  fi
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/testing",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks way of testing.",
7
7
  "author": "Chris Breuer",
@@ -11,7 +11,7 @@ else
11
11
  export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.38_j73j5xdbzpkigstapj6vkce2xy/node_modules/vitepress/bin/vitepress.js" "$@"
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.40_j73j5xdbzpkigstapj6vkce2xy/node_modules/vitepress/bin/vitepress.js" "$@"
15
15
  else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.38_j73j5xdbzpkigstapj6vkce2xy/node_modules/vitepress/bin/vitepress.js" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.40_j73j5xdbzpkigstapj6vkce2xy/node_modules/vitepress/bin/vitepress.js" "$@"
17
17
  fi
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks framework types.",
7
7
  "author": "Chris Breuer",
@@ -67,6 +67,6 @@
67
67
  "vite-plugin-inspect": "^0.7.14",
68
68
  "vite-plugin-vue-layouts": "^0.7.0",
69
69
  "vite-ssg": "^0.22.1",
70
- "vitepress": "1.0.0-alpha.38"
70
+ "vitepress": "1.0.0-alpha.40"
71
71
  }
72
72
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks atomic UI engine, powered by UnoCSS.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/utils",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks helper functions.",
7
7
  "author": "Chris Breuer",
@@ -54,10 +54,10 @@
54
54
  "@stacksjs/path": "workspace:*",
55
55
  "@stacksjs/storage": "workspace:*",
56
56
  "@stacksjs/types": "workspace:*",
57
- "@vueuse/core": "^9.11.0",
57
+ "@vueuse/core": "^9.11.1",
58
58
  "@vueuse/head": "^1.0.22",
59
- "@vueuse/math": "^9.11.0",
60
- "@vueuse/shared": "^9.11.0",
59
+ "@vueuse/math": "^9.11.1",
60
+ "@vueuse/shared": "^9.11.1",
61
61
  "defu": "^6.1.1",
62
62
  "detect-indent": "^7.0.1",
63
63
  "detect-newline": "^4.0.0",
@@ -62,8 +62,10 @@ export function determineResetPreset(preset?: string) {
62
62
 
63
63
  export function env(key?: string, fallback?: any) {
64
64
  // console.log('isClient', isClient)
65
- // if (key && import.meta?.env)
66
- // return import.meta.env[key]
65
+ if (key && import.meta?.env) {
66
+ console.log('key', key, 'fallback', import.meta?.env[key])
67
+ return import.meta.env[key]
68
+ }
67
69
 
68
70
  return fallback
69
71
  }
@@ -0,0 +1,53 @@
1
+ # Stacks Validation
2
+
3
+ This package contains the Stacks Validation system.
4
+
5
+ ## ☘️ Features
6
+
7
+ - **Validation** - Validate data against a schema
8
+
9
+ ## 🤖 Usage
10
+
11
+ ```bash
12
+ pnpm i -D @stacksjs/validation
13
+ ```
14
+
15
+ Now, you can use it in your project:
16
+
17
+ ```js
18
+ import { validate } from '@stacksjs/validation'
19
+
20
+ // wip
21
+ ```
22
+
23
+ To view the full documentation, please visit [https://stacksjs.dev/validation](https://stacksjs.dev/validation).
24
+
25
+ ## 🧪 Testing
26
+
27
+ ```bash
28
+ pnpm test
29
+ ```
30
+
31
+ ## 📈 Changelog
32
+
33
+ Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
34
+
35
+ ## 💪🏼 Contributing
36
+
37
+ Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
38
+
39
+ ## 🏝 Community
40
+
41
+ For help, discussion about best practices, or any other conversation that would benefit from being searchable:
42
+
43
+ [Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
44
+
45
+ For casual chit-chat with others using this package:
46
+
47
+ [Join the Stacks Discord Server](https://discord.ow3.org)
48
+
49
+ ## 📄 License
50
+
51
+ The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
52
+
53
+ Made with ❤️
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.1.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsc" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsc" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsserver" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsserver" "$@"
17
+ fi
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@stacksjs/validation",
3
+ "type": "module",
4
+ "version": "0.50.0",
5
+ "packageManager": "pnpm@7.25.1",
6
+ "description": "The Stacks Validation methods.",
7
+ "author": "Chris Breuer",
8
+ "license": "MIT",
9
+ "funding": "https://github.com/sponsors/chrisbbreuer",
10
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/validation#readme",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/stacksjs/stacks.git",
14
+ "directory": "./.stacks/core/validation"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/stacksjs/stacks/issues"
18
+ },
19
+ "keywords": [
20
+ "validation",
21
+ "yup",
22
+ "utilities",
23
+ "functions",
24
+ "stacks"
25
+ ],
26
+ "main": "dist/index.mjs",
27
+ "module": "dist/index.mjs",
28
+ "types": "dist/index.d.ts",
29
+ "contributors": [
30
+ "Chris Breuer <chris@ow3.org>"
31
+ ],
32
+ "files": [
33
+ "dist",
34
+ "README.md"
35
+ ],
36
+ "engines": {
37
+ "node": ">=v18.13.0",
38
+ "pnpm": ">=7.25.1"
39
+ },
40
+ "scripts": {
41
+ "build": "mkdist -d",
42
+ "dev": "mkdist -d",
43
+ "prepublishOnly": "pnpm run build",
44
+ "typecheck": "tsc --noEmit"
45
+ },
46
+ "peerDependencies": {
47
+ "zod": "^3.20.2"
48
+ },
49
+ "devDependencies": {
50
+ "@stacksjs/path": "workspace:*",
51
+ "@stacksjs/testing": "workspace:*",
52
+ "mkdist": "^1.1.0",
53
+ "typescript": "^4.9.4"
54
+ }
55
+ }
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod'
2
+
3
+ const validate = z
4
+
5
+ export { validate, z }
@@ -0,0 +1,7 @@
1
+ import { assert, describe, test } from 'vitest'
2
+
3
+ describe('example test', () => {
4
+ test('assert', () => {
5
+ assert.equal(1, 1)
6
+ })
7
+ })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/x-ray",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "All you need to debug, log & analyze.",
7
7
  "author": "Chris Breuer",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stacks",
3
3
  "type": "module",
4
- "version": "0.49.3",
4
+ "version": "0.50.0",
5
5
  "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks framework.",
7
7
  "author": "Chris Breuer",
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "web-types": "./web-types.json",
67
67
  "dependencies": {
68
- "@stacksjs/buddy": "0.49.3"
68
+ "@stacksjs/buddy": "0.50.0"
69
69
  },
70
70
  "scripts": {
71
71
  "buddy": "esno ./buddy/src/cli.ts",
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Vite + Vue</title>
8
- <script type="module" crossorigin src="/assets/index-ee90d6db.js"></script>
9
- <link rel="stylesheet" href="/assets/index-b1ae86b3.css">
10
- </head>
11
- <body>
12
- <div id="app"></div>
13
-
14
- </body>
15
- </html>