diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6c5b941..ddd6306 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -8,6 +8,7 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
+ fail-fast: false
matrix:
name:
- Node.js 0.8
@@ -30,6 +31,14 @@ jobs:
- Node.js 15.x
- Node.js 16.x
- Node.js 17.x
+ - Node.js 18.x
+ - Node.js 19.x
+ - Node.js 20.x
+ - Node.js 21.x
+ - Node.js 22.x
+ - Node.js 23.x
+ - Node.js 24.x
+ - Node.js 25.x
include:
- name: Node.js 0.8
@@ -75,37 +84,64 @@ jobs:
- name: Node.js 8.x
node-version: "8.16"
- npm-i: mocha@7.2.0
+ npm-i: mocha@7.2.0 nyc@14.1.1 supertest@6.1.6
- name: Node.js 9.x
node-version: "9.11"
- npm-i: mocha@7.2.0
+ npm-i: mocha@7.2.0 nyc@14.1.1 supertest@6.1.6
- name: Node.js 10.x
node-version: "10.24"
- npm-i: mocha@8.4.0
+ npm-i: mocha@8.4.0 supertest@6.1.6
- name: Node.js 11.x
node-version: "11.15"
- npm-i: mocha@8.4.0
+ npm-i: mocha@8.4.0 supertest@6.1.6
- name: Node.js 12.x
node-version: "12.22"
+ npm-i: supertest@6.1.6
- name: Node.js 13.x
node-version: "13.14"
+ npm-i: supertest@6.1.6
- name: Node.js 14.x
node-version: "14.19"
- name: Node.js 15.x
node-version: "15.14"
+ npm-i: supertest@6.1.6
- name: Node.js 16.x
node-version: "16.14"
- name: Node.js 17.x
node-version: "17.7"
+
+ - name: Node.js 18.x
+ node-version: 18
+
+ - name: Node.js 19.x
+ node-version: 19
+
+ - name: Node.js 20.x
+ node-version: 20
+
+ - name: Node.js 21.x
+ node-version: 21
+
+ - name: Node.js 22.x
+ node-version: 22
+
+ - name: Node.js 23.x
+ node-version: 23
+
+ - name: Node.js 24.x
+ node-version: 24
+
+ - name: Node.js 25.x
+ node-version: 25
steps:
- uses: actions/checkout@v2
@@ -122,9 +158,6 @@ jobs:
fi
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
- - name: Configure npm
- run: npm config set shrinkwrap false
-
- name: Remove npm module(s) ${{ matrix.npm-rm }}
run: npm rm --silent --save-dev ${{ matrix.npm-rm }}
if: matrix.npm-rm != ''
diff --git a/.npmrc b/.npmrc
new file mode 100644
index 0000000..9cf9495
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1 @@
+package-lock=false
\ No newline at end of file
diff --git a/HISTORY.md b/HISTORY.md
index a739774..13789ba 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -1,3 +1,20 @@
+0.19.2 / 2025-12-15
+===================
+
+* deps: use tilde notation for dependencies
+* deps: http-errors@~2.0.1
+* deps: statuses@~2.0.2
+
+0.19.1 / 2024-10-09
+===================
+
+* deps: encodeurl@~2.0.0
+
+0.19.0 / 2024-09-10
+===================
+
+* Remove link renderization in html while redirecting
+
0.18.0 / 2022-03-23
===================
@@ -480,37 +497,37 @@
* update range-parser and fresh
-0.1.4 / 2013-08-11
+0.1.4 / 2013-08-11
==================
* update fresh
-0.1.3 / 2013-07-08
+0.1.3 / 2013-07-08
==================
* Revert "Fix fd leak"
-0.1.2 / 2013-07-03
+0.1.2 / 2013-07-03
==================
* Fix fd leak
-0.1.0 / 2012-08-25
+0.1.0 / 2012-08-25
==================
* add options parameter to send() that is passed to fs.createReadStream() [kanongil]
-0.0.4 / 2012-08-16
+0.0.4 / 2012-08-16
==================
* allow custom "Accept-Ranges" definition
-0.0.3 / 2012-07-16
+0.0.3 / 2012-07-16
==================
* fix normalization of the root directory. Closes #3
-0.0.2 / 2012-07-09
+0.0.2 / 2012-07-09
==================
* add passing of req explicitly for now (YUCK)
diff --git a/index.js b/index.js
index 89afd7e..768f8ca 100644
--- a/index.js
+++ b/index.js
@@ -482,8 +482,7 @@ SendStream.prototype.redirect = function redirect (path) {
}
var loc = encodeUrl(collapseLeadingSlashes(this.path + '/'))
- var doc = createHtmlDocument('Redirecting', 'Redirecting to ' +
- escapeHtml(loc) + '')
+ var doc = createHtmlDocument('Redirecting', 'Redirecting to ' + escapeHtml(loc))
// redirect
res.statusCode = 301
diff --git a/package.json b/package.json
index 7f269d5..2d2b805 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "send",
"description": "Better streaming static file server with Range and conditional-GET support",
- "version": "0.18.0",
+ "version": "0.19.2",
"author": "TJ Holowaychuk ",
"contributors": [
"Douglas Christopher Wilson ",
@@ -19,16 +19,16 @@
"debug": "2.6.9",
"depd": "2.0.0",
"destroy": "1.2.0",
- "encodeurl": "~1.0.2",
+ "encodeurl": "~2.0.0",
"escape-html": "~1.0.3",
"etag": "~1.8.1",
- "fresh": "0.5.2",
- "http-errors": "2.0.0",
+ "fresh": "~0.5.2",
+ "http-errors": "~2.0.1",
"mime": "1.6.0",
"ms": "2.1.3",
- "on-finished": "2.4.1",
+ "on-finished": "~2.4.1",
"range-parser": "~1.2.1",
- "statuses": "2.0.1"
+ "statuses": "~2.0.2"
},
"devDependencies": {
"after": "0.8.2",
diff --git a/test/send.js b/test/send.js
index d419f8f..7fa9dd7 100644
--- a/test/send.js
+++ b/test/send.js
@@ -358,7 +358,7 @@ describe('send(file).pipe(res)', function () {
.get('/pets')
.expect('Location', '/pets/')
.expect('Content-Type', /html/)
- .expect(301, />Redirecting to \/pets\/<\/a>, done)
+ .expect(301, />Redirecting to \/pets\/, done)
})
it('should respond with default Content-Security-Policy', function (done) {
@@ -386,7 +386,7 @@ describe('send(file).pipe(res)', function () {
.get('/snow')
.expect('Location', '/snow%20%E2%98%83/')
.expect('Content-Type', /html/)
- .expect(301, />Redirecting to \/snow%20%E2%98%83\/<\/a>, done)
+ .expect(301, />Redirecting to \/snow%20%E2%98%83\/, done)
})
})