- Re-renamed
field
back tofieldName
(undid the variable rename from ce90b0e). - Updated
deserialize
/serialize
/toString
to use thefieldName
key, but fall back to thefield
key. - Added a
field
option toserialize
if the shorter key is desired. - Added extra tests for both of the variations.
- Fixed named exports in module.
- Renamed
toJS
/fromJS
toserialize
/deserialize
to remove unexpected side effects when Quri instances are stored inside Immutable.js data structures. - Added
toJSON
/fromJSON
for easier JSON string handling. - Added
parse
to handle either strings withfromJSON
or objects withdeserialize
- Aliased
serialize
/deserialize
asserialise
/deserialise
- Aliased
toJSON
asstringify
- Fixed inconsistent behaviour of
toJS
/fromJS
. - Updated
fromJS
to handle null/undefined with a new Quri instance. - Calling
fromJS
on an existing Quri instance will return a clone of the original.
- Expanded
fromJS
to handle object format on input data. - Added verbose (object format) option to
toJS
. - Added constants.
- Renamed class from
Criteria
toQuri
. toJS
/fromJS
added for object serialization.- Chaining support.
- quri-js initial commit.