next-api-middleware

Next.js API Middleware

MIT License

Downloads
25.4K
Stars
271
Committers
3

Bot releases are visible (Hide)

next-api-middleware - v3.0.0 Latest Release

Published by htunnicliff 9 months ago

What's Changed

  • Updated README with note about Pages vs App Router support.
  • Dropped support for Node 12 and 14.

Full Changelog: https://github.com/htunnicliff/next-api-middleware/compare/2.0.1...v3.0.0

next-api-middleware - v2.0.1

Published by htunnicliff over 2 years ago

Patches

  • Remove leftover debug types and docs: 942329e8a09aa2ce2c36a5f3eb568d0b4d6f764d
next-api-middleware - v2.0.0

Published by htunnicliff over 2 years ago

Major Changes

  • (Breaking) Replace main with exports in package.json: 130581f527395f7ce5d40502420bda3eece5d837
  • (Breaking) Move types and remove logger: 88a4c45beb53d64e4c7a111cf0729e677f667efa
  • (Breaking) Remove ExpressMiddleware and rename NextMiddleware to Middleware: db53184e1d67a0b6428e812af4e42106f5b0693f
  • Output CJS and ESM packages (via tsup): 46034163a6227c6c862f3b4aaf524ec159bf7d57

Minor Changes

  • Remove ecosystem tests: 3405f85575169c3bc0628a0467000cbd2de12f9d

Patches

  • Simply README badges: ffb4e0fab4ecc81e9ec108ce020403ac84820049
  • Fix Jest ESM compatibility: 807bb84f1364d8807dd9d0ff69b086183de5f22f
  • Switch from yarn to pnpm: 9b350033ae18471ba68f3f644b1cf83bd4188421
  • Replace Babel with SWC: c28640c48a8bac443743e20e8daacaff41779bbb
  • Ignore coverage on exports: 94e87bbfa786b73b6de1f21c6108ddb55b44c7ca
next-api-middleware - v2.0.0-canary.1

Published by htunnicliff over 2 years ago

Major Changes

  • Move types and remove logger: 88a4c45beb53d64e4c7a111cf0729e677f667efa
  • Switch to tsup for building and bundling: 46034163a6227c6c862f3b4aaf524ec159bf7d57
  • Export both CJS and ESM bundles

Patch Changes

  • (chore) Switch from yarn to pnpm: 9b350033ae18471ba68f3f644b1cf83bd4188421
  • (chore) Replace Babel with SWC: c28640c48a8bac443743e20e8daacaff41779bbb
next-api-middleware - v2.0.0-canary.0

Published by htunnicliff over 2 years ago

Major Changes

  • Replace main with exports in package.json: 130581f527395f7ce5d40502420bda3eece5d837
  • Configure TypeScript to use ES2020 modules: 65a78eb32d05690f1c679b646cda50142c5eda11
  • Add .js extension to import paths: fbdc0f09da29faf6e77c4ecb30e2f7186a91e4bd

Minor Changes

  • Fix Jest ESM compatibility: 807bb84f1364d8807dd9d0ff69b086183de5f22f
  • Add subpath imports: 8dc3ffda4a3344fe996f58fc95274073306160e8
  • Include minor version within Babel Node.js target: e56bf81fefa715c72f99b74135f1750de53cd913
next-api-middleware - v1.0.1

Published by htunnicliff about 3 years ago

Patches

  • Add GitHub repository to package.json: b8965f32df8228b1399e11cb1d0e97f330f9959d
next-api-middleware - v1.0.0

Published by htunnicliff about 3 years ago

Major Changes

  • Refactor to better handle synchronous middleware: b90289f
  • Rewrite executor and add tests: bc2f7ad
  • Add next as a peer dependency: 7fa9b80

Minor Changes

  • Add debug logging to executor: 42b4803
  • Rewrite documentation: 35463a0edf1f29c61c769e6efd708cca5b93f726
  • Separate functions into different files: 631339e

Patches

  • Finish switching to yarn: 6fb29c5
  • Enable incremental TypeScript compiler option: ad16daa
  • Refactor logging counter: 1111afbeed25a128071442ef60e4cf9a32ce5a7a
  • Improve async tests: 00dac9a9caa92a9de88ab437eb587d268def39ee
  • Update tsbuildinfo file: 762f942668136fd00c729eee306dfb5cf36f032f
  • Remove incremental tsconfig: 8439bf404781cba69cc385ca878f1aa317afb3cf
next-api-middleware - v1.0.0-canary.2

Published by htunnicliff over 3 years ago

Major (could be breaking)

  • Add next as a peer dependency: 7fa9b8024cfaea615466146ead44c8036520a133

Patches

  • Finish switching to yarn: 6fb29c534c4094fc5fa2712b2f9b04761b1c5353
  • Enable incremental TypeScript compiler option: ad16daa9f4a1160d124133ca87549c8a04ab55d3
next-api-middleware - v1.0.0-canary.1

Published by htunnicliff over 3 years ago

Minor Changes

  • Add debug logging to executor: 42b4803613845eb680048d091fab0326fac4535c
next-api-middleware - v1.0.0-canary.0

Published by htunnicliff over 3 years ago

Major Changes

  • Refactor to better handle synchronous middleware: b90289fceefef7c744a21ff89cc43086e135626c
  • Rewrite executor and add tests: bc2f7ad668aa6eae679c616155275996904e2285

Minor Changes

  • Separate functions into different files: 631339e50cc71e845b1092702f9071e93b93776e
next-api-middleware -

Published by htunnicliff over 3 years ago

Patches

  • Upgrade dev dependencies: b58b81a4679a4ba27199282ab8d49303459725f8
next-api-middleware - v0.7.0

Published by htunnicliff over 3 years ago

Minor Changes

  • Support express-style middleware: b1d538e

Patches

  • Chore: enable strict in tsconfig: 9f5924f
  • Update supported Node.js versions and tsconfig: 4b3e958
  • Add tests for compatibility with cors express middleware: be0eeb7
next-api-middleware - v0.7.0-canary.1

Published by htunnicliff over 3 years ago

Patches

  • Update supported Node.js versions and tsconfig: 4b3e958e1ea850da9f8f04395739de5d1dcd92f4
  • Add tests for compatibility with cors express middleware: be0eeb7d70330740fe3b564262ed0e733c64e013
next-api-middleware - v0.7.0-canary.0

Published by htunnicliff over 3 years ago

Minor Changes

  • Initial refactor to hopefully support express-style middleware: b1d538e82c28db4c43b14959f82672736db16030

Patches

  • Chore: enable strict in tsconfig: 9f5924fdf290c30b3933b3ed6685a9435e7d66e7
next-api-middleware -

Published by htunnicliff almost 4 years ago

Minor Changes

  • Add missing type to curryMiddlewareChoices, update tests: 17b5b2e70dc102cd19a38c1f475ada2ce578541f
next-api-middleware -

Published by htunnicliff almost 4 years ago

Patches

  • Fix incomplete handling of middleware groups with label, update tests: 29ac0b824bcbe8c0717b9ab74c06eadca1917068
next-api-middleware -

Published by htunnicliff almost 4 years ago

Patches

  • Add code coverage: 95e3f1e7ee1128bc0370d031d09a216fb84f2148
  • Add coverage badge: 5d25a66733eb3166de35fe3dff9987774bebf6d1
  • Fix license link: f84d7b4e68529159f6f53821f101c69647737050
  • Create codeql-analysis.yml: 2e16bf2d785a11df2f10713ce6b3181dfee269a7
  • Remove release workflow: 5d9762e8bd26e42e3f16fa3fcc18b672a281da26
  • Add codecov action: cda9a75150af9eae4d7ee11471c8a99e1ac4f7aa
  • Fix readme badges: 4d1195f9674f084cb60edc11f9bac21db5da0b21
  • More updates: eff59a094b4491946ab2d2121eb05f23cb5b2327
next-api-middleware -

Published by htunnicliff almost 4 years ago

Minor Changes

  • Change named to label, add README description: dee8db737fea898b32bb63a617fc1d97d475a6f1
next-api-middleware -

Published by htunnicliff almost 4 years ago

Patches

  • Fix release workflow: a5e50948e96ecded7281c10abc1e8a3db976dd26
next-api-middleware -

Published by htunnicliff almost 4 years ago

Minor Changes

  • Update package.json license, remove old AGPL license: 4d65789b56a7c730514ed1dcdb54be614d65cee9
  • Use node 12.x: 911b630058a3f00e6f0db75493388a6ffbf560a1

Patches

  • Update GitHub workflows: 8f41b26e5388ed7ff18dc5cdcd592c8ab4160b61
  • Update build configuration: e76ee896c63d1954a8557277157ae439b5d891d1