@bymax-one/nest-realtime 1.0.2 → 1.0.3

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
@@ -7,6 +7,42 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.3] - 2026-08-02
11
+
12
+ ### Fixed
13
+
14
+ - **`transport: 'websocket'` and `'both'` could not resolve a single provider.**
15
+ Registering `BymaxRealtimeWebSocketModule` and then injecting anything the
16
+ package root exports — `RealtimeService`, `ConnectionRegistry`, or any of the
17
+ eight injection tokens — failed with `UnknownElementException` at bootstrap.
18
+ SSE through the root module was unaffected.
19
+
20
+ Each entry point is a separate bundle, so the services and `Symbol` tokens both
21
+ of them reached by a relative path were copied into each. A copied class is a
22
+ different injection token, and the container held one set while the consumer
23
+ imported the other. The shared runtime now lives in one bundle that both entry
24
+ points import by package specifier, which gives it a single identity in
25
+ CommonJS as well as ESM — code splitting could not, since esbuild splits ESM
26
+ only.
27
+
28
+ ### Added
29
+
30
+ - **`pnpm check:surface`** compares every name each subpath exports, read from the
31
+ built `.d.ts`, against a checked-in snapshot, and fails on additions as well as
32
+ removals. A type exported for consumers and referenced nowhere internally is
33
+ invisible to `tsc`, to `attw` and to the README snippets, so it can vanish from
34
+ a barrel with every other gate green.
35
+
36
+ - **`pnpm check:runtime`** packs the tarball, lays it out the way npm would, and
37
+ boots NestJS against it in ESM and in CommonJS, resolving every exported token
38
+ from every transport mode. It runs in `prepublishOnly` and in CI. Every other
39
+ gate reads the source or the type declarations, so a defect in how the entry
40
+ points are bundled was invisible to all of them.
41
+
42
+ - **`pnpm size` now checks bundle boundaries structurally**: the root and shared
43
+ bundles must contain no static reference to the Socket.IO stack, and the root
44
+ and WebSocket bundles must _import_ the shared runtime rather than inline it.
45
+
10
46
  ## [1.0.2] - 2026-08-02
11
47
 
12
48
  ### Fixed
@@ -131,7 +167,8 @@ First published release.
131
167
  rather than by the manual sweep that raised the NestJS floors — that sweep
132
168
  asked about NestJS and never put the same question to the other ten peers.
133
169
 
134
- [Unreleased]: https://github.com/bymaxone/nest-realtime/compare/v1.0.2...HEAD
170
+ [Unreleased]: https://github.com/bymaxone/nest-realtime/compare/v1.0.3...HEAD
171
+ [1.0.3]: https://github.com/bymaxone/nest-realtime/compare/v1.0.2...v1.0.3
135
172
  [1.0.2]: https://github.com/bymaxone/nest-realtime/compare/v1.0.1...v1.0.2
136
173
  [1.0.1]: https://github.com/bymaxone/nest-realtime/compare/v1.0.0...v1.0.1
137
174
  [1.0.0]: https://github.com/bymaxone/nest-realtime/releases/tag/v1.0.0
package/README.md CHANGED
@@ -107,6 +107,8 @@ The `shared` subpath carries no Node or NestJS import, so the same event names a
107
107
 
108
108
  **The `websocket` subpath exists so the server one costs nothing extra.** Everything that touches `@nestjs/websockets`, `@nestjs/platform-socket.io` and `socket.io` is reachable only through it, so an application on SSE — the default transport — never installs the Socket.IO stack. Importing it is what opts in, in the install as much as in the configuration.
109
109
 
110
+ The package also exposes `@bymax-one/nest-realtime/internal`. It is **not public API** and carries no compatibility promise — it is the shared runtime the two server subpaths import so that a service registered through one and injected through the other is the same class. Import the four above; nothing you need is only there.
111
+
110
112
  ---
111
113
 
112
114
  > [!TIP]