This package strictly follows Semantic Versioning.
- Fixed security issue that might allow for session data to be forged.
- Added support for
await usingwith TypeScript toUserAgent,MockUserAgentandTestUserAgentclasses.
- Fixed a bug where the static file server would use the response code 200 instead of 206 for partial responses. (@dmanto)
- Fixed a bug where
ctx.urlFor()would not work properly for/routes. (@dmanto)
- Added support for nested helpers. (@dmanto)
- Added a
tagsnamespace for all tag helpers. That meansctx.styleTag()becomesctx.tags.style()(everywhere) ortags.style()(in templates only).
- Fixed built-in templates to not require an internet connection. (@hernan604)
- Added timeout support for
UserAgentrequests. - Added
fragmentoption toctx.urlFor()and related methods.
- Fixed compression bug in proxy helpers.
- Fixed support for multiple views in different formats sharing the same name.
- Added
proxyGet,proxyPostandproxyRequestproxy helpers.
- Added
render:beforehook.
- Added support for
asyncfunctions to be passed toctx.contentFor()and tag helpers.
- Fixed bug where
ctx.contentFor()would notawaitpromises. - Fixed various promise related inconsistencies in tag helpers.
- Added
onStartandonStopmethods toAppclass.
- Added support for backend specific extensions, such as common Node.js middleware frameworks.
- Added
backendproperty toContextclass.
- Added
command:inithook.
- Added
textUnlikemethod toTestUserAgentclass.
- Added
removeEmptymethod toParamsclass. - Added
notEmptyoption toparamsmethod inContextclass.
- Added support for multiple query parameters sharing the same name to
urlFormethod inContextclass.
- Fixed a bug where the
app:starthook could not add new command paths.
- Added support for extending the user-agent with async hooks.
- Added
hooksproperty andaddHookmethod toUserAgentclass.
- Added support for parsing and generating
Linkheaders. - Added
getLinksandsetLinksmethods toHeadersclass.
- Added
clone,dehopandremovemethods toHeadersclass.
- Added
labelForhelper. - Added
MojoRenderOptionsandMojoURLOptionsto exported types for use in plugins. - Improved
ctx.urlFor()andctx.urlWith()to throw an exception for missing routes.
- Added TypeScript support to
create-plugincommand (with--tsoption).
- Added
examples/chat.jsWebSocket chat example application. - Added
monthFieldTag,numberFieldTag,rangeFieldTag,telFieldTag,timeFieldTag,urlFieldTagandweekFieldTaghelpers.
- Added
isEmptygetter toParamsclass. - Added
colorFieldTag,dateFielTag,datetimeFieldTag,emailFieldTag,fileFieldTag,hiddenFieldTag,searchFieldTagandpasswordFieldTaghelpers.
- Added
build:watchscript topackage.jsonfiles generated by thecreate-full-appcommand.
- Added
devandstartscripts topackage.jsonfiles generated by thecreate-full-appcommand.
- Added support for static assets.
- Added
urlForAssetmethod toContextclass. - Added
assetDirproperty andassetPathmethod toStaticclass. - Added
assetTaghelper. - Added tag attributes to
scriptTagandstyleTaghelpers.
- Added support for embedding mojo.js applications with
mountPlugin. - Added support for rewriting
ctx.req.path. - Added support for relative paths with
ctx.req.basePathtoctx.urlFor. - Added
app:warmupapplication hook.
- Fixed a bug where trying to consume a request body more than once would not result in an exception. (@marcusramberg)
- Fixed types to allow for generics to be used with forms, like
const {foo, bar} = form.toObject<MyData>().
- Fixed types to allow for generics to be used with JSON, like
const {foo, bar} = await ctx.req.json<MyData>().
- Added support for hiding developer commands from the command list (can be included again with the
--show-alloption).
- Fixed
app.validator.schema()to throw an exception for invalid schemas. (@carragom)
- Added support for intercepting the command line interface with the
command:beforehook.
- Fixed a bug where the
app:stophook was triggered too early with the server command.
- Fixed a bug where
TestUserAgentwould not reset the DOM cache in between requests.
- Added UNIX domain socket support for user-agent and server (HTTP and WebSocket).
- Added
app:startandapp:stopapplication hooks. - Added
suggestedMethodmethod toRouteclass. - Added
buttonTo,checkBoxTag,formFor,inputTag,radioButtonTag,submitButtonTag,textAreaTagandtextFieldTaghelpers. - Added support for
urlForoptions tolinkTohelper.
First major release.