Skip to content

Commit

Permalink
Release 2.0.0beta3
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 9, 2011
1 parent 55143a9 commit 1536d73
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 4 deletions.
18 changes: 18 additions & 0 deletions 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
==================

Expand Down
2 changes: 1 addition & 1 deletion bin/express
Expand Up @@ -11,7 +11,7 @@ var fs = require('fs')
* Framework version.
*/

var version = '2.0.0beta2';
var version = '2.0.0beta3';

/**
* Add session support.
Expand Down
4 changes: 4 additions & 0 deletions docs/guide.md
Expand Up @@ -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_.
Expand Down
2 changes: 1 addition & 1 deletion lib/express.js
Expand Up @@ -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(...)`.
Expand Down
2 changes: 1 addition & 1 deletion 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" },
Expand Down
2 changes: 1 addition & 1 deletion test/response.test.js
Expand Up @@ -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');
});

Expand Down

0 comments on commit 1536d73

Please sign in to comment.