@sebspark/socket.io-gcp-pubsub-emitter 1.0.29 → 1.0.31

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 ADDED
@@ -0,0 +1,285 @@
1
+ # @sebspark/socket.io-gcp-pubsub-emitter
2
+
3
+ ## 1.0.31
4
+
5
+ ### Patch Changes
6
+
7
+ - 9f44fbd: Updated dependencies
8
+
9
+ ## 1.0.30
10
+
11
+ ### Patch Changes
12
+
13
+ - 66ac832: * Upgraded to TypeScript 7
14
+ - Replaced tsup with tsdown for package builds
15
+ - Fixed cli-tester stdout parsing, resolving flaky e2e tests across the repo
16
+ - Patched vulnerable transitive dependencies (uuid, socket.io-parser, and others)
17
+
18
+ ## 1.0.29
19
+
20
+ ### Patch Changes
21
+
22
+ - eefb531: Updated dependencies
23
+
24
+ ## 1.0.28
25
+
26
+ ### Patch Changes
27
+
28
+ - 5e9fc45: Bump dependencies. Security fixes:
29
+
30
+ - **form-data** 2.5.6 / 4.0.6 — CRLF injection via unescaped multipart field names and filenames (High)
31
+ - **vite** 8.1.2 — `server.fs.deny` bypass on Windows alternate paths; NTLMv2 hash disclosure via launch-editor (High/Moderate)
32
+ - **ws** 8.21.0 — Memory exhaustion DoS from tiny fragments; uninitialized memory disclosure (High/Moderate)
33
+ - **undici** 8.5.0 — Multiple DoS and information disclosure CVEs (High/Moderate/Low)
34
+ - **tar** 7.5.19 — PAX size override causes tar parser differential / file smuggling (Moderate)
35
+ - **qs** 6.15.3 — DoS via `qs.stringify` crash on null/undefined entries (Moderate)
36
+ - **@opentelemetry/core** 2.8.0 — Unbounded memory allocation in W3C Baggage propagation (Moderate)
37
+ - **@babel/core** 7.29.7 — Arbitrary file read via sourceMappingURL comment (Low)
38
+ - **protobufjs** 8.6.5
39
+
40
+ Other dependency updates:
41
+
42
+ - `@google-cloud/spanner` 8.8.0
43
+ - `@testcontainers/*` 12.0.4
44
+ - `google-auth-library` 10.9.0
45
+ - `mockserver-client` 7.3.0
46
+ - `nock` 14.0.16
47
+ - `prettier` 3.9.4
48
+ - `redis` 6.1.0
49
+ - `webpack` 5.108.3 / `webpack-cli` 7.1.0
50
+
51
+ ## 1.0.27
52
+
53
+ ### Patch Changes
54
+
55
+ - 3111112: Openapi client args are now PartiallySerialized
56
+
57
+ Also: dependency updates
58
+
59
+ ## 1.0.26
60
+
61
+ ### Patch Changes
62
+
63
+ - e0eda57: Updated dependencies
64
+
65
+ ## 1.0.25
66
+
67
+ ### Patch Changes
68
+
69
+ - 26d55f0: Fix `@sebspark/memredis` so Redis clients are assignable to `IPersistor` by widening the pub/sub subscription return types to accept both MemRedis and node-redis implementations.
70
+
71
+ Also update supporting dependencies across the affected packages.
72
+
73
+ ## 1.0.24
74
+
75
+ ### Patch Changes
76
+
77
+ - a6c27f3: Updated dependencies
78
+
79
+ ## 1.0.23
80
+
81
+ ### Patch Changes
82
+
83
+ - 97fe7da: Updated dependencies
84
+
85
+ ## 1.0.22
86
+
87
+ ### Patch Changes
88
+
89
+ - 264e665: Upgrade `redis` to v6 in `@sebspark/promise-cache` and bump minor dependencies across the workspace.
90
+
91
+ **Breaking change (`@sebspark/promise-cache`):**
92
+ `redis` upgraded from `5.12.1` → `6.0.0`. Redis v6 contains breaking changes in its API — see the [redis v6 migration guide](https://github.com/redis/node-redis/blob/master/docs/v4-to-v6.md) if your code uses the client directly.
93
+
94
+ **Dependency updates across packages:**
95
+ - `testcontainers` / `@testcontainers/*`: `12.0.0` → `12.0.1` (health-check, opensearch, opentelemetry-instrumentation-opensearch, otel, promise-cache, socket.io-gcp-pubsub-emitter, spanner-migrate, test-iap)
96
+ - `redis`: `5.12.1` → `6.0.0` (otel, promise-cache)
97
+ - `tsdown`: `0.22.0` → `0.22.1` (tsconfig)
98
+ - `turbo` / `@turbo/gen`: `2.9.15` → `2.9.16`
99
+ - `webpack-cli`: `7.0.2` → `7.0.3` (avsc-isometric)
100
+
101
+ **Test fix (`@sebspark/promise-cache`):**
102
+ Pinned Redis container image tag to `redis:8.8-alpine` (was `redis:8-alpine`) to prevent floating-tag drift in e2e tests.
103
+
104
+ ## 1.0.21
105
+
106
+ ### Patch Changes
107
+
108
+ - 242eb33: This release primarily updates dependencies across the listed packages, including:
109
+ - Testcontainers v12 upgrades in packages that run integration/e2e tests.
110
+ - Vitest/Biome/Turbo and related tooling updates.
111
+ - Runtime dependency updates such as `date-fns`, `@inquirer/*`, `socket.io-adapter`, and `ws`.
112
+
113
+ It also includes two targeted fixes:
114
+ - `@sebspark/opensearch`: fixed TypeScript compatibility so strict `SearchRequest<T>` / `SearchRequestBody<T>` can be assigned to OpenSearch API request types, and added a compile-time compatibility test.
115
+ - `@sebspark/health-check`: updated the e2e readiness payload assertions and type-only import usage to match current runtime output and TypeScript expectations.
116
+
117
+ ## 1.0.20
118
+
119
+ ### Patch Changes
120
+
121
+ - c5e9c99: Resolve protobufjs CVE by pinning to `8.3.0` across all affected packages via root resolutions. Upgraded OpenTelemetry packages to `0.218.0` (which also eliminates the previous hardpin on `protobufjs@8.0.1`), `axios` to `1.16.1`, `ws` to `8.20.1`, `qs` to `6.15.2`, and `@opentelemetry/semantic-conventions` to `1.41.1`.
122
+
123
+ ## 1.0.19
124
+
125
+ ### Patch Changes
126
+
127
+ - 41bb8f2: ### `@sebspark/openapi-core`
128
+
129
+ `fromAxiosError` no longer references the `AxiosError` type in its signature. It now accepts `unknown` and uses a local duck-typed interface to extract the relevant fields. This removes the `axios` import from the published `dist/index.d.mts`, preventing downstream bundlers (rolldown/tsdown) from treating `AxiosError` as a missing value export.
130
+
131
+ ### `@sebspark/tsconfig`
132
+
133
+ Added `verbatimModuleSyntax: true` to `base.json`. All packages in the monorepo now emit `import type` modifiers correctly and TypeScript enforces type-only imports at typecheck time.
134
+
135
+ ### `@sebspark/openapi-client`
136
+
137
+ Updated `fromAxiosError` call site to pass `error` directly as `unknown` instead of casting to `AxiosError`.
138
+
139
+ ### Other packages
140
+
141
+ Dependency updates.
142
+
143
+ ## 1.0.18
144
+
145
+ ### Patch Changes
146
+
147
+ - a62ddaa: Updated vulnerable dependencies
148
+
149
+ ## 1.0.17
150
+
151
+ ### Patch Changes
152
+
153
+ - 7d8cc98: Dependabot dependency updates
154
+
155
+ ## 1.0.16
156
+
157
+ ### Patch Changes
158
+
159
+ - 4e12590: Updated dependencies
160
+
161
+ ## 1.0.15
162
+
163
+ ### Patch Changes
164
+
165
+ - 6d72f97: Updated dependencies
166
+
167
+ ## 1.0.14
168
+
169
+ ### Patch Changes
170
+
171
+ - 736a0b3: No bundling of packages in packages
172
+
173
+ ## 1.0.13
174
+
175
+ ### Patch Changes
176
+
177
+ - 112a381: Updated dependencies
178
+
179
+ ## 1.0.12
180
+
181
+ ### Patch Changes
182
+
183
+ - 35ec1a0: Updated dependencies
184
+
185
+ ## 1.0.11
186
+
187
+ ### Patch Changes
188
+
189
+ - c8dcadb: Updated dependencies
190
+
191
+ ## 1.0.10
192
+
193
+ ### Patch Changes
194
+
195
+ - 11a11ce: Updated dependencies
196
+
197
+ ## 1.0.8
198
+
199
+ ### Patch Changes
200
+
201
+ - 48ab717: Updated dependencies
202
+
203
+ ## 1.0.7
204
+
205
+ ### Patch Changes
206
+
207
+ - 87c769d: Updated dependencies
208
+
209
+ ## 1.0.6
210
+
211
+ ### Patch Changes
212
+
213
+ - e0cb5ee: Updated build from tsup to tsdown
214
+
215
+ ## 1.0.5
216
+
217
+ ### Patch Changes
218
+
219
+ - 8626deb: Updated vulnerable, transitive jws dependency
220
+
221
+ ## 1.0.4
222
+
223
+ ### Patch Changes
224
+
225
+ - 7df8217: Updated dependencies
226
+
227
+ ## 1.0.3
228
+
229
+ ### Patch Changes
230
+
231
+ - 4b210c2: Standardized on a common build script
232
+
233
+ ## 1.0.2
234
+
235
+ ### Patch Changes
236
+
237
+ - 7e5c2e9: Switched to new tsconfig with moduleResolution=bundler
238
+
239
+ ## 1.0.1
240
+
241
+ ### Patch Changes
242
+
243
+ - d801e1e: Updated dependencies and fixed some exports
244
+
245
+ ## 1.0.0
246
+
247
+ ### Major Changes
248
+
249
+ - 0864ec2: ESM only. Minimum node version 22
250
+
251
+ ## 0.1.5
252
+
253
+ ### Patch Changes
254
+
255
+ - 3a40e49: Cleaned up dependencies
256
+
257
+ ## 0.1.4
258
+
259
+ ### Patch Changes
260
+
261
+ - 604c94a: Updated dependencies
262
+
263
+ ## 0.1.3
264
+
265
+ ### Patch Changes
266
+
267
+ - 29b9b20: Updated dependencies
268
+
269
+ ## 0.1.2
270
+
271
+ ### Patch Changes
272
+
273
+ - 5c6e183: Updated dependencies
274
+
275
+ ## 0.1.1
276
+
277
+ ### Patch Changes
278
+
279
+ - d8dcd5d: Updates google-cloud/pubsub to match all between all the packages
280
+
281
+ ## 0.1.0
282
+
283
+ ### Minor Changes
284
+
285
+ - 05d2535: First version of socket.io PubSub emitter
package/dist/index.d.mts CHANGED
@@ -97,7 +97,7 @@ declare class BroadcastOperator<EmitEvents extends EventsMap> implements TypedEv
97
97
  }
98
98
  //#endregion
99
99
  //#region src/emitter.d.ts
100
- declare class Emitter<EmitEvents extends EventsMap = DefaultEventsMap> {
100
+ export declare class Emitter<EmitEvents extends EventsMap = DefaultEventsMap> {
101
101
  readonly topic: Topic;
102
102
  readonly nsp: string;
103
103
  private readonly opts;
@@ -160,5 +160,4 @@ declare class Emitter<EmitEvents extends EventsMap = DefaultEventsMap> {
160
160
  compress(compress: boolean): BroadcastOperator<EmitEvents>;
161
161
  }
162
162
  //#endregion
163
- export { Emitter };
164
163
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/typed-events.ts","../src/types.ts","../src/operator.ts","../src/emitter.ts"],"mappings":";;;;;;UAIiB;GAEd;;;;;;UAOc;GACd,oBAAoB;;;;;KAMX,WAAW,YAAY,mBAAmB;;KAG1C,YACV,YAAY,WACZ,WAAW,WAAW,QACpB,WAAW,IAAI;;;;;UAMF,sBAAsB,mBAAmB;EACxD,KAAK,WAAW,WAAW,aACzB,IAAI,OACD,MAAM,YAAY,YAAY;;;;KClBzB;UAEK;EACf;;UAGe;EACf;EACA;;;;cCNW,kBAAkB,mBAAmB,sBACrC,sBAAsB;mBAGd;mBACA;mBACA;mBACA;mBACA;EAJA,YAAA,OAAO,OACP,kBAAkB,kBAClB,QAAO,aACP,cAAa,aACb,QAAO;;;;;;;EASnB,KAAK,WAAW,WAAW,aAChC,IAAI,OACD,MAAM,YAAY,YAAY;;;;;;;;EAiD5B,GAAG,0BAA0B,kBAAkB;;;;;;;;EAyB/C,GAAG,0BAA0B,kBAAkB;;;;;;;;EAW/C,OAAO,0BAA0B,kBAAkB;;;;;;;;EAyBnD,SAAS,oBAAoB,kBAAkB;;;;;;;;;MAmB3C,YAAY,kBAAkB;;;;cC7J9B,QAAQ,mBAAmB,YAAY;WAKvC,OAAO;WAEP;mBANM;mBACA;EAGN,YAAA,OAAO,OAChB,OAAO,gBACE;;;;;;;EAcJ,KAAK,WAAW,WAAW,aAChC,IAAI,OACD,MAAM,YAAY,YAAY;;;;;;;EAc5B,GAAG,cAAc,QAAQ;;;;;;;;EAWzB,GAAG,0BAA0B,kBAAkB;;;;;;;;EAW/C,GAAG,0BAA0B,kBAAkB;;;;;;;;EAW/C,OAAO,0BAA0B,kBAAkB;;;;;;;;;MAY/C,YAAY,kBAAkB;;;;;;;;EAWlC,SAAS,oBAAoB,kBAAkB"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/typed-events.ts","../src/types.ts","../src/operator.ts","../src/emitter.ts"],"mappings":";;;;;;UAIiB;GAEd;;;;;;UAOc;GACd,oBAAoB;;;;;KAMX,WAAW,YAAY,mBAAmB;;KAG1C,YACV,YAAY,WACZ,WAAW,WAAW,QACpB,WAAW,IAAI;;;;;UAMF,sBAAsB,mBAAmB;EACxD,KAAK,WAAW,WAAW,aACzB,IAAI,OACD,MAAM,YAAY,YAAY;;;;KClBzB;UAEK;EACf;;UAGe;EACf;EACA;;;;cCNW,kBAAkB,mBAAmB,sBACrC,sBAAsB;mBAGd;mBACA;mBACA;mBACA;mBACA;EALnB,YACmB,OAAO,OACP,kBAAkB,kBAClB,QAAO,aACP,cAAa,aACb,QAAO;;;;;;;EASnB,KAAK,WAAW,WAAW,aAChC,IAAI,OACD,MAAM,YAAY,YAAY;;;;;;;;EAiD5B,GAAG,0BAA0B,kBAAkB;;;;;;;;EAyB/C,GAAG,0BAA0B,kBAAkB;;;;;;;;EAW/C,OAAO,0BAA0B,kBAAkB;;;;;;;;EAyBnD,SAAS,oBAAoB,kBAAkB;;;;;;;;;MAmB3C,YAAY,kBAAkB;;;;qBC7J9B,QAAQ,mBAAmB,YAAY;WAKvC,OAAO;WAEP;mBANM;mBACA;EAEjB,YACW,OAAO,OAChB,OAAO,gBACE;;;;;;;EAcJ,KAAK,WAAW,WAAW,aAChC,IAAI,OACD,MAAM,YAAY,YAAY;;;;;;;EAc5B,GAAG,cAAc,QAAQ;;;;;;;;EAWzB,GAAG,0BAA0B,kBAAkB;;;;;;;;EAW/C,GAAG,0BAA0B,kBAAkB;;;;;;;;EAW/C,OAAO,0BAA0B,kBAAkB;;;;;;;;;MAY/C,YAAY,kBAAkB;;;;;;;;EAWlC,SAAS,oBAAoB,kBAAkB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/socket.io-gcp-pubsub-emitter",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -20,27 +20,32 @@
20
20
  "lint": "biome check .",
21
21
  "test": "vitest run --passWithNoTests --coverage",
22
22
  "test:e2e": "vitest --config vitest.config.e2e.ts --run",
23
- "typecheck": "vitest --typecheck.only --passWithNoTests"
23
+ "typecheck": "vitest --typecheck.only --passWithNoTests --run"
24
24
  },
25
25
  "devDependencies": {
26
- "@socket.io/gcp-pubsub-adapter": "0.1.0",
26
+ "@biomejs/biome": "2.5.14",
27
+ "@sebspark/tsconfig": "*",
28
+ "@socket.io/gcp-pubsub-adapter": "0.1.1",
27
29
  "@testcontainers/gcloud": "12.1.0",
28
30
  "find-free-ports": "3.1.1",
29
31
  "socket.io": "4.8.3",
30
- "socket.io-client": "4.8.3"
32
+ "socket.io-client": "4.8.3",
33
+ "typescript": "7.0.2",
34
+ "vite": "8.3.0",
35
+ "vitest": "5.0.1"
31
36
  },
32
37
  "dependencies": {
33
- "@google-cloud/pubsub": "6.0.0",
38
+ "@google-cloud/pubsub": "6.1.0",
34
39
  "@msgpack/msgpack": "3.1.3",
35
40
  "socket.io-adapter": "2.5.8",
36
- "uuid": "14.0.1"
41
+ "uuid": "14.0.2"
37
42
  },
38
43
  "resolutions": {
39
- "protobufjs": "8.6.5",
44
+ "protobufjs": "8.8.0",
40
45
  "socket.io-parser": "4.2.7"
41
46
  },
42
47
  "repository": {
43
48
  "type": "git",
44
49
  "url": "https://github.com/seb-oss/Spark-packages.git"
45
50
  }
46
- }
51
+ }