stacks 0.45.0 → 0.45.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 (49) hide show
  1. package/buddy/package.json +1 -1
  2. package/core/actions/package.json +1 -1
  3. package/core/actions/src/bump.ts +1 -4
  4. package/core/actions/src/helpers/utils.ts +1 -1
  5. package/core/actions/src/lint-fix.ts +1 -1
  6. package/core/ai/package.json +1 -1
  7. package/core/alias/package.json +1 -1
  8. package/core/arrays/package.json +1 -1
  9. package/core/auth/package.json +1 -1
  10. package/core/build/package.json +1 -1
  11. package/core/cache/package.json +1 -1
  12. package/core/cli/package.json +1 -1
  13. package/core/cli/src/actions/run.ts +2 -2
  14. package/core/cli/src/helpers.ts +5 -2
  15. package/core/cloud/package.json +1 -1
  16. package/core/collections/package.json +1 -1
  17. package/core/config/package.json +1 -1
  18. package/core/dashboard/package.json +1 -1
  19. package/core/database/package.json +1 -1
  20. package/core/datetime/package.json +1 -1
  21. package/core/desktop/package.json +1 -1
  22. package/core/docs/package.json +1 -1
  23. package/core/domains/package.json +1 -1
  24. package/core/drivers/package.json +1 -1
  25. package/core/email/package.json +1 -1
  26. package/core/error-handling/package.json +1 -1
  27. package/core/git/package.json +1 -1
  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 +1 -1
  35. package/core/payments/package.json +1 -1
  36. package/core/realtime/package.json +1 -1
  37. package/core/router/package.json +1 -1
  38. package/core/search-engine/package.json +1 -1
  39. package/core/security/package.json +1 -1
  40. package/core/server/package.json +1 -1
  41. package/core/storage/package.json +1 -1
  42. package/core/strings/package.json +1 -1
  43. package/core/testing/package.json +1 -1
  44. package/core/types/package.json +1 -1
  45. package/core/types/src/cli.ts +9 -0
  46. package/core/ui/package.json +1 -1
  47. package/core/utils/package.json +1 -1
  48. package/core/x-ray/package.json +1 -1
  49. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks actions.",
7
7
  "author": "Chris Breuer",
@@ -1,10 +1,7 @@
1
1
  import { runCommand } from '@stacksjs/cli'
2
2
  import { frameworkPath } from '@stacksjs/path'
3
3
 
4
- const result = await runCommand(
4
+ await runCommand(
5
5
  'npx bumpp ./package.json ./buddy/package.json ./core/**/package.json ./vscode/package.json --execute \'pnpm run changelog\' --all',
6
6
  { debug: true, cwd: frameworkPath(), shell: true },
7
7
  )
8
-
9
- if (result.isErr())
10
- console.error(result.error)
@@ -14,7 +14,7 @@ import { err } from '@stacksjs/error-handling'
14
14
  */
15
15
  export async function runAction(action: string, options?: CliOptions): Promise<Result<CommandResult<string>, Error> | Err<CommandResult<string>, string>> {
16
16
  if (!hasAction(action))
17
- return err(`The specified action "${action}" does not exist`)
17
+ return err(`The specified action "${action}" does not exist.`)
18
18
 
19
19
  const cmd = `npx esno ${actionsPath(`${action}.ts`)}`
20
20
 
@@ -4,5 +4,5 @@ import { projectPath } from '@stacksjs/path'
4
4
  import { Action } from '@stacksjs/types'
5
5
 
6
6
  log.info('Linting your project.')
7
- await runAction(Action.FixLintIssues, { debug: true, cwd: projectPath(), shouldShowSpinner: true })
7
+ await runAction(Action.FixLintIssues, { cwd: projectPath(), shouldShowSpinner: true, spinnerText: 'Linting...' })
8
8
  log.success('Linted your project.')
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ai",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks way to test.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cli",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The simple way to create beautiful CLIs.",
7
7
  "author": "Chris Breuer",
@@ -5,7 +5,7 @@ import { ResultAsync, err } from '@stacksjs/error-handling'
5
5
  import { projectPath } from '@stacksjs/path'
6
6
  import { italic } from '@stacksjs/cli'
7
7
  import { spawn } from '../command'
8
- import { startAnimation } from '../helpers'
8
+ import { startSpinner } from '../helpers'
9
9
 
10
10
  /**
11
11
  * Execute a command.
@@ -79,7 +79,7 @@ export async function runCommands(commands: string[], options?: CliOptions): Pro
79
79
 
80
80
  function determineSpinner(options?: CliOptions): Spinner | undefined {
81
81
  if (!determineDebugMode(options))
82
- return startAnimation()
82
+ return startSpinner(options?.spinnerText)
83
83
 
84
84
  return undefined
85
85
  }
@@ -44,9 +44,12 @@ export function outro(text: string, options: OutroOptions, error?: Error | strin
44
44
  }
45
45
  }
46
46
 
47
- export function startAnimation() {
47
+ export function startSpinner(text?: string) {
48
+ if (!text)
49
+ text = 'Executing...'
50
+
48
51
  const spin = spinner({
49
- text: 'Executing...',
52
+ text,
50
53
  }).start()
51
54
 
52
55
  setTimeout(() => {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cloud",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks Desktop engine.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/docs",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks way to document.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/domains",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks Email integration. Painlessly create & manage your inboxes, templates, and send emails.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/error-handling",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "Type safe error handling.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/git",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks git utilities & conventions.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/health",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks path.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/payments",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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/realtime",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks search engine integrations.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/security",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "Local development and production-ready.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks string utilities.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/testing",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks way to test.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks framework types.",
7
7
  "author": "Chris Breuer",
@@ -60,6 +60,15 @@ export interface CliOptions {
60
60
  */
61
61
  shouldShowSpinner?: boolean | SpinnerOptions
62
62
 
63
+ /**
64
+ * **Spinner Text**
65
+ *
66
+ * The text to show when the spinner is shown.
67
+ *
68
+ * @default 'Executing...'
69
+ */
70
+ spinnerText?: string
71
+
63
72
  /**
64
73
  * **Should the command be run inside a shell?**
65
74
  *
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks helper functions.",
7
7
  "author": "Chris Breuer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/x-ray",
3
3
  "type": "module",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0",
4
+ "version": "0.45.1",
5
5
  "packageManager": "pnpm@7.18.2",
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.45.0"
68
+ "@stacksjs/buddy": "0.45.1"
69
69
  },
70
70
  "scripts": {
71
71
  "buddy": "esno ./buddy/src/cli.ts",