@getstrata/bootstrap 0.2.12 → 0.2.13
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/dist/bootstrap/applicationRegistry.d.ts +1 -16
- package/dist/bootstrap/config.d.ts +2 -7
- package/dist/core/contracts/applicationContext.d.ts +18 -0
- package/dist/core/contracts/serviceTokens.d.ts +7 -0
- package/dist/core/runtime/applicationRegistry.d.ts +15 -0
- package/dist/entries/applicationRegistry.js +18 -107
- package/dist/entries/config.js +8 -6
- package/dist/entries/context.js +79 -69
- package/dist/entries/createWebRoutes.js +8 -6
- package/dist/entries/http/securedRouteModelBinding.js +18 -108
- package/dist/entries/httpKernel.js +8 -6
- package/dist/entries/membershipService.js +18 -108
- package/dist/entries/providers/view.js +8 -6
- package/dist/entries/providers.js +18 -93
- package/dist/entries/queue/defaultJobs.js +18 -108
- package/dist/framework/public-api.d.ts +1 -1
- package/dist/index.js +82 -73
- package/package.json +3 -8
- package/dist/entries/cache/modelCacheTags.js +0 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getstrata/bootstrap",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"description": "Strata application bootstrap — HttpKernel, DI, web session helpers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,11 +15,6 @@
|
|
|
15
15
|
"import": "./dist/index.js",
|
|
16
16
|
"default": "./dist/index.js"
|
|
17
17
|
},
|
|
18
|
-
"./cache/modelCacheTags": {
|
|
19
|
-
"types": "./dist/bootstrap/cache/modelCacheTags.d.ts",
|
|
20
|
-
"import": "./dist/entries/cache/modelCacheTags.js",
|
|
21
|
-
"default": "./dist/entries/cache/modelCacheTags.js"
|
|
22
|
-
},
|
|
23
18
|
"./applicationRegistry": {
|
|
24
19
|
"types": "./dist/bootstrap/applicationRegistry.d.ts",
|
|
25
20
|
"import": "./dist/entries/applicationRegistry.js",
|
|
@@ -87,14 +82,14 @@
|
|
|
87
82
|
"build:bundle": "bun build index.ts --outdir dist --target bun --external bun --external eta --external @getstrata/core",
|
|
88
83
|
"build:types": "tsc -p tsconfig.types.json",
|
|
89
84
|
"prepublishOnly": "bun run build",
|
|
90
|
-
"build:subpaths": "bun build entries/applicationRegistry.ts entries/
|
|
85
|
+
"build:subpaths": "bun build entries/applicationRegistry.ts entries/config.ts entries/context.ts entries/contracts.ts entries/createWebRoutes.ts entries/http/securedRouteModelBinding.ts entries/httpKernel.ts entries/membershipService.ts entries/queue/defaultJobs.ts entries/providers.ts entries/providers/view.ts --outdir dist --root . --target bun --external bun --external eta --external @getstrata/core",
|
|
91
86
|
"build:shims": "true"
|
|
92
87
|
},
|
|
93
88
|
"publishConfig": {
|
|
94
89
|
"access": "public"
|
|
95
90
|
},
|
|
96
91
|
"peerDependencies": {
|
|
97
|
-
"@getstrata/core": "^0.5.
|
|
92
|
+
"@getstrata/core": "^0.5.21",
|
|
98
93
|
"typescript": "^5.9.0"
|
|
99
94
|
}
|
|
100
95
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
// ../../src/bootstrap/discoverModules.ts
|
|
3
|
-
var appModules = [];
|
|
4
|
-
function discoverModules() {
|
|
5
|
-
return appModules;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
// ../../src/bootstrap/cache/modelCacheTags.ts
|
|
9
|
-
function cacheTagsForModelWrite(tableName, action) {
|
|
10
|
-
const module = discoverModules().find((entry) => entry.tableName === tableName);
|
|
11
|
-
const baseTags = module?.cacheTags ?? [`${tableName}s`];
|
|
12
|
-
const isDelete = action === "deleted" || action === "force-deleted";
|
|
13
|
-
const extraTags = isDelete ? module?.cacheDeleteExtraTags ?? [] : [];
|
|
14
|
-
return [...new Set([...baseTags, ...extraTags])];
|
|
15
|
-
}
|
|
16
|
-
function discoverModelTableNames() {
|
|
17
|
-
return discoverModules().map((module) => module.tableName).filter((tableName) => tableName !== undefined);
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
discoverModelTableNames,
|
|
21
|
-
cacheTagsForModelWrite
|
|
22
|
-
};
|