@getstrata/core 0.5.53 → 0.5.54
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/README.md +5 -2
- package/dist/core/queue/failedJobRepository.d.ts +1 -1
- package/dist/core/queue/failedJobTable.d.ts +1 -1
- package/dist/entries/auth/sessionGuard.js +8 -7
- package/dist/entries/http/webErrorResponse.js +8 -7
- package/dist/entries/queue/createAppQueue.js +2 -2
- package/dist/entries/queue/failedJobRepository.js +2 -2
- package/dist/entries/queue/publicQueue.js +2 -2
- package/dist/entries/queue/queueMetrics.js +2 -2
- package/dist/entries/view.js +8 -7
- package/dist/index.js +2215 -2213
- package/dist/modules/user/apiTokenRepository.d.ts +1 -1
- package/dist/modules/user/apiTokenTable.d.ts +1 -1
- package/dist/modules/user/notificationRepository.d.ts +1 -1
- package/dist/modules/user/notificationTable.d.ts +1 -1
- package/dist/modules/user/oauthIdentityRepository.d.ts +2 -2
- package/dist/modules/user/repository.d.ts +1 -1
- package/dist/modules/user/table.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,8 +59,11 @@ Some subpaths **re-export the main bundle** so singleton state stays shared (dat
|
|
|
59
59
|
|
|
60
60
|
When adding a subpath that owns process-wide state or base classes used with `instanceof`, append it to
|
|
61
61
|
`CORE_SHARED_SUBPATHS`, run `bun scripts/sync-package-subpaths.ts`, and rebuild. Non-shared subpath
|
|
62
|
-
bundles are built with generated `--external @getstrata/core/*` flags
|
|
63
|
-
shared modules via package self-imports (`scripts/codemod-core-self-imports.ts`).
|
|
62
|
+
bundles are built with generated `--external @getstrata/core/*` flags (all 143+ subpaths) so framework
|
|
63
|
+
source can import shared modules via package self-imports (`scripts/codemod-core-self-imports.ts`).
|
|
64
|
+
Bootstrap subpath builds externalize all `@getstrata/bootstrap/*` and `@getstrata/core/*` entries.
|
|
65
|
+
`scripts/verify-no-root-imports.ts` blocks root `@getstrata/core` imports in application source.
|
|
66
|
+
`scripts/audit-public-api-surface.ts` reports root exports with no in-repo root import usage.
|
|
64
67
|
`scripts/verify-bundled-subpaths.ts` ensures entries like `http/webFormRequest` do not inline
|
|
65
68
|
`ValidationError`.
|
|
66
69
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseRepository } from "@getstrata/core/database";
|
|
1
|
+
import { BaseRepository } from "@getstrata/core/database/baseRepository";
|
|
2
2
|
import type { FailedJobRecord } from "./types";
|
|
3
3
|
declare class FailedJobRepository extends BaseRepository<FailedJobRecord, "id"> {
|
|
4
4
|
constructor();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { FailedJobRecord } from "./types";
|
|
2
|
-
declare const failedJobTable: import("@getstrata/core/database").TableDefinition<FailedJobRecord, "id">;
|
|
2
|
+
declare const failedJobTable: import("@getstrata/core/database/table").TableDefinition<FailedJobRecord, "id">;
|
|
3
3
|
export { failedJobTable };
|
|
@@ -76,7 +76,7 @@ function isFeatureEnabled(feature) {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
// ../../src/modules/user/apiTokenRepository.ts
|
|
79
|
-
import { BaseRepository } from "@getstrata/core/database";
|
|
79
|
+
import { BaseRepository } from "@getstrata/core/database/baseRepository";
|
|
80
80
|
|
|
81
81
|
// ../../src/config/database.ts
|
|
82
82
|
function readInteger(name, fallback) {
|
|
@@ -202,7 +202,7 @@ var db = new Proxy(function database() {}, {
|
|
|
202
202
|
var connection_default = db;
|
|
203
203
|
|
|
204
204
|
// ../../src/modules/user/apiTokenTable.ts
|
|
205
|
-
import { defineTable } from "@getstrata/core/database";
|
|
205
|
+
import { defineTable } from "@getstrata/core/database/table";
|
|
206
206
|
var apiTokenTable = defineTable({
|
|
207
207
|
name: "api_token",
|
|
208
208
|
primaryKey: "id",
|
|
@@ -320,10 +320,10 @@ class AuthService {
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
// ../../src/modules/user/notificationRepository.ts
|
|
323
|
-
import { BaseRepository as BaseRepository2 } from "@getstrata/core/database";
|
|
323
|
+
import { BaseRepository as BaseRepository2 } from "@getstrata/core/database/baseRepository";
|
|
324
324
|
|
|
325
325
|
// ../../src/modules/user/notificationTable.ts
|
|
326
|
-
import { defineTable as defineTable2 } from "@getstrata/core/database";
|
|
326
|
+
import { defineTable as defineTable2 } from "@getstrata/core/database/table";
|
|
327
327
|
var notificationTable = defineTable2({
|
|
328
328
|
name: "notification",
|
|
329
329
|
primaryKey: "id",
|
|
@@ -335,7 +335,8 @@ var notificationTable = defineTable2({
|
|
|
335
335
|
import { NotFoundError } from "@getstrata/core/errors/http";
|
|
336
336
|
|
|
337
337
|
// ../../src/modules/user/oauthIdentityRepository.ts
|
|
338
|
-
import { BaseRepository as BaseRepository3
|
|
338
|
+
import { BaseRepository as BaseRepository3 } from "@getstrata/core/database/baseRepository";
|
|
339
|
+
import { defineTable as defineTable3 } from "@getstrata/core/database/table";
|
|
339
340
|
var oauthIdentityTable = defineTable3({
|
|
340
341
|
name: "oauth_identity",
|
|
341
342
|
primaryKey: "id",
|
|
@@ -349,11 +350,11 @@ import {
|
|
|
349
350
|
revealEmail
|
|
350
351
|
} from "@getstrata/core/crypto/fieldEncryption";
|
|
351
352
|
import { revealMfaSecret as revealMfaSecret2 } from "@getstrata/core/crypto/mfaSecret";
|
|
352
|
-
import { BaseRepository as BaseRepository4 } from "@getstrata/core/database";
|
|
353
|
+
import { BaseRepository as BaseRepository4 } from "@getstrata/core/database/baseRepository";
|
|
353
354
|
import { currentTenantId as currentTenantId2 } from "@getstrata/core/tenant/tenantContext";
|
|
354
355
|
|
|
355
356
|
// ../../src/modules/user/table.ts
|
|
356
|
-
import { defineTable as defineTable4 } from "@getstrata/core/database";
|
|
357
|
+
import { defineTable as defineTable4 } from "@getstrata/core/database/table";
|
|
357
358
|
var userTable = defineTable4({
|
|
358
359
|
name: "users",
|
|
359
360
|
primaryKey: "id",
|
|
@@ -168,7 +168,7 @@ function isFeatureEnabled(feature) {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
// ../../src/modules/user/apiTokenRepository.ts
|
|
171
|
-
import { BaseRepository } from "@getstrata/core/database";
|
|
171
|
+
import { BaseRepository } from "@getstrata/core/database/baseRepository";
|
|
172
172
|
|
|
173
173
|
// ../../src/config/database.ts
|
|
174
174
|
function readInteger(name, fallback) {
|
|
@@ -294,7 +294,7 @@ var db = new Proxy(function database() {}, {
|
|
|
294
294
|
var connection_default = db;
|
|
295
295
|
|
|
296
296
|
// ../../src/modules/user/apiTokenTable.ts
|
|
297
|
-
import { defineTable } from "@getstrata/core/database";
|
|
297
|
+
import { defineTable } from "@getstrata/core/database/table";
|
|
298
298
|
var apiTokenTable = defineTable({
|
|
299
299
|
name: "api_token",
|
|
300
300
|
primaryKey: "id",
|
|
@@ -452,10 +452,10 @@ class AuthService {
|
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
// ../../src/modules/user/notificationRepository.ts
|
|
455
|
-
import { BaseRepository as BaseRepository2 } from "@getstrata/core/database";
|
|
455
|
+
import { BaseRepository as BaseRepository2 } from "@getstrata/core/database/baseRepository";
|
|
456
456
|
|
|
457
457
|
// ../../src/modules/user/notificationTable.ts
|
|
458
|
-
import { defineTable as defineTable2 } from "@getstrata/core/database";
|
|
458
|
+
import { defineTable as defineTable2 } from "@getstrata/core/database/table";
|
|
459
459
|
var notificationTable = defineTable2({
|
|
460
460
|
name: "notification",
|
|
461
461
|
primaryKey: "id",
|
|
@@ -467,7 +467,8 @@ var notificationTable = defineTable2({
|
|
|
467
467
|
import { NotFoundError } from "@getstrata/core/errors/http";
|
|
468
468
|
|
|
469
469
|
// ../../src/modules/user/oauthIdentityRepository.ts
|
|
470
|
-
import { BaseRepository as BaseRepository3
|
|
470
|
+
import { BaseRepository as BaseRepository3 } from "@getstrata/core/database/baseRepository";
|
|
471
|
+
import { defineTable as defineTable3 } from "@getstrata/core/database/table";
|
|
471
472
|
var oauthIdentityTable = defineTable3({
|
|
472
473
|
name: "oauth_identity",
|
|
473
474
|
primaryKey: "id",
|
|
@@ -481,11 +482,11 @@ import {
|
|
|
481
482
|
revealEmail
|
|
482
483
|
} from "@getstrata/core/crypto/fieldEncryption";
|
|
483
484
|
import { revealMfaSecret as revealMfaSecret2 } from "@getstrata/core/crypto/mfaSecret";
|
|
484
|
-
import { BaseRepository as BaseRepository4 } from "@getstrata/core/database";
|
|
485
|
+
import { BaseRepository as BaseRepository4 } from "@getstrata/core/database/baseRepository";
|
|
485
486
|
import { currentTenantId as currentTenantId2 } from "@getstrata/core/tenant/tenantContext";
|
|
486
487
|
|
|
487
488
|
// ../../src/modules/user/table.ts
|
|
488
|
-
import { defineTable as defineTable4 } from "@getstrata/core/database";
|
|
489
|
+
import { defineTable as defineTable4 } from "@getstrata/core/database/table";
|
|
489
490
|
var userTable = defineTable4({
|
|
490
491
|
name: "users",
|
|
491
492
|
primaryKey: "id",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// ../../src/core/queue/failedJobRepository.ts
|
|
3
|
-
import { BaseRepository } from "@getstrata/core/database";
|
|
3
|
+
import { BaseRepository } from "@getstrata/core/database/baseRepository";
|
|
4
4
|
|
|
5
5
|
// ../../src/core/queue/failedJobTable.ts
|
|
6
|
-
import { defineTable } from "@getstrata/core/database";
|
|
6
|
+
import { defineTable } from "@getstrata/core/database/table";
|
|
7
7
|
var failedJobTable = defineTable({
|
|
8
8
|
name: "failed_job",
|
|
9
9
|
primaryKey: "id",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// ../../src/core/queue/failedJobRepository.ts
|
|
3
|
-
import { BaseRepository } from "@getstrata/core/database";
|
|
3
|
+
import { BaseRepository } from "@getstrata/core/database/baseRepository";
|
|
4
4
|
|
|
5
5
|
// ../../src/core/queue/failedJobTable.ts
|
|
6
|
-
import { defineTable } from "@getstrata/core/database";
|
|
6
|
+
import { defineTable } from "@getstrata/core/database/table";
|
|
7
7
|
var failedJobTable = defineTable({
|
|
8
8
|
name: "failed_job",
|
|
9
9
|
primaryKey: "id",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// ../../src/core/queue/failedJobRepository.ts
|
|
3
|
-
import { BaseRepository } from "@getstrata/core/database";
|
|
3
|
+
import { BaseRepository } from "@getstrata/core/database/baseRepository";
|
|
4
4
|
|
|
5
5
|
// ../../src/core/queue/failedJobTable.ts
|
|
6
|
-
import { defineTable } from "@getstrata/core/database";
|
|
6
|
+
import { defineTable } from "@getstrata/core/database/table";
|
|
7
7
|
var failedJobTable = defineTable({
|
|
8
8
|
name: "failed_job",
|
|
9
9
|
primaryKey: "id",
|
|
@@ -22,10 +22,10 @@ var queueConfig = {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
// ../../src/core/queue/failedJobRepository.ts
|
|
25
|
-
import { BaseRepository } from "@getstrata/core/database";
|
|
25
|
+
import { BaseRepository } from "@getstrata/core/database/baseRepository";
|
|
26
26
|
|
|
27
27
|
// ../../src/core/queue/failedJobTable.ts
|
|
28
|
-
import { defineTable } from "@getstrata/core/database";
|
|
28
|
+
import { defineTable } from "@getstrata/core/database/table";
|
|
29
29
|
var failedJobTable = defineTable({
|
|
30
30
|
name: "failed_job",
|
|
31
31
|
primaryKey: "id",
|
package/dist/entries/view.js
CHANGED
|
@@ -87,7 +87,7 @@ function isFeatureEnabled(feature) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// ../../src/modules/user/apiTokenRepository.ts
|
|
90
|
-
import { BaseRepository } from "@getstrata/core/database";
|
|
90
|
+
import { BaseRepository } from "@getstrata/core/database/baseRepository";
|
|
91
91
|
|
|
92
92
|
// ../../src/config/database.ts
|
|
93
93
|
function readInteger(name, fallback) {
|
|
@@ -213,7 +213,7 @@ var db = new Proxy(function database() {}, {
|
|
|
213
213
|
var connection_default = db;
|
|
214
214
|
|
|
215
215
|
// ../../src/modules/user/apiTokenTable.ts
|
|
216
|
-
import { defineTable } from "@getstrata/core/database";
|
|
216
|
+
import { defineTable } from "@getstrata/core/database/table";
|
|
217
217
|
var apiTokenTable = defineTable({
|
|
218
218
|
name: "api_token",
|
|
219
219
|
primaryKey: "id",
|
|
@@ -371,10 +371,10 @@ class AuthService {
|
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
// ../../src/modules/user/notificationRepository.ts
|
|
374
|
-
import { BaseRepository as BaseRepository2 } from "@getstrata/core/database";
|
|
374
|
+
import { BaseRepository as BaseRepository2 } from "@getstrata/core/database/baseRepository";
|
|
375
375
|
|
|
376
376
|
// ../../src/modules/user/notificationTable.ts
|
|
377
|
-
import { defineTable as defineTable2 } from "@getstrata/core/database";
|
|
377
|
+
import { defineTable as defineTable2 } from "@getstrata/core/database/table";
|
|
378
378
|
var notificationTable = defineTable2({
|
|
379
379
|
name: "notification",
|
|
380
380
|
primaryKey: "id",
|
|
@@ -386,7 +386,8 @@ var notificationTable = defineTable2({
|
|
|
386
386
|
import { NotFoundError } from "@getstrata/core/errors/http";
|
|
387
387
|
|
|
388
388
|
// ../../src/modules/user/oauthIdentityRepository.ts
|
|
389
|
-
import { BaseRepository as BaseRepository3
|
|
389
|
+
import { BaseRepository as BaseRepository3 } from "@getstrata/core/database/baseRepository";
|
|
390
|
+
import { defineTable as defineTable3 } from "@getstrata/core/database/table";
|
|
390
391
|
var oauthIdentityTable = defineTable3({
|
|
391
392
|
name: "oauth_identity",
|
|
392
393
|
primaryKey: "id",
|
|
@@ -400,11 +401,11 @@ import {
|
|
|
400
401
|
revealEmail
|
|
401
402
|
} from "@getstrata/core/crypto/fieldEncryption";
|
|
402
403
|
import { revealMfaSecret as revealMfaSecret2 } from "@getstrata/core/crypto/mfaSecret";
|
|
403
|
-
import { BaseRepository as BaseRepository4 } from "@getstrata/core/database";
|
|
404
|
+
import { BaseRepository as BaseRepository4 } from "@getstrata/core/database/baseRepository";
|
|
404
405
|
import { currentTenantId as currentTenantId2 } from "@getstrata/core/tenant/tenantContext";
|
|
405
406
|
|
|
406
407
|
// ../../src/modules/user/table.ts
|
|
407
|
-
import { defineTable as defineTable4 } from "@getstrata/core/database";
|
|
408
|
+
import { defineTable as defineTable4 } from "@getstrata/core/database/table";
|
|
408
409
|
var userTable = defineTable4({
|
|
409
410
|
name: "users",
|
|
410
411
|
primaryKey: "id",
|