@dudousxd/nestjs-telescope-mikro-orm 1.9.1 → 1.11.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/package.json +4 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # @dudousxd/nestjs-telescope-mikro-orm
2
2
 
3
+ ## 1.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#17](https://github.com/DavideCarvalho/nestjs-telescope/pull/17) [`76228a3`](https://github.com/DavideCarvalho/nestjs-telescope/commit/76228a3a33e4e6d649cd8343646472feff97ed16) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Ecosystem improvements across the telescope packages.
8
+
9
+ - **Nested trace / batch waterfall view.** Traces and batches now render as a
10
+ nested waterfall, showing child spans nested under their parents with relative
11
+ offsets and durations so the critical path of a request is visible at a glance.
12
+ - **Pulse-style outlier & rollup cards.** New overview cards surface the slowest
13
+ endpoints, slowest queries, slowest jobs, and slowest outbound calls, plus
14
+ load-by-user and CPU/memory history, in the spirit of Laravel Pulse rollups.
15
+ - **Metric-threshold alert rules.** Alerts can now fire on metric thresholds
16
+ (p95 / p99 latency, cache-hit ratio) in addition to existing rules, with
17
+ shared-storage exception deduplication so the same exception is not alerted
18
+ multiple times across replicas.
19
+ - **Improved N+1 detection.** Detection now recognizes the 1+N loop pattern and
20
+ is duration-weighted, reducing false positives and prioritizing the queries
21
+ that actually cost time.
22
+ - **On-demand CPU flamegraph profiling.** A strictly-opt-in `profiling` option
23
+ (OFF by default) captures V8 CPU profiles via Node's `inspector`, aggregates
24
+ them into a self/total frame tree, and persists them as `cpu_profile` entries
25
+ correlated to their request batch. The dashboard gains a Profiles tab with a
26
+ dependency-light flamegraph renderer, a hot-functions table, and an
27
+ "arm next N requests" trigger. When profiling is disabled there is zero
28
+ inspector usage and no request-path cost beyond a single boolean check.
29
+ - **`TelescopeUiModule.forRootAsync`.** The UI module now mirrors
30
+ `TelescopeModule.forRootAsync`, resolving dashboard options via DI.
31
+ - **Realtime dashboards / SSE live-tail.** Dashboards update in realtime over an
32
+ `@Sse` invalidation stream (falling back to polling) with a LIVE indicator.
33
+ - **Packaging hygiene.** `sideEffects` is now declared on each publishable
34
+ package to enable safe tree-shaking for downstream bundlers.
35
+ - **Independent versioning.** The changeset `fixed` group was removed so packages
36
+ version independently going forward.
37
+
38
+ ### Patch Changes
39
+
40
+ - [#17](https://github.com/DavideCarvalho/nestjs-telescope/pull/17) [`76228a3`](https://github.com/DavideCarvalho/nestjs-telescope/commit/76228a3a33e4e6d649cd8343646472feff97ed16) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Packaging hygiene + `TelescopeUiModule.forRootAsync`.
41
+
42
+ - `TelescopeUiModule` now exposes `forRootAsync({ imports, inject, useFactory, path })`, mirroring `TelescopeModule.forRootAsync`: dashboard options (`assetsDir`) are resolved via DI. As with the core module, the mount `path` is bound at module-build time and is passed statically on the config object (the static value also drives the serve-time asset-base rewrite, so it always matches the route).
43
+ - Added `"sideEffects"` to each publishable package to enable safe tree-shaking for downstream bundlers:
44
+ - `false` on the pure watcher / helper / provider packages (ai, bullmq, cache, events, logs, mail, mikro-orm, mikro-orm-watcher, otel, prisma, redis, redis-watcher, sqs, typeorm, testing) — their entrypoints only re-export classes/types with no module-load side effects.
45
+ - `["./dist/schedule.watcher.js"]` on schedule, which carries a load-bearing bare `import 'reflect-metadata'`.
46
+ - `["./dist/server/*.js", "**/*.css"]` on ui, whose server module/controller emit decorator metadata at load and whose bundled SPA ships CSS.
47
+ - core is left unmarked (treated as side-effecting) because its decorator metadata emit spans many directories.
48
+
49
+ ## 1.10.0
50
+
3
51
  ## 1.9.1
4
52
 
5
53
  ## 1.9.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-telescope-mikro-orm",
3
- "version": "1.9.1",
3
+ "version": "1.11.0",
4
4
  "description": "MikroORM query watcher for @dudousxd/nestjs-telescope.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -10,6 +10,7 @@
10
10
  },
11
11
  "author": "Davi Carvalho <davi@goflip.ai>",
12
12
  "type": "module",
13
+ "sideEffects": false,
13
14
  "main": "./dist/index.js",
14
15
  "types": "./dist/index.d.ts",
15
16
  "exports": {
@@ -31,7 +32,7 @@
31
32
  "@nestjs/common": ">=10.0.0",
32
33
  "@nestjs/core": ">=10.0.0",
33
34
  "reflect-metadata": ">=0.1.13",
34
- "@dudousxd/nestjs-telescope": "^1.9.1"
35
+ "@dudousxd/nestjs-telescope": "^1.11.0"
35
36
  },
36
37
  "devDependencies": {
37
38
  "@mikro-orm/core": "^7.0.0",
@@ -49,7 +50,7 @@
49
50
  "supertest": "^7.0.0",
50
51
  "typescript": "^5.4.0",
51
52
  "vitest": "^3.0.0",
52
- "@dudousxd/nestjs-telescope": "1.9.1"
53
+ "@dudousxd/nestjs-telescope": "1.11.0"
53
54
  },
54
55
  "engines": {
55
56
  "node": ">=20"