ApostropheCMS v3.12.0 Release Notes

Release Date: 2022-01-21 // over 2 years ago
  • โž• Adds

    • โž• Adds latest Slovak translation strings to SK.json in i18n/ folder
    • ๐Ÿ—„ It is now best practice to deliver namespaced i18n strings as JSON files in module-level subdirectories of i18n/ named to match the namespace, e.g. i18n/ourTeam if the namespace is ourTeam. This allows base class modules to deliver phrases to any namespace without conflicting with those introduced at project level. The i18n option is now deprecated in favor of the new i18n module format section, which is only needed if browser: true must be specified for a namespace.
    • ๐Ÿ”ง Brought back the nestedModuleSubdirs feature from A2, which allows modules to be nested in subdirectories if nestedModuleSubdirs: true is set in app.js. As in A2, module configuration (including activation) can also be grouped in a modules.js file in such subdirectories.

    ๐Ÿ›  Fixes

    • ๐Ÿ›  Fixes minor inline documentation comments.
    • ๐Ÿ’ป UI strings that are not registered localization keys will now display properly when they contain a colon (:). These were previously interpreted as i18next namespace/key pairs and the "namespace" portion was left out.
    • ๐Ÿ›  Fixes a bug where changing the page type immediately after clicking "New Page" would produce a console error. In general, areas and checkboxes now correctly handle their value being changed to null by the parent schema after initial startup of the AposInputArea or AposInputCheckboxes component.
    • ๐Ÿ—„ It is now best practice to deliver namespaced i18n strings as JSON files in module-level subdirectories of i18n/ named to match the namespace, e.g. i18n/ourTeam if the namespace is ourTeam. This allows base class modules to deliver phrases to any namespace without conflicting with those introduced at project level. The i18n option is now deprecated in favor of the new i18n module format section, which is only needed if browser: true must be specified for a namespace.
    • โœ‚ Removes the @apostrophecms/util module template helper indexBy, which was using a lodash method not included in lodash v4.
    • Removes an unimplemented csrfExceptions module section cascade. Use the csrfExceptions option of any module to set an array of URLs excluded from CSRF protection. More information is forthcoming in the documentation.
    • ๐Ÿ›  Fix [Object Object] in the console when warning A permission.can() call was made with a type that has no manager is printed.

    ๐Ÿ”„ Changes

    • ๐Ÿ”’ Temporarily removes npm audit from our automated tests because of a sub-dependency of vue-loader that doesn't actually cause a security vulnerability for apostrophe.