diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3de7929..c1652ad 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+##### 3.0.0-rc.1 - 28 June 2015
+
+Stable Version 3.0.0-rc.1
+
##### 3.0.0-beta.2 - 19 April 2015
Added examples of various build setups `./build_examples/`
diff --git a/README.md b/README.md
index c71a740..caf9d4d 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
Angular wrapper for [js-data](http://www.js-data.io).
#### What happened Angular-data?
-Js-data-angular is Angular-data 2.0, with [js-data](http://www.js-data.io) as the framework-agnostic core. Documentation for Angular-data 1.x can be found at [angular-data.pseudobry.com](http://angular-data.pseudobry.com).
+Angular-data is deprecated. js-data + js-data-angular is the new hotness.
### Guides
- [Angular + JSData (js-data-angular)](http://www.js-data.io/docs/js-data-angular)
@@ -41,7 +41,7 @@ __Latest Release:__ [![Latest Release](https://img.shields.io/github/release/js-
__Status:__
-[![Dependency Status](https://img.shields.io/gemnasium/js-data/js-data-angular.svg?style=flat-square)](https://gemnasium.com/js-data/js-data-angular) [![Coverage Status](https://img.shields.io/coveralls/js-data/js-data-angular/master.svg?style=flat-square)](https://coveralls.io/r/js-data/js-data-angular?branch=master) [![Codacity](https://img.shields.io/codacy/e7690b906dfa471ebcc8b2bdc52e9662.svg?style=flat-square)](https://www.codacy.com/public/jasondobry/js-data-angular/dashboard)
+[![Dependency Status](https://img.shields.io/gemnasium/js-data/js-data-angular.svg?style=flat-square)](https://gemnasium.com/js-data/js-data-angular) [![Coverage Status](https://img.shields.io/coveralls/js-data/js-data-angular/master.svg?style=flat-square)](https://coveralls.io/r/js-data/js-data-angular?branch=master) [![Codacity](https://img.shields.io/codacy/e7690b906dfa471ebcc8b2bdc52e9662.svg?style=flat-square)](https://www.codacy.com/public/jasondobry/js-data-angular/dashboard)
__Supported Platforms:__
diff --git a/bower.json b/bower.json
index 3d95803..f0f7b25 100644
--- a/bower.json
+++ b/bower.json
@@ -28,11 +28,8 @@
"angular-mocks-1.3.2": "angular-mocks#1.3.2"
},
"dependencies": {
- "js-data": "2.0.0-beta.3",
- "js-data-http": "2.0.0-beta.3",
+ "js-data": "2.0.0-rc.1",
+ "js-data-http": "2.0.0-rc.1",
"angular": ">=1.1.0"
- },
- "resolutions": {
- "angular": "1.3.2"
}
}
diff --git a/build_examples/browserify/README.md b/build_examples/browserify/README.md
index 2fd013c..bac593a 100644
--- a/build_examples/browserify/README.md
+++ b/build_examples/browserify/README.md
@@ -1,3 +1,3 @@
-`browserify -x axios app.js > bundle.js` will produce `bundle.js`
+Running `browserify -x axios app.js > bundle.js` in this directory will produce `bundle.js`
Note the external dependency "axios" that is excluded from the build (it's not needed when using js-data-angular).
diff --git a/build_examples/r.js/README.md b/build_examples/r.js/README.md
index f72e67f..0632f37 100644
--- a/build_examples/r.js/README.md
+++ b/build_examples/r.js/README.md
@@ -1,3 +1,3 @@
-`r.js -o require.config.js` will produce `bundle.js`
+Running `r.js -o require.config.js` in this directory will produce `bundle.js`
In `index.html` switch `script/main` between `main` (load scripts dynamically) and `bundle` (load bundled scripts)
diff --git a/build_examples/webpack/README.md b/build_examples/webpack/README.md
index 2fd013c..14fa7b9 100644
--- a/build_examples/webpack/README.md
+++ b/build_examples/webpack/README.md
@@ -1,3 +1,3 @@
-`browserify -x axios app.js > bundle.js` will produce `bundle.js`
+Running `webpack` in this directory will produce `bundle.js`
Note the external dependency "axios" that is excluded from the build (it's not needed when using js-data-angular).
diff --git a/dist/js-data-angular.js b/dist/js-data-angular.js
index 99c2696..c8d910f 100644
--- a/dist/js-data-angular.js
+++ b/dist/js-data-angular.js
@@ -1,6 +1,6 @@
/*!
* js-data-angular
- * @version 3.0.0-beta.2 - Homepage
+ * @version 3.0.0-rc.1 - Homepage
* @author Jason Dobry
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT
@@ -65,29 +65,15 @@ return /******/ (function(modules) { // webpackBootstrap
/* 0 */
/***/ function(module, exports, __webpack_require__) {
- var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
- var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
-
- Object.defineProperty(exports, '__esModule', {
- value: true
- });
/*jshint loopfunc:true*/
+ var JSData = __webpack_require__(1);
+ var DSHttpAdapter = __webpack_require__(4);
+ var angular = __webpack_require__(2);
- var _JSData = __webpack_require__(1);
-
- var _JSData2 = _interopRequireWildcard(_JSData);
-
- var _DSHttpAdapter = __webpack_require__(4);
-
- var _DSHttpAdapter2 = _interopRequireWildcard(_DSHttpAdapter);
-
- var _angular = __webpack_require__(2);
-
- var _angular2 = _interopRequireWildcard(_angular);
-
- var DSUtils = _JSData2['default'].DSUtils;
- var DSErrors = _JSData2['default'].DSErrors;
+ var DSUtils = JSData.DSUtils;
+ var DSErrors = JSData.DSErrors;
var isString = DSUtils.isString;
var isNumber = DSUtils.isNumber;
var isObject = DSUtils.isObject;
@@ -127,7 +113,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (Adapter) {
adapter.loaded = true;
- _angular2['default'].module('js-data').provider(adapter['class'], function () {
+ angular.module('js-data').provider(adapter['class'], function () {
var _this = this;
_this.defaults = {};
_this.$get = [function () {
@@ -145,7 +131,7 @@ return /******/ (function(modules) { // webpackBootstrap
this.$get = ['$http', 'DS', function ($http, DS) {
defaults.http = defaults.http || $http;
- var adapter = new _DSHttpAdapter2['default'](defaults);
+ var adapter = new DSHttpAdapter(defaults);
DS.registerAdapter('http', adapter, { 'default': true });
return adapter;
}];
@@ -165,7 +151,7 @@ return /******/ (function(modules) { // webpackBootstrap
_this.defaults = {};
- _JSData2['default'].DS.prototype.bindAll = function (resourceName, params, scope, expr, cb) {
+ JSData.DS.prototype.bindAll = function (resourceName, params, scope, expr, cb) {
var _this = this;
params = params || {};
@@ -199,7 +185,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
};
- _JSData2['default'].DS.prototype.bindOne = function (resourceName, id, scope, expr, cb) {
+ JSData.DS.prototype.bindOne = function (resourceName, id, scope, expr, cb) {
var _this = this;
id = resolveId(_this.definitions[resourceName], id);
@@ -242,14 +228,14 @@ return /******/ (function(modules) { // webpackBootstrap
var $rootScope = args[args.length - 2];
var $q = args[args.length - 1];
- var store = new _JSData2['default'].DS(_this.defaults);
+ var store = new JSData.DS(_this.defaults);
var originals = {};
function QPromise(executor) {
var deferred = $q.defer();
try {
- executor.call(undefined, _angular2['default'].bind(deferred, deferred.resolve), _angular2['default'].bind(deferred, deferred.reject));
+ executor.call(undefined, angular.bind(deferred, deferred.resolve), angular.bind(deferred, deferred.reject));
} catch (err) {
deferred.reject(err);
}
@@ -315,7 +301,7 @@ return /******/ (function(modules) { // webpackBootstrap
_this.$get = deps;
};
- _angular2['default'].module('js-data', ['ng']).value('DSUtils', DSUtils).value('DSErrors', DSErrors).value('DSVersion', _JSData2['default'].version).provider('DS', DSProvider).provider('DSHttpAdapter', DSHttpAdapterProvider).run(['DS', 'DSHttpAdapter', function (DS, DSHttpAdapter) {
+ angular.module('js-data', ['ng']).value('DSUtils', DSUtils).value('DSErrors', DSErrors).value('DSVersion', JSData.version).provider('DS', DSProvider).provider('DSHttpAdapter', DSHttpAdapterProvider).run(['DS', 'DSHttpAdapter', function (DS, DSHttpAdapter) {
DS.registerAdapter('http', DSHttpAdapter, { 'default': true });
}]);
@@ -324,8 +310,8 @@ return /******/ (function(modules) { // webpackBootstrap
}
// return the module name
- exports['default'] = 'js-data';
- module.exports = exports['default'];
+ module.exports = 'js-data';
+ module.exports.name = 'js-data';
/***/ },
/* 1 */
@@ -362,27 +348,18 @@ return /******/ (function(modules) { // webpackBootstrap
/* 4 */
/***/ function(module, exports, __webpack_require__) {
- var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
-
- var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
-
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
- Object.defineProperty(exports, '__esModule', {
- value: true
- });
-
- var _JSData = __webpack_require__(1);
-
- var _JSData2 = _interopRequireWildcard(_JSData);
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
+ var JSData = __webpack_require__(1);
var axios = null;
try {
axios = __webpack_require__(5);
} catch (e) {}
- var DSUtils = _JSData2['default'].DSUtils;
+ var DSUtils = JSData.DSUtils;
var deepMixIn = DSUtils.deepMixIn;
var removeCircular = DSUtils.removeCircular;
var copy = DSUtils.copy;
@@ -449,11 +426,62 @@ return /******/ (function(modules) { // webpackBootstrap
}
_createClass(DSHttpAdapter, [{
+ key: 'getEndpoint',
+ value: function getEndpoint(resourceConfig, id, options) {
+ var _this2 = this;
+
+ options = options || {};
+ options.params = options.params || {};
+
+ var item = undefined;
+ var parentKey = resourceConfig.parentKey;
+ var endpoint = options.hasOwnProperty('endpoint') ? options.endpoint : resourceConfig.endpoint;
+ var parentField = resourceConfig.parentField;
+ var parentDef = resourceConfig.getResource(resourceConfig.parent);
+ var parentId = options.params[parentKey];
+
+ if (parentId === false || !parentKey || !parentDef) {
+ if (parentId === false) {
+ delete options.params[parentKey];
+ }
+ return endpoint;
+ } else {
+ delete options.params[parentKey];
+
+ if (DSUtils._sn(id)) {
+ item = resourceConfig.get(id);
+ } else if (DSUtils._o(id)) {
+ item = id;
+ }
+
+ if (item) {
+ parentId = parentId || item[parentKey] || (item[parentField] ? item[parentField][parentDef.idAttribute] : null);
+ }
+
+ if (parentId) {
+ var _ret = (function () {
+ delete options.endpoint;
+ var _options = {};
+ DSUtils.forOwn(options, function (value, key) {
+ _options[key] = value;
+ });
+ return {
+ v: DSUtils.makePath(_this2.getEndpoint(parentDef, parentId, DSUtils._(parentDef, _options)), parentId, endpoint)
+ };
+ })();
+
+ if (typeof _ret === 'object') return _ret.v;
+ } else {
+ return endpoint;
+ }
+ }
+ }
+ }, {
key: 'getPath',
value: function getPath(method, resourceConfig, id, options) {
var _this = this;
options = options || {};
- var args = [options.basePath || _this.defaults.basePath || resourceConfig.basePath, resourceConfig.getEndpoint(isString(id) || isNumber(id) || method === 'create' ? id : null, options)];
+ var args = [options.basePath || _this.defaults.basePath || resourceConfig.basePath, this.getEndpoint(resourceConfig, isString(id) || isNumber(id) || method === 'create' ? id : null, options)];
if (method === 'find' || method === 'update' || method === 'destroy') {
args.push(id);
}
@@ -479,7 +507,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
function logResponse(data) {
- var str = '' + start.toUTCString() + ' - ' + data.config.method.toUpperCase() + ' ' + data.config.url + ' - ' + data.status + ' ' + (new Date().getTime() - start.getTime()) + 'ms';
+ var str = start.toUTCString() + ' - ' + data.config.method.toUpperCase() + ' ' + data.config.url + ' - ' + data.status + ' ' + (new Date().getTime() - start.getTime()) + 'ms';
if (data.status >= 200 && data.status < 300) {
if (_this.defaults.log) {
_this.defaults.log(str, data);
@@ -644,8 +672,7 @@ return /******/ (function(modules) { // webpackBootstrap
return DSHttpAdapter;
})();
- exports['default'] = DSHttpAdapter;
- module.exports = exports['default'];
+ module.exports = DSHttpAdapter;
/***/ },
/* 5 */
diff --git a/dist/js-data-angular.min.js b/dist/js-data-angular.min.js
index a8107e4..6930ad8 100644
--- a/dist/js-data-angular.min.js
+++ b/dist/js-data-angular.min.js
@@ -1,6 +1,6 @@
/*!
* js-data-angular
-* @version 3.0.0-beta.2 - Homepage
+* @version 3.0.0-rc.1 - Homepage
* @author Jason Dobry
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT
@@ -8,5 +8,5 @@
* @overview Angular wrapper for js-data.
*/
-!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b(require("js-data"),require("angular"),function(){try{return require("axios")}catch(a){}}()):"function"==typeof define&&define.amd?define(["js-data","angular"],function(c,d){return b(c,d,a.axios)}):"object"==typeof exports?exports.jsDataAngularModuleName=b(require("js-data"),require("angular"),function(){try{return require("axios")}catch(a){}}()):a.jsDataAngularModuleName=b(a.JSData,a.angular,a.axios)}(this,function(a,b,c){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){function d(a){var b=void 0;try{b=c(3)(a.project)}catch(d){}b||(b=window[a["class"]]),b&&(a.loaded=!0,l["default"].module("js-data").provider(a["class"],function(){var a=this;a.defaults={},a.$get=[function(){return new b(a.defaults)}]}))}var e=function(a){return a&&a.__esModule?a:{"default":a}},f=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(b,"__esModule",{value:!0});var g=c(1),h=e(g),i=c(4),j=e(i),k=c(2),l=e(k),m=h["default"].DSUtils,n=h["default"].DSErrors,o=m.isString,p=m.isNumber,q=m.isObject,r=m.set,s=m.resolveId,t=[{project:"js-data-localstorage",name:"localstorage","class":"DSLocalStorageAdapter"},{project:"js-data-localforage",name:"localforage","class":"DSLocalForageAdapter"},{project:"js-data-firebase",name:"firebase","class":"DSFirebaseAdapter"},{project:"js-data-sql",name:"sql","class":"DSSqlAdapter"}],u=["compute","digest","eject","inject"],v=function y(){f(this,y);var a={};this.defaults=a,this.$get=["$http","DS",function(b,c){a.http=a.http||b;var d=new j["default"](a);return c.registerAdapter("http",d,{"default":!0}),d}]},w=function z(){function a(){function a(a){var b=g.defer();try{a.call(void 0,l["default"].bind(b,b.resolve),l["default"].bind(b,b.reject))}catch(c){b.reject(c)}return b.promise}for(var c=arguments.length,d=Array(c),e=0;c>e;e++)d[e]=arguments[e];var f=d[d.length-2],g=d[d.length-1],i=new h["default"].DS(b.defaults),j={};if(a.all=g.all,a.when=g.when,a.reject=g.reject,m.Promise=a,d.length)for(var k=0;kd;d++)c[d]=arguments[d];return f.$$phase?j[a].apply(i,c):f.$apply(function(){return j[a].apply(i,c)})}},p=0;p=200&&a.status<300?(c.defaults.log&&c.defaults.log(b,a),a):(c.defaults.error&&c.defaults.error("'FAILED: "+b,a),k.Promise.reject(a))}var c=this,d=new Date;a=n(a),a=l(a,c.defaults.httpConfig),c.defaults.forceTrailingSlash&&"/"!==a.url[a.url.length-1]&&(a.url+="/"),"object"==typeof a.data&&(a.data=m(a.data)),a.method=a.method.toUpperCase();var e=a.suffix||c.defaults.suffix;if(e&&a.url.substr(a.url.length-e.length)!==e&&(a.url+=e),!this.http)throw new Error("You have not configured this adapter with an http library!");return this.http(a).then(b,b)}},{key:"GET",value:function(a,b){return b=b||{},"method"in b||(b.method="get"),this.HTTP(l(b,{url:a}))}},{key:"POST",value:function(a,b,c){return c=c||{},"method"in c||(c.method="post"),this.HTTP(l(c,{url:a,data:b}))}},{key:"PUT",value:function(a,b,c){return c=c||{},"method"in c||(c.method="put"),this.HTTP(l(c,{url:a,data:b||{}}))}},{key:"DEL",value:function(a,b){return b=b||{},"method"in b||(b.method="delete"),this.HTTP(l(b,{url:a}))}},{key:"find",value:function(a,b,c){var d=this;return c=c?n(c):{},c.suffix=c.suffix||a.suffix,c.params=c.params||{},c.params=d.defaults.queryTransform(a,c.params),d.GET(d.getPath("find",a,b,c),c).then(function(b){var e=(c.deserialize?c.deserialize:d.defaults.deserialize)(a,b);return e?e:k.Promise.reject(new Error("Not Found!"))})}},{key:"findAll",value:function(a,b,c){var d=this;return c=c?n(c):{},c.suffix=c.suffix||a.suffix,c.params=c.params||{},b&&(b=d.defaults.queryTransform(a,b),l(c.params,b)),d.GET(d.getPath("findAll",a,b,c),c).then(function(b){return(c.deserialize?c.deserialize:d.defaults.deserialize)(a,b)})}},{key:"create",value:function(a,b,c){var d=this;return c=c?n(c):{},c.suffix=c.suffix||a.suffix,c.params=c.params||{},c.params=d.defaults.queryTransform(a,c.params),d.POST(d.getPath("create",a,b,c),c.serialize?c.serialize(a,b):d.defaults.serialize(a,b),c).then(function(b){return(c.deserialize?c.deserialize:d.defaults.deserialize)(a,b)})}},{key:"update",value:function(a,b,c,d){var e=this;return d=d?n(d):{},d.suffix=d.suffix||a.suffix,d.params=d.params||{},d.params=e.defaults.queryTransform(a,d.params),e.PUT(e.getPath("update",a,b,d),d.serialize?d.serialize(a,c):e.defaults.serialize(a,c),d).then(function(b){return(d.deserialize?d.deserialize:e.defaults.deserialize)(a,b)})}},{key:"updateAll",value:function(a,b,c,d){var e=this;return d=d?n(d):{},d.suffix=d.suffix||a.suffix,d.params=d.params||{},c&&(c=e.defaults.queryTransform(a,c),l(d.params,c)),this.PUT(e.getPath("updateAll",a,b,d),d.serialize?d.serialize(a,b):e.defaults.serialize(a,b),d).then(function(b){return(d.deserialize?d.deserialize:e.defaults.deserialize)(a,b)})}},{key:"destroy",value:function(a,b,c){var d=this;return c=c?n(c):{},c.suffix=c.suffix||a.suffix,c.params=c.params||{},c.params=d.defaults.queryTransform(a,c.params),d.DEL(d.getPath("destroy",a,b,c),c).then(function(b){return(c.deserialize?c.deserialize:d.defaults.deserialize)(a,b)})}},{key:"destroyAll",value:function(a,b,c){var d=this;return c=c?n(c):{},c.suffix=c.suffix||a.suffix,c.params=c.params||{},b&&(b=d.defaults.queryTransform(a,b),l(c.params,b)),this.DEL(d.getPath("destroyAll",a,b,c),c).then(function(b){return(c.deserialize?c.deserialize:d.defaults.deserialize)(a,b)})}}]),a}();b["default"]=t,a.exports=b["default"]},function(a,b,d){if("undefined"==typeof c){var e=new Error('Cannot find module "axios"');throw e.code="MODULE_NOT_FOUND",e}a.exports=c}])});
+!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b(require("js-data"),require("angular"),function(){try{return require("axios")}catch(a){}}()):"function"==typeof define&&define.amd?define(["js-data","angular"],function(c,d){return b(c,d,a.axios)}):"object"==typeof exports?exports.jsDataAngularModuleName=b(require("js-data"),require("angular"),function(){try{return require("axios")}catch(a){}}()):a.jsDataAngularModuleName=b(a.JSData,a.angular,a.axios)}(this,function(a,b,c){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a){var b=void 0;try{b=c(3)(a.project)}catch(d){}b||(b=window[a["class"]]),b&&(a.loaded=!0,h.module("js-data").provider(a["class"],function(){var a=this;a.defaults={},a.$get=[function(){return new b(a.defaults)}]}))}var f=c(1),g=c(4),h=c(2),i=f.DSUtils,j=f.DSErrors,k=i.isString,l=i.isNumber,m=i.isObject,n=i.set,o=i.resolveId,p=[{project:"js-data-localstorage",name:"localstorage","class":"DSLocalStorageAdapter"},{project:"js-data-localforage",name:"localforage","class":"DSLocalForageAdapter"},{project:"js-data-firebase",name:"firebase","class":"DSFirebaseAdapter"},{project:"js-data-sql",name:"sql","class":"DSSqlAdapter"}],q=["compute","digest","eject","inject"],r=function u(){d(this,u);var a={};this.defaults=a,this.$get=["$http","DS",function(b,c){a.http=a.http||b;var d=new g(a);return c.registerAdapter("http",d,{"default":!0}),d}]},s=function v(){function a(){function a(a){var b=j.defer();try{a.call(void 0,h.bind(b,b.resolve),h.bind(b,b.reject))}catch(c){b.reject(c)}return b.promise}for(var c=arguments.length,d=Array(c),e=0;c>e;e++)d[e]=arguments[e];var g=d[d.length-2],j=d[d.length-1],k=new f.DS(b.defaults),l={};if(a.all=j.all,a.when=j.when,a.reject=j.reject,i.Promise=a,d.length)for(var m=0;md;d++)c[d]=arguments[d];return g.$$phase?l[a].apply(k,c):g.$apply(function(){return l[a].apply(k,c)})}},r=0;r=200&&a.status<300?(c.defaults.log&&c.defaults.log(b,a),a):(c.defaults.error&&c.defaults.error("'FAILED: "+b,a),i.Promise.reject(a))}var c=this,d=new Date;a=l(a),a=j(a,c.defaults.httpConfig),c.defaults.forceTrailingSlash&&"/"!==a.url[a.url.length-1]&&(a.url+="/"),"object"==typeof a.data&&(a.data=k(a.data)),a.method=a.method.toUpperCase();var e=a.suffix||c.defaults.suffix;if(e&&a.url.substr(a.url.length-e.length)!==e&&(a.url+=e),!this.http)throw new Error("You have not configured this adapter with an http library!");return this.http(a).then(b,b)}},{key:"GET",value:function(a,b){return b=b||{},"method"in b||(b.method="get"),this.HTTP(j(b,{url:a}))}},{key:"POST",value:function(a,b,c){return c=c||{},"method"in c||(c.method="post"),this.HTTP(j(c,{url:a,data:b}))}},{key:"PUT",value:function(a,b,c){return c=c||{},"method"in c||(c.method="put"),this.HTTP(j(c,{url:a,data:b||{}}))}},{key:"DEL",value:function(a,b){return b=b||{},"method"in b||(b.method="delete"),this.HTTP(j(b,{url:a}))}},{key:"find",value:function(a,b,c){var d=this;return c=c?l(c):{},c.suffix=c.suffix||a.suffix,c.params=c.params||{},c.params=d.defaults.queryTransform(a,c.params),d.GET(d.getPath("find",a,b,c),c).then(function(b){var e=(c.deserialize?c.deserialize:d.defaults.deserialize)(a,b);return e?e:i.Promise.reject(new Error("Not Found!"))})}},{key:"findAll",value:function(a,b,c){var d=this;return c=c?l(c):{},c.suffix=c.suffix||a.suffix,c.params=c.params||{},b&&(b=d.defaults.queryTransform(a,b),j(c.params,b)),d.GET(d.getPath("findAll",a,b,c),c).then(function(b){return(c.deserialize?c.deserialize:d.defaults.deserialize)(a,b)})}},{key:"create",value:function(a,b,c){var d=this;return c=c?l(c):{},c.suffix=c.suffix||a.suffix,c.params=c.params||{},c.params=d.defaults.queryTransform(a,c.params),d.POST(d.getPath("create",a,b,c),c.serialize?c.serialize(a,b):d.defaults.serialize(a,b),c).then(function(b){return(c.deserialize?c.deserialize:d.defaults.deserialize)(a,b)})}},{key:"update",value:function(a,b,c,d){var e=this;return d=d?l(d):{},d.suffix=d.suffix||a.suffix,d.params=d.params||{},d.params=e.defaults.queryTransform(a,d.params),e.PUT(e.getPath("update",a,b,d),d.serialize?d.serialize(a,c):e.defaults.serialize(a,c),d).then(function(b){return(d.deserialize?d.deserialize:e.defaults.deserialize)(a,b)})}},{key:"updateAll",value:function(a,b,c,d){var e=this;return d=d?l(d):{},d.suffix=d.suffix||a.suffix,d.params=d.params||{},c&&(c=e.defaults.queryTransform(a,c),j(d.params,c)),this.PUT(e.getPath("updateAll",a,b,d),d.serialize?d.serialize(a,b):e.defaults.serialize(a,b),d).then(function(b){return(d.deserialize?d.deserialize:e.defaults.deserialize)(a,b)})}},{key:"destroy",value:function(a,b,c){var d=this;return c=c?l(c):{},c.suffix=c.suffix||a.suffix,c.params=c.params||{},c.params=d.defaults.queryTransform(a,c.params),d.DEL(d.getPath("destroy",a,b,c),c).then(function(b){return(c.deserialize?c.deserialize:d.defaults.deserialize)(a,b)})}},{key:"destroyAll",value:function(a,b,c){var d=this;return c=c?l(c):{},c.suffix=c.suffix||a.suffix,c.params=c.params||{},b&&(b=d.defaults.queryTransform(a,b),j(c.params,b)),this.DEL(d.getPath("destroyAll",a,b,c),c).then(function(b){return(c.deserialize?c.deserialize:d.defaults.deserialize)(a,b)})}}]),a}();a.exports=r},function(a,b,d){if("undefined"==typeof c){var e=new Error('Cannot find module "axios"');throw e.code="MODULE_NOT_FOUND",e}a.exports=c}])});
//# sourceMappingURL=js-data-angular.min.map
\ No newline at end of file
diff --git a/dist/js-data-angular.min.map b/dist/js-data-angular.min.map
index d4373a4..5a5833b 100644
--- a/dist/js-data-angular.min.map
+++ b/dist/js-data-angular.min.map
@@ -1 +1 @@
-{"version":3,"file":"js-data-angular.min.js","sources":["js-data-angular.js"],"names":["root","factory","exports","module","require","e","define","amd","__WEBPACK_EXTERNAL_MODULE_1__","__WEBPACK_EXTERNAL_MODULE_2__","this","__WEBPACK_EXTERNAL_MODULE_5__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","registerAdapter","adapter","Adapter","undefined","project","window","_angular2","provider","_this","defaults","$get","_interopRequireWildcard","obj","__esModule","default","_classCallCheck","instance","Constructor","TypeError","Object","defineProperty","value","_JSData","_JSData2","_DSHttpAdapter","_DSHttpAdapter2","_angular","DSUtils","DSErrors","isString","isNumber","isObject","set","resolveId","adapters","name","class","functionsToWrap","DSHttpAdapterProvider","$http","DS","http","DSProvider","load","QPromise","executor","deferred","$q","defer","bind","resolve","reject","err","promise","_len","arguments","length","args","Array","_key","$rootScope","store","originals","all","when","Promise","i","j","registered","_loop","k","_len2","_key2","$$phase","apply","$apply","observe","$watch","Platform","performMicrotaskCheckpoint","deps","push","prototype","bindAll","resourceName","params","scope","expr","cb","definitions","NER","IA","lastModified","items","filter","bindOne","item","get","compute","version","run","DSHttpAdapter","webpackContext","req","webpackContextResolve","map","Error","keys","_createClass","defineProperties","target","props","descriptor","enumerable","configurable","writable","key","protoProps","staticProps","axios","deepMixIn","removeCircular","copy","makePath","Defaults","resourceConfig","data","defaultsPrototype","basePath","forceTrailingSlash","httpConfig","options","console","log","a","b","info","error","method","getEndpoint","config","logResponse","str","start","toUTCString","toUpperCase","url","status","Date","getTime","suffix","substr","then","HTTP","attrs","queryTransform","GET","getPath","deserialize","POST","serialize","PUT","DEL","code"],"mappings":";;;;;;;;;;CASA,SAA2CA,EAAMC,GAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,EAAQG,QAAQ,WAAYA,QAAQ,WAAa,WAA+C,IAAM,MAAOA,SAAQ,SAAY,MAAMC,SAC/H,kBAAXC,SAAyBA,OAAOC,IAC9CD,QAAQ,UAAW,WAAY,SAA8CE,EAA+BC,GAC3G,MAAOR,GAAQO,EAA+BC,EAA+BT,EAAY,SAEhE,gBAAZE,SACdA,QAAiC,wBAAID,EAAQG,QAAQ,WAAYA,QAAQ,WAAa,WAA+C,IAAM,MAAOA,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,EAAQ9C,OAAS8C,EAAQ9C,WACzB8C,EAAQ9C,OAAS7E,EAAMC,SAASkJ,eAAe9B,EAAgBM,EAAQ9C,QAChE7E,EAAM0J,IAAI1J,EAAMqJ,QAAQ,UAAWhC,EAAgBnI,EAAIyI,GAAUA,GAASqB,KAAK,SAAU1B,GAC9F,OAAQK,EAAQ2B,YAAc3B,EAAQ2B,YAActJ,EAAMC,SAASqJ,aAAajC,EAAgBC,QAIpGV,IAAK,aACL/F,MAAO,SAAoBwG,EAAgBxC,EAAQ8C,GACjD,GAAI3H,GAAQpB,IAQZ,OAPA+I,GAAUA,EAAUT,EAAKS,MACzBA,EAAQmB,OAASnB,EAAQmB,QAAUzB,EAAeyB,OAClDnB,EAAQ9C,OAAS8C,EAAQ9C,WACrBA,IACFA,EAAS7E,EAAMC,SAASkJ,eAAe9B,EAAgBxC,GACvDmC,EAAUW,EAAQ9C,OAAQA,IAErBjG,KAAK8K,IAAI1J,EAAMqJ,QAAQ,aAAchC,EAAgBxC,EAAQ8C,GAAUA,GAASqB,KAAK,SAAU1B,GACpG,OAAQK,EAAQ2B,YAAc3B,EAAQ2B,YAActJ,EAAMC,SAASqJ,aAAajC,EAAgBC,SAK/FzB,IAGTzH,GAAQ,WAAayH,EACrBxH,EAAOD,QAAUA,EAAQ,YAIpB,SAASC,EAAQD,EAASW,GAE/B,GAA4C,mBAAlCF,GAA+C,CAAC,GAAIN,GAAI,GAAI2H,OAAM,6BAA8D,MAA7B3H,GAAEoL,KAAO,mBAA0BpL,EAChJF,EAAOD,QAAUS"}
\ No newline at end of file
+{"version":3,"file":"js-data-angular.min.js","sources":["js-data-angular.js"],"names":["root","factory","exports","module","require","e","define","amd","__WEBPACK_EXTERNAL_MODULE_1__","__WEBPACK_EXTERNAL_MODULE_2__","this","__WEBPACK_EXTERNAL_MODULE_5__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_classCallCheck","instance","Constructor","TypeError","registerAdapter","adapter","Adapter","undefined","project","window","angular","provider","_this","defaults","$get","JSData","DSHttpAdapter","DSUtils","DSErrors","isString","isNumber","isObject","set","resolveId","adapters","name","class","functionsToWrap","DSHttpAdapterProvider","$http","DS","http","default","DSProvider","load","QPromise","executor","deferred","$q","defer","bind","resolve","reject","err","promise","_len","arguments","length","args","Array","_key","$rootScope","store","originals","all","when","Promise","i","j","registered","_loop","k","_len2","_key2","$$phase","apply","$apply","Object","observe","$watch","Platform","performMicrotaskCheckpoint","deps","push","prototype","bindAll","resourceName","params","scope","expr","cb","definitions","NER","IA","lastModified","items","filter","bindOne","item","get","compute","value","version","run","webpackContext","req","webpackContextResolve","map","Error","keys","_createClass","defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","key","protoProps","staticProps","axios","deepMixIn","removeCircular","copy","makePath","Defaults","resourceConfig","data","defaultsPrototype","basePath","forceTrailingSlash","httpConfig","options","console","log","a","b","info","error","_this2","parentKey","endpoint","hasOwnProperty","parentField","parentDef","getResource","parent","parentId","_sn","_o","idAttribute","_ret","_options","forOwn","v","getEndpoint","_","method","config","logResponse","str","start","toUTCString","toUpperCase","url","status","Date","getTime","suffix","substr","then","HTTP","attrs","queryTransform","GET","getPath","deserialize","POST","serialize","PUT","DEL","code"],"mappings":";;;;;;;;;;CASA,SAA2CA,EAAMC,GAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,EAAQG,QAAQ,WAAYA,QAAQ,WAAa,WAA+C,IAAM,MAAOA,SAAQ,SAAY,MAAMC,SAC/H,kBAAXC,SAAyBA,OAAOC,IAC9CD,QAAQ,UAAW,WAAY,SAA8CE,EAA+BC,GAC3G,MAAOR,GAAQO,EAA+BC,EAA+BT,EAAY,SAEhE,gBAAZE,SACdA,QAAiC,wBAAID,EAAQG,QAAQ,WAAYA,QAAQ,WAAa,WAA+C,IAAM,MAAOA,SAAQ,SAAY,MAAMC,SAE5KL,EAA8B,wBAAIC,EAAQD,EAAa,OAAGA,EAAc,QAAGA,EAAY,QACtFU,KAA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GAAIN,GAAI,GAAImH,OAAM,6BAA8D,MAA7BnH,GAAE8L,KAAO,mBAA0B9L,EAChJF,EAAOD,QAAUS"}
\ No newline at end of file
diff --git a/package.json b/package.json
index cab54fd..fed3d8b 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "js-data-angular",
"description": "Angular wrapper for js-data.",
- "version": "3.0.0-beta.2",
+ "version": "3.0.0-rc.1",
"homepage": "http://www.js-data.io/docs/js-data-angular",
"repository": {
"type": "git",
@@ -20,38 +20,38 @@
],
"main": "dist/js-data-angular.js",
"devDependencies": {
- "babel-core": "5.1.10",
- "babel-loader": "5.0.0",
+ "babel-core": "5.6.15",
+ "babel-loader": "5.2.2",
"grunt": "0.4.5",
"grunt-contrib-clean": "0.6.0",
"grunt-contrib-uglify": "0.9.1",
"grunt-contrib-watch": "0.6.1",
- "grunt-karma": "0.10.1",
+ "grunt-karma": "0.11.1",
"grunt-karma-coveralls": "2.5.3",
- "grunt-webpack": "1.0.8",
+ "grunt-webpack": "1.0.10",
"jit-grunt": "0.9.1",
"jshint-loader": "0.8.3",
- "karma": "0.12.31",
+ "karma": "0.12.37",
"karma-chai": "0.1.0",
- "karma-chrome-launcher": "0.1.8",
- "karma-coverage": "0.3.1",
- "karma-firefox-launcher": "0.1.4",
- "karma-mocha": "0.1.10",
- "karma-phantomjs-launcher": "0.1.4",
+ "karma-chrome-launcher": "0.2.0",
+ "karma-coverage": "0.4.2",
+ "karma-firefox-launcher": "0.1.6",
+ "karma-mocha": "0.2.0",
+ "karma-phantomjs-launcher": "0.2.0",
"karma-script-launcher": "0.1.0",
"karma-sinon": "1.0.4",
"karma-spec-reporter": "0.0.19",
- "time-grunt": "1.1.1",
- "webpack-dev-server": "1.8.0"
+ "time-grunt": "1.2.1",
+ "webpack-dev-server": "1.10.1"
},
"scripts": {
"test": "grunt test"
},
"peerDependencies": {
- "angular": ">=1.1.0"
+ "angular": ">=1.1.0",
+ "js-data": "2.0.0-rc.1"
},
"dependencies": {
- "js-data": ">=2.0.0-beta.3",
- "js-data-http": ">=2.0.0-beta.3"
+ "js-data-http": "2.0.0-rc.1"
}
}
diff --git a/src/index.js b/src/index.js
index 4ca1d07..b8040b6 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,7 +1,7 @@
/*jshint loopfunc:true*/
-import JSData from 'js-data';
-import DSHttpAdapter from '../node_modules/js-data-http/src/index.js';
-import angular from 'angular';
+let JSData = require('js-data');
+let DSHttpAdapter = require('../node_modules/js-data-http/src/index.js');
+let angular = require('angular');
let { DSUtils, DSErrors } = JSData;
let { isString, isNumber, isObject, set, resolveId } = DSUtils;
@@ -234,4 +234,5 @@ for (var i = 0; i < adapters.length; i++) {
}
// return the module name
-export default 'js-data';
+module.exports = 'js-data';
+module.exports.name = 'js-data';