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
744
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-data - npm Package Versions

1
7375

1.13.0

Diff

bmac
published 1.0.0-beta.19.2 •

Changelog

Source

Release 1.0.0-beta.19.2 (June 12, 2015)

  • Fix a regression with Ember CLI users who have defined a custom store in app/store.js - https://github.com/emberjs/data/pull/3316
  • Fix a regression where currentState was not defined on a record until the record a state change occured. https://github.com/emberjs/data/pull/3311
fivetanley
published 1.0.0-beta.19.1 •

Changelog

Source

Release 1.0.0-beta.19.1 (June 9, 2015)

  • Fix a regression where a DS.Model's InternalModel would not be set on init - @bmac https://github.com/emberjs/data/pull/3262
  • Pass store to inverseFor in removeEmbeddedForeignKey #3270 - @wecc https://github.com/emberjs/data/pull/3270
fivetanley
published 1.0.0-beta.19 •

Changelog

Source

Release 1.0.0-beta.19 (June 5, 2015)

Breaking Changes
Store Service moved to an Instance Initializer

In order to fix deprecations warning induced by Ember 1.12, the store service is now injected as an instanceInitializer. As a consequence, if you had initializers depending on the store, you should move them to an instance initializer as well, and mark it as after: 'ember-data'.

  • Removed support for DS.FixtureAdapter. You can use it as an addon, or build it using Ember Giftwrap. https://github.com/emberjs/ember-data-fixture-adapter/tree/master
  • Removed support for passing factories to store methods. An example would be store.find(App.Post, '1'). Use the string form instead: post instead of App.Post. You can also use this Ember Watson command
  • #3074 remove passing factories to store methods @fivetanley
  • #3083 A new record which is marked as invalid can be rollbacked @pangratz
  • #3102 Updated copyright year @perlun
  • #3091 deprecate support for DS.FixtureAdapter @emberjs
  • #3097 fix bower publishing @emberjs
  • #3094 Lazily materialize DS.Models for app code, use InternalModel inside ED otherwise @emberjs
  • #3119 maxUrlLength -> maxURLLength @sly7-7
  • #3110 Cleanup unused 'materialize' records in model @tonywok
  • #3182 initialize lives on the application instance not the Ember namespace @bmac
  • #3126 Guard for embedded unknown hasMany relationship @wecc
  • #3133 Create snapshots on save not on flush @tchak
  • #3136 Lookup the store using store:application instead of store:main @bmac
  • #3139 Extend adapter instead of reopening it @BookingSync
  • #3138 Custom primaryKey for embedded polymorphic relations work @pangratz
  • #3174 Adjust code samples to ember-cli @Turbo87
  • #3148 add Snapshot#serialize method @yratanov/feature
  • #3170 Ensure snapshot.belongsTo() and hasMany() do not return deleted records @ianstarz
  • #3156 Remove deprecated push record @sly7-7
  • #3169 rename add/removeRecord to add/removeInternalModel in record array @sly7-7
  • #3183 fix belongs-to when set with a resolved promise @sly7-7
  • #3195 Update comment to make its intention clearer @bmac
  • #3191 refactor store managed instances @fivetanley
  • #3203 Use string model names in debug adapter @teddyzeenny
  • #3208 DirtyState.invalid handle pushedData event @bmac
  • #3211 lookup JSONSerializer instance through store instead of manual instan… @emberjs
fivetanley
published 1.0.0-beta.18 •

Changelog

Source

Release 1.0.0-beta.18 (May 18, 2015)

  • #3066 Doc typo: primaryTypeClasss -> primaryTypeClass @lolmaus
  • #3058 Fix changelog script to point to emberjs/data @tonywok
  • #3034 POTENTIALLY BREAKING CHANGE if you override typeForRoot currently introduce modelNameFromPayloadKey and deprecate typeForRoot @fivetanley
    • RESTSerializer#typeForRoot has been deprecated. You can use RESTSerializeer#modelNameFromPayloadKey instead.
    • Added RESTSerializer#payloadKeyFromModelName. This allows you to
    • typeKey on Snapshots and Model classes has been deprecated. Use modelName instead. specify the outgoing root key for a JSON payload.
  • #3031 Added pushedData hook to root.deleted.uncommitted state. @aexmachina
  • #3033 dasherize ALL the things: use dasherized model names everywhere @fivetanley
  • #3060 Update changelog with correct-er links @tonywok
  • #3065 [DOC] update typo on #changedAttributes @mateuspv
  • #3068 Fix incorrect documentation for RecordArray @sberan
  • #3073 [DOCS] Added missing param to docs for generateIdForRecord @joostdevries
  • #3076 Rely on active model serializer to handle error logic @bdvholmes/bug
fivetanley
published 1.0.0-beta.17 •

Changelog

Source

Release 1.0.0-beta.17 (May 10, 2015)

  • #2898 Pass requestType to buildURL @amiel
  • #2790 Embedded records mixin should use the correct serialization key when deserialize configuration is set, Fixes #2556 @agrobbin
  • #2933 Extracts InvalidError into a separate file and makes it a subclass of Ember.Error @twokul
  • #2936 Introduce relationship.hasData @wecc
  • #2940 [DOC] Fix for DS.Store#findMany @hibariya
  • #2939 Snapshots unknown relationships @wecc
  • #2958 adapter.serialize receives a snapshot @rague
  • #2946 Handle null/empty type paths in build url mixin @vinilios
  • #2961 Use new getter/setter for computed if available @wecc
  • #2956 Clear meta data when unloading all records for a type. Fixes #2772 @runspired
  • #2953 Do not assert reserved properties for static properties. @bmac
  • #2959 Remove value from retrieveFromCurrentState CP @wecc
  • #2999 Make unloadAll() unload all records, deprecate unloadAll(type) in favor ... @svox1
  • #2992 Feature detect Ember.Registry rather than relying on version numbers @emberjs
  • #2983 Do not prepend a / if namespace is absolute. @rwjblue
  • #2966 Break buildURL into multiple requestType methods @thejameskyle
  • #2980 [DOC] Use block params style {{#each}} @HeroicEric
  • #2965 Make version check for ember-data strict @tricknotes
  • #3035 Add method argument to key serialization docs @Dremora
  • #3004 Fix serialization results in the documentation. @nathanhammond
  • #3037 Reset Model#isReloading to false when request fails @pangratz
  • #3022 Add missing urlForUpdateRecord to BuildURLMixin @wecc
  • #3021 Remove unnecessary URL check in findHasMany @wecc
  • #3036 Remove logic for camelCase-ing error keys in ActiveModelAdapter @pangratz
  • #3030 ActiveModelAdapter camelizes keys for errors on 422 @bdvholmes
  • #3026 [BUGFIX] AMS polymorphic type for namespaced models @artych
  • #3032 use typeKey and typeClass instead of using type inconsistently @emberjs
  • #3040 JSONSerializer#extractErrors respects custom key mappings @pangratz
  • #3043 Fix bug where record rejected via find stayed in loading state @pangratz
  • #3046 Documented the Model's rolledBack event @lolmaus
  • #3054 Fix for deleting from ManyArray @wagenet
  • #3055 Merge attrs from superclasses into their subclasses. @omghax
  • #3056 Add more assertions for merged attributes from superclass @pangratz
bmac
published 1.0.0-beta.16.1 •

Changelog

Source

Release 1.0.0-beta.16.1 (March 24, 2015)

  • Use ember-inflector 1.5
  • Fix doc for Snapshot.attributes()
  • Special case "application" in the store.serializerFor method
  • Allow the store to lookup the applicationAdapter using adapterFor
bmac
published 1.0.0-beta.16 •

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.
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