Apostrophe2 v2.43.0 Release Notes
Release Date: 2017-12-12 // over 6 years ago-
β Unit tests passing.
β Regression tests passing.
π When a "file" or "image" is moved to the trash, the attachment in question now becomes inaccessible. This is particularly important to stop access to obsolete PDFs, which Google loves to access. If the file or image is removed from the trash, the attachment becomes available again. In the case of images, the 1/6th size remains available by default to provide preview when viewing the trash. If the same attachment is referenced by more than one doc, which can happen due to "Copy" operations or
apostrophe-workflow
, it remains available until all such docs are in the trash.π Parked properties are no longer editable in page settings. Since every site restart always wiped them out anyway, this is a bug fix, not a truly new behavior. With this change, you can finally set
type: 'home'
whenpark
ing the home page, and removehome
from your page types dropdown.π· The
apostrophe-jobs
module now offers arunNonBatch
method, which is useful for long-running operations that don't involve iterating over many instances of the same type of object.π Improvements to background image positioning for images widgets.
A block has been added to override the
lang
attribute easily. Thanks to Ayho.The
imgAlt
block can now be used to conveniently override thealt
attribute of images when overridingwidget.html
forapostrophe-images-widgets
. Thanks to RaphaΓ«l DiRago.The
required
option now works properly for fields of typearray
(there must be at least one item in the array).π Improved error messages for unblessed widget schemas. These are usually related to a widget that is no longer in the page template but appears in the database.
π» A UI bug that caused tabs to become invisible when returning from nested dialog boxes has been fixed.
0οΈβ£ Filters for "select" fields now default to "no opinion," rather than the default choice. This is the normal behavior for other field types.
π Even more promise support!
apos.attachments.insert
,pieces.trash
andpieces.rescue
all return promises if no callback is given.π A YouTube embed unit test was removed to ensure consistent results in Travis CI, which is once again in routine use.