Apostrophe 3.7.0 #3520
agilbert
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
-
Hi everyone,
Our latest releases of Apostrophe and its various extensions are now available on npm.
This is an incremental release, with some nice smaller updates and fixes. We are currently working a bigger release for next week that will include new batch operations on pieces, as well as pieces import and export functions. We're excited to share all of that with you soon!
Meanwhile, some highlights from this release include:
As always, read on for the full release notes, and have a great day 🌞
Apostrophe 3.7.0
Adds
Schema select field choices can now be populated by a server side function, like an API call. Set the
choices
property to a method name of the calling module. That function should take a single argument ofreq
, and return an array of objects withlabel
andvalue
properties. The function can be async and will be awaited.Apostrophe now has built-in support for the Node.js cluster module. If the
APOS_CLUSTER_PROCESSES
environment variable is set to a number, that number of child processes are forked, sharing the same listening port. If the variable is set to0
, one process is forked for each CPU core, with a minimum of2
to provide availability during restarts. If the variable is set to a negative number, that number is added to the number of CPU cores, e.g.-1
is a good way to reserve one core for MongoDB if it is running on the same server. This is for production use only (NODE_ENV=production
). If a child process fails it is restarted automatically.Fixes
date
andtime
schema field types.require
their projectapp.js
file in the Node.js REPL for debugging and inspection. Thanks to Matthew Francis Brunetti.en
locale as a last resort, which ensures the admin UI works if it has not been translated.require
their projectapp.js
in the Node.js REPL for debugging and inspectionChanges
relationship
fields have an optionalbuilders
property, which replacesfilters
from 2.x, and within that an optionalproject
property, which replacesprojection
from 2.x (to match MongoDB'scursor.project
). Prior to this release leaving the old syntax in place could lead to severe performance problems due to a lack of projections. Starting with this release the 2.x syntax results in an error at startup to help the developer correct their code.className
option from the widget options in a rich text area field is now also applied to the rich text editor itself, for a consistently WYSIWYG appearance when editing and when viewing. Thanks to Max Mulatz for this contribution.afterLoad
events, which are deprecated.afterLogin
method in the login module.Apostrophe 3.x extensions
form 1.0.0-beta.1
open-graph 1.1.0
en
) locale strings for static text.redirect 1.1.0
en
) locale strings for static text.es
) localization to static text. Thanks to Eugenio Gonzalez for the contribution.sk
) locale strings for static text. Thanks to Michael Huna for the contribution.seo 1.1.0
en
) locale strings for static text.es
) localization to static text. Thanks to Eugenio Gonzalez for the contribution.sk
) locale strings for static text. Thanks to Michael Huna for the contribution.Beta Was this translation helpful? Give feedback.
All reactions