Skip to content

Depend on can-reflect 1.17.10 or later

Compare
Choose a tag to compare
@bmomberger-bitovi bmomberger-bitovi released this 24 May 04:58
· 82 commits to master since this release

With the latest release of can-reflect (https://github.com/canjs/can-reflect/releases/tag/v1.17.10) the use of dates in list queries causes them to stringify to their ISO values in the serialized form of the list set. This release relies on that version or later as a dependency, and adds a test to demonstrate that dates are handled correctly when adding a list reference in the constructor-store list store.

The serialized form of the query object (using sortedSetJSON()) is used internally as a key to the list store by the constructor-store behavior. Previously, with sortedSetJSON treating any date as an empty plain object, sets could match a false positive in the list store if a raw Date was used, rather than its numeric or string representation, in a query. Problems were also seen in the MaybeDate handler in can-query-logic. Both of these are alleviated with the new can-reflect version.