@stacksjs/defaults 0.75.13 → 0.75.14

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.
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.75.13",
5
+ "version": "0.75.14",
6
6
  "description": "A modern Stacks development environment.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.13",
5
+ "version": "0.75.14",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/stacksjs/stacks.git",
@@ -55,7 +55,7 @@
55
55
  "dependencies": {
56
56
  "@iconify-json/f7": "^1.2.2",
57
57
  "@iconify-json/hugeicons": "^1.2.27",
58
- "@stacksjs/mobile": "^0.75.13",
58
+ "@stacksjs/mobile": "^0.75.14",
59
59
  "@stacksjs/sanitizer": "^0.2.113",
60
60
  "ts-qr-codes": "^0.1.8"
61
61
  }
@@ -56,6 +56,13 @@ type EmailTemplateName = keyof EmailTemplates & string
56
56
  */
57
57
  type WithoutActionsPrefix<T> = T extends `Actions/${infer TRest}` ? TRest : never
58
58
 
59
+ /**
60
+ * `'SendEmailJob'` → `'SendEmail'`. `resolveJobFile` tries `<name>.ts` and then
61
+ * `<name>Job.ts`, so a job is reachable by either spelling; `@stacksjs/queue`
62
+ * derives the same for `job(…)` from the `Jobs` registry below.
63
+ */
64
+ type WithoutJobSuffix<T> = T extends `${infer TBase}Job` ? (TBase extends '' ? never : TBase) : never
65
+
59
66
  /**
60
67
  * What `app/Events.ts` may name against an event: a listener module, or an
61
68
  * action by the name `resolveListener` joins back on (no `Actions/` prefix).
@@ -126,7 +133,7 @@ declare module '@stacksjs/actions' {
126
133
  }
127
134
 
128
135
  declare module '@stacksjs/scheduler' {
129
- interface SchedulableJobs extends Record<JobName, true> {}
136
+ interface SchedulableJobs extends Record<JobName | WithoutJobSuffix<JobName>, true> {}
130
137
  interface SchedulableActions extends Record<ActionName, true> {}
131
138
  }
132
139