Skip to content

Commit 56789c2

Browse files
committed
Stable Version 1.0.0-alpha.3-3.
1 parent f686c46 commit 56789c2

File tree

7 files changed

+33
-24
lines changed

7 files changed

+33
-24
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##### 2.0.0-alpha.1-0 - xx October 2014
1+
##### 2.0.0-alpha.1-0 - xx December 2014
22

33
###### Breaking API changes
44
- Refactored to be a wrapper for [js-data](https://github.com/js-data/js-data)
@@ -10,6 +10,7 @@
1010
- #200 - Need to properly trigger digest where angular-data would have before
1111
- Added DSHttpAdapter fallback that uses $http if js-data-http isn't loaded
1212
- Load an es6-style version of `$q` instead of `es6-promises` to maintain `$scope` integration with the promise lifecycle
13+
- Updated dependencies. Now safely making copies of the `options` passed into methods
1314

1415
##### 1.0.0 - 04 October 2014
1516

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Jason Dobry",
33
"name": "js-data-angular",
44
"description": "Angular wrapper for js-data (originally angular-data).",
5-
"version": "2.0.0-alpha.3-2",
5+
"version": "2.0.0-alpha.3-3",
66
"homepage": "http://www.js-data.io/docs/js-data-angular",
77
"repository": {
88
"type": "git",

dist/js-data-angular.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @author Jason Dobry <[email protected]>
33
* @file js-data-angular.js
4-
* @version 2.0.0-alpha.3-1 - Homepage <http://www.js-data.io/js-data-angular/>
4+
* @version 2.0.0-alpha.3-3 - Homepage <http://www.js-data.io/js-data-angular/>
55
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
66
* @license MIT <https://github.com/js-data/js-data-angular/blob/master/LICENSE>
77
*
@@ -320,6 +320,7 @@
320320

321321
dsHttpAdapterPrototype.POST = function (url, attrs, config) {
322322
config = config || {};
323+
config = DSUtils.copy(config);
323324
if (!('method' in config)) {
324325
config.method = 'post';
325326
}
@@ -364,6 +365,7 @@
364365
dsHttpAdapterPrototype.findAll = function (resourceConfig, params, options) {
365366
var _this = this;
366367
options = options || {};
368+
options = DSUtils.copy(options);
367369
options.params = options.params || {};
368370
if (params) {
369371
params = _this.defaults.queryTransform(resourceConfig, params);
@@ -404,6 +406,7 @@
404406
dsHttpAdapterPrototype.updateAll = function (resourceConfig, attrs, params, options) {
405407
var _this = this;
406408
options = options || {};
409+
options = DSUtils.copy(options);
407410
options.params = options.params || {};
408411
if (params) {
409412
params = _this.defaults.queryTransform(resourceConfig, params);
@@ -432,6 +435,7 @@
432435
dsHttpAdapterPrototype.destroyAll = function (resourceConfig, params, options) {
433436
var _this = this;
434437
options = options || {};
438+
options = DSUtils.copy(options);
435439
options.params = options.params || {};
436440
if (params) {
437441
params = _this.defaults.queryTransform(resourceConfig, params);

dist/js-data-angular.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "js-data-angular",
33
"description": "Angular wrapper for js-data.",
4-
"version": "2.0.0-alpha.3-2",
4+
"version": "2.0.0-alpha.3-3",
55
"homepage": "http://www.js-data.io/docs/js-data-angular",
66
"repository": {
77
"type": "git",
@@ -20,22 +20,22 @@
2020
],
2121
"devDependencies": {
2222
"grunt": "0.4.5",
23-
"grunt-browserify": "3.2.0",
23+
"grunt-browserify": "3.2.1",
2424
"grunt-contrib-clean": "0.6.0",
2525
"grunt-contrib-jshint": "0.10.0",
2626
"grunt-contrib-uglify": "0.6.0",
2727
"grunt-contrib-watch": "0.6.1",
2828
"grunt-karma": "0.9.0",
29-
"grunt-karma-coveralls": "2.5.2",
30-
"karma": "0.12.24",
29+
"grunt-karma-coveralls": "2.5.3",
30+
"karma": "0.12.28",
3131
"karma-chai": "0.1.0",
32-
"karma-chrome-launcher": "0.1.5",
33-
"karma-coverage": "0.2.6",
32+
"karma-chrome-launcher": "0.1.7",
33+
"karma-coverage": "0.2.7",
3434
"karma-script-launcher": "0.1.0",
3535
"karma-firefox-launcher": "0.1.3",
3636
"karma-phantomjs-launcher": "0.1.4",
37-
"karma-mocha": "0.1.9",
38-
"karma-sinon": "1.0.3",
37+
"karma-mocha": "0.1.10",
38+
"karma-sinon": "1.0.4",
3939
"karma-spec-reporter": "0.0.13",
4040
"time-grunt": "1.0.0",
4141
"jit-grunt": "0.9.0"
@@ -44,7 +44,7 @@
4444
"test": "grunt test"
4545
},
4646
"dependencies": {
47-
"mout": "0.10.0",
48-
"js-data": "^1.0.0-alpha.5-0"
47+
"mout": "0.11.0",
48+
"js-data": "^1.0.0-alpha.5-8"
4949
}
5050
}

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@
310310

311311
dsHttpAdapterPrototype.POST = function (url, attrs, config) {
312312
config = config || {};
313+
config = DSUtils.copy(config);
313314
if (!('method' in config)) {
314315
config.method = 'post';
315316
}
@@ -354,6 +355,7 @@
354355
dsHttpAdapterPrototype.findAll = function (resourceConfig, params, options) {
355356
var _this = this;
356357
options = options || {};
358+
options = DSUtils.copy(options);
357359
options.params = options.params || {};
358360
if (params) {
359361
params = _this.defaults.queryTransform(resourceConfig, params);
@@ -394,6 +396,7 @@
394396
dsHttpAdapterPrototype.updateAll = function (resourceConfig, attrs, params, options) {
395397
var _this = this;
396398
options = options || {};
399+
options = DSUtils.copy(options);
397400
options.params = options.params || {};
398401
if (params) {
399402
params = _this.defaults.queryTransform(resourceConfig, params);
@@ -422,6 +425,7 @@
422425
dsHttpAdapterPrototype.destroyAll = function (resourceConfig, params, options) {
423426
var _this = this;
424427
options = options || {};
428+
options = DSUtils.copy(options);
425429
options.params = options.params || {};
426430
if (params) {
427431
params = _this.defaults.queryTransform(resourceConfig, params);

0 commit comments

Comments
 (0)