apos.utils.postnow return a promise if invoked without a callback. This means you may use
awaitwith them. It is up to you to provide a
Promisepolyfill if you use this feature without callbacks and intend to support IE11. For instance you could use the
core-jslibrary. These methods are similar to
$.postbut do not require jQuery.
apos.utils.postsupports Apostrophe’s CSRF protection natively so you do not have to add an exception if you use it. These methods are available in lean frontend mode.
apos.utils.getno longer adds an unnecessary
?to the URL it fetches if
datahas no properties. In addition,
apos.utils.getleaves the URL unchanged if
Recursion warnings now include a hint to add a projection to pieces-widgets as well as more obvious joins.
Dependencies updated to reflect latest version of
emulate-mongo-2-driver, which contains an important fix to