Apostrophe 2 v3.2.0 Release Notes
Release Date: 2021-08-13 // over 2 years ago-
๐ Fixes
req.hostname
now works as expected whentrustProxy: true
is passed to the@apostrophecms/express
module.- ๐ Apostrophe loads modules from npm if they exist there and are configured in the
modules
section ofapp.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 scanspackage.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 thesass
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.