Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Release 2.0.0beta3

  • Loading branch information...
commit 1536d73d1bf517e5ab72b5b12addecbfb088e787 1 parent 55143a9
@tj tj authored
View
18 History.md
@@ -1,4 +1,22 @@
+2.0.0beta3 / 2011-03-09
+==================
+
+ * Added support for `res.contentType()` literal
+ The original `res.contentType('.json')`,
+ `res.contentType('application/json')`, and `res.contentType('json')`
+ will work now.
+ * Added `res.render()` status option support back
+ * Added charset option for `res.render()`
+ * Added `.charset` support (via connect 1.0.4)
+ * Added view resolution hints when in development and a lookup fails
+ * Added layout lookup support relative to the page view.
+ For example while rendering `./views/user/index.jade` if you create
+ `./views/user/layout.jade` it will be used in favour of the root layout.
+ * Fixed `res.redirect()`. RFC states absolute url [reported by unlink]
+ * Fixed; default `res.send()` string charset to utf8
+ * Removed `Partial` constructor (not currently used)
+
2.0.0beta2 / 2011-03-07
==================
View
2  bin/express
@@ -11,7 +11,7 @@ var fs = require('fs')
* Framework version.
*/
-var version = '2.0.0beta2';
+var version = '2.0.0beta3';
/**
* Add session support.
View
4 docs/guide.md
@@ -783,6 +783,10 @@ A literal _Content-Type_ works as well:
res.contentType('application/json');
+Or simply the extension without leading `.`:
+
+ res.contentType('json');
+
### res.attachment([filename])
Sets the _Content-Disposition_ response header to "attachment", with optional _filename_.
View
2  lib/express.js
@@ -27,7 +27,7 @@ var exports = module.exports = connect.middleware;
* Framework version.
*/
-exports.version = '2.0.0beta2';
+exports.version = '2.0.0beta3';
/**
* Shortcut for `new Server(...)`.
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "express",
"description": "Sinatra inspired web development framework",
- "version": "2.0.0beta2",
+ "version": "2.0.0beta3",
"author": "TJ Holowaychuk <tj@vision-media.ca>",
"contributors": [
{ "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" },
View
2  test/response.test.js
@@ -30,7 +30,7 @@ module.exports = {
app.get('/text', function(req, res){
res.header('X-Foo', 'bar');
- res.contentType('.txt');
+ res.contentType('txt');
res.send('wahoo');
});
Please sign in to comment.
Something went wrong with that request. Please try again.