@cityads/ember-data-change-tracker 0.12.0-beta.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -22
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -80,7 +80,7 @@ This addon aims to fill in the gaps in the change tracking / rollback that ember
80
80
  - Shows when you replace a belongsTo association
81
81
  - Shows when you add to a hasMany association
82
82
  - Shows when you delete from a hasMany association
83
- - Merges ember-data `changeAttribute()` information into one unified change object
83
+ - Merges ember-data `changedAttribute()` information into one unified change object
84
84
  - Unlike ember-data no last and current value is shown, just the boolean => true
85
85
  - Though you will see [last value, current value] for the attributes that ember-data tracks
86
86
 
@@ -299,24 +299,3 @@ Usage:
299
299
  - When pushing data to the store directly to create a model ( usually done when using
300
300
  websockets .. but same issue if using factory guy) you need to call ```model.saveTrackerChanges()```
301
301
  manually after creating that new model
302
- - Testing
303
- - In unit / integration tests you have to manually initialize change-tracker
304
- if you are testing anything that requires the addon to be enabled
305
-
306
- For example:
307
-
308
- ```javascript
309
-
310
- import {moduleForModel, test} from 'ember-qunit';
311
- import {make, manualSetup} from 'ember-data-factory-guy';
312
- import {initializer as changeInitializer} from '@cityads/ember-data-change-tracker';
313
-
314
- moduleForModel('project', 'Unit | Model | project', {
315
-
316
- beforeEach() {
317
- manualSetup(this.container);
318
- changeInitializer();
319
- }
320
- });
321
-
322
- ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityads/ember-data-change-tracker",
3
- "version": "0.12.0-beta.1",
3
+ "version": "0.12.0",
4
4
  "description": "Track changes and rollback object attributes and relationships. Ember data 2.5+",
5
5
  "keywords": [
6
6
  "ember-addon",