@sebspark/test-iap 1.0.25 → 1.0.27
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 +247 -0
- package/dist/index.d.mts +4 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/start.d.mts +1 -1
- package/package.json +13 -8
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# @sebspark/test-iap
|
|
2
|
+
|
|
3
|
+
## 1.0.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 66ac832: * Upgraded to TypeScript 7
|
|
8
|
+
- Replaced tsup with tsdown for package builds
|
|
9
|
+
- Fixed cli-tester stdout parsing, resolving flaky e2e tests across the repo
|
|
10
|
+
- Patched vulnerable transitive dependencies (uuid, socket.io-parser, and others)
|
|
11
|
+
|
|
12
|
+
## 1.0.26
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- eefb531: Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 1.0.25
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 5e9fc45: Bump dependencies. Security fixes:
|
|
23
|
+
|
|
24
|
+
- **form-data** 2.5.6 / 4.0.6 — CRLF injection via unescaped multipart field names and filenames (High)
|
|
25
|
+
- **vite** 8.1.2 — `server.fs.deny` bypass on Windows alternate paths; NTLMv2 hash disclosure via launch-editor (High/Moderate)
|
|
26
|
+
- **ws** 8.21.0 — Memory exhaustion DoS from tiny fragments; uninitialized memory disclosure (High/Moderate)
|
|
27
|
+
- **undici** 8.5.0 — Multiple DoS and information disclosure CVEs (High/Moderate/Low)
|
|
28
|
+
- **tar** 7.5.19 — PAX size override causes tar parser differential / file smuggling (Moderate)
|
|
29
|
+
- **qs** 6.15.3 — DoS via `qs.stringify` crash on null/undefined entries (Moderate)
|
|
30
|
+
- **@opentelemetry/core** 2.8.0 — Unbounded memory allocation in W3C Baggage propagation (Moderate)
|
|
31
|
+
- **@babel/core** 7.29.7 — Arbitrary file read via sourceMappingURL comment (Low)
|
|
32
|
+
- **protobufjs** 8.6.5
|
|
33
|
+
|
|
34
|
+
Other dependency updates:
|
|
35
|
+
|
|
36
|
+
- `@google-cloud/spanner` 8.8.0
|
|
37
|
+
- `@testcontainers/*` 12.0.4
|
|
38
|
+
- `google-auth-library` 10.9.0
|
|
39
|
+
- `mockserver-client` 7.3.0
|
|
40
|
+
- `nock` 14.0.16
|
|
41
|
+
- `prettier` 3.9.4
|
|
42
|
+
- `redis` 6.1.0
|
|
43
|
+
- `webpack` 5.108.3 / `webpack-cli` 7.1.0
|
|
44
|
+
|
|
45
|
+
## 1.0.24
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- 3111112: Openapi client args are now PartiallySerialized
|
|
50
|
+
|
|
51
|
+
Also: dependency updates
|
|
52
|
+
|
|
53
|
+
## 1.0.23
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- e0eda57: Updated dependencies
|
|
58
|
+
|
|
59
|
+
## 1.0.22
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- 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.
|
|
64
|
+
|
|
65
|
+
Also update supporting dependencies across the affected packages.
|
|
66
|
+
|
|
67
|
+
## 1.0.21
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- a6c27f3: Updated dependencies
|
|
72
|
+
|
|
73
|
+
## 1.0.20
|
|
74
|
+
|
|
75
|
+
### Patch Changes
|
|
76
|
+
|
|
77
|
+
- 264e665: Upgrade `redis` to v6 in `@sebspark/promise-cache` and bump minor dependencies across the workspace.
|
|
78
|
+
|
|
79
|
+
**Breaking change (`@sebspark/promise-cache`):**
|
|
80
|
+
`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.
|
|
81
|
+
|
|
82
|
+
**Dependency updates across packages:**
|
|
83
|
+
- `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)
|
|
84
|
+
- `redis`: `5.12.1` → `6.0.0` (otel, promise-cache)
|
|
85
|
+
- `tsdown`: `0.22.0` → `0.22.1` (tsconfig)
|
|
86
|
+
- `turbo` / `@turbo/gen`: `2.9.15` → `2.9.16`
|
|
87
|
+
- `webpack-cli`: `7.0.2` → `7.0.3` (avsc-isometric)
|
|
88
|
+
|
|
89
|
+
**Test fix (`@sebspark/promise-cache`):**
|
|
90
|
+
Pinned Redis container image tag to `redis:8.8-alpine` (was `redis:8-alpine`) to prevent floating-tag drift in e2e tests.
|
|
91
|
+
|
|
92
|
+
## 1.0.19
|
|
93
|
+
|
|
94
|
+
### Patch Changes
|
|
95
|
+
|
|
96
|
+
- 242eb33: This release primarily updates dependencies across the listed packages, including:
|
|
97
|
+
- Testcontainers v12 upgrades in packages that run integration/e2e tests.
|
|
98
|
+
- Vitest/Biome/Turbo and related tooling updates.
|
|
99
|
+
- Runtime dependency updates such as `date-fns`, `@inquirer/*`, `socket.io-adapter`, and `ws`.
|
|
100
|
+
|
|
101
|
+
It also includes two targeted fixes:
|
|
102
|
+
- `@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.
|
|
103
|
+
- `@sebspark/health-check`: updated the e2e readiness payload assertions and type-only import usage to match current runtime output and TypeScript expectations.
|
|
104
|
+
|
|
105
|
+
## 1.0.18
|
|
106
|
+
|
|
107
|
+
### Patch Changes
|
|
108
|
+
|
|
109
|
+
- 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`.
|
|
110
|
+
|
|
111
|
+
## 1.0.17
|
|
112
|
+
|
|
113
|
+
### Patch Changes
|
|
114
|
+
|
|
115
|
+
- 7d8cc98: Dependabot dependency updates
|
|
116
|
+
|
|
117
|
+
## 1.0.16
|
|
118
|
+
|
|
119
|
+
### Patch Changes
|
|
120
|
+
|
|
121
|
+
- e9a7a28: Updated dependencies
|
|
122
|
+
|
|
123
|
+
## 1.0.15
|
|
124
|
+
|
|
125
|
+
### Patch Changes
|
|
126
|
+
|
|
127
|
+
- 4e12590: Updated dependencies
|
|
128
|
+
|
|
129
|
+
## 1.0.14
|
|
130
|
+
|
|
131
|
+
### Patch Changes
|
|
132
|
+
|
|
133
|
+
- 67871de: Otel now warns on stdout. Also dependency updates.
|
|
134
|
+
|
|
135
|
+
## 1.0.13
|
|
136
|
+
|
|
137
|
+
### Patch Changes
|
|
138
|
+
|
|
139
|
+
- 6d72f97: Updated dependencies
|
|
140
|
+
|
|
141
|
+
## 1.0.12
|
|
142
|
+
|
|
143
|
+
### Patch Changes
|
|
144
|
+
|
|
145
|
+
- 736a0b3: No bundling of packages in packages
|
|
146
|
+
|
|
147
|
+
## 1.0.11
|
|
148
|
+
|
|
149
|
+
### Patch Changes
|
|
150
|
+
|
|
151
|
+
- 2241dc7: Updated dependencies
|
|
152
|
+
|
|
153
|
+
## 1.0.10
|
|
154
|
+
|
|
155
|
+
### Patch Changes
|
|
156
|
+
|
|
157
|
+
- 35ec1a0: Updated dependencies
|
|
158
|
+
|
|
159
|
+
## 1.0.8
|
|
160
|
+
|
|
161
|
+
### Patch Changes
|
|
162
|
+
|
|
163
|
+
- 48ab717: Updated dependencies
|
|
164
|
+
|
|
165
|
+
## 1.0.7
|
|
166
|
+
|
|
167
|
+
### Patch Changes
|
|
168
|
+
|
|
169
|
+
- b40eb86: Updated dependencies
|
|
170
|
+
|
|
171
|
+
## 1.0.6
|
|
172
|
+
|
|
173
|
+
### Patch Changes
|
|
174
|
+
|
|
175
|
+
- e0cb5ee: Updated build from tsup to tsdown
|
|
176
|
+
|
|
177
|
+
## 1.0.5
|
|
178
|
+
|
|
179
|
+
### Patch Changes
|
|
180
|
+
|
|
181
|
+
- cc28876: Updated dependencies
|
|
182
|
+
|
|
183
|
+
## 1.0.4
|
|
184
|
+
|
|
185
|
+
### Patch Changes
|
|
186
|
+
|
|
187
|
+
- 7df8217: Updated dependencies
|
|
188
|
+
|
|
189
|
+
## 1.0.3
|
|
190
|
+
|
|
191
|
+
### Patch Changes
|
|
192
|
+
|
|
193
|
+
- 4b210c2: Standardized on a common build script
|
|
194
|
+
|
|
195
|
+
## 1.0.2
|
|
196
|
+
|
|
197
|
+
### Patch Changes
|
|
198
|
+
|
|
199
|
+
- 7e5c2e9: Switched to new tsconfig with moduleResolution=bundler
|
|
200
|
+
|
|
201
|
+
## 1.0.1
|
|
202
|
+
|
|
203
|
+
### Patch Changes
|
|
204
|
+
|
|
205
|
+
- d801e1e: Updated dependencies and fixed some exports
|
|
206
|
+
|
|
207
|
+
## 1.0.0
|
|
208
|
+
|
|
209
|
+
### Major Changes
|
|
210
|
+
|
|
211
|
+
- 0864ec2: ESM only. Minimum node version 22
|
|
212
|
+
|
|
213
|
+
## 0.1.5
|
|
214
|
+
|
|
215
|
+
### Patch Changes
|
|
216
|
+
|
|
217
|
+
- 3a40e49: Cleaned up dependencies
|
|
218
|
+
|
|
219
|
+
## 0.1.4
|
|
220
|
+
|
|
221
|
+
### Patch Changes
|
|
222
|
+
|
|
223
|
+
- 604c94a: Updated dependencies
|
|
224
|
+
|
|
225
|
+
## 0.1.3
|
|
226
|
+
|
|
227
|
+
### Patch Changes
|
|
228
|
+
|
|
229
|
+
- 29b9b20: Updated dependencies
|
|
230
|
+
|
|
231
|
+
## 0.1.2
|
|
232
|
+
|
|
233
|
+
### Patch Changes
|
|
234
|
+
|
|
235
|
+
- 5c6e183: Updated dependencies
|
|
236
|
+
|
|
237
|
+
## 0.1.1
|
|
238
|
+
|
|
239
|
+
### Patch Changes
|
|
240
|
+
|
|
241
|
+
- 9268050: Fixed documentation
|
|
242
|
+
|
|
243
|
+
## 0.1.0
|
|
244
|
+
|
|
245
|
+
### Minor Changes
|
|
246
|
+
|
|
247
|
+
- 3f1cd1a: A test IAP for e2e testing
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import http from "node:http";
|
|
2
2
|
import { AbstractStartedContainer, StartedNetwork, StartedTestContainer } from "testcontainers";
|
|
3
|
-
|
|
4
3
|
//#region src/types.d.ts
|
|
5
4
|
type Mode = 'local' | 'downstream';
|
|
6
5
|
interface ProxyConfig {
|
|
@@ -10,10 +9,10 @@ interface ProxyConfig {
|
|
|
10
9
|
}
|
|
11
10
|
//#endregion
|
|
12
11
|
//#region src/server.d.ts
|
|
13
|
-
declare const createProxyServer: (config: ProxyConfig) => http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>;
|
|
12
|
+
export declare const createProxyServer: (config: ProxyConfig) => http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>;
|
|
14
13
|
//#endregion
|
|
15
14
|
//#region src/test-iap-container.d.ts
|
|
16
|
-
declare class TestIapContainer {
|
|
15
|
+
export declare class TestIapContainer {
|
|
17
16
|
private baseImage;
|
|
18
17
|
private port;
|
|
19
18
|
private target?;
|
|
@@ -28,11 +27,11 @@ declare class TestIapContainer {
|
|
|
28
27
|
withNetwork(network: StartedNetwork): this;
|
|
29
28
|
start(): Promise<StartedTestIapContainer>;
|
|
30
29
|
}
|
|
31
|
-
declare class StartedTestIapContainer extends AbstractStartedContainer {
|
|
30
|
+
export declare class StartedTestIapContainer extends AbstractStartedContainer {
|
|
32
31
|
private readonly internalPort;
|
|
33
32
|
constructor(started: StartedTestContainer, internalPort: number);
|
|
34
33
|
getEndpoint(): string;
|
|
35
34
|
}
|
|
36
35
|
//#endregion
|
|
37
|
-
export {
|
|
36
|
+
export type { Mode, ProxyConfig };
|
|
38
37
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types.ts","../src/server.ts","../src/test-iap-container.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types.ts","../src/server.ts","../src/test-iap-container.ts"],"mappings":";;;KAOY;UACK;EACf;EACA,OAAO;EACP;;;;qBCGW,oBAAiB,QAAY,gBAAW,KAAA,cAAA,KAAA,wBAAA,KAAA;;;qBCDxC;UACH;UACA;UACA;UACA;UACA;UACA;EAED,cAAc;EAId,SAAS;EAKT,WAAW;EAUX,SAAS,MAAM;EAKf,eAAe;EAUf,YAAY,SAAS;EAKf,SAAS,QAAQ;;qBAmEnB,gCAAgC;mBAGxB;EAFnB,YACE,SAAS,sBACQ;EAIZ"}
|
package/dist/start.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebspark/test-iap",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -21,22 +21,27 @@
|
|
|
21
21
|
"test": "vitest run --passWithNoTests --coverage",
|
|
22
22
|
"pretest:e2e": "yarn build",
|
|
23
23
|
"test:e2e": "vitest --config vitest.config.e2e.ts --run",
|
|
24
|
-
"typecheck": "vitest --typecheck.only --passWithNoTests"
|
|
24
|
+
"typecheck": "vitest --typecheck.only --passWithNoTests --run"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"jose": "6.2.
|
|
28
|
-
"testcontainers": "12.0
|
|
27
|
+
"jose": "6.2.12",
|
|
28
|
+
"testcontainers": "12.1.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
+
"@biomejs/biome": "2.5.12",
|
|
32
|
+
"@sebspark/tsconfig": "*",
|
|
31
33
|
"@types/ws": "8.18.1",
|
|
32
|
-
"nock": "14.0.
|
|
33
|
-
"
|
|
34
|
+
"nock": "14.0.17",
|
|
35
|
+
"typescript": "7.0.2",
|
|
36
|
+
"vite": "8.2.2",
|
|
37
|
+
"vitest": "5.0.0",
|
|
38
|
+
"ws": "8.21.3"
|
|
34
39
|
},
|
|
35
40
|
"resolutions": {
|
|
36
|
-
"protobufjs": "8.
|
|
41
|
+
"protobufjs": "8.8.0"
|
|
37
42
|
},
|
|
38
43
|
"repository": {
|
|
39
44
|
"type": "git",
|
|
40
45
|
"url": "https://github.com/seb-oss/Spark-packages.git"
|
|
41
46
|
}
|
|
42
|
-
}
|
|
47
|
+
}
|