Permalink
Browse files

added lots of examples

  • Loading branch information...
1 parent 54a67fb commit 7861b653f07163437eb4c5df638e75deab1c7927 @dylang committed Aug 7, 2011
Showing with 994 additions and 21 deletions.
  1. +146 −0 examples/connect.markdown
  2. +25 −0 examples/examples.sh
  3. +136 −0 examples/express.markdown
  4. +200 −0 examples/node.markdown
  5. +1 −0 examples/npm.json
  6. +145 −0 examples/npm.markdown
  7. +131 −0 examples/npm.txt
  8. +183 −0 examples/rails.markdown
  9. +1 −1 lib/github.js
  10. +4 −1 lib/output.js
  11. +22 −19 readme.md
@@ -0,0 +1,146 @@
+Upcoming / 2011-08-05
+=====================
+
+ * Changed: 301 redirect in `static()` to postfix "/" on directory. Closes
+ [#289](https://github.com/senchalabs/connect/issues/289)
+ * Allow retval `== null` from logger callback
+ * Release 1.6.1
+
+1.6.1 / 2011-08-03
+==================
+
+ * Added `getOnly` option to `connect.static.send()`
+ * Allow status codes >= 400 in errorHandler
+ * Merge branch 'master' of github.com:senchalabs/connect
+ * Revert "Fix parsing of basic auth credentials if the password includes ':'."
+ This reverts commit 6390459f59794542853e3a2295496fd8f83e702c.
+ * Merge pull request [#327](https://github.com/senchalabs/connect/issues/327) from papandreou/master
+ errorHandler middleware: Don't hardcode a status code of 500, use err.statusCode if set.
+ * Fix parsing of basic auth credentials if the password includes ':'.
+ Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
+ * Fixed a test
+ * Added response "header" event allowing augmentation
+ this will be used in the session middleware, and could
+ be used elsewhere. Ideally Node would provide a hook for us...
+ * errorHandler middleware: Use err.statusCode as the HTTP status code if set, 500 otherwise.
+ * fixed last test
+ * fixed another test
+ * uncommenting
+ * updated more tests
+ * updated some more tests
+ * updated query tests
+ * updated vhost tests
+ * updated static tests
+ * updated session tests
+ * updated router tests
+ * updated responseTime tests
+ * updated methodOverride tests
+ * updated logger tests
+ * updated errorHandler tests
+ * docs
+ * updated directory tests
+ * updated cookieParser tests
+ * Removed `compiler()` middleware
+ note that this is for 2.x only. This middleware proved to
+ be more of a PITA than anything else. While it is useful
+ for very simple and opinionated compilation, that is about it
+ and is not really well suited for a core middleware. Feel free
+ to use this code.
+ * updated bodyParser tests
+ * common.js
+ * started fixing tests
+ * qs >= 0.3.0
+ * typo
+ * refactored auto-loading
+ * refactored patch.js
+ * Replaced HTTPServer and HTTPSServer with a function / proto
+ * Added X-CSRF-Token check
+ * Changed: persist csrf token. Closes [#322](https://github.com/senchalabs/connect/issues/322)
+ not necessarily ideal for the cases I mentioned,
+ especially since many apps that I have seen at least
+ built with node are reasonably vulnerable to xss
+ * Merge branch 'request-handler'
+ * Merge pull request [#320](https://github.com/senchalabs/connect/issues/320) from craigbarnes/typo
+ Typo
+ * Fix typo
+ * Merge pull request [#319](https://github.com/senchalabs/connect/issues/319) from danieldickison/master
+ Sort files alphabetically in directory middleware.
+ * Merge branch 'master' of https://github.com/senchalabs/connect
+ Conflicts:
+ lib/middleware/directory.js
+
+1.6.0 / 2011-07-010
+===================
+
+ * Release 1.6.0
+ * Added response-time to "dev" logger format
+ * Fixed res._headers logger regression. Closes [#318](https://github.com/senchalabs/connect/issues/318)
+ * Added simple csrf middleware. Closes [#315](https://github.com/senchalabs/connect/issues/315)
+ we can hack on it more as needed
+ * Removed support for multiple middleware being passed to .use()
+ if you really need this you can iterate
+ and use() etc. this does not look great
+ and ive never actually seen anyone use
+ this feature. if you do let me know
+ and i will consider adding it back
+ * docs
+ * logger docs
+
+1.5.2 / 2011-07-06
+==================
+
+ * Release 1.5.2
+ * fLogic -> filter
+ * Update comments for directory().
+ * Get rid of private filtering function. Take care of the filtering right at the public function.
+ * Allow a filtering capability in directory middleware.
+ * Added ability to define `logger()` tokens and formats. Closes
+ [#309](https://github.com/senchalabs/connect/issues/309)
+ includes the following additional changes:
+ - formats are pre-compiled to a function, much like a little template language
+ - added 3 pre-defined formats for various needs "dev" is nice colored output when in development :)
+ overall mostly cosmetic, though there is a small performance increase
+ by compiling these at boot
+ * Fixed quotes in docs. Closes [#312](https://github.com/senchalabs/connect/issues/312)
+ * misc refactor
+ * refactored previous merge
+ * added cli link
+ * removed migration guide from readme
+ * link directories in page headings in directory middleware
+ * Merge branch 'master' of github.com:senchalabs/connect
+ * added errorHandler to the docs list
+ * Sort files alphabetically in directory middleware.
+ readdir returns files in the order stored in the file system, which is not necessarily alphabetic.
+ * Merge pull request [#310](https://github.com/senchalabs/connect/issues/310) from danieldickison/master
+ Fixied `directory()` middleware urls when mounted [danieldickison]
+ * Use req.originalDir for directory links so that they work when the middleware is mounted at a sub-URL.
+ * misc refactor of parseCookie()
+ * clean up previous commit
+ * Updated cookie parser not to throw exceptions
+ * tweak previous commit a little
+ * Remove chromeframe token from UA String in default fingerprint function.
+ Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
+ * Fixed connect-redis example
+ * updated git summary
+ * Default logger :req[] / :res[] to "-". Closes [#303](https://github.com/senchalabs/connect/issues/303)
+ * Changed; `static.send()` ".." in path without root considered malicious
+
+1.5.1 / 2011-06-21
+==================
+
+ * Release 1.5.1
+ * fixed static tests
+ * query docs
+ * Added malicious path check to `directory()` middleware
+ * Added `utils.forbidden(res)`
+ * docs
+ * Merge branch 'feature/query'
+ * Added `connect.query()` middleware
+ * added directory tests
+
+1.5.0 / 2011-06-21
+==================
+
+ * Release 1.5.0
+ * caching icons
+ * docs
View
@@ -0,0 +1,25 @@
+#!/usr/bin/env sh
+
+echo Express as markdown
+../bin/changelog.js express --markdown > express.markdown
+
+echo Connect as markdown
+../bin/changelog.js connect --markdown > connect.markdown
+
+echo Underscore as markdown
+../bin/changelog.js connect --markdown > connect.markdown
+
+echo Node as markdown
+../bin/changelog.js github.com/joyent/node --markdown > node.markdown
+
+echo Node as markdown
+../bin/changelog.js github.com/rails/rails --markdown > rails.markdown
+
+echo NPM as markdown
+../bin/changelog.js npm --markdown > npm.markdown
+echo NPM as JSON
+../bin/changelog.js npm --json > npm.json
+echo NPM as color text
+../bin/changelog.js npm --color > npm.txt
+
+echo Complete
@@ -0,0 +1,136 @@
+2.4.4 / 2011-08-05
+==================
+
+ * Changed `res.{send,json}()` status code to the first arg at all times
+ * docs
+ * Refactored `res.header()`
+ * added header.jade to jade example
+ * semi
+ * Refactored `req.accepts()`
+ * more tests
+ * Merge branch 'integration'
+ * specialcase .:format routing to not include a dot in the capture group
+ * Fixed 204 / 304 responses
+ * Changed `res.send(null)` responds with empty string
+ previously you would just get "null",
+ which is fine for res.json() but probably
+ not the best result for res.send()
+ * fixed a response test
+ * fixed a jade test
+ * more tests for routing
+ * renamed a test
+ * Merge branch 'master' of github.com:visionmedia/express
+ * Fix the behavior for setting up routes with * in them.
+ * Merge pull request [#777](https://github.com/visionmedia/express/issues/777) from purohit/master
+ Simple misspelling fix.
+ * Fixing the misspelling of "manor" with "manner" in the 4 places it occurs.
+ * added express-resource to readme
+ * tweak generated stylus
+ * Fixed [23]04 support
+ * Added `route-loading` example for another route loading technique
+ using the vm module you can expose the route files at the root
+ level which IMO is nicer than module.exports = function(app){ etc
+ * node >= 0.4.9 < 0.7.0 for now
+ * 3.0.0alpha1 soon
+ mainly so windows users can start playing
+ around with express, i will have a ton
+ of these alphas
+ * update jade dev dep
+ * qs >= 0.3.0
+ * Removed `req.flash()` references
+ it will be req.notify(), req.session.notifications etc
+ * refactored `res.redirect()` slightly
+ * Changed `res.{cookie,clearCookie}()` return res
+ * another `req.is()` example
+ * Added `req.notify()` alias of `req.flash()`
+ * refactored `req.flash()`
+ * refactored `req.param()`
+ * examples
+ * Renamed `app.flashFormatters` to `app.formatters`
+ * Added `NaN` flash formatter
+ * Merge branch 'remove-header-fields'
+ * fixed tests
+ * chainable `res.header()`
+ * fixed some tests
+ * Removed header field support
+ * removed old dynamic helper logic from the view system
+ * precedence test
+ * view system utilizing `app.locals`
+ * Changed `app.locals` to match `res.locals`
+ * Removed `app.dynamicLocals()`. Closes [#756](https://github.com/visionmedia/express/issues/756)
+ * utilize connects new `query()` middleware
+ * Replaced `res.local[s]()` with `res.locals` function. Closes
+ [#757](https://github.com/visionmedia/express/issues/757)
+ * misc
+ * Removed "view options" setting. Closes [#748](https://github.com/visionmedia/express/issues/748)
+ * docs for previous commit
+ * Added "charset" option
+ * misc refactoring
+ * Added `app.dynamicLocal(name, fn)`
+ * `app.local()` and `res.local()` return for chaining
+ * Added `app.local(name, val)`
+ * `app.helpers` -> `app.locals`
+ * `app.dynamicHelpers` -> `app.dynamicLocals`
+ * Removed `res.send()` with no args support for 204
+ just use:
+ res.send(204)
+ * Removed `res.helpers()` alias of `res.locals()`
+ * removed old `app.error()` docs
+ * removed old error handling docs
+ * removed use of `app.error()` in examples
+ * Removed `app.error()`. Closes [#733](https://github.com/visionmedia/express/issues/733)
+ use trailing middleware with arity of 4 as
+ shown in this issue. They are functionally
+ equivalent
+ * expresso 0.8.1
+ * its is possessive, it's is shorthand for: it is
+
+2.4.3 / 2011-07-14
+==================
+
+ * Release 2.4.3
+ * Fixed options.filename, exposing to template engines
+ this is useful for performing relative
+ lookups within the template engine itself,
+ without manually specifyin the path
+ * misc
+ * Removed "view options" setting. Closes [#748](https://github.com/visionmedia/express/issues/748)
+ * docs for previous commit
+ * Added "charset" option
+ * misc refactoring
+ * Added `app.dynamicLocal(name, fn)`
+ * `app.local()` and `res.local()` return for chaining
+ * Added `app.local(name, val)`
+ * `app.helpers` -> `app.locals`
+ * `app.dynamicHelpers` -> `app.dynamicLocals`
+ * Removed `res.send()` with no args support for 204
+ just use:
+ res.send(204)
+ * Removed `res.helpers()` alias of `res.locals()`
+ * removed old `app.error()` docs
+ * removed old error handling docs
+ * removed use of `app.error()` in examples
+ * Removed `app.error()`. Closes [#733](https://github.com/visionmedia/express/issues/733)
+ use trailing middleware with arity of 4 as
+ shown in this issue. They are functionally
+ equivalent
+ * Merge branch 'master' of github.com:visionmedia/express
+ * expresso 0.8.1
+ * Merge pull request [#746](https://github.com/visionmedia/express/issues/746) from redsquirrel/patch-1
+ typo
+ * its is possessive, it's is shorthand for: it is
+ * Added docs for `status` option special-case. Closes [#739](https://github.com/visionmedia/express/issues/739)
+
+2.4.2 / 2011-07-06
+==================
+
+ * Release 2.4.2
+ * Revert "removed jsonp stripping"
+ This reverts commit 0ae18bca6075c8f6d9a7d58405c5f52c1ae61958.
+ * docs
+ * docs for multiple envs in app.configure() calls
+
+2.4.1 / 2011-07-06
+==================
+
+ * Release 2.4.1
Oops, something went wrong.

0 comments on commit 7861b65

Please sign in to comment.