- Ignores
examplesdirectory in npm releases.
- Uses default
directorymiddleware configuration ifconfigis provided but no no value fordirectoryis present in call tobogart.batteries.
- Updates Q dependency to version 0.9.6. This version of Q has many performance enhancements.
- Updates static server example to use
bogart.app. - Switches Travis configuration to only run tests in node v0.10.x.
- Updates stream specs for node v0.10.x style streams.
- Fixes a bug with
bogart.pumpresolving its promise at wrong time.
- Falls back to
process.nextTickwhen setImmediate is unavailable inForEachStream. - Resolves
ResponseBuilderpromise for the response on first call tosendto support streaming. - Add node v0.10.x to Travis configuration.
- Changes ForEachStream to use
setImmediateinstead ofprocess.nextTick.
- Fixes bug preventing passing of options to
bogart.batteries.
- Updates examples to use
bogart.app. - Normalizes the return value of
bogart.routerto match other middleware. - Changes
bogart.errormiddleware to match middleware conventions. - Updates
bogart.sessionexample to use a custom configuration key. - Allows configuration of session's
SessionIdProviderandSessionDataProviderencryption key from the options parameter tobogart.session. - Removes
bogart.build. - Removes
binarymiddleware. - Removes
cascademiddleware.
SessionDataProvider.loadSessionnow returns the session.
- Changes order of parameters to
bogart.partedmiddleware to match middleware conventions. - Creates a helper module called
fspwhere node.jsfsmethods are adapted to return promises. - General housekeeping on the middleware code base to make it more maintainable.
- Changes
bogart.middelwareto be a function that makes creating JSGI middleware easier. All bogart middleware is still attached to thebogart.middlewarefunction as properties. - Removes the deprecated support for passing a configuration function to
bogart.router.
- Changed
bogart.response()tobogart.res()to better fit design philosophy and Node conventions.
- Changed signature of view engine renderer function so that the caching mechanism is readily available for view engine implementations.
- ResponseBuilder helper,
bogart.response(), can now be piped to successfully.
- Publishing v0.3.35 from windows seemed to cause issues when installing on unix. Therefore; I am republishing with only a version bump from linux.
- Back out change to package.json to add new CLI.
- Removed dependency on Q library.
- Changed the unit tests in the project from Expresso to Tap.
- Did not update package.json in my tag of 0.3.31, went to 0.3.32 for consistency.
- Fixed a bug where Parted middleware was not bubbling rejections.
- Fixed a bug causing before callbacks to cause errors.
- Missed a whenCall, same issue from v0.3.28.
- Added dependency on request 2.2.9.
- Removed dependency on Deflate as Node.JS 0.6.x includes zlib.
- Added gzip middleware to
bogart.batteries - Added reject callbacks for all cases where whenCall is invoked as it tries to invoke the rejectCallback even if one is not provided.
bogart.middleware.sessionassumed thatreq.envwould be unique per request; however, it is not. Corrected issues caused by this.
bogart.middleware.bodyAdapternow adapts responses that are of type Buffer or Stream to JSGI responses.- Fixed a bug in
bogart.middleware.bodyAdatperwhere Stream returns were not being handled properly. - Added
bogart.config. The default environment is 'development' and may be overridden with the BOGART_ENV environment variable. - Expose
DefaultIdProviderandDefaultDataProvideras properties ofbogart.middleware.session.
- No longer reject a return that does not include all properties of a valid JSGI response. This change facilitates Bogart as a middleware platform.
- Added
bogart.middleware.batteries, a batteries included JSGI stack for rapid application development. - The deprecated
bogart.apphas been reclaimed for the purpose of creating application stacks more easily than chaining JSGI middleware manually or usingbogart.build. bogart.buildis deprecated.- Added
bogart.qwhich exposes the promise implementation used by Bogart. - Added
bogart.promisifywhich adapts node-style asynchronous functions to promises. - Added
bogart.proxy, a helper to create a JSGI response that proxies a URL. - Added
viewEngine.share, a helper for serializing JavaScript to views. See the new example in 'examples/share-javascript'.
- Bug fixes in Session middleware.
- Added support for string-based paths with * for splat like /foo/*
- Before callbacks may now return promises that must be resolved before the route handler is executed.
- After callbacks may now return promises that must be resolved before the response from the route handler is returned.
ViewEngineis now anEventEmitter.- the built-in
Mustacheview engine now emitsbeforeRenderandafterRenderevents. - Fixed bugs in
Flashmiddleware.
afterhad been left off of the public API of router, added it.
- Simplified and corrected code for
pipemethod on the request object for thePartedmiddleware. - Added
Sessionmiddleware.
- Updated Parted dependency to 0.8.0.
- Mustache partials now work properly when using layouts.
- Routes now match in order added instead of longest-first.
- Added
Flashmiddleware to emulate the flash method of Rails.
- Added
Errormiddleware to translate rejected promises and thrown errors into an error response. Errormiddleware is included by default in JSGI stacks constructed withbogart.build.ParseFormandParseJsonhave been replaced withPartedin JSGI middleware stacks constructed withbogart.build.
- Added
Partedmiddleware to take advantage of the excellent streaming parsers provided by Parted. - Added multipart-form example to the examples directory to demonstrate usage of the Parted middleware.
- use Buffer.byteLength to determine the value for
Content-Lengthheaders, resolves Issue #11
bogart.redirectnow accepts a 2nd optional parameter which if present will be merged into the returned response object
- Add
beforemethod to the return frombogart.router
- Added support for mustache partials to the mustache template engine. This is unrelated to Bogart partials.
- Match
pathInfoof "" to "/" if no route found for "" - Support dot in named parameters
- Made view engines registerable.
- Moved 'jade' and 'haml' renderers to their own packages: 'bogart-jade' and 'bogart-haml'.
- Removed node-deflate dependency becuase it was sometimes failing to compile when installed with npm.