apostrophe
Advanced tools
Changelog
3.42.0 (2023-03-16)
style: table
on inline arrays. It will display the array as a regular HTML table instead of an accordion.
See the array field documentation for more information.draggable: false
on inline arrays. It will disable the drag and drop feature. Useful when the order is not significant.
See the array field documentation for more information.utilityOperations
feature of piece types now supports additional properties:
relationship: true
(show the operation only when editing a relationship), relationship: false
(never show
the operation when editing a relationship), button: true
, icon
and iconOnly: true
.
When button: true
is specified, the operation appears as a standalone button rather than
being tucked away in the "more" menu.utilityOperations
can now specify eventOptions
with an event
subproperty
instead of modalOptions
. This is useful with the new edit
event (see below).await apos.doc.edit({ type: 'article' })
(the type here is an example). To edit an existing document add an
_id
property. To copy an existing document (like our "duplicate" feature) add a copyOf
property. When creating new pages, type
can be sent to @apostrophecms/page
for convenience
(note that the type
property does not override the default or current page type in the editor).edit
Apostrophe event is now available and takes an object with the same properties
as above. This is useful when configuring utilityOperations
.content-changed
Apostrophe event can now be emitted with a select: true
property. If a
document manager for the relevant content type is open, it will attempt to add the document to the
current selection. Currently this works best with newly inserted documents.$t(key)
to localize a string inside
an interpolated variable. This was accomplished by setting skipOnVariables
to false
for i18next, solely on the front end for admin UI purposes.choices
now accepts a module prefix to get the method from, and the ()
suffix.
This has been done for consistency with the external conditions syntax shipped in the previous release. See the documentation for more information.viewPermission
property of schema fields, and renamed permission
to editPermission
(with backwards
compatibility) for clarity. You can now decide if a schema field requires permissions to be visible or editable.
See the documentation for more information.NODE_ENV
, overriden by environmentLabel
option in @apostrophecms/login
module. The environment variable APOS_ENV_LABEL
will override this. Note that NODE_ENV
should generally only be set to development
(the default) or production
as many Node.js modules opt into optimizations suitable for all deployed environments when it is set to production
. This is why we offer the separate APOS_ENV_LABEL
variable.@apostrophecms/doc-type
and @apostrophecms/submitted-drafts
where we were using canCreate
instead of showCreate
to display the Create New
button or showing the Copy
button in Manager
modals.Changelog
3.41.1 (2023-03-07)
No changes. Publishing to make sure 3.x is tagged latest
in npm, rather than 2.x.
Changelog
3.41.0 (2023-03-06)
deep-get-set
dependency with lodash
's get
and set
functions to fix the Prototype Pollution in deep-get-set vulnerability. There was no actual vulnerability in Apostrophe due to the way the module was actually used, and this was done to address vulnerability scan reports.AreaEditor
Vue apps when the page content is refreshed in edit mode. This avoids a leak of Vue apps components being recreated while instances of old ones are still alive.self.apos.login.passport
, some verifications may be necessary to avoid any compatibility issue. The internally used methods are authenticate
, use
, serializeUser
, deserializeUser
, initialize
, session
.Changelog
3.40.0 (2023-02-17)
APOS_BASE_URL
environment variable is now respected as an override of the baseUrl
option.def
attribute set to 0
now. The def
property will be used when the field has no value provided; a value going over the max or below the min threshold still returns null
.select
fields now work properly when the value
of a choice is a boolean rather than a string or a number.