Skip to content
This repository was archived by the owner on Oct 27, 2020. It is now read-only.

Commit 71e9e68

Browse files
chore(deps): update (#81)
BREAKING CHANGE: minimum required nodejs version is `8.9.0`
1 parent 972a6c4 commit 71e9e68

18 files changed

+1052
-1092
lines changed

.eslintignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
/node_modules
1+
/coverage
22
/dist
3-
/example
3+
/node_modules
4+
/test/fixtures

.eslintrc.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
module.exports = {
22
root: true,
3-
plugins: ['prettier'],
4-
extends: ['@webpack-contrib/eslint-config-webpack'],
5-
rules: {
6-
'prettier/prettier': ['error'],
7-
},
8-
};
3+
extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'],
4+
};

.github/CONTRIBUTING.md

+20
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,23 @@ This release is not backwards compatible with `Webpack 2.x` due to breaking chan
130130
Migration: see webpack/webpack#5225
131131
132132
```
133+
134+
## Testing Your Pull Request
135+
136+
You may have the need to test your changes in a real-world project or dependent
137+
module. Thankfully, Github provides a means to do this. Add a dependency to the
138+
`package.json` for such a project as follows:
139+
140+
```json
141+
{
142+
"devDependencies": {
143+
"cache-loader": "webpack-contrib/cache-loader#{id}/head"
144+
}
145+
}
146+
```
147+
148+
Where `{id}` is the # ID of your Pull Request.
149+
150+
## Thanks
151+
152+
For your interest, time, understanding, and for following this simple guide.

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
open_collective: webpack

.github/ISSUE_TEMPLATE/BUG.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🐛 Bug Report
33
about: Something went awry and you'd like to tell us about it.
4-
54
---
65

76
<!--
@@ -15,11 +14,11 @@ about: Something went awry and you'd like to tell us about it.
1514
Head to StackOverflow or https://gitter.im/webpack/webpack.
1615
-->
1716

18-
* Operating System:
19-
* Node Version:
20-
* NPM Version:
21-
* webpack Version:
22-
* cache-loader Version:
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- cache-loader Version:
2322

2423
### Expected Behavior
2524

@@ -32,13 +31,13 @@ about: Something went awry and you'd like to tell us about it.
3231
### Code
3332

3433
```js
35-
// webpack.config.js
36-
// If your code blocks are over 20 lines, please paste a link to a gist
37-
// (https://gist.github.com).
34+
// webpack.config.js
35+
// If your code blocks are over 20 lines, please paste a link to a gist
36+
// (https://gist.github.com).
3837
```
3938

4039
```js
41-
// additional code, HEY YO remove this block if you don't need it
40+
// additional code, HEY YO remove this block if you don't need it
4241
```
4342

4443
### How Do We Reproduce?

.github/ISSUE_TEMPLATE/DOCS.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 📚 Documentation
33
about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here.
4-
54
---
65

76
<!--
@@ -26,5 +25,4 @@ Documentation Is:
2625

2726
### Please Explain in Detail...
2827

29-
30-
### Your Proposal for Changes
28+
### Your Proposal for Changes

.github/ISSUE_TEMPLATE/FEATURE.md

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: ✨ Feature Request
33
about: Suggest an idea for this project
4-
54
---
65

76
<!--
@@ -15,14 +14,12 @@ about: Suggest an idea for this project
1514
Head to StackOverflow or https://gitter.im/webpack/webpack.
1615
-->
1716

18-
* Operating System:
19-
* Node Version:
20-
* NPM Version:
21-
* webpack Version:
22-
* cache-loader Version:
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- cache-loader Version:
2322

2423
### Feature Proposal
2524

26-
27-
2825
### Feature Use Case
+5-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🔧 Modification Request
33
about: Would you like something work differently? Have an alternative approach? This is the template for you.
4-
54
---
65

76
<!--
@@ -15,19 +14,14 @@ about: Would you like something work differently? Have an alternative approach?
1514
Head to StackOverflow or https://gitter.im/webpack/webpack.
1615
-->
1716

18-
* Operating System:
19-
* Node Version:
20-
* NPM Version:
21-
* webpack Version:
22-
* cache-loader Version:
23-
17+
- Operating System:
18+
- Node Version:
19+
- NPM Version:
20+
- webpack Version:
21+
- cache-loader Version:
2422

2523
### Expected Behavior / Situation
2624

27-
28-
2925
### Actual Behavior / Situation
3026

31-
32-
3327
### Modification Proposal

.github/ISSUE_TEMPLATE/SUPPORT.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
22
name: 🆘 Support, Help, and Advice
33
about: 👉🏽 Need support, help, or advice? Don't open an issue! Head to StackOverflow or https://gitter.im/webpack/webpack.
4-
54
---
65

76
Hey there! If you need support, help, or advice then this is not the place to ask.
87
Please visit [StackOverflow](https://stackoverflow.com/questions/tagged/webpack)
9-
or [the Webpack Gitter](https://gitter.im/webpack/webpack) instead.
8+
or [the Webpack Gitter](https://gitter.im/webpack/webpack) instead.

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ This PR contains a:
3232
migration path for existing applications.
3333
-->
3434

35-
### Additional Info
35+
### Additional Info

.prettierignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/coverage
2+
/dist
3+
/node_modules
4+
/test/fixtures
5+
CHANGELOG.md

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = {
5252
| **`cacheKey`** | `{Function(options, request) -> {String}}` | `undefined` | Allows you to override default cache key generator |
5353
| **`cacheDirectory`** | `{String}` | `findCacheDir({ name: 'cache-loader' }) or os.tmpdir()` | Provide a cache directory where cache items should be stored (used for default read/write implementation) |
5454
| **`cacheIdentifier`** | `{String}` | `cache-loader:{version} {process.env.NODE_ENV}` | Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation) |
55-
| **`compare`** | `{Function(stats, dep) -> {Boolean}}` | `undefined` | Allows you to override default comparison function between the cached dependency and the one is being read. Return `true` to use the cached resource |
55+
| **`compare`** | `{Function(stats, dep) -> {Boolean}}` | `undefined` | Allows you to override default comparison function between the cached dependency and the one is being read. Return `true` to use the cached resource |
5656
| **`precision`** | `{Number}` | `0` | Round `mtime` by this number of milliseconds both for `stats` and `dep` before passing those params to the comparing function |
5757
| **`read`** | `{Function(cacheKey, callback) -> {void}}` | `undefined` | Allows you to override default read cache data from file |
5858
| **`readOnly`** | `{Boolean}` | `false` | Allows you to override default value and make the cache read only (useful for some environments where you don't want the cache to be updated, only read from it) |

azure-pipelines.yml

+4-13
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
pool:
3737
vmImage: ubuntu-16.04
3838
strategy:
39-
maxParallel: 5
39+
maxParallel: 4
4040
matrix:
4141
node-12:
4242
node_version: ^12.0.0
@@ -47,9 +47,6 @@ jobs:
4747
node-8:
4848
node_version: ^8.9.0
4949
webpack_version: latest
50-
node-6:
51-
node_version: ^6.9.0
52-
webpack_version: latest
5350
node-8-canary:
5451
node_version: ^8.9.0
5552
webpack_version: next
@@ -91,7 +88,7 @@ jobs:
9188
pool:
9289
vmImage: macOS-10.14
9390
strategy:
94-
maxParallel: 5
91+
maxParallel: 4
9592
matrix:
9693
node-12:
9794
node_version: ^12.0.0
@@ -102,9 +99,6 @@ jobs:
10299
node-8:
103100
node_version: ^8.9.0
104101
webpack_version: latest
105-
node-6:
106-
node_version: ^6.9.0
107-
webpack_version: latest
108102
node-8-canary:
109103
node_version: ^8.9.0
110104
webpack_version: next
@@ -146,7 +140,7 @@ jobs:
146140
pool:
147141
vmImage: windows-2019
148142
strategy:
149-
maxParallel: 5
143+
maxParallel: 4
150144
matrix:
151145
node-12:
152146
node_version: ^12.0.0
@@ -157,9 +151,6 @@ jobs:
157151
node-8:
158152
node_version: ^8.9.0
159153
webpack_version: latest
160-
node-6:
161-
node_version: ^6.9.0
162-
webpack_version: latest
163154
node-8-canary:
164155
node_version: ^8.9.0
165156
webpack_version: next
@@ -198,4 +189,4 @@ jobs:
198189
displayName: 'Publish test results'
199190
- script: curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
200191
condition: succeededOrFailed()
201-
displayName: 'Submit coverage data to codecov'
192+
displayName: 'Submit coverage data to codecov'

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = (api) => {
1010
'@babel/preset-env',
1111
{
1212
targets: {
13-
node: '6.9.0',
13+
node: '8.9.0',
1414
},
1515
},
1616
],

lint-staged.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
2-
ignore: ['package-lock.json'],
2+
ignore: ['package-lock.json', 'CHANGELOG.md'],
33
linters: {
4-
'*.js': ['eslint --fix', 'git add'],
4+
'*.js': ['prettier --write', 'eslint --fix', 'git add'],
5+
'*.{json,md,yml,css}': ['prettier --write', 'git add'],
56
},
67
};

0 commit comments

Comments
 (0)