-
apos.utils.get
andapos.utils.post
now return a promise if invoked without a callback. This means you may useawait
with them. It is up to you to provide aPromise
polyfill if you use this feature without callbacks and intend to support IE11. For instance you could use thecore-js
library. These methods are similar to$.get
and$.post
but do not require jQuery.apos.utils.post
supports 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.get
no longer adds an unnecessary?
to the URL it fetches ifdata
has no properties. In addition,apos.utils.get
leaves the URL unchanged ifdata
is null. -
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 tocount
.