Skip to content

Latest commit

 

History

History
348 lines (223 loc) · 11.3 KB

CHANGELOG.md

File metadata and controls

348 lines (223 loc) · 11.3 KB
1.8.0 - 14 April 2015
Backwards compatible API changes
  • #117 - .find skips the object in the store
  • #118 - DS#find() returns items cached with DS#inject() - Thanks @mightyguava!
  • createInstance will now initialize computed properties (but they won't be updated until the item is injected into the store, or unless you use Instance#set(key, value) to mutate the instance)
Backwards compatible bug fixes
  • #115 - removeCircular bug
1.7.0 - 09 April 2015
Backwards compatible API changes
  • #106 - Add pathname option to actions
  • #114 - Add support to actions for having item ids in the path
1.6.3 - 03 April 2015
Backwards compatible bug fixes
  • #106 - loadRelations: check params.where instead when allowSimpleWhere is disabled - Thanks @maninga!
1.6.2 - 01 April 2015
Backwards compatible bug fixes
  • #104 - DS.schemator is undefined when using browserify
1.6.1 - 31 March 2015
Backwards compatible bug fixes
  • #101 - Reject instead of throw, as throw is messy in the console
1.6.0 - 29 March 2015
Backwards compatible API changes
  • #97 - Don't link relations where localField is undefined
Backwards compatible bug fixes
  • #95 - actions should use defaultAdapter of the resource
1.5.13 - 25 March 2015
Backwards compatible bug fixes
  • #91 - Wrong second argument passed to afterCreateInstance
1.5.12 - 23 March 2015
Backwards compatible bug fixes
  • #84 - DS.Inject performance issues when reloading data (DSUtils.copy was attempting to copy relations)
1.5.11 - 22 March 2015
Backwards compatible bug fixes
  • #83 - Change detection incorrectly handles cycles in the object
1.5.10 - 19 March 2015
Backwards compatible bug fixes
  • #81 - Sometimes inject with nested relations causes an infinite loop
Other
  • Added .npmignore for a slimmer npm package
1.5.9 - 18 March 2015
Backwards compatible bug fixes
  • #76 - Saving relation fields with changesOnly=true
  • #80 - save + changesOnly + nested relations + no actual changes results in an error
Other
  • Upgraded dependencies
1.5.8 - 14 March 2015
Other
  • Extracted BinaryHeap class to its own npm module
1.5.7 - 13 March 2015
Backwards compatible bug fixes
  • #75 - DSUtils.removeCircular is removing more stuff than it should
1.5.6 - 07 March 2015
Backwards compatible bug fixes
  • Fixed loading of the optional js-data-schema
1.5.5 - 07 March 2015
Other
  • Re-wrote a good amount of the code to use ES6. Now using Babel.js to transpile back to ES5.
1.5.4 - 05 March 2015
Backwards compatible bug fixes
  • #72 - bug: items injected via a relationship fail to fire notifications (fixed more cases of this happening)
1.5.3 - 05 March 2015
Backwards compatible bug fixes
  • #35 - beforeInject not called on relationships
  • #72 - bug: items injected via a relationship fail to fire notifications
1.5.2 - 02 March 2015
Backwards compatible bug fixes
  • Now using DSUtils.copy when saving "original" attributes so changes can be computed properly
1.5.1 - 02 March 2015
Backwards compatible bug fixes
  • #66 - "saved" and "lastSaved" method seems to be a misnomer
  • #69 - Using resource base class w/additional properties has some side effects
  • #70 - "lastSaved" timestamp changes too often
Other
  • Removed use of DSUtils.copy in the event hooks. This should increase performance quite a bit.
1.5.0 - 27 February 2015
Backwards compatible API changes
  • #17 - feat: Load relations based on local field name
Backwards compatible bug fixes
  • #62 - getAdapter when called from a Resource fails
  • #65 - internal emit api was not updated to use Resource instead of Resource.name like the lifecycle hooks were
Other
  • Internal optimizations to shave ~2kb off the minified build
1.4.1 - 27 February 2015
Backwards compatible bug fixes
  • #64 - Two possible error cases in DS#find
1.4.0 - 24 February 2015
Backwards compatible api changes
  • #51 - Allow resource instances to be created from a base class
1.3.0 - 11 February 2015
Backwards compatible api changes
  • #50 - Added a DS#is(resourceName, instance) or Resource#is(instance) method to check if an object is an instance of a particular resource
Backwards compatible bug fixes
  • When items are ejected cached collection queries are now checked to see if all the cached items from that query are gone, and if so, the cache query is deleted
1.2.1 - 06 February 2015
Backwards compatible bug fixes
  • #42 - deserialize and beforeInject are called from the parent relation when loadRelations is used
1.2.0 - 05 February 2015
Backwards compatible bug fixes
  • Added a getResource(resourceName) method to resource definitions so adapters can grab the definitions of a resource's relations
1.1.1 - 05 February 2015
Backwards compatible bug fixes
  • #46 - "actions" don't inherit basePath properly
1.1.0 - 04 February 2015
Backwards compatible API changes
  • Allow nested keys in "orderBy" clauses, i.e. orderBy: 'foo.bar'
  • Added get and set methods to the instance prototype for getter/setter manipulation of data store items. Use of set will trigger immediate recalculation of computed properties on the instance. Both get and set support nested key names.
  • Added a removeCircular util method so cyclic objects can be saved without fuss
  • #43 - Added contains operator to the default filter
Backwards compatible bug fixes
  • Added missing createInstance calls
1.0.0 - 03 February 2015

Stable Version 1.0.0

Other
  • Upgraded to the latest observe-js
1.0.0-beta.2 - 23 January 2015
Backwards compatible API changes
  • Updates to defining "actions"
1.0.0-beta.1 - 10 January 2015
Breaking API changes
  • #30 - Issue with offset. To solve this a useFilter option was added, which defaults to false. Previously DS#filter was used to return cached findAll queries, but that had problems. Now, cached items are also tracked by the query that retrieved them, so when you make a query again you consistently get the right data.
Backwards compatible API changes
  • #6 - Allow logging to be configurable
  • #29 - Add version to JSData export
  • #31 - Add build for js-data-debug.js which contains lots of debugging statements and a configurable logger.
1.0.0-alpha.5-8 - 05 December 2014
Backwards compatible API changes
  • #27 - Properly resolve parent params for generating the URL
1.0.0-alpha.5-7 - 05 December 2014
Backwards compatible API changes
  • #26 - Added the DSCreate instance method
Backwards compatible bug fixes
  • #23 - DS#findAll: make a copy of options.params if it's passed in and manipulate that
1.0.0-alpha.5-6 - 03 December 2014
Backwards compatible bug fixes
Other
  • Optimized utility functions to save several kilobytes off of minified file
  • Change detection of nested properties "should" work now
1.0.0-alpha.5-5 - 30 November 2014
Breaking API changes
  • findInverseLinks, findBelongsTo, findHasOne, and findHasMany now default to true
Backwards compatible bug fixes
1.0.0-alpha.5-3 - 28 November 2014
Backwards compatible API changes
  • Added the isectEmpty, isectNotEmpty, |isectEmpty, and |isectNotEmpty filter operators
Other
  • Fixed file size of browser dist file
1.0.0-alpha.5-3 - 26 November 2014
Backwards compatible API changes
  • Server-side js-data now uses the Bluebird promise library
1.0.0-alpha.5-2 - 23 November 2014
Backwards compatible API changes
  • items don't have to be in the data store to call destroy on them anymore
1.0.0-alpha.5-1 - 19 November 2014

Removed DSUtils.deepFreeze

1.0.0-alpha.5-0 - 18 November 2014
Breaking API changes
  • All hooks now take the resource definition object as the first argument instead of just the name of the resource
Backwards compatible API changes
1.0.0-alpha.4-3 - 11 November 2014
Backwards compatible bug fixes
  • #19 - multiple orderBy does not work
1.0.0-alpha.4-2 - 09 November 2014
Backwards compatible API changes
Backwards compatible bug fixes
1.0.0-alpha.4-1 - 08 November 2014
Backwards compatible bug fixes
  • Various fixes
1.0.0-alpha.4-0 - 04 November 2014
Backwards compatible API changes
Backwards compatible bug fixes
  • js-data/js-data-angular#225 - If the server returned an empty array for a get request (valid scenario), angular-data throws an exception
1.0.0-alpha.2 - 31 October 2014
Backwards compatible API changes
  • #20 - es6-promise finally polyfill
1.0.0-alpha.1-2 - 30 October 2014
Backwards compatible bug fixes
  • Fixed an issue with the options defaults util function
1.0.0-alpha.1-1 - 19 October 2014
Backwards compatible API changes
  • #10 - Add js-data-schema integration
1.0.0-alpha.1-0 - 13 October 2014
Backwards compatible API changes
  • #15 - Add beforeCreateInstance & afterCreateInstance
0.4.2 - 06 October 2014
Backwards compatible API changes
  • #12 - Add expiration capabilities (reapInterval, reapAction, maxAge, DS#reap)
0.4.1 - 01 October 2014
Backwards compatible API changes
  • #9 - Make all options passed to methods also inherit from Resource defaults
Backwards compatible bug fixes
Other
  • Added official support for NodeJS
0.4.0 - 25 September 2014
Breaking API changes
  • Refactored from baseUrl to basePath, as baseUrl doesn't make sense for all adapters, but basePath does
  • Made notify configurable globally and per-resource
0.3.0 - 22 September 2014
Backwards compatible API changes
  • Added beforeDestroy and afterDestroy to DS#destroyAll
  • Added eagerEject option to DS#destroyAll and DS#destroy
0.2.0 - 20 September 2014
Backwards compatible API changes
Backwards compatible bug fixes
Other
  • Moved api documentation out of comments and into the GitHub wiki
  • Re-organized code and shaved 5.5kb off the minified file