js-data

Give your data the treatment it deserves with a framework-agnostic, datastore-agnostic JavaScript ORM built for ease of use and peace of mind. Works in Node.js and in the Browser. Main Site: http://js-data.io, API Reference Docs: http://api.js-data.io/js-data

MIT License

Downloads
20K
Stars
1.6K
Committers
34

Bot releases are visible (Hide)

js-data - 2.10.1 Latest Release

Published by jmdobry over 6 years ago

2.10.1 - 13 February 2018
Bug fixes
  • #492 - Fixed bug where pending queries were used even when pending queries were set to disabled. Thanks @eldridge
js-data - 3.0.2

Published by jmdobry over 6 years ago

3.0.2 - 13 February 2018
Bug fixes
  • [#493] - Fixes #416. Thanks @lumimies
js-data - 3.0.1

Published by jmdobry about 7 years ago

3.0.1 - 18 August 2017
Backwards compatible changes
  • Exposed the makeDescriptor method on the Schema class.
Bug fixes
  • Fixes some missing definitions in dist/js-data.d.ts.
Other
  • Upgraded dependencies.
js-data - 3.0.0

Published by jmdobry about 7 years ago

3.0.0 - 01 July 2017

v3 Stable Release

Bug fixes
  • #473 - Fixes #471 by @Tronix117
js-data - 3.0.0-rc.9

Published by jmdobry over 7 years ago

3.0.0-rc.9 - 22 February 2017
Bug fixes
  • Schema#pick no longer incorrectly infers values for objects and arrays
js-data - 3.0.0-rc.8

Published by jmdobry over 7 years ago

3.0.0-rc.8 - 21 February 2017
Breaking changes
  • #445
    • The strict option has been removed from the toJSON methods. The methods now rely wholly on Schema#pick for strictness, and assumes the original strict: false behavior if no schema is defined.
    • Schema#pick now copies properties not defined in the "properties" keyword if the "additionalProperties" keyword is present and truthy.
    • Mappers are no longer given an empty schema if no schema is provided
Bug fixes
  • #446 - fix(Collection): Add noValidate option to Collection#add, by @ivanvoznyakovsky
js-data - 3.0.0-rc.7

Published by jmdobry over 7 years ago

3.0.0-rc.7 - 29 January 2017
Bug fixes
  • #433 - Collection#add is missing a "silent" option
Backwards compatible changes
  • Added a emitRecordEvents option to Collection which defaults to true
Other
  • Moved Babel config from package.json to .babelrc
  • Upgraded devDependencies
  • Added a yarn.lock file
3.0.0-rc.6 - 05 October 2016
Bug fixes
  • Wrapped lifecycle hook validation error in an instance of Error
js-data - 3.0.0-rc.5

Published by jmdobry about 8 years ago

3.0.0-rc.5 - 26 September 2016
Backwards compatible changes
  • Fixed some edge cases with Schemas related to anyOf, oneOf, allOf, and additionalProperties
  • #386 - Added intermediate SimpleStore class between Container and DataStore.
  • #393 - Added Schema#pick method
Bug fixes
  • #374 - revert() after a save() does not work with Schema defined properties
  • #387 - Switch to passing only the current-change in 'changes' emit by @pik
Other
  • #406 - refactor(test): splits tests into smaller ones by @stalniy
js-data - 2.10.0

Published by jmdobry about 8 years ago

2.10.0 - 22 September 2016
Backwards compatible changes
  • #324 - Added applyDefaultsOnInject option, which defaults to false
  • #364 - Added usePendingFind and usePendingFindAll options, which both default to true
Bug fixes
  • #316 - Merge/Replace inject does not reevaluate computed properties
  • #324 - Inconsistent defaultValues behavior.
  • #364 - Resource.pendingQueries on server causes unexpected behaviour
  • #373 - DS.clear() extremely slow
  • #407 - DSUtils.copy blacklist applies to nested fields
js-data - 3.0.0-rc.4

Published by jmdobry about 8 years ago

3.0.0-rc.4 - 03 August 2016
Bug fixes
  • #376 - Fix unlinking of records
  • #379 fixes #380 - fix(hasOne): do not create links for undefined or null keys by @nickescallon
  • #382 fixes #381 - check that inverseDef exists before attempting to setup Inverse for belongsTo by @pik
  • #384 - DataStore does not correctly call super
js-data - 3.0.0-rc.3

Published by jmdobry about 8 years ago

3.0.0-rc.3 - 25 July 2016
Bug fixes
  • #370 - fix(belongsTo): do not try to link when foreign key is null by @nickescallon
  • #371 - Remove target param when calling target.set() by @nvahalik
js-data - 3.0.0-rc.2

Published by jmdobry over 8 years ago

3.0.0-rc.2 - 08 July 2016
Bug fixes
  • #366 - Mapper doesn't always call Schema#apply when it should
js-data - 3.0.0-rc.1

Published by jmdobry over 8 years ago

3.0.0-rc.1 - 08 July 2016
Breaking changes
  • Added Mapper#applyDefaults option which defaults to true
  • #352 - Mapper#beforeCreate and Mapper#beforeCreateMany now apply default values
    to records for missing values according to the Mapper's schema and the applyDefaults option.
Backwards compatible changes
  • Added the ctx property to the opts argument passed to validation keywords
  • Added Schema#applyDefaults(target) method
Bug fixes
  • #365 - "noValidate" should be used instead of "validate"

3.0.0-rc.1 API Reference Docs

js-data - 3.0.0-beta.10

Published by jmdobry over 8 years ago

3.0.0-beta.10 - 02 July 2016

Forgot to bump version in package.json for previous release

3.0.0-beta.10 API Reference Docs

js-data - 3.0.0-beta.9

Published by jmdobry over 8 years ago

3.0.0-beta.9 - 02 July 2016
Breaking changes
  • Usaved records can now be added to a Collection (added to the store)
  • Record#save now always updates the original record
Backwards compatible changes
  • Added Collection#unsaved, LinkedCollection#unsaved, DataStore#unsaved
  • Added Collection#prune, LinkedCollection#prune, DataStore#prune
  • Added Record#isNew and Record#changeHistory
  • Added option DataStore#usePendingFind, which defaults to true
  • Added option DataStore#usePendingFindAll, which defaults to true

3.0.0-beta.9 API Reference Docs

js-data - 3.0.0-beta.8

Published by jmdobry over 8 years ago

3.0.0-beta.8 - 22 June 2016
Breaking changes
  • #359 - In-memory relations are now unlinked by default when a record is destroyed
Backwards compatible changes
  • #353 - Schema: Add shorthand option to track all properties
  • #356 - Add back "methods" shortcut for adding instance methods to Mapper#recordClass
Bug fixes
  • #349 - Individual Record property validation errors don't report correct path
  • #354 - Unsubscribing from an event listener in the case of no event listeners, shouldn't raise an error
  • #355 - Resetting locals to undefined triggers a setter with an (undefined)record argument
  • #358 - findAll() on scoped store (store.as()) does not add the result to the store collection
Other
  • TONS of additional JSDoc comments in the source code. Thanks @MatthewOverall!

3.0.0-beta.8 API Reference Docs

js-data - 3.0.0-beta.7

Published by jmdobry over 8 years ago

3.0.0-beta.7 - 05 June 2016
Backwards compatible changes
  • #336 - refactor(Relation): move Relation class into separate file by @stalniy
  • #337 - refactor(LinkedCollection) by @stalniy
  • #342 - Allow definition of custom getter/setter for schema properties by @jmdobry
  • #344 - Schema and utils tests by @MatthewOverall
  • #345 - refactor(Container): move defineRelations method to Mapper by @stalniy
  • Turned off minification of function names in js-data.min.js
Bug fixes
  • #332 - records should "commit" when they are saved fixed by @jmdobry
Other
  • Upgraded dependencies

3.0.0-beta.7 API Reference Docs

js-data - 3.0.0-beta.6

Published by jmdobry over 8 years ago

3.0.0-beta.6 - 16 May 2016
Breaking changes
  • beforeCreate, beforeCreateMany, beforeUpdate, beforeUpdateAll, and beforeUpdateMany
    now run Mapper#validate for you by default.
Backwards compatible changes
  • Added Container#as and DataStore#as
  • Added some deprecation warnings
  • Added support for groupings in where clauses

3.0.0-beta.6 API Reference Docs

js-data - 3.0.0-beta.5

Published by jmdobry over 8 years ago

3.0.0-beta.5 - 07 May 2016
Backwards compatible changes
  • Pulled in mindex updates
Bug fixes
  • #327 - Issues with inheritance using babel and ES6 classes
3.0.0-beta.4 - 06 May 2016
Breaking changes
  • Relation links managed by DataStore are now non-enumerable by default
  • Before calculating Record#changes, toJSON is called on if available.
3.0.0-beta.3 - 27 April 2016
Breaking changes
  • dist/js-data.d.ts is now in ES6 module format
Backwards compatible changes
  • Added typings field to package.json
  • Added typings.json
js-data - 3.0.0-beta.2

Published by jmdobry over 8 years ago

3.0.0-beta.2 - 27 April 2016
Backwards compatible changes
  • Collection now has a configurable queryClass property, which defaults to Query
  • Lots of JSDoc improvements

3.0.0-beta.2 API References Docs