Skip to content

Latest commit

 

History

History
267 lines (149 loc) · 6.47 KB

CHANGELOG.md

File metadata and controls

267 lines (149 loc) · 6.47 KB

Changelog

This package strictly follows Semantic Versioning.

v1.26.4 (2024-02-26)

Bug Fixes

  • Fixed security issue that might allow for session data to be forged.

v1.26.0 (2023-11-09)

Features

  • Added support for await using with TypeScript to UserAgent, MockUserAgent and TestUserAgent classes.

v1.25.6 (2023-10-05)

Bug Fixes

  • Fixed a bug where the static file server would use the response code 200 instead of 206 for partial responses. (@dmanto)

v1.25.3 (2023-07-15)

Bug Fixes

  • Fixed a bug where ctx.urlFor() would not work properly for / routes. (@dmanto)

v1.25.0 (2023-06-21)

Features

  • Added support for nested helpers. (@dmanto)
  • Added a tags namespace for all tag helpers. That means ctx.styleTag() becomes ctx.tags.style() (everywhere) or tags.style() (in templates only).

v1.24.6 (2023-06-19)

Bug Fixes

  • Fixed built-in templates to not require an internet connection. (@hernan604)

v1.24.0 (2023-03-17)

Features

  • Added timeout support for UserAgent requests.
  • Added fragment option to ctx.urlFor() and related methods.

v1.23.2 (2023-03-11)

Bug Fixes

  • Fixed compression bug in proxy helpers.

v1.23.1 (2023-03-10)

Bug Fixes

  • Fixed support for multiple views in different formats sharing the same name.

v1.23.0 (2023-02-26)

Features

  • Added proxyGet, proxyPost and proxyRequest proxy helpers.

v1.22.0 (2023-02-23)

Features

  • Added render:before hook.

v1.21.0 (2023-02-18)

Features

  • Added support for async functions to be passed to ctx.contentFor() and tag helpers.

Bug Fixes

  • Fixed bug where ctx.contentFor() would not await promises.
  • Fixed various promise related inconsistencies in tag helpers.

v1.20.0 (2023-02-16)

Features

  • Added onStart and onStop methods to App class.

v1.19.0 (2023-02-13)

Features

  • Added support for backend specific extensions, such as common Node.js middleware frameworks.
  • Added backend property to Context class.

v1.18.0 (2023-02-08)

Features

  • Added command:init hook.

v1.17.0 (2023-02-03)

Features

  • Added textUnlike method to TestUserAgent class.

v1.16.0 (2023-02-03)

Features

  • Added removeEmpty method to Params class.
  • Added notEmpty option to params method in Context class.

v1.15.0 (2023-02-03)

Features

  • Added support for multiple query parameters sharing the same name to urlFor method in Context class.

v1.14.6 (2023-02-01)

Bug Fixes

  • Fixed a bug where the app:start hook could not add new command paths.

v1.14.0 (2022-12-11)

Features

  • Added support for extending the user-agent with async hooks.
  • Added hooks property and addHook method to UserAgent class.

v1.13.0 (2022-11-25)

Features

  • Added support for parsing and generating Link headers.
  • Added getLinks and setLinks methods to Headers class.

v1.12.0 (2022-11-20)

Features

  • Added clone, dehop and remove methods to Headers class.

v1.11.0 (2022-11-11)

Features

  • Added labelFor helper.
  • Added MojoRenderOptions and MojoURLOptions to exported types for use in plugins.
  • Improved ctx.urlFor() and ctx.urlWith() to throw an exception for missing routes.

v1.10.0 (2022-11-07)

Features

  • Added TypeScript support to create-plugin command (with --ts option).

v1.9.0 (2022-11-01)

Features

  • Added examples/chat.js WebSocket chat example application.
  • Added monthFieldTag, numberFieldTag, rangeFieldTag, telFieldTag, timeFieldTag, urlFieldTag and weekFieldTag helpers.

v1.8.0 (2022-10-22)

Features

  • Added isEmpty getter to Params class.
  • Added colorFieldTag, dateFielTag, datetimeFieldTag, emailFieldTag, fileFieldTag, hiddenFieldTag, searchFieldTag and passwordFieldTag helpers.

v1.7.0 (2022-10-14)

Features

  • Added build:watch script to package.json files generated by the create-full-app command.

v1.6.0 (2022-10-03)

Features

  • Added dev and start scripts to package.json files generated by the create-full-app command.

v1.5.0 (2022-09-08)

Features

  • Added support for static assets.
  • Added urlForAsset method to Context class.
  • Added assetDir property and assetPath method to Static class.
  • Added assetTag helper.
  • Added tag attributes to scriptTag and styleTag helpers.

v1.4.0 (2022-08-15)

Features

  • Added support for embedding mojo.js applications with mountPlugin.
  • Added support for rewriting ctx.req.path.
  • Added support for relative paths with ctx.req.basePath to ctx.urlFor.
  • Added app:warmup application hook.

Bug Fixes

  • 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>().

v1.3.1 (2022-08-13)

Bug Fixes

  • Fixed types to allow for generics to be used with JSON, like const {foo, bar} = await ctx.req.json<MyData>().

v1.3.0 (2022-08-03)

Features

  • Added support for hiding developer commands from the command list (can be included again with the --show-all option).

Bug Fixes

  • Fixed app.validator.schema() to throw an exception for invalid schemas. (@carragom)

v1.2.0 (2022-07-16)

Features

  • Added support for intercepting the command line interface with the command:before hook.

v1.1.2 (2022-06-30)

Bug Fixes

  • Fixed a bug where the app:stop hook was triggered too early with the server command.

v1.1.1 (2022-06-29)

Bug Fixes

  • Fixed a bug where TestUserAgent would not reset the DOM cache in between requests.

v1.1.0 (2022-06-29)

Features

  • Added UNIX domain socket support for user-agent and server (HTTP and WebSocket).
  • Added app:start and app:stop application hooks.
  • Added suggestedMethod method to Route class.
  • Added buttonTo, checkBoxTag, formFor, inputTag, radioButtonTag, submitButtonTag, textAreaTag and textFieldTag helpers.
  • Added support for urlFor options to linkTo helper.

v1.0.0 (2022-06-20)

First major release.