stacks 0.58.57 → 0.58.58

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 (95) hide show
  1. package/core/actions/dist/src/index.js +9 -3
  2. package/core/actions/dist/src/release.js +9 -3
  3. package/core/actions/dist/src/upgrade.js +1 -1
  4. package/core/actions/package.json +1 -1
  5. package/core/actions/src/action.ts +11 -3
  6. package/core/ai/dist/index.js +4 -4
  7. package/core/ai/package.json +3 -3
  8. package/core/alias/package.json +1 -1
  9. package/core/analytics/package.json +1 -1
  10. package/core/api/package.json +1 -1
  11. package/core/arrays/package.json +1 -1
  12. package/core/auth/package.json +1 -1
  13. package/core/buddy/package.json +1 -1
  14. package/core/build/package.json +1 -1
  15. package/core/bun-create/bud/package.json +1 -1
  16. package/core/bun-create/buddy/package.json +1 -1
  17. package/core/bun-create/stack/package.json +1 -1
  18. package/core/bun-create/stacks/package.json +1 -1
  19. package/core/bun-create/stx/package.json +1 -1
  20. package/core/bun-plugin-yaml/package.json +1 -1
  21. package/core/cache/package.json +2 -2
  22. package/core/chat/package.json +8 -8
  23. package/core/cli/dist/index.js +1 -1
  24. package/core/cli/package.json +1 -1
  25. package/core/cloud/dist/index.js +69 -39
  26. package/core/cloud/package.json +28 -28
  27. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
  28. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
  29. package/core/cloud/src/cloud/queue.ts +91 -51
  30. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  31. package/core/collections/package.json +1 -1
  32. package/core/config/package.json +1 -1
  33. package/core/database/package.json +1 -1
  34. package/core/datetime/package.json +1 -1
  35. package/core/desktop/package.json +9 -9
  36. package/core/development/package.json +1 -1
  37. package/core/dns/package.json +4 -4
  38. package/core/docs/package.json +1 -1
  39. package/core/email/package.json +12 -12
  40. package/core/enums/package.json +1 -1
  41. package/core/env/package.json +1 -1
  42. package/core/error-handling/package.json +1 -1
  43. package/core/eslint-config/package.json +1 -1
  44. package/core/events/package.json +1 -1
  45. package/core/faker/package.json +1 -1
  46. package/core/git/package.json +1 -1
  47. package/core/health/package.json +1 -1
  48. package/core/http/package.json +1 -1
  49. package/core/lint/package.json +1 -1
  50. package/core/logging/package.json +1 -1
  51. package/core/notifications/package.json +22 -22
  52. package/core/objects/package.json +1 -1
  53. package/core/orm/package.json +1 -1
  54. package/core/path/package.json +1 -1
  55. package/core/payments/package.json +1 -1
  56. package/core/push/package.json +5 -5
  57. package/core/query-builder/package.json +1 -1
  58. package/core/queue/dist/index.js +3 -1
  59. package/core/queue/package.json +1 -1
  60. package/core/queue/src/index.ts +3 -1
  61. package/core/raycast/package.json +1 -1
  62. package/core/realtime/package.json +1 -1
  63. package/core/repl/package.json +1 -1
  64. package/core/router/package.json +1 -1
  65. package/core/scheduler/dist/index.js +4 -0
  66. package/core/scheduler/package.json +1 -1
  67. package/core/scheduler/src/index.ts +1 -0
  68. package/core/scheduler/src/schedule.ts +5 -0
  69. package/core/search-engine/package.json +1 -1
  70. package/core/security/package.json +1 -1
  71. package/core/server/package.json +1 -1
  72. package/core/signals/package.json +1 -1
  73. package/core/slug/package.json +1 -1
  74. package/core/sms/package.json +11 -11
  75. package/core/storage/package.json +1 -1
  76. package/core/strings/package.json +1 -1
  77. package/core/tables/package.json +1 -1
  78. package/core/testing/package.json +1 -1
  79. package/core/tinker/package.json +1 -1
  80. package/core/tunnel/package.json +1 -1
  81. package/core/types/package.json +3 -3
  82. package/core/types/src/cron-jobs.ts +6 -1
  83. package/core/ui/package.json +6 -6
  84. package/core/utils/dist/index.js +32 -1
  85. package/core/utils/package.json +1 -1
  86. package/core/utils/src/index.ts +1 -0
  87. package/core/utils/src/retry.ts +33 -0
  88. package/core/validation/package.json +1 -1
  89. package/core/vite/dist/index.js +1 -1
  90. package/core/vite/package.json +1 -1
  91. package/core/whois/package.json +1 -1
  92. package/core/x-ray/package.json +1 -1
  93. package/core/zsh-buddy/package.json +1 -1
  94. package/ide/vscode/package.json +1 -1
  95. package/package.json +1 -1
@@ -26,57 +26,33 @@ export class QueueStack {
26
26
  const jobsDir = path.jobsPath()
27
27
 
28
28
  try {
29
- const files = await fs.readdir(jobsDir)
30
-
31
- for (const file of files) {
32
- if (file.endsWith('.ts')) {
33
- const filePath = path.jobsPath(file)
34
-
35
- // Await the loading of the job module
36
- const jobModule = await this.loadJobModule(filePath)
37
-
38
- // Now you can safely access jobModule.default.rate
39
- const rate = jobModule.default.rate || '* * * * *'
40
-
41
- // Rest of your logic here...
42
- // Convert the rate to a Schedule object
43
- const schedule = Schedule.cron(this.cronScheduleFromRate(rate))
44
-
45
- const id = `QueueRule${pascalCase(file.replace('.ts', ''))}`
46
- // Perform operations with the jobModule.default as needed
47
- const rule = new Rule(this.scope, id, {
48
- // schedule to run every second
49
- ruleName: `${this.props.appName}-${this.props.appEnv}-queue-rule-${slug(file.replace('.ts', ''))}`,
50
- schedule,
51
- })
52
-
53
- rule.addTarget(new EcsTask({
54
- cluster: this.props.cluster,
55
- taskDefinition: this.props.taskDefinition,
56
- containerOverrides: [
57
- {
58
- containerName: `${this.props.appName}-${this.props.appEnv}-api`,
59
- environment: [
60
- {
61
- name: 'QUEUE_WORKER',
62
- value: 'true',
63
- },
64
- {
65
- name: 'JOB',
66
- value: file,
67
- },
68
- ],
69
- },
70
- ],
71
-
72
- retryAttempts: 3,
73
-
74
- subnetSelection: {
75
- subnetType: ec2.SubnetType.PUBLIC, // SubnetType.PRIVATE_WITH_EGRESS
76
- },
77
- }))
78
- }
29
+ const jobFiles = await fs.readdir(jobsDir)
30
+ const actionFiles = await fs.readdir(actionsDir)
31
+ const jobs = []
32
+
33
+ // then, need to loop through all app/Jobs/*.ts and create a rule for each, potentially overwriting the Schedule.ts jobs
34
+ for (const file of jobFiles) {
35
+ if (!file.endsWith('.ts'))
36
+ continue
37
+
38
+ const filePath = path.jobsPath(file)
39
+
40
+ // Await the loading of the job module
41
+ jobs.push(await this.loadModule(filePath))
42
+ }
43
+
44
+ for (const file of actionFiles) {
45
+ if (!file.endsWith('.ts'))
46
+ continue
47
+
48
+ const filePath = path.actionsPath(file)
49
+
50
+ // Await the loading of the job module
51
+ jobs.push(await this.loadModule(filePath))
79
52
  }
53
+
54
+ for (const job of jobs)
55
+ await this.createQueueRule(job)
80
56
  }
81
57
  catch (err) {
82
58
  console.error('Error reading the jobs directory:', err)
@@ -96,9 +72,73 @@ export class QueueStack {
96
72
  }
97
73
  }
98
74
 
99
- async loadJobModule(filePath: string) {
75
+ async loadModule(filePath: string) {
100
76
  const jobModule = await import(filePath)
101
77
 
102
78
  return jobModule
103
79
  }
80
+
81
+ createQueueRule(job: any) {
82
+ // Now you can safely access job.default.rate
83
+ const rate = job.default?.rate
84
+
85
+ // if no rate or job is disabled, no need to schedule, skip
86
+ if (!rate || job.default?.enabled === false)
87
+ return
88
+
89
+ // Convert the rate to a Schedule object
90
+ const schedule = Schedule.cron(this.cronScheduleFromRate(rate))
91
+
92
+ const id = `QueueRule${pascalCase(file.replace('.ts', ''))}`
93
+
94
+ // Perform operations with the jobModule.default as needed
95
+ const rule = new Rule(this.scope, id, {
96
+ // schedule to run every second
97
+ ruleName: `${this.props.appName}-${this.props.appEnv}-queue-rule-${slug(file.replace('.ts', ''))}`,
98
+ schedule,
99
+ })
100
+
101
+ rule.addTarget(new EcsTask({
102
+ cluster: this.props.cluster,
103
+ taskDefinition: this.props.taskDefinition,
104
+ containerOverrides: [
105
+ {
106
+ containerName: `${this.props.appName}-${this.props.appEnv}-api`,
107
+ environment: [
108
+ {
109
+ name: 'QUEUE_WORKER',
110
+ value: 'true',
111
+ },
112
+ {
113
+ name: 'JOB',
114
+ value: file,
115
+ },
116
+ {
117
+ name: 'JOB_BACKOFF_FACTOR',
118
+ value: jobModule.default?.backoffFactor,
119
+ },
120
+ {
121
+ name: 'JOB_RETRIES',
122
+ value: jobModule.default?.tries,
123
+ },
124
+ {
125
+ name: 'JOB_INITIAL_DELAY',
126
+ value: jobModule.default?.initialDelay,
127
+ },
128
+ {
129
+ name: 'JOB_JITTER',
130
+ value: jobModule.default?.jitter,
131
+ },
132
+ ],
133
+ },
134
+ ],
135
+
136
+ retryAttempts: 1, // we utilize a custom retry mechanism in the job itself
137
+ // retryAttempts: jobModule.default.tries || 3,
138
+
139
+ subnetSelection: {
140
+ subnetType: ec2.SubnetType.PUBLIC, // SubnetType.PRIVATE_WITH_EGRESS
141
+ },
142
+ }))
143
+ }
104
144
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stacks-router-layer",
3
- "version": "0.58.57",
3
+ "version": "0.58.58",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -10,6 +10,6 @@
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
11
11
  },
12
12
  "dependencies": {
13
- "@stacksjs/router": "^0.58.56"
13
+ "@stacksjs/router": "^0.58.57"
14
14
  }
15
15
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/collections",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks collections.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/config",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks config helper methods.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/database",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks database integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/datetime",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks datetime helpers.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/desktop",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Desktop engine.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -62,20 +62,20 @@
62
62
  "peerDependencies": {
63
63
  "@stacksjs/build": "workspace:*",
64
64
  "@stacksjs/server": "workspace:*",
65
- "@tauri-apps/api": "1.5.3",
66
- "@tauri-apps/cli": "1.5.9",
67
- "unified-network": "0.6.4",
65
+ "@tauri-apps/api": "^1.5.3",
66
+ "@tauri-apps/cli": "^1.5.9",
67
+ "unified-network": "^0.6.4",
68
68
  "unstorage": "^1.10.1",
69
- "vue": "3.4.15"
69
+ "vue": "^3.4.16"
70
70
  },
71
71
  "dependencies": {
72
72
  "@stacksjs/build": "workspace:*",
73
73
  "@stacksjs/server": "workspace:*",
74
- "@tauri-apps/api": "1.5.3",
75
- "@tauri-apps/cli": "1.5.9",
76
- "unified-network": "0.6.4",
74
+ "@tauri-apps/api": "^1.5.3",
75
+ "@tauri-apps/cli": "^1.5.9",
76
+ "unified-network": "^0.6.4",
77
77
  "unstorage": "^1.10.1",
78
- "vue": "3.4.15"
78
+ "vue": "^3.4.16"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@stacksjs/development": "workspace:*"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/development",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks development dependencies.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/dns",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "Easily manage your DNS.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -51,8 +51,8 @@
51
51
  "prepublishOnly": "bun --bun run build"
52
52
  },
53
53
  "peerDependencies": {
54
- "@aws-sdk/client-route-53": "^3.507.0",
55
- "@aws-sdk/client-route-53-domains": "^3.507.0",
54
+ "@aws-sdk/client-route-53": "^3.509.0",
55
+ "@aws-sdk/client-route-53-domains": "^3.509.0",
56
56
  "@stacksjs/actions": "workspace:*",
57
57
  "@stacksjs/error-handling": "workspace:*",
58
58
  "@stacksjs/path": "workspace:*",
@@ -61,7 +61,7 @@
61
61
  "aws-cdk-lib": "^2.126.0"
62
62
  },
63
63
  "dependencies": {
64
- "@aws-sdk/client-route-53": "^3.507.0",
64
+ "@aws-sdk/client-route-53": "^3.509.0",
65
65
  "@stacksjs/actions": "workspace:*",
66
66
  "@stacksjs/error-handling": "workspace:*",
67
67
  "@stacksjs/path": "workspace:*",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/docs",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks way to document.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/email",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Email integration. Painlessly create & manage your inboxes, templates, and send emails.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "dependencies": {
67
67
  "@maizzle/framework": "^4.7.5",
68
- "@novu/stateless": "^0.23.0",
68
+ "@novu/stateless": "^0.23.1",
69
69
  "@stacksjs/cli": "workspace:*",
70
70
  "@stacksjs/config": "workspace:*",
71
71
  "@stacksjs/error-handling": "workspace:*",
@@ -78,16 +78,16 @@
78
78
  "uuid": "^9.0.1"
79
79
  },
80
80
  "optionalDependencies": {
81
- "@novu/emailjs": "^0.23.0",
82
- "@novu/mailgun": "^0.23.0",
83
- "@novu/mailjet": "^0.23.0",
84
- "@novu/mandrill": "^0.23.0",
85
- "@novu/netcore": "^0.23.0",
86
- "@novu/node": "^0.23.0",
87
- "@novu/nodemailer": "^0.23.0",
88
- "@novu/postmark": "^0.23.0",
89
- "@novu/sendgrid": "^0.23.0",
90
- "@novu/ses": "^0.23.0"
81
+ "@novu/emailjs": "^0.23.1",
82
+ "@novu/mailgun": "^0.23.1",
83
+ "@novu/mailjet": "^0.23.1",
84
+ "@novu/mandrill": "^0.23.1",
85
+ "@novu/netcore": "^0.23.1",
86
+ "@novu/node": "^0.23.1",
87
+ "@novu/nodemailer": "^0.23.1",
88
+ "@novu/postmark": "^0.23.1",
89
+ "@novu/sendgrid": "^0.23.1",
90
+ "@novu/ses": "^0.23.1"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@stacksjs/development": "workspace:*"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/enums",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "Stacks enums.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/env",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "Stacks env helper methods.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/error-handling",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "Type safe error handling.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/eslint-config",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/events",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
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.57",
4
+ "version": "0.58.58",
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.57",
4
+ "version": "0.58.58",
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.57",
4
+ "version": "0.58.58",
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.57",
4
+ "version": "0.58.58",
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.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks way to lint.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/logging",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks logging system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/notifications",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks notifications integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -76,27 +76,27 @@
76
76
  "@stacksjs/types": "workspace:*"
77
77
  },
78
78
  "optionalDependencies": {
79
- "@novu/discord": "^0.23.0",
80
- "@novu/emailjs": "^0.23.0",
81
- "@novu/gupshup": "^0.23.0",
82
- "@novu/mailgun": "^0.23.0",
83
- "@novu/mailjet": "^0.23.0",
84
- "@novu/mandrill": "^0.23.0",
85
- "@novu/netcore": "^0.23.0",
86
- "@novu/nexmo": "^0.23.0",
87
- "@novu/node": "^0.23.0",
88
- "@novu/nodemailer": "^0.23.0",
89
- "@novu/plivo": "^0.23.0",
90
- "@novu/postmark": "^0.23.0",
91
- "@novu/sendgrid": "^0.23.0",
92
- "@novu/ses": "^0.23.0",
93
- "@novu/slack": "^0.23.0",
94
- "@novu/sms77": "^0.23.0",
95
- "@novu/sns": "^0.23.0",
96
- "@novu/stateless": "^0.23.0",
97
- "@novu/telnyx": "^0.23.0",
98
- "@novu/termii": "^0.23.0",
99
- "@novu/twilio": "^0.23.0"
79
+ "@novu/discord": "^0.23.1",
80
+ "@novu/emailjs": "^0.23.1",
81
+ "@novu/gupshup": "^0.23.1",
82
+ "@novu/mailgun": "^0.23.1",
83
+ "@novu/mailjet": "^0.23.1",
84
+ "@novu/mandrill": "^0.23.1",
85
+ "@novu/netcore": "^0.23.1",
86
+ "@novu/nexmo": "^0.23.1",
87
+ "@novu/node": "^0.23.1",
88
+ "@novu/nodemailer": "^0.23.1",
89
+ "@novu/plivo": "^0.23.1",
90
+ "@novu/postmark": "^0.23.1",
91
+ "@novu/sendgrid": "^0.23.1",
92
+ "@novu/ses": "^0.23.1",
93
+ "@novu/slack": "^0.23.1",
94
+ "@novu/sms77": "^0.23.1",
95
+ "@novu/sns": "^0.23.1",
96
+ "@novu/stateless": "^0.23.1",
97
+ "@novu/telnyx": "^0.23.1",
98
+ "@novu/termii": "^0.23.1",
99
+ "@novu/twilio": "^0.23.1"
100
100
  },
101
101
  "devDependencies": {
102
102
  "@stacksjs/development": "workspace:*"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/objects",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks objects.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/orm",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks ORM integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks path.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/payments",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks payments package. Currently supporting Stripe.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/push",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Push integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -46,15 +46,15 @@
46
46
  "prepublishOnly": "bun --bun run build"
47
47
  },
48
48
  "peerDependencies": {
49
- "@novu/node": "^0.23.0",
50
- "@novu/stateless": "^0.23.0",
49
+ "@novu/node": "^0.23.1",
50
+ "@novu/stateless": "^0.23.1",
51
51
  "@stacksjs/cli": "workspace:*",
52
52
  "@stacksjs/config": "workspace:*",
53
53
  "@stacksjs/error-handling": "workspace:*"
54
54
  },
55
55
  "dependencies": {
56
- "@novu/node": "^0.23.0",
57
- "@novu/stateless": "^0.23.0",
56
+ "@novu/node": "^0.23.1",
57
+ "@novu/stateless": "^0.23.1",
58
58
  "@stacksjs/cli": "workspace:*",
59
59
  "@stacksjs/config": "workspace:*",
60
60
  "@stacksjs/error-handling": "workspace:*"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/query-builder",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Query Builder integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -8,7 +8,8 @@ class Job {
8
8
  rate;
9
9
  tries;
10
10
  backoff;
11
- constructor({ name, description, handle, rate, tries, backoff, action }) {
11
+ enabled;
12
+ constructor({ name, description, handle, rate, tries, backoff, action, enabled }) {
12
13
  this.name = name;
13
14
  this.description = description;
14
15
  this.handle = handle;
@@ -16,6 +17,7 @@ class Job {
16
17
  this.action = action;
17
18
  this.tries = tries;
18
19
  this.backoff = backoff;
20
+ this.enabled = enabled;
19
21
  }
20
22
  }
21
23
  export {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/queue",
3
3
  "type": "module",
4
- "version": "0.58.57",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks Queue system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -8,8 +8,9 @@ export class Job {
8
8
  rate: JobOptions['rate']
9
9
  tries: JobOptions['tries']
10
10
  backoff: JobOptions['backoff']
11
+ enabled: JobOptions['enabled']
11
12
 
12
- constructor({ name, description, handle, rate, tries, backoff, action }: JobOptions) {
13
+ constructor({ name, description, handle, rate, tries, backoff, action, enabled }: JobOptions) {
13
14
  this.name = name
14
15
  this.description = description
15
16
  this.handle = handle
@@ -17,5 +18,6 @@ export class Job {
17
18
  this.action = action
18
19
  this.tries = tries
19
20
  this.backoff = backoff
21
+ this.enabled = enabled
20
22
  }
21
23
  }