From c464cecbd89aa6cfcfab5f6935b7935db9d661f8 Mon Sep 17 00:00:00 2001 From: Ulises Gascon Date: Sat, 13 Jun 2026 17:50:30 +0200 Subject: [PATCH] 2.3.0 --- HISTORY.md | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 8d708576..b973e21c 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,8 +1,11 @@ -unreleased +2.3.0 / 2026-06-15 ======================== * fix: use static exports instead of lazy getters to improve ESM compatibility * feat: add subpath exports for individual parsers +* fix: improve `limit` option validation (#698) + * Invalid `limit` values (e.g. unparseable strings or `NaN`) now throw instead of being silently ignored, which previously disabled size limit enforcement + * `null` and `undefined` fall back to the default 100kb limit * deps: * content-type@^2.0.0 * http-errors@^2.0.1 diff --git a/package.json b/package.json index c6a095bd..842cfbdb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "body-parser", "description": "Node.js body parsing middleware", - "version": "2.2.2", + "version": "2.3.0", "contributors": [ "Douglas Christopher Wilson ", "Jonathan Ong (http://jongleberry.com)"