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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webpack-contrib/cache-loader
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.2
Choose a base ref
...
head repository: webpack-contrib/cache-loader
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.2.3
Choose a head ref
  • 3 commits
  • 5 files changed
  • 3 contributors

Commits on Jul 25, 2018

  1. Copy the full SHA
    74fccc4 View commit details

Commits on Oct 25, 2018

  1. Copy the full SHA
    d8c630b View commit details

Commits on Oct 30, 2018

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    91d2a18 View commit details
Showing with 3,128 additions and 2,654 deletions.
  1. +10 −0 CHANGELOG.md
  2. +1 −1 README.md
  3. +3,111 −2,647 package-lock.json
  4. +4 −4 package.json
  5. +2 −2 src/index.js
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,16 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

<a name="1.2.3"></a>
## [1.2.3](https://github.com/webpack-contrib/cache-loader/compare/v1.2.2...v1.2.3) (2018-10-30)


### Performance Improvements

* **index:** use the `compiler`'s cached `fs` for stats (`this.fs.stat`) ([#42](https://github.com/webpack-contrib/cache-loader/issues/42)) ([d8c630b](https://github.com/webpack-contrib/cache-loader/commit/d8c630b))



<a name="1.2.2"></a>
## [1.2.2](https://github.com/webpack-contrib/cache-loader/compare/v1.2.1...v1.2.2) (2018-02-27)

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -203,7 +203,7 @@ module.exports = {
[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
[chat-url]: https://gitter.im/webpack/webpack

[test]: http://img.shields.io/travis/webpack-contrib/cache-loader.svg
[test]: https://img.shields.io/travis/webpack-contrib/cache-loader.svg
[test-url]: https://travis-ci.org/webpack-contrib/cache-loader

[cover]: https://codecov.io/gh/webpack-contrib/cache-loader/branch/master/graph/badge.svg
5,758 changes: 3,111 additions & 2,647 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cache-loader",
"version": "1.2.2",
"version": "1.2.3",
"description": "Caches the result of following loaders on disk.",
"author": "Tobias Koppers @sokra",
"license": "MIT",
@@ -17,15 +17,16 @@
"prebuild": "npm run clean",
"prepare": "npm run build",
"release": "standard-version",
"security": "nsp check",
"security": "npm audit",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --collectCoverageFrom='src/**/*.js' --coverage",
"travis:coverage": "npm run test:coverage -- --runInBand",
"travis:lint": "npm run lint && npm run security",
"travis:test": "npm run test -- --runInBand",
"appveyor:test": "npm run test",
"defaults": "webpack-defaults"
"defaults": "webpack-defaults",
"webpack-defaults": "webpack-defaults"
},
"dependencies": {
"loader-utils": "^1.1.0",
@@ -46,7 +47,6 @@
"eslint-plugin-import": "^2.0.0",
"jest": "^21.0.0",
"lint-staged": "^5.0.0",
"nsp": "^2.0.0",
"pre-commit": "^1.0.0",
"standard-version": "^4.0.0",
"webpack": "^3.0.0",
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ function loader(...args) {
let cache = true;

const toDepDetails = (dep, mapCallback) => {
fs.stat(dep, (err, stats) => {
this.fs.stat(dep, (err, stats) => {
if (err) {
mapCallback(err);
return;
@@ -110,7 +110,7 @@ function pitch(remainingRequest, prevRequest, dataInput) {
return;
}
async.each(cacheData.dependencies.concat(cacheData.contextDependencies), (dep, eachCallback) => {
fs.stat(dep.path, (statErr, stats) => {
this.fs.stat(dep.path, (statErr, stats) => {
if (statErr) {
eachCallback(statErr);
return;