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

ember-data

Package Overview
Dependencies
Maintainers
3
Versions
747
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-data - npm Package Versions

1
7374

1.0.0-beta.16

Diff

Changelog

Source

Release 1.0.0-beta.16 (March 23, 2015)

Breaking Changes
The store now passes snapshots instead of records to adapter methods

In 1.0.0-beta.15 serializers were updated to be passed snapshots instead of records to prevent side-effects like fetching data when inspecting relationships. This has now been extended to also include adapters methods.

The following adapter methods are now passed snapshots instead of records:

  • find(store, type, id, snapshot)
  • findMany(store, type, ids, snapshots)
  • findHasMany(store, snapshot, url, relationship)
  • findBelongsTo(store, snapshot, url, relationship)
  • createRecord(store, type, snapshot)
  • updateRecord(store, type, snapshot)
  • deleteRecord(store, type, snapshot)

The signature of buildURL(type, id, snapshot) has also been updated to receive snapshots instead of records.

This change removes the need for adapters to create snapshots manually using the private API record._createSnapshot() to be able to pass snapshots to serializers.

Snapshots are backwards-compatible with records (with deprecation warnings) and it should be pretty straight forward to update current code to the public Snapshot API:

post.id           => postSnapshot.id
post.title        => postSnapshot.attr('title')
post.author       => postSnapshot.belongsTo('author')
post.comments     => postSnapshot.hasMany('comments')
post.constructor         => postSnapshot.type;
post.constructor.typeKey => postSnapshot.typeKey

If you need to access the underlying record of a snapshot you can do so by accessing snapshot.record.

The full API reference of DS.Snapshot can be found here.

Changes
  • Do not re-add deleted records to a hasMany relationship
  • Shorten the list of reserved attributes on the model
  • Remove _createSnapshot() from DS.Snapshot documentation examples
  • Pass snapshots to adapters instead of records
  • Refactor the model assert so it will be correctly removed from the prod build.
  • Adapters and Serializers are Store Managed
  • Delete Ember.required (it is deprecated).
  • Adding clearer wording for calling super form extract messages
  • Missing parameter for JSDoc
  • Add examples of how to use model.errors in a template
  • Add doc example for defaultValue as a function on DS.attr
  • Update the InvalidError docs to make it more clear about where the server payload gets normalized.
  • Assert if the user tries to redefine a reserved property name.
  • Remove container deprecation warnings in Ember Data tests
  • hasRecordForId should return false if the record is not loaded
  • [BUGFIX] fetching an empty record runs find
  • bump ember-cli to 2.0 & remove sourcemapping comments in production
  • commit record-arrays.js separately so it doesn't clobber the rename
  • Rename local files to use dashes instead of underscores
  • Have snapshots respect the order of items in hasMany relationships
  • remove ManyArray from record_arrays
  • update docs about store in serializer
  • fetch() -> fetchById() in docs
  • Run findHasMany inside an ED runloop
  • Cleanup debug adapter test: Watching Records
  • Fixed didDelete event/callback not fired in uncommitted state
  • Add main entry point for package.json.
  • register the store as a service
  • Warn when expected coalesced records are not found in the response
  • Warn if calling attr, belongsTo or hasMany on model
  • move Model to use default export instead of named export
  • Move buildURL and related methods to a mixin
  • Correct modelFor model not found errors
  • Declare store property on DS.Model
  • improve error message for belongsTo
  • Move _adapterRun onto the DS.Store object
  • Move utility functions out of DS.Store, and into their own modules for reuse across ember-data
  • CLean up implicit relationships on record unload
  • Add assertion for store property on DS.Model subclasses
  • Adds support for using mixins in polymorphic relationships
  • [DOC]: Clarify when didCreate is fired
  • (Docs) ManyArray is no longer a RecordArray
  • Fix: root.deleted.invalid state
bmac
published 1.0.0-beta.15 •

Changelog

Source

Release 1.0.0-beta.15 (February 14, 2015)

Breaking Changes
fivetanley
published 1.0.0-beta.14.1 •

Changelog

Source

Ember Data 1.0.0-beta.14.1 (December 31, 2014)

Changes
  • Replace <%= versionStamp %> with actual version stamp. Thanks @tricknotes!
  • Fix sourcemap loading in Ember CLI and Rails.
fivetanley
published 1.0.0-beta.14 •

Changelog

Source

Ember Data 1.0.0-beta.14 (December 25, 2014)

Breaking Changes
fivetanley
published 1.0.0-beta.12 •

Changelog

Source

Ember Data 1.0.0-beta.12 (November 25, 2014)

Internet Explorer 8 Requires Ember 1.8

A bug in Ember 1.7's Ember.create method (which is a polyfill for Object.create) combined with a bug in es5-shim's Object.create prevent us from giving Ember Data users a good alternative to use. Internally, Ember Data uses Object.create for efficient caches. Ember 1.8 ships a working Object.create polyfill on Ember.create so if you are using Internet Explorer 8 and Ember Data in production, you should upgrade to Ember 1.8 as soon as you can.

If you are using browsers that provide Object.create, you do not need to do any additional work here. This includes mobile browsers, evergreen browsers (Chrome, Opera, Firefox), Safari, and IE9+.

fivetanley
published 1.0.0-beta.11 •

Changelog

Source

Ember Data 1.0.0-beta.11 (October 13, 2014)

  • Rollback after delete record failure
  • warn instead of throw when resolving keys to model
  • added note about coalescing and custom URLs
  • pass ids through encodeURIComponent when turning them into urls
  • Always remove the inverse record (if exists) from a belongsTo relationship fixes #2331
  • polyfill Ember.Map behavior
  • use new Em.Map function signatures
  • Refactor relationships with links
  • Implemented rollbacking of implicit relationships
  • Add support for rollback of relationships from deleted state
  • Unwrap promises when setting a belongsTo
  • Update tests on filters returning reloaded objects
  • Update recordArrays when record has reloaded
  • Refactor inverseFor cache
  • Makes it possible to custom define inverses on only one side
  • HasMany relationships now reload correctly
  • Add a test for calling reload directly on the promiseProxy
  • Add a test for reload on sync hasMany relationships
  • Added a reload to the ManyArray
  • [DOC fix] Remove misleading {inverse: null}
  • Added implicit relationships
  • Improve comments for the inverseFor method
  • Serialize belongsTo where id===null as null
  • [DOCS] Cleanup "USING EMBEDDED RECORDS" API readability
  • preload the belongsTo to be available synchronously
  • Add a test for an async belongsTo with buildURL
  • removed private unused properties in ManyArray
  • Small typo in #normalize documentation
  • Do not clear own relationships when deleting records
rwjblue
published 1.0.0-beta.10 •

Changelog

Source

Ember Data 1.0.0-beta.10 (September 9, 2014)

NOTE: A bug was introduced in this version where the saving of a model with async hasMany property will send an empty list to the server in the payload, so is discouraged to use this version if you have such relationships on your application. For more details https://github.com/emberjs/data/issues/2339

  • Bring back relationship parameter for findHasMany & findBelongsTo
  • add es5-shim/sham requirement to README
  • Add-on uses blueprint addBowerPackageToProject() hook to add ed as bower dep instead of including a pre-built version
  • ember add-on vendor tree is relative to this file, so needs to go back a dir
  • tests and typo fix for ajaxSuccess/ajaxError
  • Add ajaxSuccess hook to the RESTAdapter
  • Added ember-addon support via npm
  • Update recordArrays whenever there are changes to relationships
  • Refactor relationship handling code
  • Add support for embedded polymorphic hasMany
  • improve error message for push
  • [BUGFIX] fixture adapter copies defined fixtures
  • remove unused variables and enforce in jshint
  • Updated docs to warn against use of async:true with EmbeddedRecodsMixin
  • Removed a duplicate explanation of preload
  • small perf, this map was unfortunately adding 5ms -> 8ms overhead for pushMany of N=1000. Removing it removed the overhead entirely.
  • modelFor was used constantly, the extra normalization and string splitting was causing measurable slowdown.
  • Don't use the DOM in the store tests
  • Added an example of how to use the preload arg
  • Added documentation for preload parameter
  • [Documentation] typo in find documentation
1
7374
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