Skip to content

Commit

Permalink
Merge pull request #35 from holidayextras/v0.6.0
Browse files Browse the repository at this point in the history
v0.6.0 - Updating dependencies
  • Loading branch information
theninj4 authored Jun 22, 2016
2 parents 7a51a6f + 0f15954 commit fd54d4e
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 20 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- 2016-06-22 - v0.6.0 Updating all dependencies
- 2016-06-08 - v0.5.1 Fixes retrieval of many-to-one relationships
- 2016-04-22 - v0.5.0 Safer error extraction, relationship deduplication bug, adding relationships to new resources
- 2016-03-10 - v0.4.3 Error handling when fetching related resources that don't exist
Expand Down
6 changes: 5 additions & 1 deletion karma.local.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ module.exports = function(config) {
singleRun: true,
concurrency: 1,
client: {
captureConsole: true
captureConsole: true,
timeout: 10000,
mocha: {
timeout: 10000
}
}
});
};
5 changes: 4 additions & 1 deletion karma.saucelabs.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ module.exports = function(config) {
concurrency: 5,
client: {
captureConsole: true,
timeout: 10000
timeout: 10000,
mocha: {
timeout: 10000
}
},
startConnect: true,
connectOptions: {
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsonapi-client",
"version": "0.5.1",
"version": "0.6.0",
"description": "A clientside module designed to make it really easy to consume a json:api service.",
"keywords": [
"jsonapi",
Expand All @@ -16,27 +16,27 @@
},
"dependencies": {
"async": "1.5.2",
"object-assign": "4.0.1",
"object-assign": "4.1.0",
"perry": "0.1.3",
"promise": "7.1.1",
"superagent": "1.7.1"
"superagent": "2.0.0"
},
"devDependencies": {
"blanket": "1.2.1",
"browserify": "13.0.0",
"coveralls": "2.11.6",
"blanket": "1.2.3",
"browserify": "13.0.1",
"coveralls": "2.11.9",
"eslint": "0.24.0",
"jsonapi-server": "1.3.0",
"karma": "0.13.19",
"karma-chrome-launcher": "0.2.2",
"karma-firefox-launcher": "0.1.7",
"karma-mocha": "0.2.1",
"karma-phantomjs-launcher": "0.2.3",
"karma-sauce-launcher": "0.3.0",
"karma-spec-reporter": "0.0.23",
"mocha": "2.2.5",
"mocha-lcov-reporter": "0.0.2",
"phantomjs": "1.9.19",
"jsonapi-server": "1.13.0",
"karma": "0.13.22",
"karma-chrome-launcher": "1.0.1",
"karma-firefox-launcher": "1.0.0",
"karma-mocha": "1.0.1",
"karma-phantomjs-launcher": "1.0.0",
"karma-sauce-launcher": "1.0.0",
"karma-spec-reporter": "0.0.26",
"mocha": "2.5.3",
"mocha-lcov-reporter": "1.2.0",
"phantomjs": "2.1.7",
"plato": "1.5.0",
"uglifyjs": "2.4.10"
},
Expand Down
7 changes: 7 additions & 0 deletions test/_testServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
var jsonApiTestServer = require("jsonapi-server/example/server.js");
if (!jsonApiTestServer.start) return;

jsonApiTestServer.getExpressServer().use(function (req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Methods", "POST, GET, PUT, DELETE, OPTIONS");
res.header("Access-Control-Allow-Headers", "Content-Type");
next();
});

before(function() {
jsonApiTestServer.start();
});
Expand Down
6 changes: 5 additions & 1 deletion test/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ describe("Testing jsonapi-client", function() {
"status": "published",
"content": "na",
"author": "[Circular]",
"created": "2016-01-05",
"views": "10",
"tags": [
{
"type": "tags",
Expand Down Expand Up @@ -75,7 +77,7 @@ describe("Testing jsonapi-client", function() {
it("passes back server errors", function(done) {
client.find("articles", { filter: { foobar: "<M" } }, function(err) {
assert.ok(err instanceof Error);
assert.equal(err.message, "\"articles do not have property foobar\"");
assert.equal(err.message, "\"articles do not have attribute or relationship 'foobar'\"");

done();
});
Expand Down Expand Up @@ -148,6 +150,7 @@ describe("Testing jsonapi-client", function() {
"title": "Penguins",
"url": "http://www.example.com/penguins",
"width": 60,
"raw": false,
"photographer": {
"id": "d850ea75-4427-4f81-8595-039990aeede5",
"type": "people"
Expand Down Expand Up @@ -257,6 +260,7 @@ describe("Testing jsonapi-client", function() {
"title": "Penguins",
"url": "http://www.example.com/penguins",
"width": 60,
"raw": false,
"photographer": {
"id": "d850ea75-4427-4f81-8595-039990aeede5",
"type": "people"
Expand Down

0 comments on commit fd54d4e

Please sign in to comment.