Skip to content

Commit

Permalink
fix(Dependencies): Pin all deps on minor version (#974)
Browse files Browse the repository at this point in the history
This PR pins all _dependencies_ and _devDependencies_ on minor versions. I also consolidated all commonly used dependencies to most recent (supported) versions. Namely:

* log4js@~1.1.0 (we're upgrading to 2.x with #954)
* semver@~5.5.0
* tslib@~1.9.3

Fixes #967
  • Loading branch information
nicojs authored and simondel committed Jul 12, 2018
1 parent 83c0a22 commit f0a7e5a
Show file tree
Hide file tree
Showing 16 changed files with 168 additions and 138 deletions.
46 changes: 23 additions & 23 deletions integrationTest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@
"version": "0.0.0",
"private": true,
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"cross-env": "^5.2.0",
"grunt": "^1.0.3",
"grunt-contrib-clean": "^1.1.0",
"grunt-contrib-jshint": "^1.1.0",
"install-local": "^0.5.0",
"jasmine-core": "^3.1.0",
"karma": "^2.0.4",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-jasmine": "^1.1.2",
"karma-mocha": "^1.3.0",
"karma-phantomjs-launcher": "^1.0.4",
"link-parent-bin": "^0.2.0",
"load-grunt-tasks": "^4.0.0",
"mocha": "^5.2.0",
"mz": "^2.7.0",
"ts-node": "^7.0.0",
"typescript": "^2.9.2",
"webpack": "^4.15.1"
"babel-cli": "~6.26.0",
"babel-preset-env": "~1.7.0",
"chai": "~4.1.2",
"chai-as-promised": "~7.1.1",
"cross-env": "~5.2.0",
"grunt": "~1.0.3",
"grunt-contrib-clean": "~1.1.0",
"grunt-contrib-jshint": "~1.1.0",
"install-local": "~0.5.0",
"jasmine-core": "~3.1.0",
"karma": "~2.0.4",
"karma-chai": "~0.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-jasmine": "~1.1.2",
"karma-mocha": "~1.3.0",
"karma-phantomjs-launcher": "~1.0.4",
"link-parent-bin": "~0.2.0",
"load-grunt-tasks": "~4.0.0",
"mocha": "~5.2.0",
"mz": "~2.7.0",
"ts-node": "~7.0.0",
"typescript": "~2.9.2",
"webpack": "~4.15.1"
},
"scripts": {
"postinstall": "install-local && link-parent-bin -c test --link-local-dependencies true",
Expand Down
4 changes: 2 additions & 2 deletions packages/stryker-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"node": ">=6"
},
"dependencies": {
"tslib": "^1.6.0"
"tslib": "~1.9.3"
},
"devDependencies": {
"surrial": "^0.1.1"
"surrial": "~0.1.1"
}
}
20 changes: 10 additions & 10 deletions packages/stryker-babel-transpiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@
"license": "Apache-2.0",
"dependencies": {
"babel-core": "6.26.3",
"log4js": "^1.1.1",
"minimatch": "^3.0.4"
"log4js": "~1.1.1",
"minimatch": "~3.0.4"
},
"devDependencies": {
"@types/babel-core": "^6.25.3",
"@types/glob": "^5.0.35",
"@types/minimatch": "^3.0.3",
"babel-cli": "^6.26.0",
"babel-plugin-transform-es2015-spread": "^6.22.0",
"babel-preset-es2015": "^6.24.1",
"glob": "^7.1.2",
"stryker-api": "^0.17.3"
"@types/babel-core": "~6.25.3",
"@types/glob": "~5.0.35",
"@types/minimatch": "~3.0.3",
"babel-cli": "~6.26.0",
"babel-plugin-transform-es2015-spread": "~6.22.0",
"babel-preset-es2015": "~6.24.1",
"glob": "~7.1.2",
"stryker-api": "~0.17.3"
},
"peerDependencies": {
"babel-core": "^6.26.0",
Expand Down
30 changes: 15 additions & 15 deletions packages/stryker-html-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,27 @@
},
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/stryker-html-reporter#readme",
"dependencies": {
"file-url": "^2.0.0",
"lodash": "^4.13.1",
"log4js": "^1.0.1",
"mkdirp": "^0.5.1",
"mz": "^2.5.0",
"rimraf": "^2.6.1",
"typed-html": "^0.6.0"
"file-url": "~2.0.0",
"lodash": "~4.13.1",
"log4js": "~1.1.1",
"mkdirp": "~0.5.1",
"mz": "~2.5.0",
"rimraf": "~2.6.1",
"typed-html": "~0.6.0"
},
"peerDependencies": {
"stryker-api": ">=0.15.0 <0.18.0"
},
"devDependencies": {
"@types/file-url": "^2.0.0",
"@types/jsdom": "^11.0.2",
"@types/node": "^6.0.113",
"@types/file-url": "~2.0.0",
"@types/jsdom": "~11.0.2",
"@types/node": "~6.0.113",
"bootstrap": "4.1.1",
"highlight.js": "^9.4.0",
"jquery": "^3.2.1",
"jsdom": "^10.1.0",
"popper.js": "^1.12.5",
"stryker-api": "^0.17.3"
"highlight.js": "~9.4.0",
"jquery": "~3.2.1",
"jsdom": "~10.1.0",
"popper.js": "~1.12.5",
"stryker-api": "~0.17.3"
},
"contributors": [
"Nico Jansen <jansennico@gmail.com>",
Expand Down
4 changes: 2 additions & 2 deletions packages/stryker-jasmine-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"stryker-api": ">=0.15.0 <0.18.0"
},
"devDependencies": {
"stryker-api": "^0.17.3",
"stryker-jasmine": "^0.8.7"
"stryker-api": "~0.17.3",
"stryker-jasmine": "~0.8.7"
},
"initStrykerConfig": {
"jasmineConfigFile": "spec/support/jasmine.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-jasmine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"stryker-api": ">=0.15.0 <0.18.0"
},
"devDependencies": {
"stryker-api": "^0.17.3"
"stryker-api": "~0.17.3"
},
"contributors": []
}
20 changes: 10 additions & 10 deletions packages/stryker-javascript-mutator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/stryker-javascript-mutator#readme",
"license": "Apache-2.0",
"dependencies": {
"babel-core": "^6.26.0",
"babel-generator": "^6.26.0",
"babylon": "^6.18.0",
"lodash": "^4.17.4",
"log4js": "^1.1.1",
"tslib": "^1.8.0"
"babel-core": "~6.26.0",
"babel-generator": "~6.26.0",
"babylon": "~6.18.0",
"lodash": "~4.17.4",
"log4js": "~1.1.1",
"tslib": "~1.9.3"
},
"devDependencies": {
"@types/babel-generator": "^6.25.1",
"@types/babylon": "^6.16.2",
"stryker-api": "^0.17.3",
"stryker-mutator-specification": "^0.3.1"
"@types/babel-generator": "~6.25.1",
"@types/babylon": "~6.16.2",
"stryker-api": "~0.17.3",
"stryker-mutator-specification": "~0.3.1"
},
"peerDependencies": {
"stryker-api": ">=0.15.0 <0.18.0"
Expand Down
18 changes: 9 additions & 9 deletions packages/stryker-jest-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/stryker-jest-runner#readme",
"devDependencies": {
"@types/log4js": "0.0.32",
"@types/semver": "^5.4.0",
"jest": "^22.0.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-scripts": "^1.0.17",
"react-scripts-ts": "^2.15.1",
"stryker-api": "^0.17.3"
"@types/semver": "~5.5.0",
"jest": "~22.0.0",
"react": "~16.2.0",
"react-dom": "~16.2.0",
"react-scripts": "~1.0.17",
"react-scripts-ts": "~2.15.1",
"stryker-api": "~0.17.3"
},
"peerDependencies": {
"stryker-api": ">=0.13.0 <0.18.0",
"jest": "^20.0.0"
},
"dependencies": {
"log4js": "^1.1.1",
"semver": "^5.4.1"
"log4js": "~1.1.1",
"semver": "~5.5.0"
},
"initStrykerConfig": {
"coverageAnalysis": "off"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,19 @@ describe('Integration test for Jest ConfigEditor', () => {
bail: false
};

// Parse the json back to an object in order to match
expect(config.jest.config).to.deep.equal(expectedResult);
assertJestConfig(expectedResult, config.jest.config);
});

function assertJestConfig(expected: any, actual: any) {
Object.keys(expected).forEach(key => {
if (Array.isArray(expected[key])) {
expected[key].sort();
actual[key].sort();
}
expect(expected[key]).deep.eq(actual[key]);
});
}

it('should create a Jest configuration for a React + TypeScript project', () => {
config.set({ jest: { project: 'react-ts' } });

Expand Down Expand Up @@ -127,8 +136,7 @@ describe('Integration test for Jest ConfigEditor', () => {
bail: false
};

// Parse the json back to an object in order to match
expect(config.jest.config).to.deep.equal(expectedResult);
assertJestConfig(expectedResult, config.jest.config);
});

it('should load the Jest configuration from the jest.config.js', () => {
Expand Down
20 changes: 10 additions & 10 deletions packages/stryker-karma-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@
"stryker-api": ">=0.15.0 <0.18.0"
},
"devDependencies": {
"@types/semver": "^5.5.0",
"jasmine-core": "^2.4.1",
"karma": "^2.0.4",
"karma-jasmine": "^1.1.2",
"karma-phantomjs-launcher": "^1.0.4",
"stryker-api": "^0.17.3",
"stryker-jasmine": "^0.8.7"
"@types/semver": "~5.5.0",
"jasmine-core": "~2.4.1",
"karma": "~2.0.4",
"karma-jasmine": "~1.1.2",
"karma-phantomjs-launcher": "~1.0.4",
"stryker-api": "~0.17.3",
"stryker-jasmine": "~0.8.7"
},
"dependencies": {
"log4js": "^1.0.1",
"semver": "^5.5.0",
"tslib": "^1.6.1"
"log4js": "~1.1.1",
"semver": "~5.5.0",
"tslib": "~1.9.3"
},
"contributors": [
"nicojs <jansennico@gmail.com>",
Expand Down
6 changes: 3 additions & 3 deletions packages/stryker-mocha-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/stryker-mocha-framework#readme",
"license": "Apache-2.0",
"dependencies": {
"log4js": "^1.1.1"
"log4js": "~1.1.1"
},
"devDependencies": {
"stryker-api": "^0.17.3",
"tslib": "^1.5.0"
"stryker-api": "~0.17.3",
"tslib": "~1.9.3"
},
"peerDependencies": {
"mocha": ">= 2.3.3 < 6",
Expand Down
12 changes: 6 additions & 6 deletions packages/stryker-mocha-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
},
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/stryker-mocha-runner#readme",
"dependencies": {
"log4js": "^1.1.1",
"multimatch": "^2.1.0",
"tslib": "^1.5.0"
"log4js": "~1.1.1",
"multimatch": "~2.1.0",
"tslib": "~1.9.3"
},
"devDependencies": {
"@types/multimatch": "^2.1.2",
"stryker-api": "^0.17.3",
"stryker-mocha-framework": "^0.10.3"
"@types/multimatch": "~2.1.2",
"stryker-api": "~0.17.3",
"stryker-mocha-framework": "~0.10.3"
},
"peerDependencies": {
"mocha": ">= 2.3.3 < 6",
Expand Down
18 changes: 9 additions & 9 deletions packages/stryker-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/stryker-typescript#readme",
"license": "Apache-2.0",
"dependencies": {
"lodash.flatmap": "^4.5.0",
"log4js": "^1.1.1",
"semver": "^5.4.1",
"tslib": "^1.5.0"
"lodash.flatmap": "~4.5.0",
"log4js": "~1.1.1",
"semver": "~5.5.0",
"tslib": "~1.9.3"
},
"devDependencies": {
"@types/lodash.flatmap": "^4.5.3",
"@types/semver": "^5.4.0",
"stryker-api": "^0.17.3",
"stryker-mutator-specification": "^0.3.1",
"surrial": "^0.1.3"
"@types/lodash.flatmap": "~4.5.3",
"@types/semver": "~5.5.0",
"stryker-api": "~0.17.3",
"stryker-mutator-specification": "~0.3.1",
"surrial": "~0.1.3"
},
"peerDependencies": {
"stryker-api": ">=0.15.0 <0.18.0",
Expand Down
18 changes: 9 additions & 9 deletions packages/stryker-webpack-transpiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@
},
"homepage": "https://github.com/stryker-mutator/stryker/tree/master/packages/stryker-webpack-transpiler#readme",
"devDependencies": {
"@types/memory-fs": "^0.3.0",
"@types/webpack": "^4.1.6",
"raw-loader": "^0.5.1",
"stryker-api": "^0.17.3",
"webpack": "^4.2.0"
"@types/memory-fs": "~0.3.0",
"@types/webpack": "~4.1.6",
"raw-loader": "~0.5.1",
"stryker-api": "~0.17.3",
"webpack": "~4.2.0"
},
"peerDependencies": {
"stryker-api": ">=0.15.0 <0.18.0",
"webpack": ">=2.0.0"
},
"dependencies": {
"enhanced-resolve": "^4.0.0-beta.4",
"lodash": "^4.17.4",
"log4js": "^1.1.0",
"memory-fs": "^0.4.1"
"enhanced-resolve": "~4.0.0-beta.4",
"lodash": "~4.17.4",
"log4js": "~1.1.1",
"memory-fs": "~0.4.1"
},
"initStrykerConfig": {
"webpack": {
Expand Down
Loading

0 comments on commit f0a7e5a

Please sign in to comment.