@dudousxd/nestjs-telescope-mikro-orm 1.13.0 → 1.14.0

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,56 @@
1
1
  # @dudousxd/nestjs-telescope-mikro-orm
2
2
 
3
+ ## 1.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#37](https://github.com/DavideCarvalho/nestjs-telescope/pull/37) [`3969c33`](https://github.com/DavideCarvalho/nestjs-telescope/commit/3969c338dd6c360fb08bb68e6b279f06cdf7ab77) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Add `telescopeManagedTables()`, returning the three tables
8
+ (`telescope_entries`, `telescope_rollups`, `telescope_schema_meta`) the
9
+ `MikroOrmStorageProvider` boot-manages. Consumers running their own MikroORM
10
+ CLI migrations against a shared database previously had to hand-maintain a
11
+ `/^telescope_/` regex (or an explicit list) in `skipTables` so a migration
12
+ diff never tried to drop telescope's tables — including the boot fingerprint
13
+ marker, which is easy to forget. `telescopeManagedTables()` derives the list
14
+ straight from the entities' own `tableName` metadata (never a hardcoded
15
+ parallel literal), so a future rename flows through automatically:
16
+
17
+ ```ts
18
+ import { telescopeManagedTables } from "@dudousxd/nestjs-telescope-mikro-orm";
19
+
20
+ await MikroORM.init({
21
+ // ...your entities/driver config
22
+ schemaGenerator: { skipTables: telescopeManagedTables() },
23
+ });
24
+ ```
25
+
26
+ - [#37](https://github.com/DavideCarvalho/nestjs-telescope/pull/37) [`3969c33`](https://github.com/DavideCarvalho/nestjs-telescope/commit/3969c338dd6c360fb08bb68e6b279f06cdf7ab77) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Add a first-class deferred record sink, `telescopeRecord`/`setTelescopeRecordSink`
27
+ (exported from core), mirroring `telescopeDump`'s pattern. It exists for
28
+ boot-time integrations — most notably a MikroORM query logger — that need to
29
+ emit Telescope entries before Nest DI has constructed `TelescopeService`:
30
+ MikroORM builds (and can start calling) its logger at `MikroORM.init()`, well
31
+ before `TelescopeModule` wires anything. `TelescopeService`'s constructor binds
32
+ the global sink automatically and `onApplicationShutdown` clears it; calls made
33
+ before binding (or after shutdown) are dropped, not buffered — there is no
34
+ unbounded queue waiting to replay boot noise.
35
+
36
+ This removes the need for host apps to hand-roll their own module-global
37
+ bridge (`let telescopeRecord; export function setTelescopeRecord()` filled in
38
+ from `onModuleInit`) just to wire the MikroORM logger before DI is ready.
39
+
40
+ `telescopeMikroOrmLogger`'s `record` parameter is now optional. When omitted,
41
+ the logger lazily resolves `telescopeRecord` from core at each `logQuery` call
42
+ (not at construction), so binding order no longer matters:
43
+
44
+ ```ts
45
+ MikroORM.init({
46
+ debug: ["query"],
47
+ loggerFactory: telescopeMikroOrmLogger(),
48
+ });
49
+ ```
50
+
51
+ An explicit `record` function, when passed, still takes precedence over the
52
+ global sink.
53
+
3
54
  ## 1.13.0
4
55
 
5
56
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -4,4 +4,5 @@ export * from './telescope-mikro-orm.logger.js';
4
4
  export * from './mikro-orm-query.watcher.js';
5
5
  export * from './telescope-entry.entity.js';
6
6
  export * from './mikro-orm-storage.provider.js';
7
+ export * from './schema.js';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClF,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClF,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -4,4 +4,5 @@ export * from './telescope-mikro-orm.logger.js';
4
4
  export * from './mikro-orm-query.watcher.js';
5
5
  export * from './telescope-entry.entity.js';
6
6
  export * from './mikro-orm-storage.provider.js';
7
+ export * from './schema.js';
7
8
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAwB,MAAM,4BAA4B,CAAC;AAClF,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAwB,MAAM,4BAA4B,CAAC;AAClF,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,aAAa,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Tables this package creates and manages at boot (autoSchema). Feed to your
3
+ * ORM's migration differ skip/exclude list so it never tries to drop them.
4
+ *
5
+ * DERIVED from the three entities' own `tableName` — never a hardcoded
6
+ * parallel literal list — so a future rename flows through automatically.
7
+ * Includes `telescope_schema_meta` (the boot fingerprint marker): a migration
8
+ * differ that doesn't know about it would try to drop it too.
9
+ *
10
+ * ```ts
11
+ * await MikroORM.init({
12
+ * // ...your entities/driver config
13
+ * schemaGenerator: { skipTables: telescopeManagedTables() },
14
+ * });
15
+ * ```
16
+ */
17
+ export declare function telescopeManagedTables(): string[];
18
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,EAAE,CAEjD"}
package/dist/schema.js ADDED
@@ -0,0 +1,32 @@
1
+ // packages/mikro-orm/src/schema.ts
2
+ //
3
+ // The tables the `MikroOrmStorageProvider` boot-manages: `telescope_entries`,
4
+ // `telescope_rollups`, and `telescope_schema_meta` (see
5
+ // mikro-orm-storage.provider.ts for the fingerprint-gated `schema.update`
6
+ // that reconciles them). A host that runs its OWN MikroORM CLI migrations
7
+ // against a shared database needs to keep its migration differ from ever
8
+ // trying to drop these — this module gives it that denylist without hand-
9
+ // maintaining a parallel string list that can drift from the entities.
10
+ import { TelescopeEntry } from './telescope-entry.entity.js';
11
+ import { TelescopeRollup } from './telescope-rollup.entity.js';
12
+ import { TelescopeSchemaMeta } from './telescope-schema-meta.entity.js';
13
+ /**
14
+ * Tables this package creates and manages at boot (autoSchema). Feed to your
15
+ * ORM's migration differ skip/exclude list so it never tries to drop them.
16
+ *
17
+ * DERIVED from the three entities' own `tableName` — never a hardcoded
18
+ * parallel literal list — so a future rename flows through automatically.
19
+ * Includes `telescope_schema_meta` (the boot fingerprint marker): a migration
20
+ * differ that doesn't know about it would try to drop it too.
21
+ *
22
+ * ```ts
23
+ * await MikroORM.init({
24
+ * // ...your entities/driver config
25
+ * schemaGenerator: { skipTables: telescopeManagedTables() },
26
+ * });
27
+ * ```
28
+ */
29
+ export function telescopeManagedTables() {
30
+ return [TelescopeEntry.tableName, TelescopeRollup.tableName, TelescopeSchemaMeta.tableName];
31
+ }
32
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,EAAE;AACF,8EAA8E;AAC9E,wDAAwD;AACxD,0EAA0E;AAC1E,0EAA0E;AAC1E,yEAAyE;AACzE,0EAA0E;AAC1E,uEAAuE;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,CAAC,cAAc,CAAC,SAAS,EAAE,eAAe,CAAC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAC9F,CAAC"}
@@ -11,11 +11,13 @@ export interface TelescopeLoggerOptions {
11
11
  silent?: boolean;
12
12
  }
13
13
  /** A MikroORM DefaultLogger subclass that tees every executed query into
14
- * `record`, while preserving MikroORM's own logging behavior via super. */
14
+ * `record`, while preserving MikroORM's own logging behavior via super.
15
+ * When `record` is omitted, each `logQuery` lazily resolves the boot-time
16
+ * `telescopeRecord` global sink instead — see {@link telescopeMikroOrmLogger}. */
15
17
  export declare class TelescopeMikroOrmLogger extends DefaultLogger {
16
18
  private readonly _record;
17
19
  private readonly slowMs;
18
- constructor(options: LoggerOptions, _record: (input: RecordInput) => void, slowMs: number);
20
+ constructor(options: LoggerOptions, _record: ((input: RecordInput) => void) | undefined, slowMs: number);
19
21
  logQuery(context: {
20
22
  query: string;
21
23
  } & LogContext): void;
@@ -30,6 +32,17 @@ export declare class TelescopeMikroOrmLogger extends DefaultLogger {
30
32
  * loggerFactory: telescopeMikroOrmLogger(record, { slowMs: 100, silent: true }),
31
33
  * });
32
34
  * ```
35
+ *
36
+ * Zero-config usage — omit `record` entirely and the logger resolves the
37
+ * boot-time global sink (`telescopeRecord`) at call time, so it works even
38
+ * when `MikroORM.init()` runs before `TelescopeModule` has wired anything
39
+ * (entries are simply dropped until it does):
40
+ * ```ts
41
+ * MikroORM.init({
42
+ * debug: ['query'],
43
+ * loggerFactory: telescopeMikroOrmLogger(),
44
+ * });
45
+ * ```
33
46
  */
34
- export declare function telescopeMikroOrmLogger(record: (input: RecordInput) => void, options?: TelescopeLoggerOptions): (loggerOptions: LoggerOptions) => TelescopeMikroOrmLogger;
47
+ export declare function telescopeMikroOrmLogger(record?: (input: RecordInput) => void, options?: TelescopeLoggerOptions): (loggerOptions: LoggerOptions) => TelescopeMikroOrmLogger;
35
48
  //# sourceMappingURL=telescope-mikro-orm.logger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"telescope-mikro-orm.logger.d.ts","sourceRoot":"","sources":["../src/telescope-mikro-orm.logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,WAAW,EAAmB,MAAM,4BAA4B,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErF,MAAM,WAAW,sBAAsB;IACrC,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;4EAC4E;AAC5E,qBAAa,uBAAwB,SAAQ,aAAa;IAGtD,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFvB,OAAO,EAAE,aAAa,EACL,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,EACrC,MAAM,EAAE,MAAM;IAMxB,QAAQ,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,UAAU,GAAG,IAAI;CAmBjE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,EACpC,OAAO,GAAE,sBAA2B,GACnC,CAAC,aAAa,EAAE,aAAa,KAAK,uBAAuB,CAY3D"}
1
+ {"version":3,"file":"telescope-mikro-orm.logger.d.ts","sourceRoot":"","sources":["../src/telescope-mikro-orm.logger.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,WAAW,EAGjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErF,MAAM,WAAW,sBAAsB;IACrC,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;mFAGmF;AACnF,qBAAa,uBAAwB,SAAQ,aAAa;IAGtD,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFvB,OAAO,EAAE,aAAa,EACL,OAAO,EAAE,CAAC,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,SAAS,EACnD,MAAM,EAAE,MAAM;IAMxB,QAAQ,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,UAAU,GAAG,IAAI;CAwBjE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,EACrC,OAAO,GAAE,sBAA2B,GACnC,CAAC,aAAa,EAAE,aAAa,KAAK,uBAAuB,CAY3D"}
@@ -1,8 +1,10 @@
1
1
  // packages/mikro-orm/src/telescope-mikro-orm.logger.ts
2
- import { EntryType, queryFamilyHash } from '@dudousxd/nestjs-telescope';
2
+ import { EntryType, queryFamilyHash, telescopeRecord, } from '@dudousxd/nestjs-telescope';
3
3
  import { DefaultLogger } from '@mikro-orm/core';
4
4
  /** A MikroORM DefaultLogger subclass that tees every executed query into
5
- * `record`, while preserving MikroORM's own logging behavior via super. */
5
+ * `record`, while preserving MikroORM's own logging behavior via super.
6
+ * When `record` is omitted, each `logQuery` lazily resolves the boot-time
7
+ * `telescopeRecord` global sink instead — see {@link telescopeMikroOrmLogger}. */
6
8
  export class TelescopeMikroOrmLogger extends DefaultLogger {
7
9
  _record;
8
10
  slowMs;
@@ -17,7 +19,12 @@ export class TelescopeMikroOrmLogger extends DefaultLogger {
17
19
  if (sql) {
18
20
  const took = typeof context.took === 'number' ? context.took : null;
19
21
  const tags = took !== null && took >= this.slowMs ? ['slow'] : [];
20
- this._record({
22
+ // Resolved AT CALL TIME (not captured at construction) so that when no
23
+ // explicit `record` was supplied, binding order doesn't matter: MikroORM
24
+ // can construct this logger (via `MikroORM.init()`) before Nest DI has
25
+ // wired `TelescopeService`, and `telescopeRecord` is a no-op until then.
26
+ const record = this._record ?? telescopeRecord;
27
+ record({
21
28
  type: EntryType.Query,
22
29
  content: {
23
30
  sql,
@@ -42,6 +49,17 @@ export class TelescopeMikroOrmLogger extends DefaultLogger {
42
49
  * loggerFactory: telescopeMikroOrmLogger(record, { slowMs: 100, silent: true }),
43
50
  * });
44
51
  * ```
52
+ *
53
+ * Zero-config usage — omit `record` entirely and the logger resolves the
54
+ * boot-time global sink (`telescopeRecord`) at call time, so it works even
55
+ * when `MikroORM.init()` runs before `TelescopeModule` has wired anything
56
+ * (entries are simply dropped until it does):
57
+ * ```ts
58
+ * MikroORM.init({
59
+ * debug: ['query'],
60
+ * loggerFactory: telescopeMikroOrmLogger(),
61
+ * });
62
+ * ```
45
63
  */
46
64
  export function telescopeMikroOrmLogger(record, options = {}) {
47
65
  const slowMs = options.slowMs ?? 100;
@@ -1 +1 @@
1
- {"version":3,"file":"telescope-mikro-orm.logger.js","sourceRoot":"","sources":["../src/telescope-mikro-orm.logger.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,SAAS,EAAoB,eAA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ED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-telescope-mikro-orm",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "MikroORM query watcher for @dudousxd/nestjs-telescope.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "@nestjs/common": ">=10.0.0",
33
33
  "@nestjs/core": ">=10.0.0",
34
34
  "reflect-metadata": ">=0.1.13",
35
- "@dudousxd/nestjs-telescope": "^1.15.0"
35
+ "@dudousxd/nestjs-telescope": "^1.16.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@mikro-orm/core": "^7.0.0",
@@ -50,7 +50,7 @@
50
50
  "supertest": "^7.0.0",
51
51
  "typescript": "^5.4.0",
52
52
  "vitest": "^3.0.0",
53
- "@dudousxd/nestjs-telescope": "1.15.0"
53
+ "@dudousxd/nestjs-telescope": "1.16.0"
54
54
  },
55
55
  "engines": {
56
56
  "node": ">=20"