apostrophe
Advanced tools
Changelog
3.19.0
dateAndTime
added. This schema field type saves in ISO8601 format, as UTC (Universal Coordinated Time), but is edited in a user-friendly way in the user's current time zone and locale.nodemonConfig
section of the latest package.json
in a3-boilerplate for the new "ignore" rules you'll need to prevent nodemon from stopping the process and restarting.apostrophecms/asset:clear-cache
for clearing the webpack disk cache. This should be necessary only in rare cases where the configuration has changed in ways Apostrophe can't automatically detect.publishedLabel
field can be set for any schema field of a page or piece. If present it is displayed instead of label
if the document has already been published.Changelog
3.18.1
apos.rootDir
differs from apos.npmRootDir
).Changelog
3.18.0 (2022-05-03)
@apostrophecms/image
widget for a sample implementation of the necessary styles.aspectRatio
option for image widgets. When set to [ w, h ]
(a ratio of width to height), images are automatically cropped to this aspect ratio when chosen for that particular widget. If the user does not crop manually, then cropping happens automatically.minSize
option for image widgets. This ensures that the images chosen are at least the given size [ width, height ]
, and also ensures the user cannot choose something smaller than that when cropping.components
option as browser data, so that individual widget type modules that support contextual editing can be implemented more conveniently.focused
prop which is helpful in deciding when to display additional UI.beforeExit
async handler.apostrophe:run
event are now able to send an exit code to the Apostrophe bootstrap routine.localhost
will now successfully find a typical dev MongoDB server bound only to 127.0.0.1
, Apostrophe can generate valid ipv6 URLs pointing back to itself, and webpack
and vue-loader
have been updated to address incompatibilities.apos.doc.addContextOperation()
).AposSchema
component now supports an optional generation
prop which may be used to force a refresh when the value of the object changes externally. This is a compromise to avoid the performance hit of checking numerous subfields for possible changes every time the value
prop changes in response to an input
event.@apostrophecms/doc:afterAllModesDeleted
fired after all modes of a given document are purged.self.email
method of modules now correctly accepts a default from
address configured for a specific module via the from
subproperty of the email
option to that module. Thanks to chmdebeer
for pointing out the issue and the fix._urls
not added on attachment fields when pieces API index is requested (#3643)0
.nestedModuleSubdirs
feature no longer throws an error and interrupts startup if a project contains both @apostrophecms/asset
and asset
, which should be considered separate module names.Changelog
3.17.0 (2022-03-31)
object
field type, which works just like array
but stores just one sub-object as a property, rather than an array of objects.relationship
fields, implement backlinks of related documents by adding a relatedReverseIds
field to them and keeping it up to date. There is no UI based on this feature yet but it will permit various useful features in the near future.ui/src
build would otherwise be very large due to code used on rarely accessed pages.npm install
, for dependencies that are directly included by this package.etags
cache option is enabled. See the documentation for more information.
It allows caching of pages and pieces, using a cache invalidation mechanism that takes into account related (and reverse related) document updates, thanks to backlinks mentioned above.
Note that for now, only single pages and pieces benefit from the ETags caching system (pages' and pieces' getOne
REST API route, and regular served pages).
The cache of an index page corresponding to the type of a piece that was just saved will automatically be invalidated. However, please consider that it won't be effective when a related piece is saved, therefore the cache will automatically be invalidated after the cache lifetime set in maxAge
cache option.ui/src
or ui/apos
when using npm link
to develop the module in question.es5: true
option to @apostrophecms/asset
works again.