Skip to content

Commit f37529e

Browse files
authored
Merge pull request #134 from mzgoddard/bump-deps
Bump most deps greenkeeper has brought up
2 parents 6d0a77c + 988482d commit f37529e

File tree

6 files changed

+33
-23
lines changed

6 files changed

+33
-23
lines changed

.travis.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
language: node_js
2-
node_js:
3-
- "7"
4-
- "4"
52

6-
env:
7-
matrix:
8-
- WEBPACK_VERSION=1 EXTRACT_TEXT_VERSION=1
9-
- WEBPACK_VERSION=2 EXTRACT_TEXT_VERSION=2
103
matrix:
114
fast_finish: true
12-
allow_failures:
13-
- node_js: "4"
14-
env: WEBPACK_VERSION=2 EXTRACT_TEXT_VERSION=2
5+
include:
6+
- node_js: 7
7+
env: WEBPACK_VERSION=1 EXTRACT_TEXT_VERSION=1 BABEL_LOADER=6 FILE_LOADER=0.10
8+
- node_js: 7
9+
env: WEBPACK_VERSION=2 EXTRACT_TEXT_VERSION=2 BABEL_LOADER=7 FILE_LOADER=0.11
10+
- node_js: 4
11+
env: WEBPACK_VERSION=1 EXTRACT_TEXT_VERSION=1 BABEL_LOADER=6 FILE_LOADER=0.10
12+
1513
before_script:
16-
- npm rm webpack extract-text-webpack-plugin
17-
- npm install webpack@$WEBPACK_VERSION extract-text-webpack-plugin@$EXTRACT_TEXT_VERSION
14+
- npm install webpack@$WEBPACK_VERSION extract-text-webpack-plugin@$EXTRACT_TEXT_VERSION file-loader@$FILE_LOADER
1815
cache:
1916
directories:
2017
- node_modules

appveyor.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,26 @@ environment:
44
- nodejs_version: "4"
55
webpack_version: "1"
66
extract_text_version: "1"
7+
babel_loader_version: "6"
8+
file_loader_version: "0.10"
79
- nodejs_version: "6"
810
webpack_version: "2"
911
extract_text_version: "2"
12+
babel_loader_version: "7"
13+
file_loader_version: "0.11"
1014
- nodejs_version: "7"
1115
webpack_version: "2"
1216
extract_text_version: "2"
17+
babel_loader_version: "7"
18+
file_loader_version: "0.10"
1319

1420
# Install scripts. (runs after repo cloning)
1521
install:
1622
# Get the latest stable version of Node.js or io.js
1723
- ps: Install-Product node $env:nodejs_version
1824
# install modules
1925
- npm install
20-
- npm install webpack@%webpack_version% extract-text-webpack-plugin@%extract_text_version%
26+
- npm install webpack@%webpack_version% extract-text-webpack-plugin@%extract_text_version% babel-loader@%babel_loader_version% file-loader@%file_loader_version%
2127

2228
# Post-install test scripts.
2329
test_script:

lib/hard-source.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ var fromStringWithSourceMap = require('source-list-map').fromStringWithSourceMap
1010
module.exports = HardSource;
1111

1212
function HardSource(cacheItem) {
13-
RawSource.call(this, cacheItem.source);
13+
Object.setPrototypeOf(this,
14+
Object.setPrototypeOf(
15+
new RawSource(cacheItem.source),
16+
HardSource.prototype
17+
)
18+
);
19+
20+
// RawSource.call(this, cacheItem.source);
1421
this.cacheItem = cacheItem;
1522
}
1623
HardSource.prototype = Object.create(RawSource.prototype);

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525
"license": "ISC",
2626
"devDependencies": {
2727
"chai": "^3.5.0",
28-
"css-loader": "^0.26.1",
29-
"extract-text-webpack-plugin": "^1.0.1",
30-
"file-loader": "^0.10.1",
28+
"css-loader": "^0.27.0",
29+
"extract-text-webpack-plugin": "^2.0.0 || ^1.0.1",
30+
"file-loader": "^0.11.0 || ^0.10.1",
3131
"html-webpack-plugin": "^2.22.0",
3232
"memory-fs": "^0.4.1",
3333
"mocha": "^3.0.2",
3434
"rimraf": "^2.5.4",
35-
"style-loader": "^0.13.1",
36-
"webpack": "^1.13.1",
35+
"style-loader": "^0.14.0",
36+
"webpack": "^3.0.0 || ^3.0.0-rc.0 || ^2.1.0 || ^1.13.1",
3737
"webpack-isomorphic-tools": "^3.0.0"
3838
},
3939
"peerDependencies": {
40-
"webpack": ">=1.13.1 || ^2.1.0-beta || ^2.2.0-rc || ^2.2.0"
40+
"webpack": "*"
4141
},
4242
"dependencies": {
4343
"bluebird": "^3.0.0",
@@ -48,6 +48,6 @@
4848
"source-list-map": "^0.1.6",
4949
"source-map": "^0.5.6",
5050
"webpack-core": "~0.6.0",
51-
"webpack-sources": "^0.1.2"
51+
"webpack-sources": "^1.0.1"
5252
}
5353
}

tests/fixtures/base-context-move/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var ifWebpack1 = function(obj) {
77
};
88

99
var ifWebpack2 = function(obj) {
10-
if (require('webpack/package.json').version[0] === '2') {
10+
if (require('webpack/package.json').version[0] !== '1') {
1111
return obj;
1212
}
1313
};

tests/util/webpack-if.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports.webpack1 = function(obj, elseObj) {
88
};
99

1010
exports.webpack2 = function(obj, elseObj) {
11-
if (require('webpack/package.json').version[0] === '2') {
11+
if (require('webpack/package.json').version[0] !== '1') {
1212
return obj;
1313
}
1414
else {

0 commit comments

Comments
 (0)