Apostrophe 3.54.0 Structured logging, doc template library improvements, and fixes #4273
BoDonkey
announced in
Release Notes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bonjour, Builders of the Web!
We have made it back to our normally scheduled release schedule after a couple of hectic cycles. The big news for this release is the addition of structured logging resources to the Apostrophe core.
Now it is easier to keep track of logins, add third-party logging packages (example configurations for Pino, Winston, and Bunyan are in our documentation), and create customized log events to serve all your devops needs!
Along the way, we also added customized logging events to our
@apostrophecms/login-hcaptcha,@apostrophecms/login-recaptcha, and@apostrophecms/login-totpextensions. Remember, unless you update your Apostrophe core package too, these new releases will not work correctly.Our big feature release from last cycle, doc template library, got some love in the form of both UI improvements to exclude some pieces from the library (like users) and enable developers to exclude custom modules. Check out the Changelogs below and start building your library!
The Apostrophe core received multiple improvements, changes, and fixes this cycle. This includes better handling of piece-type index page localization - thanks to our wonderful Discord community for bringing this to our attention!
For this next cycle, we are working on document sharing between sites and designing a new look with greater functionality for our Assembly multisite dashboard. To keep up with all the upcoming Apostrophe development and to suggest new features, check out our Product Roadmap. Remember
npm updategets you the latest and greatest right in your project!Apostrophe 3.54.0
Adds
@apostrophecms/logmodule to allow structured logging. All modules havelogDebug,logInfo,logWarnandlogErrormethods now. See the documentation for more details.@apostrophecms/settingstranslations.moduleIfproperty, which tests options at the module levelthe same way that
iftests properties of the document to determine if the operation should beoffered for a particular document. Note that not all options are passed to the front end unless
getBrowserDatais extended to suit the need.column.extraWidthoption (number) forAposTreeHeader.vueto allow control over the tree cell width.AposDocContextMenu.vuebusiness logic to a mixin.column.extraWidthoption (number) forAposTreeHeader.vueto allow control over the tree cell width.Changes
projectionparameter intooptionsinself.findmethod signature for@apostrophecms/any-doc-type,@apostrophecms/any-page-type&@apostrophecms/piece-type.This was never really a projection in A3, so it is not a backwards compatibility issue.
moduleNamefor typicalactions on the context document is automatically passed to the
modal associated with a custom context operation, unless
moduleNameis explicitly specified. The
moduleNameparameter toaddContextOperationis no longer required and should not be passed at all in most cases
(just pass the object argument). If you do wish to specify a
moduleNameto override that prop given to the modal, then it is recommended to pass
it as a
moduleNameproperty of the object, not as a separate argument.For backwards compatibility the two-argument syntax is still permitted.
Fixes
than attempting to remember the most recent move operation.
getFieldsByCategorymethod in theAposEditorMixin.jsby checking for a property before accessing it.data.urlnow includes any sitewide and locale URL prefixes. This fixes local prefixing for pagination of piece-type index pages.getTargetmethod of the page module should usefindForEditingto make sure it is able to seepages that would be filtered out of a public view by project level or npm module overrides.
Apostrophe 3.x modules
@apostrophecms/login-totp1.1.0This login verification module adds a TOTP (Time-based One-Time Password) check when any user logs into the site, compatible with Google Authenticator or any TOTP app.
When activated, it will ask unregistered users to add a token to their app through a QR code. Once done, it will ask users to enter the code provided by their app after the initial login step.
Adds
totp-completeandtotp-invalid-tokenstructured logging events.@apostrophecms/login-recaptcha1.1.0This login verification module adds a reCAPTCHA check when any user logs into the site. It uses reCAPTCHA v3, which means that the test is invisible aside from a reCAPTCHA logo at the bottom of the screen.
Adds
recaptcha-completeandrecaptcha-invalid-tokenstructured logging events.@apostrophecms/login-hcaptcha1.2.0This login verification module adds a hCaptcha check when any user logs into the site.
Adds
hcaptcha-completeandhcaptcha-invalid-tokenstructured logging events.Pro modules
@apostrophecms-pro/doc-template-library1.1.0This module solves the "blank page problem" for developers and product managers, and makes it faster for editors to create content. doc-template-library allows for the configuration of default widgets and pre-populated content on piece or page templates, and to re-use existing layouts. Contact us or visit our new pricing page to learn more.
Adds
moduleNameto toolbar manager in order to add the ability to have custom modals for batch operations.hasTemplates: falseoption can be set on any piece type module, and templates have been disabled forseveral standard types for which they do not make sense.
Fixes
apostrophemodule).Beta Was this translation helpful? Give feedback.
All reactions