Apostrophe 2 v3.2.0 Release Notes

Release Date: 2021-08-13 // over 2 years ago
  • ๐Ÿ›  Fixes

    • req.hostname now works as expected when trustProxy: true is passed to the @apostrophecms/express module.
    • ๐Ÿš€ Apostrophe loads modules from npm if they exist there and are configured in the modules section of app.js. This was always intended only as a way to load direct, intentional dependencies of your project. However, since npm "flattens" the dependency tree, dependencies of dependencies that happen to have the same name as a project-level Apostrophe module could be loaded by default, crashing the site or causing unexpected behavior. So beginning with this release, Apostrophe scans package.json to verify an npm module is actually a dependency of the project itself before attempting to load it as an Apostrophe module.
    • ๐Ÿ›  Fixes the reference to sanitize-html defaults in the rich text widget.
    • ๐Ÿ›  Fixes the toolbarToAllowedStyles method in the rich text widget, which was not returning any configuration.
    • ๐Ÿ›  Fixes the broken text alignment in rich text widgets.
    • โž• Adds a missing npm dependency on chokidar, which Apostrophe and Nunjucks use for template refreshes. In most environments this worked anyway due to an indirect dependency via the sass module, but for stability Apostrophe should depend directly on any npm module it uses.
    • ๐Ÿ›  Fixes the display of inline range inputs, notably broken when using Palette
    • ๐Ÿ›  Fixes occasional unique key errors from migrations when attempting to start up again with a site that experienced a startup failure before inserting its first document.
    • Requires that locale names begin with a letter character to ensure order when looping over the object entries.
    • โœ… Unit tests pass in MongoDB 5.x.

    โž• Adds

    • โž• Adds Cut and Paste to area controls. You can now Cut a widget to a virtual clipboard and paste it in suitable areas. If an area ๐Ÿ’ป can include the widget on the clipboard, a special Clipboard widget will appear in area's Add UI. This works across pages as well.

    ๐Ÿ”„ Changes

    • ๐Ÿšš Apostrophe's Global's UI (the @apostrophecms/global singleton has moved from the admin bar's content controls to the admin utility tray under a cog icon.
    • The context bar's document Edit button, which was a cog icon, has been rolled into the doc's context menu.