Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-data

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-data - npm Package Compare versions

Comparing version 1.0.0-rc.2-1 to 1.0.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

##### 1.0.0 - 04 October 2014
Stable Version 1.0.0
##### 1.0.0-rc.2-1 - 25 September 2014

@@ -2,0 +6,0 @@

50

package.json
{
"name": "angular-data",
"description": "Data store for Angular.js.",
"version": "1.0.0-rc.2-1",
"version": "1.0.0",
"homepage": "http://angular-data.pseudobry.com",

@@ -22,25 +22,25 @@ "repository": {

"devDependencies": {
"grunt": "^0.4.5",
"grunt-browserify": "^3.0.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-concat": "^0.5.0",
"grunt-contrib-copy": "^0.5.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-uglify": "^0.5.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-karma": "^0.8.3",
"grunt-karma-coveralls": "^2.5.1",
"karma": "^0.12.23",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^0.1.4",
"karma-coverage": "^0.2.6",
"karma-script-launcher": "^0.1.0",
"karma-firefox-launcher": "^0.1.3",
"karma-phantomjs-launcher": "^0.1.4",
"karma-mocha": "^0.1.9",
"karma-sinon": "^1.0.3",
"karma-spec-reporter": "^0.0.13",
"time-grunt": "^1.0.0",
"jit-grunt": "^0.8.0",
"grunt-docular": "^0.1.4"
"grunt": "0.4.5",
"grunt-browserify": "3.0.1",
"grunt-contrib-clean": "0.6.0",
"grunt-contrib-concat": "0.5.0",
"grunt-contrib-copy": "0.6.0",
"grunt-contrib-jshint": "0.10.0",
"grunt-contrib-uglify": "0.6.0",
"grunt-contrib-watch": "0.6.1",
"grunt-karma": "0.9.0",
"grunt-karma-coveralls": "2.5.2",
"karma": "0.12.24",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "0.1.5",
"karma-coverage": "0.2.6",
"karma-script-launcher": "0.1.0",
"karma-firefox-launcher": "0.1.3",
"karma-phantomjs-launcher": "0.1.4",
"karma-mocha": "0.1.9",
"karma-sinon": "1.0.3",
"karma-spec-reporter": "0.0.13",
"time-grunt": "1.0.0",
"jit-grunt": "0.8.0",
"grunt-docular": "0.1.4"
},

@@ -51,4 +51,4 @@ "scripts": {

"dependencies": {
"mout": "^0.10.0"
"mout": "0.10.0"
}
}

@@ -11,10 +11,12 @@ ## angular-data [![Stories in Backlog](https://badge.waffle.io/jmdobry/angular-data.svg?label=backlog&title=Backlog)](http://waffle.io/jmdobry/angular-data) [![Stories in Ready](https://badge.waffle.io/jmdobry/angular-data.svg?label=ready&title=Ready)](http://waffle.io/jmdobry/angular-data) [![Stories in progress](https://badge.waffle.io/jmdobry/angular-data.svg?label=in%20progress&title=In%20Progress)](http://waffle.io/jmdobry/angular-data)

__Latest Release:__ [1.0.0-rc.2-1](http://angular-data.pseudobry.com/)
__master:__ [1.0.0-rc.2-1](http://angular-data-next.pseudobry.com/)
__Latest Release:__ [1.0.0](https://github.com/jmdobry/angular-data/releases/tag/1.0.0)
Angular-data is in a 1.0.0 Beta. The API is rather stable and angular-data is well tested.
Angular-data is finally 1.0.0!
Although angular-data is being used in production, it's not fully 1.0.0. If you want to use Angular-data, keep an eye on the changelog. 1.0.0 will introduce strict semver (until then, minor number is bumped for breaking changes).
Angular-data 1.x will continue to see bug fixes, but all new development will be on [js-data](https://github.com/js-data/js-data) and [js-data-angular](https://github.com/jmdobry/angular-data/pull/198) (Angular-data 2.0).
## Documentation
#### A note about Angular-data 2.0 (forthcoming)
See [angular-data/pull/198](https://github.com/jmdobry/angular-data/pull/198).
## 1.x Documentation
[http://angular-data.pseudobry.com](http://angular-data.pseudobry.com)

@@ -41,38 +43,37 @@

```js
app.factory('User', function (DS) {
app.factory('Post', function (DS) {
// Simplest resource definition
return DS.defineResource('user');
return DS.defineResource('post');
});
app.factory('Comment', function (DS) {
return DS.defineResource('comment');
});
```
```js
app.controller('friendsCtrl', function ($scope, $routeParams, User) {
app.controller('postCtrl', function ($scope, $routeParams, Post, Comment) {
// it's up to your server to know how to interpret this query
// or you can teach angular-data how to understand your servers' query language
var query = {
where: {
friendIds: {
in: $routeParams.id
}
}
postId: $routeParams.id
};
User.find($routeParams.id);
User.findAll(query);
Post.find($routeParams.id);
Comment.findAll(query);
// My goodness this was easy
User.bindOne($scope, 'me', $routeParams.id);
User.bindAll($scope, 'friends', query);
Post.bindOne($scope, 'post', $routeParams.id);
Comment.bindAll($scope, 'comments', query);
// Long form
// Long form, functionally the same as above
$scope.$watch(function () {
return User.lastModified($routeParams.id);
return Post.lastModified($routeParams.id);
}, function () {
$scope.me = User.get($routeParams.id);
$scope.post = Post.get($routeParams.id);
});
$scope.$watch(function () {
// Changes when anything in the User collection is modified
return User.lastModified();
// Changes when anything in the Comment collection is modified
return Comment.lastModified();
}, function () {
$scope.friends = User.filter(query);
$scope.comments = Comment.filter(query);
});

@@ -106,5 +107,3 @@ });

- [Issues](https://github.com/jmdobry/angular-data/issues) - Found a bug? Feature request? Submit an issue!
- [GitHub](https://github.com/jmdobry/angular-data) - View the source code for angular-data.
- [Design Doc](https://docs.google.com/document/d/1o069KLuBH4jpwm1FCLZFwKMgM73Xi8_1JyjhSxVpidM/edit?usp=sharing) - Design document for Angular-data.
- [Contributing Guide](#Contributing)
- [Contributing Guide](https://github.com/jmdobry/angular-data/blob/master/CONTRIBUTING.md)

@@ -126,4 +125,6 @@ ## Contributing

Copyright (C) 2014 Jason Dobry
The MIT License (MIT)
Copyright (c) 2014 Jason Dobry
Permission is hereby granted, free of charge, to any person obtaining a copy of

@@ -130,0 +131,0 @@ this software and associated documentation files (the "Software"), to deal in

@@ -647,4 +647,3 @@ var utils = require('../utils')[0]();

} catch (err) {
$log.warn(err);
$log.warn('DSCacheFactory is unavailable. Resorting to the lesser capabilities of $cacheFactory.');
$log.debug('DSCacheFactory is unavailable. Resorting to the lesser capabilities of $cacheFactory.');
cache = angular.injector(['ng']).get('$cacheFactory');

@@ -651,0 +650,0 @@ }

@@ -14,3 +14,6 @@ var observe = require('../../../lib/observe-js/observe-js');

var relationDef = DS.definitions[relationName];
if (relationDef && injected[def.localField]) {
if (injected[def.localField]) {
if (!relationDef) {
throw new DS.errors.R(definition.name + 'relation is defined but the resource is not!');
}
try {

@@ -17,0 +20,0 @@ injected[def.localField] = DS.inject(relationName, injected[def.localField], options);

@@ -9,3 +9,3 @@ (function (window, angular, undefined) {

* @description
* __Version:__ 1.0.0-rc.1
* __Version:__ 1.0.0
*

@@ -12,0 +12,0 @@ * ## Install

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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