@getstrata/bootstrap 0.2.18 → 0.2.20

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.
@@ -1,10 +1,10 @@
1
1
  import type { CacheLike } from "../../types/services";
2
2
  import type { AuthManager } from "../auth/guard";
3
3
  import type { PolicyGate } from "../auth/policy";
4
- import type { ApplicationContext } from "../contracts/applicationContext";
4
+ import type { AppContext } from "../contracts/di";
5
5
  import { type Logger } from "../logging/logger";
6
6
  import type { Queue } from "../queue";
7
- declare function setActiveApplicationContext(context: ApplicationContext): void;
7
+ declare function setActiveApplicationContext(context: AppContext): void;
8
8
  declare function resolveApplicationCache(): CacheLike;
9
9
  declare function resolveApplicationQueue(): Queue;
10
10
  declare function resolveApplicationAuth(): AuthManager;
@@ -20,6 +20,7 @@ function assertAppDependenciesComplete(dependencies) {
20
20
  function resolveService(dependencies, token) {
21
21
  return dependencies.container.resolve(token);
22
22
  }
23
+
23
24
  // ../../src/core/contracts/serviceTokens.ts
24
25
  var CORE_CONFIG_TOKEN = "core.config";
25
26
  var CORE_CACHE_TOKEN = "core.cache";
@@ -20,6 +20,7 @@ function assertAppDependenciesComplete(dependencies) {
20
20
  function resolveService(dependencies, token) {
21
21
  return dependencies.container.resolve(token);
22
22
  }
23
+
23
24
  // ../../src/core/contracts/serviceTokens.ts
24
25
  var CORE_CONFIG_TOKEN = "core.config";
25
26
  var CORE_CACHE_TOKEN = "core.cache";
@@ -85,6 +85,7 @@ function assertAppDependenciesComplete(dependencies) {
85
85
  function resolveService(dependencies, token) {
86
86
  return dependencies.container.resolve(token);
87
87
  }
88
+
88
89
  // ../../src/core/contracts/serviceTokens.ts
89
90
  var CORE_CONFIG_TOKEN = "core.config";
90
91
  var CORE_CACHE_TOKEN = "core.cache";
@@ -20,6 +20,7 @@ function assertAppDependenciesComplete(dependencies) {
20
20
  function resolveService(dependencies, token) {
21
21
  return dependencies.container.resolve(token);
22
22
  }
23
+
23
24
  // ../../src/core/contracts/serviceTokens.ts
24
25
  var CORE_CONFIG_TOKEN = "core.config";
25
26
  var CORE_CACHE_TOKEN = "core.cache";
@@ -3265,6 +3265,7 @@ function assertAppDependenciesComplete(dependencies) {
3265
3265
  function resolveService(dependencies, token) {
3266
3266
  return dependencies.container.resolve(token);
3267
3267
  }
3268
+
3268
3269
  // ../../src/core/logging/logger.ts
3269
3270
  class Logger {
3270
3271
  channel;
@@ -405,6 +405,7 @@ function assertAppDependenciesComplete(dependencies) {
405
405
  function resolveService(dependencies, token) {
406
406
  return dependencies.container.resolve(token);
407
407
  }
408
+
408
409
  // ../../src/core/contracts/serviceTokens.ts
409
410
  var CORE_CONFIG_TOKEN = "core.config";
410
411
  var CORE_CACHE_TOKEN = "core.cache";
@@ -88,6 +88,7 @@ function assertAppDependenciesComplete(dependencies) {
88
88
  function resolveService(dependencies, token) {
89
89
  return dependencies.container.resolve(token);
90
90
  }
91
+
91
92
  // ../../src/core/contracts/serviceTokens.ts
92
93
  var CORE_CONFIG_TOKEN = "core.config";
93
94
  var CORE_CACHE_TOKEN = "core.cache";
package/dist/index.js CHANGED
@@ -524,6 +524,7 @@ function assertAppDependenciesComplete(dependencies) {
524
524
  function resolveService(dependencies, token) {
525
525
  return dependencies.container.resolve(token);
526
526
  }
527
+
527
528
  // ../../src/core/contracts/serviceTokens.ts
528
529
  var CORE_CONFIG_TOKEN = "core.config";
529
530
  var CORE_CACHE_TOKEN = "core.cache";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getstrata/bootstrap",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "description": "Strata application bootstrap — HttpKernel, DI, web session helpers",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -119,7 +119,7 @@
119
119
  "access": "public"
120
120
  },
121
121
  "peerDependencies": {
122
- "@getstrata/core": "^0.5.26",
122
+ "@getstrata/core": "^0.5.28",
123
123
  "typescript": "^5.9.0"
124
124
  }
125
125
  }
@@ -1,7 +0,0 @@
1
- import type { AppContext, AppDependencies } from "./di";
2
- /** @deprecated Use AppContext from @getstrata/core/contracts/di */
3
- type ApplicationContext = AppContext;
4
- /** @deprecated Use AppDependencies from @getstrata/core/contracts/di */
5
- type ApplicationDependenciesLike = AppDependencies;
6
- export { getRequiredDependency } from "./di";
7
- export type { ApplicationContext, ApplicationDependenciesLike };