Major Changes
-
The
getFilenameFromUrlfunction is now asynchronous, returning a Promise that resolves to the object with the foundfilename(orundefinedif the file was not found) or throws an error if the URL cannot be processed. Additionally, the object contains theextraproperty withstats(file system stats) andoutputFileSystem(output file system where file was found) properties. (by @alexander-akait in #2284) -
Minimum supported
Node.jsversion is20.9.0. (by @alexander-akait in #2284) -
Minimum supported
webpackversion is5.101.0. (by @alexander-akait in #2284)
Minor Changes
-
Added support for plugin usage, useful when the middleware will be used as a webpack plugin (no stats output, no extra actions). (by @alexander-akait in #2284)
-
Added the
forwardErroroption to enable error forwarding to next middleware. (by @alexander-akait in #2284) -
Enable
cacheImmutableby default for immutable assets. (by @alexander-akait in #2284)
Patch Changes
-
Improved initial loading module time. (by @alexander-akait in #2284)
-
Removed outdated code and improved performance by avoiding extra loops. (by @alexander-akait in #2284)
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
7.4.5 (2025-09-24)
Bug Fixes
7.4.4 (2025-09-23)
Bug Fixes
7.4.3 (2025-09-05)
Bug Fixes
- do not call the next middleware for 304 responses (#2155) (c26a326)
- do not call the next middleware when request is finished or errored (#2156) (116c680)