Socket
Socket
Sign inDemoInstall

ember-data

Package Overview
Dependencies
Maintainers
4
Versions
737
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-data - npm Package Compare versions

Comparing version 1.0.0-beta.18 to 1.0.0-beta.19

35

CHANGELOG.md

@@ -5,2 +5,37 @@ # Ember Data Changelog

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

@@ -7,0 +42,0 @@

1

lib/ember-addon/blueprints/ember-data/index.js

@@ -0,1 +1,2 @@

/* jshint node: true */
'use strict';

@@ -2,0 +3,0 @@

11

package.json
{
"name": "ember-data",
"version": "1.0.0-beta.18",
"version": "1.0.0-beta.19",
"namespace": "DS",

@@ -24,2 +24,3 @@ "repository": "git://github.com/emberjs/data.git",

"publish-build": "npm run build:production && ./bin/publish-to-s3.js",
"publish-build:prebuilt": "./bin/publish-to-s3.js",
"test:local": "testem -R dot ci",

@@ -33,5 +34,6 @@ "test:beta": "testem -f config/testem-beta.json -R dot ci",

"bower": "~1.3",
"broccoli-babel-transpiler": "^5.0.0",
"broccoli-compile-modules": "^1.1.0",
"broccoli-concat": "0.0.12",
"broccoli-defeatureify": "^0.3.0",
"broccoli-defeatureify": "^1.0.0",
"broccoli-env": "0.0.1",

@@ -43,3 +45,3 @@ "broccoli-es3-safe-recast": "0.0.8",

"broccoli-file-mover": "~0.2.0",
"broccoli-jscs": "0.0.14",
"broccoli-jscs": "0.0.22",
"broccoli-jshint": "^0.5.1",

@@ -49,2 +51,3 @@ "broccoli-merge-trees": "^0.1.4",

"broccoli-replace": "~0.2.0",
"broccoli-sourcemap-concat": "^0.4.4",
"broccoli-static-compiler": "^0.2.1",

@@ -64,2 +67,3 @@ "broccoli-stew": "^0.2.1",

"git-repo-version": "0.0.2",
"github": "^0.2.4",
"jscs": "^1.12.0",

@@ -70,5 +74,4 @@ "testem": "^0.6.19",

"dependencies": {
"github": "^0.2.4",
"rsvp": "^3.0.18"
}
}

@@ -55,34 +55,37 @@ ## Ember Data [![Build Status](https://secure.travis-ci.org/emberjs/data.svg?branch=master)](http://travis-ci.org/emberjs/data)

application. For example, imagine we're writing a blog reader app.
Here's what your model definition would look like if you're using
globals (that is, not something like or ember-cli):
ES6 modules (via ember-cli):
```js
var attr = DS.attr;
var hasMany = DS.hasMany;
var belongsTo = DS.belongsTo;
// app/models/blog-post.js
import DS from 'ember-data';
App.BlogPost = DS.Model.extend({
title: attr(),
createdAt: attr('date'),
export default DS.Model.extend({
title: DS.attr(),
createdAt: DS.attr('date'),
comments: hasMany('comment')
comments: DS.hasMany('comment')
});
App.Comment = DS.Model.extend({
body: attr(),
username: attr(),
// app/models/comment.js
import DS from 'ember-data';
post: belongsTo('blogPost')
export default DS.Model.extend({
body: DS.attr(),
username: DS.attr(),
post: DS.belongsTo('blogPost')
});
```
If you're using ES6 modules (via ember-cli), your
If you're using globals (that is, not something like or ember-cli), your
models would look like this:
```js
// app/models/blog-post.js
var attr = DS.attr;
var hasMany = DS.hasMany;
var belongsTo = DS.belongsTo;
export default DS.Model.extend({
App.BlogPost = DS.Model.extend({
title: attr(),

@@ -94,7 +97,3 @@ createdAt: attr('date'),

// app/models/comment.js
var attr = DS.attr;
var belongsTo = DS.belongsTo;
export default DS.Model.extend({
App.Comment = DS.Model.extend({
body: attr(),

@@ -122,8 +121,2 @@ username: attr(),

Ember Data also ships with the `FixtureAdapter`, useful for testing and
prototyping before you have a server, and the `ActiveModelAdapter`,
which is designed to work out-of-the-box with the
[`ActiveModel::Serializers`](https://github.com/rails-api/active_model_serializers)
gem for Rails.
To learn more about adapters, including what conventions the

@@ -130,0 +123,0 @@ `RESTAdapter` follows and how to build your own, see the Ember.js

Sorry, the diff of this file is not supported yet

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