@wildo-ai/saas-workers-node-lib 1.1.5 → 1.1.7

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 (26) hide show
  1. package/dist/esm/index.d.ts.map +1 -1
  2. package/dist/esm/index.js.map +1 -1
  3. package/dist/esm/inject/models/container.d.ts.map +1 -1
  4. package/dist/esm/inject/models/container.js.map +1 -1
  5. package/dist/esm/inject/models/service-types.d.ts.map +1 -1
  6. package/dist/esm/inject/models/service-types.js.map +1 -1
  7. package/dist/esm/runtime/middlewares/worker-jwt-verifier.middleware.d.ts.map +1 -1
  8. package/dist/esm/runtime/middlewares/worker-jwt-verifier.middleware.js.map +1 -1
  9. package/dist/esm/runtime/middlewares/worker-request-context.middleware.d.ts.map +1 -1
  10. package/dist/esm/runtime/middlewares/worker-request-context.middleware.js.map +1 -1
  11. package/dist/esm/runtime/services/define-worker-init.d.ts +2 -0
  12. package/dist/esm/runtime/services/define-worker-init.d.ts.map +1 -1
  13. package/dist/esm/runtime/services/define-worker-init.js.map +1 -1
  14. package/dist/esm/runtime/services/read-worker-bootstrap-env.d.ts.map +1 -1
  15. package/dist/esm/runtime/services/read-worker-bootstrap-env.js.map +1 -1
  16. package/dist/esm/runtime/services/read-worker-http-surface-env.d.ts.map +1 -1
  17. package/dist/esm/runtime/services/read-worker-http-surface-env.js.map +1 -1
  18. package/dist/esm/runtime/services/start-worker-application.backend.service.d.ts.map +1 -1
  19. package/dist/esm/runtime/services/start-worker-application.backend.service.js +5 -0
  20. package/dist/esm/runtime/services/start-worker-application.backend.service.js.map +1 -1
  21. package/dist/esm/runtime/services/worker-http-server.backend.service.d.ts.map +1 -1
  22. package/dist/esm/runtime/services/worker-http-server.backend.service.js.map +1 -1
  23. package/dist/tsconfig.build.tsbuildinfo +1 -1
  24. package/package.json +5 -5
  25. package/src/runtime/services/define-worker-init.ts +2 -0
  26. package/src/runtime/services/start-worker-application.backend.service.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildo-ai/saas-workers-node-lib",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Node worker runtime host boundary for Wildo SaaS applications",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Wildo AI",
@@ -30,10 +30,10 @@
30
30
  "test:watch": "vitest"
31
31
  },
32
32
  "dependencies": {
33
- "@wildo-ai/platform-config-lib": "1.1.5",
34
- "@wildo-ai/platform-core-shared": "1.1.5",
35
- "@wildo-ai/saas-backend-lib": "1.1.5",
36
- "@wildo-ai/saas-models": "1.1.5",
33
+ "@wildo-ai/platform-config-lib": "1.1.7",
34
+ "@wildo-ai/platform-core-shared": "1.1.7",
35
+ "@wildo-ai/saas-backend-lib": "1.1.7",
36
+ "@wildo-ai/saas-models": "1.1.7",
37
37
  "express": "^5.1.0",
38
38
  "helmet": "^8.1.0",
39
39
  "jsonwebtoken": "^9.0.2",
@@ -19,6 +19,8 @@ export interface WorkerProviderRuntimeArtifact {
19
19
  * which would assert, across a package boundary, the very thing nobody checked.
20
20
  */
21
21
  providerRuntimeImports?: ProviderRuntimeArtifact['providerRuntimeImports'];
22
+ /** Mirrored for the same reason: the projection narrows and forwards it (#1672). */
23
+ providerRuntimeAugmentations?: ProviderRuntimeArtifact['providerRuntimeAugmentations'];
22
24
  providerGraphDigest?: ProviderRuntimeArtifact['providerGraphDigest'];
23
25
  lockfileSectionDigest?: ProviderRuntimeArtifact['lockfileSectionDigest'];
24
26
  artifactKind: 'nodeWorkers';
@@ -329,6 +329,10 @@ export class StartWorkerApplicationBackendService {
329
329
  providerRuntime.providerRuntimeImports ?? {},
330
330
  ).filter(([providerRef]) => projectedProviderRefs.includes(providerRef)),
331
331
  );
332
+ // Narrowed with the refs as well (#1672): a host applies augmentations only to providers it declares, and a
333
+ // sibling's opt-in must not load a package into this process.
334
+ const projectedAugmentations = Object.entries(providerRuntime.providerRuntimeAugmentations ?? {})
335
+ .filter(([providerRef]) => projectedProviderRefs.includes(providerRef));
332
336
 
333
337
  return {
334
338
  __AUTOGENERATED__: providerRuntime.__AUTOGENERATED__,
@@ -337,6 +341,7 @@ export class StartWorkerApplicationBackendService {
337
341
  sourceDigest: providerRuntime.sourceDigest,
338
342
  providerRefs: projectedProviderRefs,
339
343
  providerRuntimeImports: projectedProviderRuntimeImports,
344
+ ...(projectedAugmentations.length === 0 ? {} : { providerRuntimeAugmentations: Object.fromEntries(projectedAugmentations) }),
340
345
  providerGraphDigest: providerRuntime.providerGraphDigest,
341
346
  lockfileSectionDigest: providerRuntime.lockfileSectionDigest,
342
347
  artifactKind: 'backend',