Skip to content

chore(deps): update dependency koa-body to v8 - #536

Open
renovate[bot] wants to merge 1 commit into
devfrom
renovate/koa-body-8.x
Open

chore(deps): update dependency koa-body to v8#536
renovate[bot] wants to merge 1 commit into
devfrom
renovate/koa-body-8.x

Conversation

@renovate

@renovate renovate Bot commented Sep 3, 2026

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
koa-body ^4.1.0^8.0.1 age confidence

Release Notes

koajs/koa-body (koa-body)

v8.0.1

Compare Source

Patch Changes
  • #​260 6657991 Thanks @​TheDadi! - Update dependencies (zod, type-fest, @types/koa) and toolchain: CI now uses pnpm/setup and changesets/action v2, Node 24.20.0, pnpm 12, TypeScript 7, Biome 2.5.

v8.0.0

Compare Source

Major Changes
  • f858724 Thanks @​TheDadi! - Drop support for Node.js 18 and 20, both of which are past end-of-life (Node 18 EOL April 2025, Node 20 EOL April 2026).

    The minimum supported version is now Node.js 22. CI is tested against Node 22 (Maintenance LTS), 24 (Active LTS), and 26 (Current).

    If you are on Node 18 or 20, upgrade to Node 22+ before updating koa-body. No source-level API changes accompany this bump — it reflects the supported runtime floor only.

Minor Changes
  • 9b3b5b6 Thanks @​TheDadi! - Add configurable body-type matchers: jsonTypes, urlencodedTypes, textTypes, and multipartTypes.

    These options let callers customize which Content-Type values are parsed as which body kind, without patching the middleware internals. Each accepts an array of types passed directly to Koa's ctx.is(...), so the standard mime patterns (e.g. urlencoded, multipart, text/*, application/vnd.custom+json) all work.

    Defaults preserve the previous behavior:

    • jsonTypes: application/json, application/json-patch+json, application/vnd.api+json, application/csp-report, application/reports+json
    • urlencodedTypes: urlencoded
    • textTypes: text/*
    • multipartTypes: multipart

    Example — parse a vendor JSON type and a custom multipart type:

    app.use(
      koaBody({
        jsonTypes: ["application/json", "application/vnd.custom+json"],
        multipart: true,
        multipartTypes: ["multipart", "application/x-custom-multipart"],
      })
    );

v7.0.1

Compare Source

Patch Changes

v7.0.0

Compare Source

Major Changes
  • #​239 e59b8ce Thanks @​TheDadi! - chore: introduce @biomejs/biome as linter and formatter instead of prettier
    chore: introduce @changesets/cli to automate publish and changelog
    chore: introduce GitHub actions for publishing to npm
    chore: introduce GitHub actions for preview publish using pkg-pr-new
    chore: replace mocha with node:test
    chore: updated all dependencies to latest
    chore: updated dev dependency koa-router to use @koa/router instead
    chore: introduce tshy and @arethetypeswrong/cli to have esm and commonjs exports and verification that types and exports are compatible with different module resolutions (fixes: #​233)
    chore: introduce pnpm as package-manager

    refactor: use ctx.request.rawBody instead of ctx.request.body[symbolUnparsed] for unparsed body if includeUnparsed is set
    refactor: ctx.request.rawBody is also set on content-type text/* if includeUnparsed is set
    refactor: if given method is not in parsedMethods do not patch koa and node with empty object anymore (fixes: #​238)
    refactor: changed type of ctx.req.body and ctx.request.body from any to { [key: string]: unknown } | string

    feat: allow to override formidable onPart see https://github.com/node-formidable/formidable#formonpart (fixes: #​172)

    docs: updated README.md to reflect changes
    docs: reworked examples to use typescript

v6.0.1

Compare Source

v6.0.0

Compare Source

  • rewrite in TypeScript (thanks @​TheDadi)
  • removed the deprecated strict option
  • add "application/reports+json" to allowed types (#​204)
  • test against Node.js 14+

v5.0.0

Compare Source

Mistakenly republished v4.2.0. See #​207.

v4.2.0

Compare Source

  • support all text content types (#​179)
  • adds TypeScript integration testing (#​177)
  • removes testing against EOL Node.js verions

v4.1.3

Compare Source

Reverted changes introduced in 4.1.2. Now 4.1.3 is effectively the same as 4.1.1.

v4.1.2

Compare Source

Bad TypeScript definition file change (#​173). Do not use this version.

v4.1.1

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/koa-body-8.x branch from ff85ed2 to c51224b Compare September 7, 2026 06:38
@renovate
renovate Bot force-pushed the renovate/koa-body-8.x branch from c51224b to 54a1843 Compare September 10, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants