History.md
This file
Path
History.md
495 lines · 19.9 KiB · Markdown
Last changed by
Release 2.0.0beta2Tj Holowaychukbefore adoptiond4f4b66
History of this fileTake it
The walk stopped after 200 commits: lines older than a9db47f point at it.
Updated connect submoduleTj Holowaychukbefore adoptiona9db47f
line 1why, one step back1Release 2.0.0beta2Tj Holowaychukbefore adoptiond4f4b66
lines 2–7why, one step back22.0.0beta2 / 2011-03-07 3==================45 * Added res.render() `.locals` support back to aid in migration process6 * Fixed flash example7populate changelog for 2.0.0betaTj Holowaychukbefore adoption10f4f52
lines 8–11why, one step back82.0.0beta / 2011-03-03 9==================1011 * Added HTTPS supportdocs for res.cookie()Tj Holowaychukbefore adoption00e1dbf
line 12why, one step back12 * Added `res.cookie()` maxAge supportpopulate changelog for 2.0.0betaTj Holowaychukbefore adoption10f4f52
lines 13–35why, one step back13 * Added `req.header()` _Referrer_ / _Referer_ special-case, either works14 * Added mount support for `res.redirect()`, now respects the mount-point15 * Added `union()` util, taking place of `merge(clone())` combo16 * Added stylus support to express(1) generated app17 * Added secret to session middleware used in examples and generated app18 * Added `res.local(name, val)` for progressive view locals19 * Added default param support to `req.param(name, default)`20 * Added `app.disabled()` and `app.enabled()`21 * Added `app.register()` support for omitting leading ".", either works22 * Added `res.partial()`, using the same interface as `partial()` within a view. Closes #53923 * Added `app.param()` to map route params to async/sync logic24 * Added; aliased `app.helpers()` as `app.locals()`. Closes #48125 * Added extname with no leading "." support to `res.contentType()`26 * Added `cache views` setting, defaulting to enabled in "production" env27 * Added index file partial resolution, eg: partial('user') may try _views/user/index.jade_.28 * Added `req.accepts()` support for extensions29 * Changed; `res.download()` and `res.sendfile()` now utilize Connect's30 static file server `connect.static.send()`.31 * Changed; replaced `connect.utils.mime()` with npm _mime_ module32 * Changed; allow `req.query` to be pre-defined (via middleware or other parent33 * Changed view partial resolution, now relative to parent view34 * Changed view engine signature. no longer `engine.render(str, options, callback)`, now `engine.compile(str, options) -> Function`, the returned function accepts `fn(locals)`.35 * Fixed `req.param()` bug returning Array.prototype methods. Closes #552changelog typoTj Holowaychukbefore adoption6873a68
line 36why, one step back36 * Fixed; using `Stream#pipe()` instead of `sys.pump()` in `res.sendfile()`populate changelog for 2.0.0betaTj Holowaychukbefore adoption10f4f52
lines 37–40why, one step back37 * Fixed; using _qs_ module instead of _querystring_38 * Fixed; strip unsafe chars from jsonp callbacks39 * Removed "stream threshold" setting40populate changelog from 1.xTj Holowaychukbefore adoption1e392d2
lines 41–69why, one step back411.0.8 / 2011-03-01 42==================4344 * Allow `req.query` to be pre-defined (via middleware or other parent app)45 * "connect": ">= 0.5.0 < 1.0.0". Closes #54746 * Removed the long deprecated __EXPRESS_ENV__ support47481.0.7 / 2011-02-07 49==================5051 * Fixed `render()` setting inheritance.52 Mounted apps would not inherit "view engine"53541.0.6 / 2011-02-07 55==================5657 * Fixed `view engine` setting bug when period is in dirname58591.0.5 / 2011-02-05 60==================6162 * Added secret to generated app `session()` call63641.0.4 / 2011-02-05 65==================6667 * Added `qs` dependency to _package.json_68 * Fixed namespaced `require()`s for latest connect support69Updated changelogTj Holowaychukbefore adoption0f55284
lines 70–87why, one step back701.0.3 / 2011-01-13 71==================7273 * Remove unsafe characters from JSONP callback names [Ryan Grove]74751.0.2 / 2011-01-10 76==================7778 * Removed nested require, using `connect.router`79801.0.1 / 2010-12-29 81==================8283 * Fixed for middleware stacked via `createServer()`84 previously the `foo` middleware passed to `createServer(foo)`85 would not have access to Express methods such as `res.send()`86 or props like `req.query` etc.87Updated connect submoduleTj Holowaychukbefore adoptiona9db47f
lines 88–495why, one step back881.0.0 / 2010-11-16 89==================9091 * Added; deduce partial object names from the last segment.92 For example by default `partial('forum/post', postObject)` will93 give you the _post_ object, providing a meaningful default.94 * Added http status code string representation to `res.redirect()` body95 * Added; `res.redirect()` supporting _text/plain_ and _text/html_ via __Accept__.96 * Added `req.is()` to aid in content negotiation97 * Added partial local inheritance [suggested by masylum]. Closes #10298 providing access to parent template locals.99 * Added _-s, --session[s]_ flag to express(1) to add session related middleware100 * Added _--template_ flag to express(1) to specify the101 template engine to use.102 * Added _--css_ flag to express(1) to specify the 103 stylesheet engine to use (or just plain css by default).104 * Added `app.all()` support [thanks aheckmann]105 * Added partial direct object support.106 You may now `partial('user', user)` providing the "user" local,107 vs previously `partial('user', { object: user })`.108 * Added _route-separation_ example since many people question ways109 to do this with CommonJS modules. Also view the _blog_ example for110 an alternative.111 * Performance; caching view path derived partial object names112 * Fixed partial local inheritance precedence. [reported by Nick Poulden] Closes #454113 * Fixed jsonp support; _text/javascript_ as per mailinglist discussion1141151.0.0rc4 / 2010-10-14 116==================117118 * Added _NODE_ENV_ support, _EXPRESS_ENV_ is deprecated and will be removed in 1.0.0119 * Added route-middleware support (very helpful, see the [docs](http://expressjs.com/guide.html#Route-Middleware))120 * Added _jsonp callback_ setting to enable/disable jsonp autowrapping [Dav Glass]121 * Added callback query check on response.send to autowrap JSON objects for simple webservice implementations [Dav Glass]122 * Added `partial()` support for array-like collections. Closes #434123 * Added support for swappable querystring parsers124 * Added session usage docs. Closes #443125 * Added dynamic helper caching. Closes #439 [suggested by maritz]126 * Added authentication example127 * Added basic Range support to `res.sendfile()` (and `res.download()` etc)128 * Changed; `express(1)` generated app using 2 spaces instead of 4129 * Default env to "development" again [aheckmann]130 * Removed _context_ option is no more, use "scope"131 * Fixed; exposing _./support_ libs to examples so they can run without installs132 * Fixed mvc example1331341.0.0rc3 / 2010-09-20 135==================136137 * Added confirmation for `express(1)` app generation. Closes #391138 * Added extending of flash formatters via `app.flashFormatters`139 * Added flash formatter support. Closes #411140 * Added streaming support to `res.sendfile()` using `sys.pump()` when >= "stream threshold"141 * Added _stream threshold_ setting for `res.sendfile()`142 * Added `res.send()` __HEAD__ support143 * Added `res.clearCookie()`144 * Added `res.cookie()`145 * Added `res.render()` headers option146 * Added `res.redirect()` response bodies147 * Added `res.render()` status option support. Closes #425 [thanks aheckmann]148 * Fixed `res.sendfile()` responding with 403 on malicious path149 * Fixed `res.download()` bug; when an error occurs remove _Content-Disposition_150 * Fixed; mounted apps settings now inherit from parent app [aheckmann]151 * Fixed; stripping Content-Length / Content-Type when 204152 * Fixed `res.send()` 204. Closes #419153 * Fixed multiple _Set-Cookie_ headers via `res.header()`. Closes #402154 * Fixed bug messing with error handlers when `listenFD()` is called instead of `listen()`. [thanks guillermo]1551561571.0.0rc2 / 2010-08-17 158==================159160 * Added `app.register()` for template engine mapping. Closes #390161 * Added `res.render()` callback support as second argument (no options)162 * Added callback support to `res.download()`163 * Added callback support for `res.sendfile()`164 * Added support for middleware access via `express.middlewareName()` vs `connect.middlewareName()`165 * Added "partials" setting to docs166 * Added default expresso tests to `express(1)` generated app. Closes #384167 * Fixed `res.sendfile()` error handling, defer via `next()`168 * Fixed `res.render()` callback when a layout is used [thanks guillermo]169 * Fixed; `make install` creating ~/.node_libraries when not present170 * Fixed issue preventing error handlers from being defined anywhere. Closes #387 1711721.0.0rc / 2010-07-28173==================174175 * Added mounted hook. Closes #369176 * Added connect dependency to _package.json_177178 * Removed "reload views" setting and support code179 development env never caches, production always caches.180181 * Removed _param_ in route callbacks, signature is now182 simply (req, res, next), previously (req, res, params, next).183 Use _req.params_ for path captures, _req.query_ for GET params.184185 * Fixed "home" setting186 * Fixed middleware/router precedence issue. Closes #366187 * Fixed; _configure()_ callbacks called immediately. Closes #368188 1891.0.0beta2 / 2010-07-23190==================191192 * Added more examples193 * Added; exporting `Server` constructor194 * Added `Server#helpers()` for view locals195 * Added `Server#dynamicHelpers()` for dynamic view locals. Closes #349196 * Added support for absolute view paths197 * Added; _home_ setting defaults to `Server#route` for mounted apps. Closes #363198 * Added Guillermo Rauch to the contributor list199 * Added support for "as" for non-collection partials. Closes #341200 * Fixed _install.sh_, ensuring _~/.node_libraries_ exists. Closes #362 [thanks jf]201 * Fixed `res.render()` exceptions, now passed to `next()` when no callback is given [thanks guillermo]202 * Fixed instanceof `Array` checks, now `Array.isArray()`203 * Fixed express(1) expansion of public dirs. Closes #348204 * Fixed middleware precedence. Closes #345205 * Fixed view watcher, now async [thanks aheckmann]2062071.0.0beta / 2010-07-15208==================209210 * Re-write211 - much faster212 - much lighter213 - Check [ExpressJS.com](http://expressjs.com) for migration guide and updated docs2142150.14.0 / 2010-06-15216==================217218 * Utilize relative requires219 * Added Static bufferSize option [aheckmann]220 * Fixed caching of view and partial subdirectories [aheckmann]221 * Fixed mime.type() comments now that ".ext" is not supported222 * Updated haml submodule223 * Updated class submodule224 * Removed bin/express2252260.13.0 / 2010-06-01227==================228229 * Added node v0.1.97 compatibility230 * Added support for deleting cookies via Request#cookie('key', null)231 * Updated haml submodule232 * Fixed not-found page, now using using charset utf-8233 * Fixed show-exceptions page, now using using charset utf-8234 * Fixed view support due to fs.readFile Buffers235 * Changed; mime.type() no longer accepts ".type" due to node extname() changes2362370.12.0 / 2010-05-22238==================239240 * Added node v0.1.96 compatibility241 * Added view `helpers` export which act as additional local variables242 * Updated haml submodule243 * Changed ETag; removed inode, modified time only244 * Fixed LF to CRLF for setting multiple cookies245 * Fixed cookie complation; values are now urlencoded246 * Fixed cookies parsing; accepts quoted values and url escaped cookies2472480.11.0 / 2010-05-06249==================250251 * Added support for layouts using different engines252 - this.render('page.html.haml', { layout: 'super-cool-layout.html.ejs' })253 - this.render('page.html.haml', { layout: 'foo' }) // assumes 'foo.html.haml'254 - this.render('page.html.haml', { layout: false }) // no layout255 * Updated ext submodule256 * Updated haml submodule257 * Fixed EJS partial support by passing along the context. Issue #3072582590.10.1 / 2010-05-03260==================261262 * Fixed binary uploads.2632640.10.0 / 2010-04-30265==================266267 * Added charset support via Request#charset (automatically assigned to 'UTF-8' when respond()'s268 encoding is set to 'utf8' or 'utf-8'.269 * Added "encoding" option to Request#render(). Closes #299270 * Added "dump exceptions" setting, which is enabled by default.271 * Added simple ejs template engine support272 * Added error reponse support for text/plain, application/json. Closes #297273 * Added callback function param to Request#error()274 * Added Request#sendHead()275 * Added Request#stream()276 * Added support for Request#respond(304, null) for empty response bodies277 * Added ETag support to Request#sendfile()278 * Added options to Request#sendfile(), passed to fs.createReadStream()279 * Added filename arg to Request#download()280 * Performance enhanced due to pre-reversing plugins so that plugins.reverse() is not called on each request281 * Performance enhanced by preventing several calls to toLowerCase() in Router#match()282 * Changed; Request#sendfile() now streams283 * Changed; Renamed Request#halt() to Request#respond(). Closes #289284 * Changed; Using sys.inspect() instead of JSON.encode() for error output285 * Changed; run() returns the http.Server instance. Closes #298286 * Changed; Defaulting Server#host to null (INADDR_ANY)287 * Changed; Logger "common" format scale of 0.4f288 * Removed Logger "request" format289 * Fixed; Catching ENOENT in view caching, preventing error when "views/partials" is not found290 * Fixed several issues with http client291 * Fixed Logger Content-Length output292 * Fixed bug preventing Opera from retaining the generated session id. Closes #2922932940.9.0 / 2010-04-14295==================296297 * Added DSL level error() route support298 * Added DSL level notFound() route support299 * Added Request#error()300 * Added Request#notFound()301 * Added Request#render() callback function. Closes #258302 * Added "max upload size" setting303 * Added "magic" variables to collection partials (\_\_index\_\_, \_\_length\_\_, \_\_isFirst\_\_, \_\_isLast\_\_). Closes #254304 * Added [haml.js](http://github.com/visionmedia/haml.js) submodule; removed haml-js305 * Added callback function support to Request#halt() as 3rd/4th arg306 * Added preprocessing of route param wildcards using param(). Closes #251307 * Added view partial support (with collections etc)308 * Fixed bug preventing falsey params (such as ?page=0). Closes #286309 * Fixed setting of multiple cookies. Closes #199310 * Changed; view naming convention is now NAME.TYPE.ENGINE (for example page.html.haml)311 * Changed; session cookie is now httpOnly312 * Changed; Request is no longer global313 * Changed; Event is no longer global314 * Changed; "sys" module is no longer global315 * Changed; moved Request#download to Static plugin where it belongs316 * Changed; Request instance created before body parsing. Closes #262317 * Changed; Pre-caching views in memory when "cache view contents" is enabled. Closes #253318 * Changed; Pre-caching view partials in memory when "cache view partials" is enabled319 * Updated support to node --version 0.1.90320 * Updated dependencies321 * Removed set("session cookie") in favour of use(Session, { cookie: { ... }})322 * Removed utils.mixin(); use Object#mergeDeep()323 3240.8.0 / 2010-03-19325==================326327 * Added coffeescript example app. Closes #242328 * Changed; cache api now async friendly. Closes #240329 * Removed deprecated 'express/static' support. Use 'express/plugins/static'3303310.7.6 / 2010-03-19332==================333334 * Added Request#isXHR. Closes #229335 * Added `make install` (for the executable)336 * Added `express` executable for setting up simple app templates337 * Added "GET /public/*" to Static plugin, defaulting to <root>/public338 * Added Static plugin339 * Fixed; Request#render() only calls cache.get() once340 * Fixed; Namespacing View caches with "view:"341 * Fixed; Namespacing Static caches with "static:"342 * Fixed; Both example apps now use the Static plugin343 * Fixed set("views"). Closes #239344 * Fixed missing space for combined log format345 * Deprecated Request#sendfile() and 'express/static'346 * Removed Server#running3473480.7.5 / 2010-03-16349==================350351 * Added Request#flash() support without args, now returns all flashes352 * Updated ext submodule3533540.7.4 / 2010-03-16355==================356357 * Fixed session reaper358 * Changed; class.js replacing js-oo Class implementation (quite a bit faster, no browser cruft)3593600.7.3 / 2010-03-16361==================362363 * Added package.json364 * Fixed requiring of haml / sass due to kiwi removal3653660.7.2 / 2010-03-16367==================368369 * Fixed GIT submodules (HAH!)3703710.7.1 / 2010-03-16372==================373374 * Changed; Express now using submodules again until a PM is adopted375 * Changed; chat example using millisecond conversions from ext3763770.7.0 / 2010-03-15378==================379380 * Added Request#pass() support (finds the next matching route, or the given path)381 * Added Logger plugin (default "common" format replaces CommonLogger)382 * Removed Profiler plugin383 * Removed CommonLogger plugin3843850.6.0 / 2010-03-11386==================387388 * Added seed.yml for kiwi package management support389 * Added HTTP client query string support when method is GET. Closes #205390 391 * Added support for arbitrary view engines.392 For example "foo.engine.html" will now require('engine'),393 the exports from this module are cached after the first require().394 395 * Added async plugin support396 397 * Removed usage of RESTful route funcs as http client398 get() etc, use http.get() and friends399 400 * Removed custom exceptions4014020.5.0 / 2010-03-10403==================404405 * Added ext dependency (library of js extensions)406 * Removed extname() / basename() utils. Use path module407 * Removed toArray() util. Use arguments.values408 * Removed escapeRegexp() util. Use RegExp.escape()409 * Removed process.mixin() dependency. Use utils.mixin()410 * Removed Collection411 * Removed ElementCollection412 * Shameless self promotion of ebook "Advanced JavaScript" (http://dev-mag.com) ;)4134140.4.0 / 2010-02-11415==================416417 * Added flash() example to sample upload app418 * Added high level restful http client module (express/http)419 * Changed; RESTful route functions double as HTTP clients. Closes #69420 * Changed; throwing error when routes are added at runtime421 * Changed; defaulting render() context to the current Request. Closes #197422 * Updated haml submodule4234240.3.0 / 2010-02-11425==================426427 * Updated haml / sass submodules. Closes #200428 * Added flash message support. Closes #64429 * Added accepts() now allows multiple args. fixes #117430 * Added support for plugins to halt. Closes #189431 * Added alternate layout support. Closes #119432 * Removed Route#run(). Closes #188433 * Fixed broken specs due to use(Cookie) missing4344350.2.1 / 2010-02-05436==================437438 * Added "plot" format option for Profiler (for gnuplot processing)439 * Added request number to Profiler plugin440 * Fixed binary encoding for multi-part file uploads, was previously defaulting to UTF8441 * Fixed issue with routes not firing when not files are present. Closes #184442 * Fixed process.Promise -> events.Promise4434440.2.0 / 2010-02-03445==================446447 * Added parseParam() support for name[] etc. (allows for file inputs with "multiple" attr) Closes #180448 * Added Both Cache and Session option "reapInterval" may be "reapEvery". Closes #174449 * Added expiration support to cache api with reaper. Closes #133450 * Added cache Store.Memory#reap()451 * Added Cache; cache api now uses first class Cache instances452 * Added abstract session Store. Closes #172453 * Changed; cache Memory.Store#get() utilizing Collection454 * Renamed MemoryStore -> Store.Memory455 * Fixed use() of the same plugin several time will always use latest options. Closes #1764564570.1.0 / 2010-02-03458==================459460 * Changed; Hooks (before / after) pass request as arg as well as evaluated in their context461 * Updated node support to 0.1.27 Closes #169462 * Updated dirname(__filename) -> __dirname463 * Updated libxmljs support to v0.2.0464 * Added session support with memory store / reaping465 * Added quick uid() helper466 * Added multi-part upload support467 * Added Sass.js support / submodule468 * Added production env caching view contents and static files469 * Added static file caching. Closes #136470 * Added cache plugin with memory stores471 * Added support to StaticFile so that it works with non-textual files.472 * Removed dirname() helper473 * Removed several globals (now their modules must be required)4744750.0.2 / 2010-01-10476==================477478 * Added view benchmarks; currently haml vs ejs479 * Added Request#attachment() specs. Closes #116480 * Added use of node's parseQuery() util. Closes #123481 * Added `make init` for submodules482 * Updated Haml483 * Updated sample chat app to show messages on load484 * Updated libxmljs parseString -> parseHtmlString485 * Fixed `make init` to work with older versions of git486 * Fixed specs can now run independant specs for those who cant build deps. Closes #127487 * Fixed issues introduced by the node url module changes. Closes 126.488 * Fixed two assertions failing due to Collection#keys() returning strings489 * Fixed faulty Collection#toArray() spec due to keys() returning strings490 * Fixed `make test` now builds libxmljs.node before testing4914920.0.1 / 2010-01-03493==================494495 * Initial release