Skip to content
Myr

update to fresh@2.0.0 (#5916)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fixes handling of If-Modified-Since in combination with If-None-Match

authored by Jon Church · committed by GitHub · parent accafc6 · Browse files · 4 files+24 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+24 added−3 removed

  • tests:+20 added−0 removed
  • other:+4 added−3 removed

4 files+24 added−3 removed

modified:lib/request.js+1 added-1 removed
445 unmodified lines
446});447448/**449 * Check if the request is fresh, aka450 * Last-Modified and/or the ETag450 * Last-Modified or the ETag451 * still match.452 *453 * @return {Boolean}454 * @public
61 unmodified lines
modified:test/req.fresh.js+20 added
modified:History.md+2 added-1 removed
1unreleased2=========================3* remove: 3* remove:4 - `path-is-absolute` dependency - use `path.isAbsolute` instead5* breaking:6 * `res.status()` accepts only integers, and input must be greater than 99 and less than 10007 * will throw a `RangeError: Invalid status code: ${code}. Status code must be greater than 99 and less than 1000.` for inputs outside this range
11 unmodified lines
19 - `application/javascript` => `text/javascript`20* deps: type-is@^2.0.021* deps: content-disposition@^1.0.022* deps: finalhandler@^2.0.023* deps: fresh@^2.0.024255.0.0-beta.3 / 2024-03-2526=========================27
3781 unmodified lines
modified:package.json+1 added-1 removed