Skip to content
Myr

refactor: replace 'path-is-absolute' dep with node:path isAbsolute method (#5830)

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

* refactor: replace 'path-is-absolute' dep with node:path isAbsolute method * docs: add path-is-absolute dep removal to History.md

authored by Carlos Serrano · committed by GitHub · parent 41c054c · Browse files · 3 files+3 added−2 removed
This commit

State

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

Diff stats

3 files+3 added−2 removed

  • other:+3 added−2 removed

3 files+3 added−2 removed

modified:lib/response.js+1 added-1 removed
19 unmodified lines
20var http = require('http');21var onFinished = require('on-finished');22var mime = require('mime-types')23var path = require('path');24var pathIsAbsolute = require('path-is-absolute');24var pathIsAbsolute = require('path').isAbsolute;25var statuses = require('statuses')26var merge = require('utils-merge');27var sign = require('cookie-signature').sign;28var normalizeType = require('./utils').normalizeType;
1026 unmodified lines
modified:History.md+2 added
1unreleased2=========================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 range8 * will throw a `TypeError: Invalid status code: ${code}. Status code must be an integer.` for non integer inputs
3789 unmodified lines
modified:package.json-1 removed