Releases: dojo/dojo1-dstore
Releases · dojo/dojo1-dstore
1.2.1
Enhancements
Collection
: add documentation onSimpleQuery
nested property shorthand (#231)- Add documentation on GET response requirement for
Rest
store (#217) - Add information about item total to
Request
store documentation (#192) - Improve TypeScript experience with updates to
package.json
anddstore.d.ts
(#209) - Update build configuration (
package.js
) for Dojo build tool (#240)
Bug fixes
- Allow empty object to be passed to
Collecton#filter()
(#232) DstoreAdapter
: avoid mutating sort parameter sosort()
works when called repeatedly (#184)Store#emit
: ifstorage.emit
throws an error, log it instead of hiding it (#187)SimpleQuery
: only callarray.sort
if sort criteria are provided (#159)
1.2.0
Enhancements
- Support passing a function as the query in
dstore/legacy/StoreAdapter
(#215) - Improve performance of
putSync
indstore/Memory
(#227) - Add filtering to event notifications in
dstore/Store
(#188) - Add
refresh
method todstore/RequestMemory
(#106)
Bug fixes
- Reject promise when
fetch
orput
fail indstore/Cache
(#213) - Return object (instead of id) from
put
method indstore/db/IndexedDB
(#162) - Correctly handle
idProperty
indstore/db/IndexedDB
(#160) - Wait for 'complete' event to resolve promise for transactions in
dstore/db/IndexedDB
(#221) - Remove unused dependency in
dstore/Store
(#225) - Fix logic to pass result to caching store in
add
/put
indstore/Cache
(#228) - Fix XHR query string for complex filters in
dstore/Request
(#121)
1.1.2
Enhancements
- Added TypeScript interfaces.
- Added Model assignment to LocalDbs (#126)
- Added select to the methods that are cached in
Cache
. - Improved performance of
Cache
. (#180) - Improved the
Memory
documentation. (#196) - Updated
Request
to allow the HTTP request call to be easily overridden. (#206)
Bug Fixes
- Fixed the way
Filter
builds logical operators. (#123) - Fixed how
SimpleQuery
treatsundefined
in a compare. (#131) - Fixed how CSV unit tests handle end of line characters. (#132)
- Updated
StoreAdapter#fetch
to always return a promise. (#124) - Fixed
LocalDB
unit test for IE. (#170) - Fixed how comparators are combined in
SimpleQuery
. (#189) - Fixed
Cache#put
to not always remove items before calling the base store's put method. (#117) - Fixed an issue in
IndexedDB
that could result in items being duplicated. (#195) - Fixed in issue in
Trackable
when using thebeforeId
option can result in an item being removed from the tracking caches. (#207)
1.1.1
1.0.3
- Fixed
Csv
's serialization of non-string values. - Updated
Request
to tolerate receiving an empty response to PUT calls. (#104) - Fixed
Request
to retrievetotal
from data after parsing it. (#113) - Fixed
StoreAdapter
to always return promises fromfetch
andfetchRange
. (#124) - Made
SimpleQuery
sort null and undefined values consistently. (#131) - Fixed
Csv
tests to pass on all platforms regardless of newline format. (#132)
Additionally, dstore's license has been simplified to simply use the "New" (3-clause) BSD license.
1.1.0
Several new features:
- New LocalDB stores, implementing dstore API with complex querying functionality, including stores:
- IndexedDB, SQL, and LocalStorage
- New
contains
filter operator for matching array values - New
select
query method for selecting certain properties from results - Support for cross-store "relational" querying"
This release also includes refinements to query result handling.
Fetch results fixes
Several fixes for ensuring fetch results are returned in the correct form:
- Trackable
fetch()
results should now properly preservetotalLength
, issue #97 7064a1c, 380e1eb - Properly return query results, with
totalLength
as a promise, from DstoreAdapter regardless of options provided fd3d734 - Ensuring that add/put return a promise for read-only master stores 9a4a777
Thanks to @kfranqueiro and @edhager for help with these issues.
v1.0.1
Initial Release
dstore builds upon the dojo store architecture with numerous API and implementation improvements, including:
- A selection of useful stores including Memory, RequestMemory, and Rest
- Query encapsulation - each query method returns a collection representing the query
- Advanced filtering - filters can be composed using different conditions and conjunctions for use across stores
- Modeling support - collection results can be provided as modeled objects
- Trackable collections over multiple, paged result sets
- Caching of queries and individual objects
- A sensible hierarchical collection implementation via the Tree mixin
- Adapters to and from the dojo/store API
- All operational methods return promises (and have *Sync equivalence if available)