Skip to content

Commit 3980b26

Browse files
Merge pull request #51 from RobotlegsJS/update-dependencies
Update dependencies to latest version 🚀
2 parents be0b4dc + dd14527 commit 3980b26

File tree

14 files changed

+1742
-1958
lines changed

14 files changed

+1742
-1958
lines changed

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
"trailingComma": "none",
88
"bracketSpacing": true,
99
"overrides": [
10+
{
11+
"files": "*.js",
12+
"options": {
13+
"tabWidth": 2
14+
}
15+
},
1016
{
1117
"files": "*.json",
1218
"options": {

.publishrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"validations": {
3-
"vulnerableDependencies": true,
3+
"vulnerableDependencies": false,
44
"uncommittedChanges": true,
55
"untrackedFiles": true,
66
"sensitiveData": true,

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ node_js:
66
- stable
77
env:
88
- CODECLIMATE_REPO_TOKEN=81d6af056eb99397e5d254956816ac04c01b8a9295d16cf238a271291becbcb9
9-
- CODECLIMATE_API_HOST=https://codebeat.co/webhooks/code_coverage CODECLIMATE_REPO_TOKEN=e8be9dff-117b-436d-92c4-1b91aed35e33
9+
- CODECLIMATE_API_HOST=https://codebeat.co/webhooks/code_coverage CODECLIMATE_REPO_TOKEN=22af20ac-333a-40b9-9232-3c0373570b3b
1010
before_install:
1111
- export CHROME_BIN=chromium-browser
1212
- export DISPLAY=:99.0

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ Types of changes:
5353

5454
- Enable `"editor.formatOnSave"` rule for `VS Code` (see #32).
5555

56+
- Migrate project to `travis-ci.com`.
57+
58+
- Update `codebeat` Project UUID.
59+
5660
- Update dev dependencies to latest version.
5761

5862
## Robotlegs-CreateJS 1.0.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ RobotlegsJS CreateJS Extension
33

44
[![GitHub license](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobotlegsJS/RobotlegsJS-CreateJS/blob/master/LICENSE)
55
[![Gitter chat](https://badges.gitter.im/RobotlegsJS/RobotlegsJS.svg)](https://gitter.im/RobotlegsJS/RobotlegsJS)
6-
[![Build Status](https://travis-ci.org/RobotlegsJS/RobotlegsJS-CreateJS.svg?branch=master)](https://travis-ci.org/RobotlegsJS/RobotlegsJS-CreateJS)
7-
[![codebeat badge](https://codebeat.co/badges/e8be9dff-117b-436d-92c4-1b91aed35e33)](https://codebeat.co/projects/github-com-robotlegsjs-robotlegsjs-createjs-master)
6+
[![Build Status](https://travis-ci.com/RobotlegsJS/RobotlegsJS-CreateJS.svg?branch=master)](https://travis-ci.com/RobotlegsJS/RobotlegsJS-CreateJS)
7+
[![codebeat badge](https://codebeat.co/badges/22af20ac-333a-40b9-9232-3c0373570b3b)](https://codebeat.co/projects/github-com-robotlegsjs-robotlegsjs-createjs-master)
88
[![Test Coverage](https://api.codeclimate.com/v1/badges/e8d37f3f011c6d211083/test_coverage)](https://codeclimate.com/github/RobotlegsJS/RobotlegsJS-CreateJS/test_coverage)
99
[![npm version](https://badge.fury.io/js/%40robotlegsjs%2Fcreatejs.svg)](https://badge.fury.io/js/%40robotlegsjs%2Fcreatejs)
1010
[![Greenkeeper badge](https://badges.greenkeeper.io/RobotlegsJS/RobotlegsJS-CreateJS.svg)](https://greenkeeper.io/)

karma.conf.js

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,17 @@ module.exports = config => {
1414
var configuration = {
1515
client: {
1616
mocha: {
17-
timeout : 5000
17+
timeout: 5000
1818
}
1919
},
2020
basePath: "",
21-
frameworks: [
22-
"mocha",
23-
"sinon-chai",
24-
"es6-shim"
25-
],
21+
frameworks: ["mocha", "sinon-chai", "es6-shim"],
2622
files: [
2723
{ pattern: "node_modules/reflect-metadata/Reflect.js", include: true },
2824
{ pattern: "node_modules/bluebird/js/browser/bluebird.js", include: true },
2925
{ pattern: "node_modules/easeljs/lib/easeljs.js", include: true },
3026
{ pattern: "./test/index.ts", include: true },
31-
{ pattern: '**/*.map', served: true, included: false, watched: true }
27+
{ pattern: "**/*.map", served: true, included: false, watched: true }
3228
],
3329
preprocessors: {
3430
"./test/index.ts": ["webpack"],
@@ -42,21 +38,16 @@ module.exports = config => {
4238
"karma-webpack",
4339
"karma-sourcemap-writer",
4440
"karma-sourcemap-loader",
45-
"karma-remap-istanbul",
4641
"karma-mocha-reporter",
4742
"karma-mocha",
4843
"karma-sinon-chai",
4944
"karma-es6-shim",
5045
"karma-coverage-istanbul-reporter"
5146
],
5247
mime: {
53-
"text/x-typescript": ["ts","tsx"]
48+
"text/x-typescript": ["ts", "tsx"]
5449
},
55-
reporters: (
56-
config.singleRun ?
57-
["dots", "mocha", "coverage-istanbul"] :
58-
["dots", "mocha"]
59-
),
50+
reporters: config.singleRun ? ["dots", "mocha", "coverage-istanbul"] : ["dots", "mocha"],
6051
coverageIstanbulReporter: {
6152
reports: ["html", "lcov", "lcovonly", "text-summary"],
6253
dir: "coverage",

package.json

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -57,64 +57,61 @@
5757
"lib": "./lib"
5858
},
5959
"dependencies": {
60-
"@robotlegsjs/core": "^1.0.0",
61-
"tslib": "^1.9.3"
60+
"@robotlegsjs/core": "^1.0.2",
61+
"tslib": "^1.10.0"
6262
},
6363
"peerDependencies": {
6464
"easeljs": "^1.0.2",
65-
"reflect-metadata": "^0.1.12"
65+
"reflect-metadata": "^0.1.13"
6666
},
6767
"devDependencies": {
68-
"@types/bluebird": "^3.5.26",
69-
"@types/chai": "^4.1.7",
68+
"@types/bluebird": "^3.5.28",
69+
"@types/chai": "^4.2.3",
7070
"@types/easeljs": "^1.0.0",
71-
"@types/mocha": "^5.2.6",
72-
"@types/sinon": "^7.0.10",
73-
"@types/webpack-env": "^1.13.9",
74-
"bluebird": "^3.5.3",
71+
"@types/mocha": "^5.2.7",
72+
"@types/sinon": "^7.5.0",
73+
"@types/webpack-env": "^1.14.1",
74+
"bluebird": "^3.7.1",
7575
"browserify-versionify": "^1.0.6",
7676
"chai": "^4.2.0",
77-
"clean-webpack-plugin": "^2.0.1",
78-
"copy-webpack-plugin": "^5.0.1",
77+
"clean-webpack-plugin": "^3.0.0",
78+
"copy-webpack-plugin": "^5.0.4",
7979
"easeljs": "^1.0.2",
8080
"es6-map": "^0.1.5",
81-
"es6-symbol": "^3.1.1",
81+
"es6-symbol": "^3.1.2",
8282
"glslify": "^7.0.0",
8383
"html-webpack-plugin": "^3.2.0",
8484
"imports-loader": "^0.8.0",
85-
"istanbul": "^0.4.5",
8685
"istanbul-instrumenter-loader": "^3.0.1",
87-
"karma": "^4.0.1",
88-
"karma-chrome-launcher": "^2.2.0",
89-
"karma-coverage-istanbul-reporter": "^2.0.5",
86+
"karma": "^4.4.1",
87+
"karma-chrome-launcher": "^3.1.0",
88+
"karma-coverage-istanbul-reporter": "^2.1.0",
9089
"karma-es6-shim": "^1.0.0",
9190
"karma-mocha": "^1.3.0",
9291
"karma-mocha-reporter": "^2.2.5",
93-
"karma-remap-istanbul": "^0.6.0",
9492
"karma-sinon-chai": "^2.0.2",
9593
"karma-sourcemap-loader": "^0.3.7",
9694
"karma-sourcemap-writer": "^0.1.2",
97-
"karma-webpack": "^3.0.5",
98-
"mocha": "^6.0.2",
99-
"open-browser-webpack-plugin": "^0.0.5",
100-
"prettier": "^1.16.4",
101-
"publish-please": "^5.4.3",
102-
"puppeteer": "^1.13.0",
95+
"karma-webpack": "^4.0.2",
96+
"mocha": "^6.2.2",
97+
"prettier": "^1.18.2",
98+
"publish-please": "^5.5.1",
99+
"puppeteer": "^1.20.0",
103100
"reflect-metadata": "^0.1.13",
104101
"remap-istanbul": "^0.13.0",
105-
"rimraf": "^2.6.3",
106-
"sinon": "^7.3.0",
102+
"rimraf": "^3.0.0",
103+
"sinon": "^7.5.0",
107104
"sinon-chai": "^3.3.0",
108-
"ts-loader": "^5.3.3",
109-
"ts-node": "^8.0.3",
110-
"tslint": "^5.14.0",
105+
"ts-loader": "^6.2.0",
106+
"ts-node": "^8.4.1",
107+
"tslint": "^5.20.0",
111108
"tslint-config-prettier": "^1.18.0",
112-
"typescript": "^3.3.4000",
113-
"uglifyjs-webpack-plugin": "^2.1.2",
114-
"webpack": "^4.29.6",
115-
"webpack-cli": "^3.3.0",
109+
"typescript": "^3.6.4",
110+
"uglifyjs-webpack-plugin": "^2.2.0",
111+
"webpack": "^4.41.2",
112+
"webpack-cli": "^3.3.9",
116113
"webpack-concat-plugin": "^3.0.0",
117-
"webpack-dev-server": "^3.2.1",
114+
"webpack-dev-server": "^3.8.2",
118115
"webpack-simple-progress-plugin": "^0.0.4"
119116
}
120117
}

static/scripts/cache-polyfill.js

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -16,87 +16,87 @@
1616
*/
1717

1818
(function() {
19-
var nativeAddAll = Cache.prototype.addAll;
20-
var userAgent = navigator.userAgent.match(/(Firefox|Chrome)\/(\d+\.)/);
19+
var nativeAddAll = Cache.prototype.addAll;
20+
var userAgent = navigator.userAgent.match(/(Firefox|Chrome)\/(\d+\.)/);
2121

22-
// Has nice behavior of `var` which everyone hates
23-
if (userAgent) {
24-
var agent = userAgent[1];
25-
var version = parseInt(userAgent[2]);
26-
}
22+
// Has nice behavior of `var` which everyone hates
23+
if (userAgent) {
24+
var agent = userAgent[1];
25+
var version = parseInt(userAgent[2]);
26+
}
2727

28-
if (nativeAddAll && (!userAgent || (agent === "Firefox" && version >= 46) || (agent === "Chrome" && version >= 50))) {
29-
return;
30-
}
28+
if (nativeAddAll && (!userAgent || (agent === "Firefox" && version >= 46) || (agent === "Chrome" && version >= 50))) {
29+
return;
30+
}
3131

32-
Cache.prototype.addAll = function addAll(requests) {
33-
var cache = this;
32+
Cache.prototype.addAll = function addAll(requests) {
33+
var cache = this;
3434

35-
// Since DOMExceptions are not constructable:
36-
function NetworkError(message) {
37-
this.name = "NetworkError";
38-
this.code = 19;
39-
this.message = message;
40-
}
35+
// Since DOMExceptions are not constructable:
36+
function NetworkError(message) {
37+
this.name = "NetworkError";
38+
this.code = 19;
39+
this.message = message;
40+
}
4141

42-
NetworkError.prototype = Object.create(Error.prototype);
42+
NetworkError.prototype = Object.create(Error.prototype);
4343

44-
return Promise.resolve()
45-
.then(function() {
46-
if (arguments.length < 1) throw new TypeError();
44+
return Promise.resolve()
45+
.then(function() {
46+
if (arguments.length < 1) throw new TypeError();
4747

48-
// Simulate sequence<(Request or USVString)> binding:
49-
var sequence = [];
48+
// Simulate sequence<(Request or USVString)> binding:
49+
var sequence = [];
5050

51-
requests = requests.map(function(request) {
52-
if (request instanceof Request) {
53-
return request;
54-
} else {
55-
return String(request); // may throw TypeError
56-
}
57-
});
51+
requests = requests.map(function(request) {
52+
if (request instanceof Request) {
53+
return request;
54+
} else {
55+
return String(request); // may throw TypeError
56+
}
57+
});
5858

59-
return Promise.all(
60-
requests.map(function(request) {
61-
if (typeof request === "string") {
62-
request = new Request(request);
63-
}
59+
return Promise.all(
60+
requests.map(function(request) {
61+
if (typeof request === "string") {
62+
request = new Request(request);
63+
}
6464

65-
var scheme = new URL(request.url).protocol;
65+
var scheme = new URL(request.url).protocol;
6666

67-
if (scheme !== "http:" && scheme !== "https:") {
68-
throw new NetworkError("Invalid scheme");
69-
}
67+
if (scheme !== "http:" && scheme !== "https:") {
68+
throw new NetworkError("Invalid scheme");
69+
}
7070

71-
return fetch(request.clone());
72-
})
73-
);
74-
})
75-
.then(function(responses) {
76-
// If some of the responses has not OK-eish status,
77-
// then whole operation should reject
78-
if (
79-
responses.some(function(response) {
80-
return !response.ok;
81-
})
82-
) {
83-
throw new NetworkError("Incorrect response status");
84-
}
71+
return fetch(request.clone());
72+
})
73+
);
74+
})
75+
.then(function(responses) {
76+
// If some of the responses has not OK-eish status,
77+
// then whole operation should reject
78+
if (
79+
responses.some(function(response) {
80+
return !response.ok;
81+
})
82+
) {
83+
throw new NetworkError("Incorrect response status");
84+
}
8585

86-
// TODO: check that requests don't overwrite one another
87-
// (don't think this is possible to polyfill due to opaque responses)
88-
return Promise.all(
89-
responses.map(function(response, i) {
90-
return cache.put(requests[i], response);
91-
})
92-
);
93-
})
94-
.then(function() {
95-
return undefined;
96-
});
97-
};
86+
// TODO: check that requests don't overwrite one another
87+
// (don't think this is possible to polyfill due to opaque responses)
88+
return Promise.all(
89+
responses.map(function(response, i) {
90+
return cache.put(requests[i], response);
91+
})
92+
);
93+
})
94+
.then(function() {
95+
return undefined;
96+
});
97+
};
9898

99-
Cache.prototype.add = function add(request) {
100-
return this.addAll([request]);
101-
};
99+
Cache.prototype.add = function add(request) {
100+
return this.addAll([request]);
101+
};
102102
})();

0 commit comments

Comments
 (0)