Skip to content

feature/rework-package#239

Merged
TheDadi merged 15 commits intomasterfrom
feature/rework-package
Oct 23, 2025
Merged

feature/rework-package#239
TheDadi merged 15 commits intomasterfrom
feature/rework-package

Conversation

@TheDadi
Copy link
Copy Markdown
Contributor

@TheDadi TheDadi commented Mar 14, 2025

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

Checklist

  • I have ensured my pull request is not behind the main or master branch of the original repository.
  • I have rebased all commits where necessary so that reviewing this pull request can be done without having to merge it first.
  • I have written a commit message that passes commitlint linting.
  • I have ensured that my code changes pass linting tests.
  • I have ensured that my code changes pass unit tests.
  • I have described my pull request and the reasons for code changes along with context if necessary.

…`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 except `formidable` because of node-formidable/formidable#958
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
chore: introduce `pnpm` as package-manager

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

docs: updated README.md to reflect changes
docs: reworked examples to use `typescript`
@TheDadi TheDadi requested a review from jonathanong March 14, 2025 12:56
@TheDadi TheDadi force-pushed the feature/rework-package branch from 136d132 to ce5cef9 Compare March 14, 2025 17:06
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 14, 2025

Open in StackBlitz

npm i https://pkg.pr.new/koajs/koa-body@239

commit: fccc0e7

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 14, 2025

🦋 Changeset detected

Latest commit: 096913b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
koa-body Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@TheDadi TheDadi requested review from fengmk2 and removed request for jonathanong March 14, 2025 20:14
@TheDadi TheDadi removed the request for review from fengmk2 October 23, 2025 20:09
@TheDadi TheDadi merged commit 9fa993c into master Oct 23, 2025
4 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 23, 2025
@TheDadi TheDadi deleted the feature/rework-package branch October 23, 2025 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant