Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-data

Package Overview
Dependencies
Maintainers
2
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-data - npm Package Versions

1
15

3.0.0-alpha.5

Diff

jdobry
published 3.0.0-alpha.4 •

Changelog

Source

3.0.0-alpha.4 - 04 January 2016

  • Collections now fire "add" and "remove" events
  • Added before/after(Inject/Eject/EjectAll) lifecycle hooks
jdobry
published 3.0.0-alpha.3 •

Changelog

Source

3.0.0-alpha.3 - 29 December 2015

  • Implemented more methods from 2.x.
  • Better compatibility for the classes exposed by js-data.
  • Switched from Webpack to Rollup for a 7% smaller build (automatic tree-shaking) and built code that's simpler and easier to read.
jdobry
published 3.0.0-alpha.2 •

Changelog

Source

3.0.0-alpha.2 - 22 December 2015

jdobry
published 3.0.0-alpha.1 •

Changelog

Source

3.0.0-alpha.1 - 12 December 2015

Breaking API changes
  • js-data now requires full ES5 support from the runtime. The developer can add es5-shim for older browsers.
  • DS is now just a container for Model classes. It no longer stores data or metadata.
  • Settings are no longer inherited via the prototype. A base Model can be created which the remaining Models can extend.
  • A Model is essentially a constructor function, which can be used to create instance of the Model. A Model has static methods like find and create. The prototype of a Model defines behavior for instances of the Model. Models can be defined using ES6 class syntax. A Model must be "initialized" in order to be able to store data. A Model is automatically initialized if a schema is defined for the Model, or if the Model is created using the .extend method, or the legacy DS#defineResource or DS#defineModel methods.
  • Use of Object.observe and the observe-js polyfill have been dropped in 3.0.0-alpha.1 (see https://esdiscuss.org/topic/an-update-on-object-observe), replaced with Backbone-style change detection (but unlike with Backbone, you can still treat instances like POJOs!) Change detection is now more “opt in”, so you can use it more wisely when you actually need, improving performance overall.
  • In 3.0.0-alpha.1 Models (Resources) can now be defined with plain ES6 classes
Other
  • As this is an alpha build of a complete rewrite from scratch, there is still a lot of work to be done. Some features from 2.x may not have been implemented yet and there are probably bugs. If you're willing to experiment with 3.x, your feedback is appreciated.
  • 3.0.0-alpha.1 gzipped is approximately 40% smaller than 2.8.2 gzipped.
  • In 3.0.0-alpha.1, the internal store (cache) of each Model (Resource) supports secondary indexes for blazing fast lookups on indexed keys. Where in 2.x a hasMany property accessor performs a O(n) lookup, in 3.0.0-alpha.1 the lookup is performed in O(log n) time.
jdobry
published 2.8.2 •

Changelog

Source

2.8.2 - 04 November 2015

Backwards compatible bug fixes
  • #258 - CSP violations due to use of new Function()
jdobry
published 2.8.1 •

Changelog

Source

2.8.1 - 02 November 2015

Backwards compatible bug fixes
  • #239 - loadRelations assumes cacheResponse and linkRelations options are true
  • #259, #260 - Reverting undefined keys by @davincho
jdobry
published 2.8.0 •

Changelog

Source

2.8.0 - 26 October 2015

Backwards compatible API changes
  • #211 - Add case insensitive filtering in query syntax
jdobry
published 2.7.0 •

Changelog

Source

2.7.0 - 22 October 2015

Backwards compatible API changes
  • #205 - DS#revert should ignore omitted fields
  • #243 - DS#commit
  • #245 - Closes #205 by @internalfx
  • #248 - Fix belongsTo relation with zero value by @Pencroff
Other
  • Dropped Grunt
jdobry
published 2.6.1 •

Changelog

Source

2.6.1 - 12 October 2015

Bug fixes
  • #223 - Zero value Id in relations fixed in #237 by @Pencroff
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc