2.62.0:
- Introduced a
findWithProjection()
method that is added to all MongoDB collection objects. All Apostrophe core modules are migrating towards using this method rather thanfind()
when working directly with MongoDB collections. If you are using the standard MongoDB 2.x driver that is included with Apostrophe, this just calls regularfind()
. When using the forthcomingapostrophe-db-mongo-3-driver
module to replace that with a newer driver that supports the full features of MongoDB 3.6, 4.0 and beyond, this method will provide backwards compatibility by accepting a projection as the second argument likefind()
did until the 3.x driver was released. Developers wishing to be compatible with both drivers will want to start using this method. Again, this only concerns you if you are querying MongoDB directly and passing a projection to find() as the second argument. And if you don’t care about using the 3.x driver, you do not have to change anything. - Various UX improvements and bug fixes to the page versions dialog box. Thanks to Lars Houmark.
- The widget wrapper is updated on the fly with new classes if they change due to edits. Thanks to Fredrik Ekelund.
- When configuring a
date
field, you may pass apikadayOptions
property. This object is passed on to thepikaday
library. Thanks to Lars Houmark. - The
counts: true
option forpiecesFilters
now works properly with joins.