ember-data-source 2.7.0.beta.3 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d953db8f9eab4f0ea38033cd0d10ed5e1e625eb
4
- data.tar.gz: 498367406c857058eac07af4a888ffc37752d719
3
+ metadata.gz: 50f486c2046dbedace3a3b7b7c3bdae5893ccb71
4
+ data.tar.gz: af02c9a71208ce5c388e52741e4c8f6bc9995692
5
5
  SHA512:
6
- metadata.gz: 7694d00475ab177cafbb7a291b878c7a90c3cbd28877a3411ee3be58ea511764bfa604d2d5640d5a89e48edde1bb275b99056e6f1295b23ce974720975173bb1
7
- data.tar.gz: 9a4499a9aaf0247712a74fad3322633ddd5fc1154ab58f8ad8057fdc74a85e15ce73b32cf66842807038963029bbae7dd2923e32527c0459c1b973eb17c5ef29
6
+ metadata.gz: f34b44f9d37c92b0197de178c245ec502741d5e1c8b83253c73fa8525aa61104fec8735205bbba86813e5ad01a0ff1ac09313aaebc0f876713e897ab1d4f6725
7
+ data.tar.gz: ebc241b8a37c76cc007fa9d3808088be0e3be1ddbab68ebf782943bb9b6d0bbe59b2b5cef83645e7c575cfde30d555009f6110a06026fecdc8fa00fb1064cfa8
@@ -6,7 +6,7 @@
6
6
  * @copyright Copyright 2011-2016 Tilde Inc. and contributors.
7
7
  * Portions Copyright 2011 LivingSocial Inc.
8
8
  * @license Licensed under MIT license (see license.js)
9
- * @version 2.7.0-beta.3
9
+ * @version 2.7.0
10
10
  */
11
11
 
12
12
  var loader, define, requireModule, require, requirejs;
@@ -3075,7 +3075,8 @@ define("ember-data/-private/system/model/model", ["exports", "ember", "ember-dat
3075
3075
  model.get('hasDirtyAttributes'); // true
3076
3076
  });
3077
3077
  ```
3078
- @property hasDirtyAttributes
3078
+ @since 1.13.0
3079
+ @property hasDirtyAttributes
3079
3080
  @type {Boolean}
3080
3081
  @readOnly
3081
3082
  */
@@ -3567,7 +3568,8 @@ define("ember-data/-private/system/model/model", ["exports", "ember", "ember-dat
3567
3568
  record.rollbackAttributes();
3568
3569
  record.get('name'); // 'Untitled Document'
3569
3570
  ```
3570
- @method rollbackAttributes
3571
+ @since 1.13.0
3572
+ @method rollbackAttributes
3571
3573
  */
3572
3574
  rollbackAttributes: function () {
3573
3575
  this._internalModel.rollbackAttributes();
@@ -6804,6 +6806,7 @@ define("ember-data/-private/system/relationships/state/belongs-to", ["exports",
6804
6806
  } else if (this.canonicalState) {
6805
6807
  this.removeCanonicalRecord(this.canonicalState);
6806
6808
  }
6809
+ this.flushCanonicalLater();
6807
6810
  this.setHasData(true);
6808
6811
  this.setHasLoaded(true);
6809
6812
  };
@@ -8340,7 +8343,8 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8340
8343
  });
8341
8344
  ```
8342
8345
  See [peekRecord](#method_peekRecord) to get the cached version of a record.
8343
- @method findRecord
8346
+ @since 1.13.0
8347
+ @method findRecord
8344
8348
  @param {String} modelName
8345
8349
  @param {(String|Integer)} id
8346
8350
  @param {Object} options
@@ -8638,7 +8642,8 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8638
8642
  var post = store.peekRecord('post', 1);
8639
8643
  post.get('id'); // 1
8640
8644
  ```
8641
- @method peekRecord
8645
+ @since 1.13.0
8646
+ @method peekRecord
8642
8647
  @param {String} modelName
8643
8648
  @param {String|Integer} id
8644
8649
  @return {DS.Model|null} record
@@ -8806,7 +8811,8 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8806
8811
  ```
8807
8812
  This method returns a promise, which is resolved with a `RecordArray`
8808
8813
  once the server returns.
8809
- @method query
8814
+ @since 1.13.0
8815
+ @method query
8810
8816
  @param {String} modelName
8811
8817
  @param {any} query an opaque query to be used by the adapter
8812
8818
  @return {Promise} promise
@@ -8857,8 +8863,8 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8857
8863
  The request is made through the adapters' `queryRecord`:
8858
8864
  ```javascript
8859
8865
  // app/adapters/user.js
8860
- import Adapter from "ember-data/adapter";
8861
- export default Adapter.extend({
8866
+ import DS from "ember-data";
8867
+ export default DS.Adapter.extend({
8862
8868
  queryRecord(modelName, query) {
8863
8869
  return Ember.$.getJSON("/api/current_user");
8864
8870
  }
@@ -8901,7 +8907,8 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8901
8907
  console.log(user); // null
8902
8908
  });
8903
8909
  ```
8904
- @method queryRecord
8910
+ @since 1.13.0
8911
+ @method queryRecord
8905
8912
  @param {String} modelName
8906
8913
  @param {any} query an opaque query to be used by the adapter
8907
8914
  @return {Promise} promise which resolves with the found record or `null`
@@ -9033,7 +9040,8 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
9033
9040
  See [peekAll](#method_peekAll) to get an array of current records in the
9034
9041
  store, without waiting until a reload is finished.
9035
9042
  See [query](#method_query) to only get a subset of records from the server.
9036
- @method findAll
9043
+ @since 1.13.0
9044
+ @method findAll
9037
9045
  @param {String} modelName
9038
9046
  @param {Object} options
9039
9047
  @return {Promise} promise
@@ -9108,7 +9116,8 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
9108
9116
  ```javascript
9109
9117
  var localPosts = store.peekAll('post');
9110
9118
  ```
9111
- @method peekAll
9119
+ @since 1.13.0
9120
+ @method peekAll
9112
9121
  @param {String} modelName
9113
9122
  @return {DS.RecordArray}
9114
9123
  */
@@ -11276,7 +11285,8 @@ define('ember-data/adapter', ['exports', 'ember'], function (exports, _ember) {
11276
11285
  resolve until you fetched the latest version.
11277
11286
  By default this hook returns `false`, as most UIs should not block user
11278
11287
  interactions while waiting on data update.
11279
- @method shouldReloadRecord
11288
+ @since 1.13.0
11289
+ @method shouldReloadRecord
11280
11290
  @param {DS.Store} store
11281
11291
  @param {DS.Snapshot} snapshot
11282
11292
  @return {Boolean}
@@ -11316,7 +11326,8 @@ define('ember-data/adapter', ['exports', 'ember'], function (exports, _ember) {
11316
11326
  By default this methods returns `true` if the passed `snapshotRecordArray`
11317
11327
  is empty (meaning that there are no records locally available yet),
11318
11328
  otherwise it returns `false`.
11319
- @method shouldReloadAll
11329
+ @since 1.13.0
11330
+ @method shouldReloadAll
11320
11331
  @param {DS.Store} store
11321
11332
  @param {DS.SnapshotRecordArray} snapshotRecordArray
11322
11333
  @return {Boolean}
@@ -11348,7 +11359,8 @@ define('ember-data/adapter', ['exports', 'ember'], function (exports, _ember) {
11348
11359
  ```
11349
11360
  By default this hook returns `true` so the data for the record is updated
11350
11361
  in the background.
11351
- @method shouldBackgroundReloadRecord
11362
+ @since 1.13.0
11363
+ @method shouldBackgroundReloadRecord
11352
11364
  @param {DS.Store} store
11353
11365
  @param {DS.Snapshot} snapshot
11354
11366
  @return {Boolean}
@@ -11380,7 +11392,8 @@ define('ember-data/adapter', ['exports', 'ember'], function (exports, _ember) {
11380
11392
  ```
11381
11393
  By default this method returns `true`, indicating that a background reload
11382
11394
  should always be triggered.
11383
- @method shouldBackgroundReloadAll
11395
+ @since 1.13.0
11396
+ @method shouldBackgroundReloadAll
11384
11397
  @param {DS.Store} store
11385
11398
  @param {DS.SnapshotRecordArray} snapshotRecordArray
11386
11399
  @return {Boolean}
@@ -11631,6 +11644,7 @@ define('ember-data/adapters/errors', ['exports', 'ember', 'ember-data/-private/d
11631
11644
  define('ember-data/adapters/json-api', ['exports', 'ember', 'ember-data/adapters/rest', 'ember-data/-private/features', 'ember-data/-private/debug'], function (exports, _ember, _emberDataAdaptersRest, _emberDataPrivateFeatures, _emberDataPrivateDebug) {
11632
11645
 
11633
11646
  /**
11647
+ @since 1.13.0
11634
11648
  @class JSONAPIAdapter
11635
11649
  @constructor
11636
11650
  @namespace DS
@@ -11712,7 +11726,7 @@ define('ember-data/adapters/json-api', ['exports', 'ember', 'ember-data/adapters
11712
11726
  @return {Promise} promise
11713
11727
  */
11714
11728
  findMany: function (store, type, ids, snapshots) {
11715
- if (true && !this._hasCustomizedAjax()) {
11729
+ if (false && !this._hasCustomizedAjax()) {
11716
11730
  return this._super.apply(this, arguments);
11717
11731
  } else {
11718
11732
  var url = this.buildURL(type.modelName, ids, snapshots, 'findMany');
@@ -11739,7 +11753,7 @@ define('ember-data/adapters/json-api', ['exports', 'ember', 'ember-data/adapters
11739
11753
  @return {Promise} promise
11740
11754
  */
11741
11755
  updateRecord: function (store, type, snapshot) {
11742
- if (true && !this._hasCustomizedAjax()) {
11756
+ if (false && !this._hasCustomizedAjax()) {
11743
11757
  return this._super.apply(this, arguments);
11744
11758
  } else {
11745
11759
  var data = {};
@@ -11775,7 +11789,7 @@ define('ember-data/adapters/json-api', ['exports', 'ember', 'ember-data/adapters
11775
11789
  }
11776
11790
  });
11777
11791
 
11778
- if (true) {
11792
+ if (false) {
11779
11793
 
11780
11794
  JSONAPIAdapter.reopen({
11781
11795
 
@@ -12192,7 +12206,8 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12192
12206
  The `findRecord` method makes an Ajax request to a URL computed by
12193
12207
  `buildURL`, and returns a promise for the resulting payload.
12194
12208
  This method performs an HTTP `GET` request with the id provided as part of the query string.
12195
- @method findRecord
12209
+ @since 1.13.0
12210
+ @method findRecord
12196
12211
  @param {DS.Store} store
12197
12212
  @param {DS.Model} type
12198
12213
  @param {String} id
@@ -12200,7 +12215,7 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12200
12215
  @return {Promise} promise
12201
12216
  */
12202
12217
  findRecord: function (store, type, id, snapshot) {
12203
- if (true && !this._hasCustomizedAjax()) {
12218
+ if (false && !this._hasCustomizedAjax()) {
12204
12219
  var request = this._requestFor({
12205
12220
  store: store, type: type, id: id, snapshot: snapshot,
12206
12221
  requestType: 'findRecord'
@@ -12230,7 +12245,7 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12230
12245
  findAll: function (store, type, sinceToken, snapshotRecordArray) {
12231
12246
  var query = this.buildQuery(snapshotRecordArray);
12232
12247
 
12233
- if (true && !this._hasCustomizedAjax()) {
12248
+ if (false && !this._hasCustomizedAjax()) {
12234
12249
  var request = this._requestFor({
12235
12250
  store: store, type: type, sinceToken: sinceToken, query: query,
12236
12251
  snapshots: snapshotRecordArray,
@@ -12264,7 +12279,7 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12264
12279
  @return {Promise} promise
12265
12280
  */
12266
12281
  query: function (store, type, query) {
12267
- if (true && !this._hasCustomizedAjax()) {
12282
+ if (false && !this._hasCustomizedAjax()) {
12268
12283
  var request = this._requestFor({
12269
12284
  store: store, type: type, query: query,
12270
12285
  requestType: 'query'
@@ -12290,14 +12305,15 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12290
12305
  payload.
12291
12306
  The `query` argument is a simple JavaScript object that will be passed directly
12292
12307
  to the server as parameters.
12293
- @method queryRecord
12308
+ @since 1.13.0
12309
+ @method queryRecord
12294
12310
  @param {DS.Store} store
12295
12311
  @param {DS.Model} type
12296
12312
  @param {Object} query
12297
12313
  @return {Promise} promise
12298
12314
  */
12299
12315
  queryRecord: function (store, type, query) {
12300
- if (true && !this._hasCustomizedAjax()) {
12316
+ if (false && !this._hasCustomizedAjax()) {
12301
12317
  var request = this._requestFor({
12302
12318
  store: store, type: type, query: query,
12303
12319
  requestType: 'queryRecord'
@@ -12342,7 +12358,7 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12342
12358
  @return {Promise} promise
12343
12359
  */
12344
12360
  findMany: function (store, type, ids, snapshots) {
12345
- if (true && !this._hasCustomizedAjax()) {
12361
+ if (false && !this._hasCustomizedAjax()) {
12346
12362
  var request = this._requestFor({
12347
12363
  store: store, type: type, ids: ids, snapshots: snapshots,
12348
12364
  requestType: 'findMany'
@@ -12382,7 +12398,7 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12382
12398
  @return {Promise} promise
12383
12399
  */
12384
12400
  findHasMany: function (store, snapshot, url, relationship) {
12385
- if (true && !this._hasCustomizedAjax()) {
12401
+ if (false && !this._hasCustomizedAjax()) {
12386
12402
  var request = this._requestFor({
12387
12403
  store: store, snapshot: snapshot, url: url, relationship: relationship,
12388
12404
  requestType: 'findHasMany'
@@ -12426,7 +12442,7 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12426
12442
  @return {Promise} promise
12427
12443
  */
12428
12444
  findBelongsTo: function (store, snapshot, url, relationship) {
12429
- if (true && !this._hasCustomizedAjax()) {
12445
+ if (false && !this._hasCustomizedAjax()) {
12430
12446
  var request = this._requestFor({
12431
12447
  store: store, snapshot: snapshot, url: url, relationship: relationship,
12432
12448
  requestType: 'findBelongsTo'
@@ -12456,7 +12472,7 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12456
12472
  @return {Promise} promise
12457
12473
  */
12458
12474
  createRecord: function (store, type, snapshot) {
12459
- if (true && !this._hasCustomizedAjax()) {
12475
+ if (false && !this._hasCustomizedAjax()) {
12460
12476
  var request = this._requestFor({
12461
12477
  store: store, type: type, snapshot: snapshot,
12462
12478
  requestType: 'createRecord'
@@ -12488,7 +12504,7 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12488
12504
  @return {Promise} promise
12489
12505
  */
12490
12506
  updateRecord: function (store, type, snapshot) {
12491
- if (true && !this._hasCustomizedAjax()) {
12507
+ if (false && !this._hasCustomizedAjax()) {
12492
12508
  var request = this._requestFor({
12493
12509
  store: store, type: type, snapshot: snapshot,
12494
12510
  requestType: 'updateRecord'
@@ -12518,7 +12534,7 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12518
12534
  @return {Promise} promise
12519
12535
  */
12520
12536
  deleteRecord: function (store, type, snapshot) {
12521
- if (true && !this._hasCustomizedAjax()) {
12537
+ if (false && !this._hasCustomizedAjax()) {
12522
12538
  var request = this._requestFor({
12523
12539
  store: store, type: type, snapshot: snapshot,
12524
12540
  requestType: 'deleteRecord'
@@ -12636,7 +12652,8 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12636
12652
  `DS.InvalidError` the store will attempt to normalize the error data
12637
12653
  returned from the server using the serializer's `extractErrors`
12638
12654
  method.
12639
- @method handleResponse
12655
+ @since 1.13.0
12656
+ @method handleResponse
12640
12657
  @param {Number} status
12641
12658
  @param {Object} headers
12642
12659
  @param {Object} payload
@@ -12676,7 +12693,8 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12676
12693
  /**
12677
12694
  Default `handleResponse` implementation uses this hook to decide if the
12678
12695
  response is a success.
12679
- @method isSuccess
12696
+ @since 1.13.0
12697
+ @method isSuccess
12680
12698
  @param {Number} status
12681
12699
  @param {Object} headers
12682
12700
  @param {Object} payload
@@ -12689,7 +12707,8 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12689
12707
  /**
12690
12708
  Default `handleResponse` implementation uses this hook to decide if the
12691
12709
  response is a an invalid error.
12692
- @method isInvalid
12710
+ @since 1.13.0
12711
+ @method isInvalid
12693
12712
  @param {Number} status
12694
12713
  @param {Object} headers
12695
12714
  @param {Object} payload
@@ -12875,6 +12894,7 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12875
12894
  return ['Ember Data Request ' + requestDescription + ' returned a ' + status, payloadDescription, shortenedPayload].join('\n');
12876
12895
  },
12877
12896
 
12897
+ // @since 2.5.0
12878
12898
  buildQuery: function (snapshot) {
12879
12899
  var query = {};
12880
12900
 
@@ -12910,7 +12930,7 @@ define('ember-data/adapters/rest', ['exports', 'ember', 'ember-data/adapter', 'e
12910
12930
  }
12911
12931
  });
12912
12932
 
12913
- if (true) {
12933
+ if (false) {
12914
12934
 
12915
12935
  RESTAdapter.reopen({
12916
12936
 
@@ -13499,7 +13519,8 @@ define('ember-data/serializer', ['exports', 'ember'], function (exports, _ember)
13499
13519
  The `normalizeResponse` method is used to normalize a payload from the
13500
13520
  server to a JSON-API Document.
13501
13521
  http://jsonapi.org/format/#document-structure
13502
- @method normalizeResponse
13522
+ @since 1.13.0
13523
+ @method normalizeResponse
13503
13524
  @param {DS.Store} store
13504
13525
  @param {DS.Model} primaryModelClass
13505
13526
  @param {Object} payload
@@ -14208,6 +14229,7 @@ define('ember-data/serializers/json-api', ['exports', 'ember', 'ember-data/-priv
14208
14229
 
14209
14230
  to the format that the Ember Data store expects.
14210
14231
 
14232
+ @since 1.13.0
14211
14233
  @class JSONAPISerializer
14212
14234
  @namespace DS
14213
14235
  @extends DS.JSONSerializer
@@ -14757,8 +14779,8 @@ define('ember-data/serializers/json-api', ['exports', 'ember', 'ember-data/-priv
14757
14779
  By overwriting `modelNameFromPayloadType` you can specify that the
14758
14780
  `posr` model should be used:
14759
14781
  ```app/serializers/application.js
14760
- import JSONAPISerializer from "ember-data/serializers/json-api";
14761
- export default JSONAPISerializer.extend({
14782
+ import DS from "ember-data";
14783
+ export default DS.JSONAPISerializer.extend({
14762
14784
  modelNameFromPayloadType(payloadType) {
14763
14785
  return payloadType.replace('api::v1::', '');
14764
14786
  }
@@ -14797,7 +14819,7 @@ define('ember-data/serializers/json-api', ['exports', 'ember', 'ember-data/-priv
14797
14819
  By overwriting `payloadTypeFromModelName` you can specify that the
14798
14820
  namespaces model name for the `post` should be used:
14799
14821
  ```app/serializers/application.js
14800
- import JSONAPISerializer from "ember-data/serializers/json-api";
14822
+ import DS from "ember-data";
14801
14823
  export default JSONAPISerializer.extend({
14802
14824
  payloadTypeFromModelName(modelName) {
14803
14825
  return "api::v1::" + modelName;
@@ -15046,7 +15068,8 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15046
15068
  store.push(normalized);
15047
15069
  });
15048
15070
  ```
15049
- @method normalizeResponse
15071
+ @since 1.13.0
15072
+ @method normalizeResponse
15050
15073
  @param {DS.Store} store
15051
15074
  @param {DS.Model} primaryModelClass
15052
15075
  @param {Object} payload
@@ -15080,6 +15103,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15080
15103
  },
15081
15104
 
15082
15105
  /**
15106
+ @since 1.13.0
15083
15107
  @method normalizeFindRecordResponse
15084
15108
  @param {DS.Store} store
15085
15109
  @param {DS.Model} primaryModelClass
@@ -15093,6 +15117,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15093
15117
  },
15094
15118
 
15095
15119
  /**
15120
+ @since 1.13.0
15096
15121
  @method normalizeQueryRecordResponse
15097
15122
  @param {DS.Store} store
15098
15123
  @param {DS.Model} primaryModelClass
@@ -15106,6 +15131,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15106
15131
  },
15107
15132
 
15108
15133
  /**
15134
+ @since 1.13.0
15109
15135
  @method normalizeFindAllResponse
15110
15136
  @param {DS.Store} store
15111
15137
  @param {DS.Model} primaryModelClass
@@ -15119,6 +15145,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15119
15145
  },
15120
15146
 
15121
15147
  /**
15148
+ @since 1.13.0
15122
15149
  @method normalizeFindBelongsToResponse
15123
15150
  @param {DS.Store} store
15124
15151
  @param {DS.Model} primaryModelClass
@@ -15132,6 +15159,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15132
15159
  },
15133
15160
 
15134
15161
  /**
15162
+ @since 1.13.0
15135
15163
  @method normalizeFindHasManyResponse
15136
15164
  @param {DS.Store} store
15137
15165
  @param {DS.Model} primaryModelClass
@@ -15145,6 +15173,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15145
15173
  },
15146
15174
 
15147
15175
  /**
15176
+ @since 1.13.0
15148
15177
  @method normalizeFindManyResponse
15149
15178
  @param {DS.Store} store
15150
15179
  @param {DS.Model} primaryModelClass
@@ -15158,6 +15187,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15158
15187
  },
15159
15188
 
15160
15189
  /**
15190
+ @since 1.13.0
15161
15191
  @method normalizeQueryResponse
15162
15192
  @param {DS.Store} store
15163
15193
  @param {DS.Model} primaryModelClass
@@ -15171,6 +15201,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15171
15201
  },
15172
15202
 
15173
15203
  /**
15204
+ @since 1.13.0
15174
15205
  @method normalizeCreateRecordResponse
15175
15206
  @param {DS.Store} store
15176
15207
  @param {DS.Model} primaryModelClass
@@ -15184,6 +15215,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15184
15215
  },
15185
15216
 
15186
15217
  /**
15218
+ @since 1.13.0
15187
15219
  @method normalizeDeleteRecordResponse
15188
15220
  @param {DS.Store} store
15189
15221
  @param {DS.Model} primaryModelClass
@@ -15197,6 +15229,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15197
15229
  },
15198
15230
 
15199
15231
  /**
15232
+ @since 1.13.0
15200
15233
  @method normalizeUpdateRecordResponse
15201
15234
  @param {DS.Store} store
15202
15235
  @param {DS.Model} primaryModelClass
@@ -15210,6 +15243,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15210
15243
  },
15211
15244
 
15212
15245
  /**
15246
+ @since 1.13.0
15213
15247
  @method normalizeSaveResponse
15214
15248
  @param {DS.Store} store
15215
15249
  @param {DS.Model} primaryModelClass
@@ -15223,6 +15257,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15223
15257
  },
15224
15258
 
15225
15259
  /**
15260
+ @since 1.13.0
15226
15261
  @method normalizeSingleResponse
15227
15262
  @param {DS.Store} store
15228
15263
  @param {DS.Model} primaryModelClass
@@ -15236,6 +15271,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
15236
15271
  },
15237
15272
 
15238
15273
  /**
15274
+ @since 1.13.0
15239
15275
  @method normalizeArrayResponse
15240
15276
  @param {DS.Store} store
15241
15277
  @param {DS.Model} primaryModelClass
@@ -17068,8 +17104,8 @@ define("ember-data/serializers/rest", ["exports", "ember", "ember-data/-private/
17068
17104
  By overwriting `modelNameFromPayloadType` you can specify that the
17069
17105
  `administrator` model should be used:
17070
17106
  ```app/serializers/application.js
17071
- import RESTSerializer from "ember-data/serializers/rest";
17072
- export default RESTSerializer.extend({
17107
+ import DS from "ember-data";
17108
+ export default DS.RESTSerializer.extend({
17073
17109
  modelNameFromPayloadType(payloadType) {
17074
17110
  return payloadType.replace('api::v1::', '');
17075
17111
  }
@@ -17110,8 +17146,8 @@ define("ember-data/serializers/rest", ["exports", "ember", "ember-data/-private/
17110
17146
  By overwriting `payloadTypeFromModelName` you can specify that the
17111
17147
  namespaces model name for the `administrator` should be used:
17112
17148
  ```app/serializers/application.js
17113
- import RESTSerializer from "ember-data/serializers/rest";
17114
- export default RESTSerializer.extend({
17149
+ import DS from "ember-data";
17150
+ export default DS.RESTSerializer.extend({
17115
17151
  payloadTypeFromModelName(modelName) {
17116
17152
  return "api::v1::" + modelName;
17117
17153
  }
@@ -17251,7 +17287,7 @@ define('ember-data/transform', ['exports', 'ember'], function (exports, _ember)
17251
17287
  });
17252
17288
  });
17253
17289
  define("ember-data/version", ["exports"], function (exports) {
17254
- exports.default = "2.7.0-beta.3";
17290
+ exports.default = "2.7.0";
17255
17291
  });
17256
17292
  define("ember-inflector", ["exports", "ember", "ember-inflector/lib/system", "ember-inflector/lib/ext/string"], function (exports, _ember, _emberInflectorLibSystem, _emberInflectorLibExtString) {
17257
17293
 
@@ -17646,7 +17682,7 @@ define('ember-inflector/lib/system/inflector', ['exports', 'ember'], function (e
17646
17682
  return word;
17647
17683
  }
17648
17684
 
17649
- for (rule in this.rules.irregular) {
17685
+ for (rule in irregular) {
17650
17686
  if (lowercase.match(rule + "$")) {
17651
17687
  substitution = irregular[rule];
17652
17688
 
@@ -17655,7 +17691,7 @@ define('ember-inflector/lib/system/inflector', ['exports', 'ember'], function (e
17655
17691
  rule = capitalize(rule);
17656
17692
  }
17657
17693
 
17658
- return word.replace(rule, substitution);
17694
+ return word.replace(new RegExp(rule, 'i'), substitution);
17659
17695
  }
17660
17696
  }
17661
17697