Skip to content

Commit

Permalink
Stable Version 1.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed Feb 5, 2015
1 parent 3edfdd8 commit 5e1043d
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
##### 1.2.0 - 05 February 2015

###### Backwards compatible bug fixes
- Added a `getResource(resourceName)` method to resource definitions so adapters can grab the definitions of a resource's relations

##### 1.1.1 - 05 February 2015

###### Backwards compatible bug fixes
Expand Down
12 changes: 8 additions & 4 deletions dist/js-data-debug.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file dist/js-data-debug.js
* @version 1.1.1 - Homepage <http://www.js-data.io/>
* @version 1.2.0 - Homepage <http://www.js-data.io/>
* @copyright (c) 2014 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
Expand Down Expand Up @@ -3469,6 +3469,10 @@ function defineResource(definition) {
}
}

def.getResource = function (resourceName) {
return _this.definitions[resourceName];
};

def.getEndpoint = function (id, options) {
options.params = options.params || {};

Expand Down Expand Up @@ -4664,10 +4668,10 @@ module.exports = {
DSUtils: require('./utils'),
DSErrors: require('./errors'),
version: {
full: '1.1.1',
full: '1.2.0',
major: parseInt('1', 10),
minor: parseInt('1', 10),
patch: parseInt('1', 10),
minor: parseInt('2', 10),
patch: parseInt('0', 10),
alpha: 'false' !== 'false' ? 'false' : false,
beta: 'false' !== 'false' ? 'false' : false
}
Expand Down
12 changes: 8 additions & 4 deletions dist/js-data.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file dist/js-data.js
* @version 1.1.1 - Homepage <http://www.js-data.io/>
* @version 1.2.0 - Homepage <http://www.js-data.io/>
* @copyright (c) 2014 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
Expand Down Expand Up @@ -3453,6 +3453,10 @@ function defineResource(definition) {
}
}

def.getResource = function (resourceName) {
return _this.definitions[resourceName];
};

def.getEndpoint = function (id, options) {
options.params = options.params || {};

Expand Down Expand Up @@ -4629,10 +4633,10 @@ module.exports = {
DSUtils: require('./utils'),
DSErrors: require('./errors'),
version: {
full: '1.1.1',
full: '1.2.0',
major: parseInt('1', 10),
minor: parseInt('1', 10),
patch: parseInt('1', 10),
minor: parseInt('2', 10),
patch: parseInt('0', 10),
alpha: 'false' !== 'false' ? 'false' : false,
beta: 'false' !== 'false' ? 'false' : false
}
Expand Down
4 changes: 2 additions & 2 deletions dist/js-data.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "js-data",
"description": "Robust, framework-agnostic in-memory data store.",
"version": "1.1.1",
"version": "1.2.0",
"homepage": "http://www.js-data.io",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions src/datastore/sync_methods/defineResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ function defineResource(definition) {
}
}

def.getResource = function (resourceName) {
return _this.definitions[resourceName];
};

def.getEndpoint = function (id, options) {
options.params = options.params || {};

Expand Down

0 comments on commit 5e1043d

Please sign in to comment.