@getstrata/bootstrap 0.2.63 → 0.2.64

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @getstrata/bootstrap changelog
2
2
 
3
+ ## 0.2.64
4
+
5
+ - `registerDefaultJobs()` no longer registers WorkHub `webhook.dispatch`. Apps that dispatch model webhooks should call `registerWebhookJobs()` (WorkHub’s webhook provider and `queue:work` do).
6
+
3
7
  ## 0.2.63
4
8
 
5
9
  - `HttpKernel.wrapWebGuest()` `home` accepts `string | ((user) => string | Promise<string>)` so signed-in guest redirects can follow the current team. Default remains `/organizations`.
package/README.md CHANGED
@@ -34,6 +34,8 @@ Sibling HTMX apps should bind `createCookieSessionAuthManager` from `@getstrata/
34
34
 
35
35
  `wrapWeb` applies the web group (CSRF + flash) and `withErrorHandling`, so CSRF `ForbiddenError` becomes an HTML 403 in `FRONTEND_MODE=server-htmx`. `wrapWebGuest` is Laravel `guest` / `RedirectIfAuthenticated` (signed-in users go to `/organizations` by default; pass a string or `(user) => path` to override). `wrapWebLogin` / `wrapWebRegister` include that web group plus throttle — do not wrap them with `wrapWeb` again. The throttle callback should return an HTML form at 429 (WorkHub’s `/login` and `/register` do).
36
36
 
37
+ `registerDefaultJobs()` registers `cache.invalidate-tags` and `audit.export` only. WorkHub webhook dispatch is `registerWebhookJobs()` in the app webhook provider.
38
+
37
39
  These subpaths remain WorkHub-oriented and are not a generic starter API: `@getstrata/bootstrap/createRoutes` (includes SCIM), `@getstrata/bootstrap/schedule`, and `@getstrata/bootstrap/createWebRoutes` (redirects `/` to `/organizations`).
38
40
 
39
41
  See the [strata](https://github.com/EyK-26/strata) monorepo reference app for full module patterns.
@@ -437,7 +437,6 @@ import {
437
437
  } from "@getstrata/core/queue/createAppQueue";
438
438
 
439
439
  // ../../src/bootstrap/queue/defaultJobs.ts
440
- import { DispatchWebhookJob } from "@getstrata/core/jobs/dispatchWebhookJob";
441
440
  import { ExportAuditLogsJob } from "@getstrata/core/jobs/exportAuditLogsJob";
442
441
  import { InvalidateCacheTagsJob as InvalidateCacheTagsJob2 } from "@getstrata/core/jobs/invalidateCacheTagsJob";
443
442
  import { jobRegistry } from "@getstrata/core/queue/jobRegistry";
@@ -446,7 +445,6 @@ function registerDefaultJobs() {
446
445
  jobRegistry.register("cache.invalidate-tags", () => {
447
446
  return new InvalidateCacheTagsJob2(resolveApplicationCache2());
448
447
  });
449
- jobRegistry.register("webhook.dispatch", () => new DispatchWebhookJob);
450
448
  jobRegistry.register("audit.export", () => new ExportAuditLogsJob);
451
449
  }
452
450
 
@@ -437,7 +437,6 @@ import {
437
437
  } from "@getstrata/core/queue/createAppQueue";
438
438
 
439
439
  // ../../src/bootstrap/queue/defaultJobs.ts
440
- import { DispatchWebhookJob } from "@getstrata/core/jobs/dispatchWebhookJob";
441
440
  import { ExportAuditLogsJob } from "@getstrata/core/jobs/exportAuditLogsJob";
442
441
  import { InvalidateCacheTagsJob as InvalidateCacheTagsJob2 } from "@getstrata/core/jobs/invalidateCacheTagsJob";
443
442
  import { jobRegistry } from "@getstrata/core/queue/jobRegistry";
@@ -446,7 +445,6 @@ function registerDefaultJobs() {
446
445
  jobRegistry.register("cache.invalidate-tags", () => {
447
446
  return new InvalidateCacheTagsJob2(resolveApplicationCache2());
448
447
  });
449
- jobRegistry.register("webhook.dispatch", () => new DispatchWebhookJob);
450
448
  jobRegistry.register("audit.export", () => new ExportAuditLogsJob);
451
449
  }
452
450
 
@@ -427,7 +427,6 @@ import {
427
427
  } from "@getstrata/core/queue/createAppQueue";
428
428
 
429
429
  // ../../src/bootstrap/queue/defaultJobs.ts
430
- import { DispatchWebhookJob } from "@getstrata/core/jobs/dispatchWebhookJob";
431
430
  import { ExportAuditLogsJob } from "@getstrata/core/jobs/exportAuditLogsJob";
432
431
  import { InvalidateCacheTagsJob as InvalidateCacheTagsJob2 } from "@getstrata/core/jobs/invalidateCacheTagsJob";
433
432
  import { jobRegistry } from "@getstrata/core/queue/jobRegistry";
@@ -436,7 +435,6 @@ function registerDefaultJobs() {
436
435
  jobRegistry.register("cache.invalidate-tags", () => {
437
436
  return new InvalidateCacheTagsJob2(resolveApplicationCache2());
438
437
  });
439
- jobRegistry.register("webhook.dispatch", () => new DispatchWebhookJob);
440
438
  jobRegistry.register("audit.export", () => new ExportAuditLogsJob);
441
439
  }
442
440
 
@@ -2,7 +2,6 @@
2
2
  var __jsonParse = (a) => JSON.parse(a);
3
3
 
4
4
  // ../../src/bootstrap/queue/defaultJobs.ts
5
- import { DispatchWebhookJob } from "@getstrata/core/jobs/dispatchWebhookJob";
6
5
  import { ExportAuditLogsJob } from "@getstrata/core/jobs/exportAuditLogsJob";
7
6
  import { InvalidateCacheTagsJob } from "@getstrata/core/jobs/invalidateCacheTagsJob";
8
7
  import { jobRegistry } from "@getstrata/core/queue/jobRegistry";
@@ -11,7 +10,6 @@ function registerDefaultJobs() {
11
10
  jobRegistry.register("cache.invalidate-tags", () => {
12
11
  return new InvalidateCacheTagsJob(resolveApplicationCache());
13
12
  });
14
- jobRegistry.register("webhook.dispatch", () => new DispatchWebhookJob);
15
13
  jobRegistry.register("audit.export", () => new ExportAuditLogsJob);
16
14
  }
17
15
  export {
package/dist/index.js CHANGED
@@ -828,7 +828,6 @@ import {
828
828
  } from "@getstrata/core/queue/createAppQueue";
829
829
 
830
830
  // ../../src/bootstrap/queue/defaultJobs.ts
831
- import { DispatchWebhookJob } from "@getstrata/core/jobs/dispatchWebhookJob";
832
831
  import { ExportAuditLogsJob } from "@getstrata/core/jobs/exportAuditLogsJob";
833
832
  import { InvalidateCacheTagsJob as InvalidateCacheTagsJob2 } from "@getstrata/core/jobs/invalidateCacheTagsJob";
834
833
  import { jobRegistry } from "@getstrata/core/queue/jobRegistry";
@@ -837,7 +836,6 @@ function registerDefaultJobs() {
837
836
  jobRegistry.register("cache.invalidate-tags", () => {
838
837
  return new InvalidateCacheTagsJob2(resolveApplicationCache2());
839
838
  });
840
- jobRegistry.register("webhook.dispatch", () => new DispatchWebhookJob);
841
839
  jobRegistry.register("audit.export", () => new ExportAuditLogsJob);
842
840
  }
843
841
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getstrata/bootstrap",
3
- "version": "0.2.63",
3
+ "version": "0.2.64",
4
4
  "description": "Strata application bootstrap — HttpKernel, DI, web session helpers",
5
5
  "type": "module",
6
6
  "license": "MIT",