Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

0.5.2

Compare
Choose a tag to compare
@drewfish drewfish released this 06 Aug 23:09
· 1776 commits to develop since this release

Performance Improvements

From 0.5.1 to 0.5.2 we have implemented a series of micro-optimizations. As a result, Mojito is twice as fast, uses half the memory footprint, and takes half the time to boot the application based on our internal metrics. More information can be found on our Trello board. This improves the response time to ~40ms response time for an application with 52 mojits, which represents less than 1ms per mojit.

Comments in JSON files and YAML Support

Configuration files, including application.json, defaults.json, definition.json, etc., can become pretty big for complex applications, and not having comments can drastically impact productivity and on-boarding for new developers. As of this version, we support comments in those files. The comments are YAML comments, they start with #.

As well, we just brought back support for .yml and .yaml that was previously introduced in Mojito 0.4.x.

Logs Formatter

In 0.5.0, we removed the mojito logger and started using YUI Log in its pure form. As a result of the formatting process implemented by the yui-log-nodejs module, the logs were formatted even when the application was running in a runtime without tty. This was partially fixed in this new version (for runtime execution where performance is critical), and we plan to finish the migration for the Resource Store's logs in 0.5.3.

Fixes

  • #238 [bz5667423] Add support for including files in a configuration bundle
  • #804 Added support for JavaScript-style comments in JSON files
  • #809 [bz5964521] test output is always colorized -- includes escape codes when saved to file
  • #863 micro-optimization: replacing runInNewContext with runInContext
  • #866 fix two newsboxes unit tests, misc
  • #867 update copyright to 2013
  • #868 [doc] Added FAQ about setting expiration of a cookie.
  • #870 update package.json in archetypes for mojito 0.5.x & node >0.6
  • #872 do not colorize test.js output if there is no tty [gh809,bz5964521]
  • #873 Functional test changes to support SD
  • #876 jslint tests along with template for general cli testing
  • #878 [bz6023234] prefix for hybridapp/crt "//yahoo.com"
  • #880 Update docs/dev_guide/getting_started/mojito_getting_started_tutorial.rst
  • #881 removed shelljs
  • #882 honor --descriptor for --cli and --unit as well
  • #884 Travis cleanup
  • #885 [doc] Updated documentation for running Mojito's built-in unit/functional tests.
  • #887 more unit tests for ActionContext
  • #888 Update docs/dev_guide/intro/mojito_apps.rst
  • #889 Add more unit tests for params.common and view engine handlebar
  • #890 a little more careful about transforming ac.done() into a no-op
  • #891 Update docs/dev_guide/intro/mojito_mvc.rst
  • #892 [doc] Documentation for how to configure YUI for Mojito applications.
  • #893 Update docs/dev_guide/intro/mojito_mvc.rst
  • #894 unit tests for build/*.js
  • #895 supporting yui.config.groups.app.comboSep=& without mangling
  • #896 dispatcher coverage
  • #897 .travis.yml debug, misc
  • #899 Update docs/dev_guide/topics/mojito_testing.rst
  • #901 Update docs/dev_guide/intro/mojito_binders.rst
  • #902 Add more unit tests for util.
  • #903 fixed client-side unit tests
  • #904 Modify files to workaround a jslint error
  • #905 [gh238] [bz5667423] support for multiple application configuration files
  • #906 fix missing snapshot.packages in build hybridapp
  • #909 [doc] Added links to archived docs.
  • #910 unformatted logs when running in production systems
  • #911 Update docs/dev_guide/code_exs/calling_yql.rst
  • #913 add unit test for version
  • #914 [doc] Docs add links to presentation given by Caridy at YUIConf 2012.
  • #915 Update docs/dev_guide/reference/mojito_troubleshooting.rst
  • #916 re-enable yaml support
  • #921 [doc] Added FAQ discussing how to re-use and extend mojits.
  • #923 workaround how arrow is tweaking with console.debug()

Acknowledgements

Special thanks to @jianlin for his contributions to this release!