test(metrics): read the content-type as string | string[] #15

Merged
chrnx merged 1 commits from test/core-rc1-header-arrays into develop 2026-10-30 15:55:12 +00:00
Owner

Pre-check for core RC.1 (CARD-18 T7 / CARD-11). I ran the plugin suites against a tarball of the core freeze commit (fea87b3):

  • test: 60/60 passed.
  • test:deno and test:bun: passed.
  • typecheck: one error. packages/metrics/test/metrics.test.ts:91 reads headers['content-type'] as a string, but core RC.1 widens header values to string | string[]. That widening is documented as Breaking in core #113.

The fix narrows the value with String(), which typechecks against both 26.9.0-beta.2 and the candidate. Only test code changes; plugin source is untouched.

The official run will happen against the staged RC.1 (Verdaccio stg) after the tag.

Pre-check for core RC.1 (CARD-18 T7 / CARD-11). I ran the plugin suites against a tarball of the core freeze commit (`fea87b3`): - `test`: 60/60 passed. - `test:deno` and `test:bun`: passed. - `typecheck`: one error. `packages/metrics/test/metrics.test.ts:91` reads `headers['content-type']` as a `string`, but core RC.1 widens header values to `string | string[]`. That widening is documented as Breaking in core #113. The fix narrows the value with `String()`, which typechecks against both `26.9.0-beta.2` and the candidate. Only test code changes; plugin source is untouched. The official run will happen against the staged RC.1 (Verdaccio `stg`) after the tag.
chrnx added 1 commit 2026-10-30 15:24:40 +00:00
test(metrics): read the content-type as string | string[]
CI / dco (pull_request) Successful in 4s
CI / build (pull_request) Successful in 13s
CI / runtimes (bun) (pull_request) Successful in 10s
CI / runtimes (edge) (pull_request) Successful in 7s
CI / runtimes (deno) (pull_request) Successful in 10s
29b2fa0483
Core RC.1 widens response header values to string | string[] (core
#113, a documented Breaking change for readers). The metrics test read
the transformer's content-type as a string and fails to typecheck
against the RC.1 candidate. Narrowing with String() also typechecks on
26.9.0-beta.2. Plugin source is unaffected.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx merged commit cf7d30d8c2 into develop 2026-10-30 15:55:12 +00:00
Sign in to join this conversation.