Releases: canjs/can-connect
Allow connection-wide beforeSend method
PR #485 - allow connection-wide beforeSend method - Modify url
option parsing to allow a beforeSend
implementation to be passed as an ajax option for all data request methods. See documentation here: https://canjs.com/doc/can-connect/data/url/url.url.html
Adding can/session behavior
Including a new behavior that simplifies the handling of session data.
Use canReflect to create new lists
This is a patch release, making sure that can-connect/can/map/ uses canReflect.new
to create new lists. Doing this ensures that lists that implement can.new
symbol have that logic run.
QUNIT2 upgrade
This updates the tests to use [email protected].
Depend on can-reflect 1.17.10 or later
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.
Remove left-over <<<<<<< HEAD from merge
This removes <<<<<<< HEAD
from a demo file.