Apostrophe2 v2.39.0 Release Notes

Release Date: 2017-10-24 // over 6 years ago
  • โœ… Unit tests passing.

    โœ… Regression tests passing.

    • ๐ŸŽ Easier access to options. Introduced the getOption method to all modules. Calling self.getOption(req, 'sizes.large') from your module's server-side JavaScript code, or just module.getOption('sizes.large') from Nunjucks, will return the value of self.options.sizes.large for that module. You may also pass an array of keys, i.e. module.getOption([ 'sizes', 'large' ]). This method is tolerant, it returns undefined if any part of the path does not exist. See also the new apostrophe-override-options which extends this feature to support customizing the returned value for any option based on the current page type, page settings, piece settings and locale. * Helpful warning when maximum area/widget loader recursion level is reached. Always use projections when adding joins to your schema to avoid a performance hit due to runaway recursion.
    • ๐Ÿ†• New disabledTypes option to apostrophe-pages, primarily for use with apostrophe-override-options.
    • ๐Ÿ›  Fixed UI bug relating to area menus at the bottom of the page.
    • ๐Ÿ›  Fixed bug that caused a crash when invalid usernames attempted to log in. Thanks to Arthur.