Files

Return to Package Diff Home.
Brought to you by Intrinsic.

Package Diff: express @ 4.17.0 .. 4.17.1

History.md

@@ -1,3 +1,8 @@
+4.17.1 / 2019-05-25
+===================
+
+ * Revert "Improve error message for `null`/`undefined` to `res.status`"
+
4.17.0 / 2019-05-16
===================

lib/response.js

@@ -64,10 +64,6 @@
*/
res.status = function status(code) {
- if (code === undefined || code === null) {
- throw new TypeError('code argument is required to res.status')
- }
-
this.statusCode = code;
return this;
};

package.json

@@ -1,7 +1,7 @@
{
"name": "express",
"description": "Fast, unopinionated, minimalist web framework",
- "version": "4.17.0",
+ "version": "4.17.1",
"author": "TJ Holowaychuk <tj@vision-media.ca>",
"contributors": [
"Aaron Heckmann <aaron.heckmann+github@gmail.com>",