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
-
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-totp
extensions. 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 update
gets you the latest and greatest right in your project!Apostrophe 3.54.0
Adds
@apostrophecms/log
module to allow structured logging. All modules havelogDebug
,logInfo
,logWarn
andlogError
methods now. See the documentation for more details.@apostrophecms/settings
translations.moduleIf
property, which tests options at the module levelthe same way that
if
tests 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
getBrowserData
is extended to suit the need.column.extraWidth
option (number) forAposTreeHeader.vue
to allow control over the tree cell width.AposDocContextMenu.vue
business logic to a mixin.column.extraWidth
option (number) forAposTreeHeader.vue
to allow control over the tree cell width.Changes
projection
parameter intooptions
inself.find
method 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.
moduleName
for typicalactions on the context document is automatically passed to the
modal associated with a custom context operation, unless
moduleName
is explicitly specified. The
moduleName
parameter toaddContextOperation
is 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
moduleName
to override that prop given to the modal, then it is recommended to pass
it as a
moduleName
property 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.
getFieldsByCategory
method in theAposEditorMixin.js
by checking for a property before accessing it.data.url
now includes any sitewide and locale URL prefixes. This fixes local prefixing for pagination of piece-type index pages.getTarget
method of the page module should usefindForEditing
to 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-totp
1.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-complete
andtotp-invalid-token
structured logging events.@apostrophecms/login-recaptcha
1.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-complete
andrecaptcha-invalid-token
structured logging events.@apostrophecms/login-hcaptcha
1.2.0This login verification module adds a hCaptcha check when any user logs into the site.
Adds
hcaptcha-complete
andhcaptcha-invalid-token
structured logging events.Pro modules
@apostrophecms-pro/doc-template-library
1.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
moduleName
to toolbar manager in order to add the ability to have custom modals for batch operations.hasTemplates: false
option can be set on any piece type module, and templates have been disabled forseveral standard types for which they do not make sense.
Fixes
apostrophe
module).Beta Was this translation helpful? Give feedback.
All reactions