Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: expressjs/express
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4.20.0
Choose a base ref
...
head repository: expressjs/express
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4.21.0
Choose a head ref
  • 5 commits
  • 3 files changed
  • 3 contributors

Commits on Sep 11, 2024

  1. Deprecate "back" magic string in redirects (#5935)

    blakeembrey authored Sep 11, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    77ada90 View commit details
  2. fix(deps): finalhandler@1.3.1

    wesleytodd committed Sep 11, 2024
    Copy the full SHA
    40d2d8f View commit details
  3. fix(deps): serve-static@1.16.2 (#5951)

    wesleytodd authored Sep 11, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7d36477 View commit details
  4. fix(deps): qs@6.13.0 (#5946)

    Co-authored-by: Wes Todd <wes@wesleytodd.com>
    agadzinski93 and wesleytodd authored Sep 11, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1bcde96 View commit details
  5. 4.21.0

    wesleytodd committed Sep 11, 2024
    Copy the full SHA
    7e562c6 View commit details
Showing with 14 additions and 4 deletions.
  1. +9 −0 History.md
  2. +1 −0 lib/response.js
  3. +4 −4 package.json
9 changes: 9 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
4.21.0 / 2024-09-11
==========

* Deprecate `res.location("back")` and `res.redirect("back")` magic string
* deps: serve-static@1.16.2
* includes send@0.19.0
* deps: finalhandler@1.3.1
* deps: qs@6.13.0

4.20.0 / 2024-09-10
==========
* deps: serve-static@0.16.0
1 change: 1 addition & 0 deletions lib/response.js
Original file line number Diff line number Diff line change
@@ -916,6 +916,7 @@ res.location = function location(url) {

// "back" is an alias for the referrer
if (url === 'back') {
deprecate('res.location("back"): use res.location(req.get("Referrer") || "/") and refer to https://dub.sh/security-redirect for best practices');
loc = this.req.get('Referrer') || '/';
} else {
loc = String(url);
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "express",
"description": "Fast, unopinionated, minimalist web framework",
"version": "4.20.0",
"version": "4.21.0",
"author": "TJ Holowaychuk <tj@vision-media.ca>",
"contributors": [
"Aaron Heckmann <aaron.heckmann+github@gmail.com>",
@@ -40,7 +40,7 @@
"encodeurl": "~2.0.0",
"escape-html": "~1.0.3",
"etag": "~1.8.1",
"finalhandler": "1.2.0",
"finalhandler": "1.3.1",
"fresh": "0.5.2",
"http-errors": "2.0.0",
"merge-descriptors": "1.0.3",
@@ -49,11 +49,11 @@
"parseurl": "~1.3.3",
"path-to-regexp": "0.1.10",
"proxy-addr": "~2.0.7",
"qs": "6.11.0",
"qs": "6.13.0",
"range-parser": "~1.2.1",
"safe-buffer": "5.2.1",
"send": "0.19.0",
"serve-static": "1.16.0",
"serve-static": "1.16.2",
"setprototypeof": "1.2.0",
"statuses": "2.0.1",
"type-is": "~1.6.18",