Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cache-loader

Package Overview
Dependencies
Maintainers
8
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-loader - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # Changelog

## [4.1.0](https://github.com/webpack-contrib/cache-loader/compare/v4.0.1...v4.1.0) (2019-07-18)
### Features
* improved validation error messages ([#89](https://github.com/webpack-contrib/cache-loader/issues/89)) ([074bcdc](https://github.com/webpack-contrib/cache-loader/commit/074bcdc))
### [4.0.1](https://github.com/webpack-contrib/cache-loader/compare/v4.0.0...v4.0.1) (2019-06-26)

@@ -7,0 +16,0 @@

10

dist/index.js

@@ -77,3 +77,6 @@ "use strict";

const options = Object.assign({}, defaults, getOptions(this));
validateOptions(schema, options, 'Cache Loader');
validateOptions(schema, options, {
name: 'Cache Loader',
baseDataPath: 'options'
});
const {

@@ -156,3 +159,6 @@ readOnly,

const options = Object.assign({}, defaults, getOptions(this));
validateOptions(schema, options, 'Cache Loader (Pitch)');
validateOptions(schema, options, {
name: 'Cache Loader (Pitch)',
baseDataPath: 'options'
});
const {

@@ -159,0 +165,0 @@ cacheContext,

@@ -5,26 +5,35 @@ {

"cacheContext": {
"description": "The default cache context in order to generate the cache relatively to a path. By default it will use absolute paths.",
"type": "string"
},
"cacheKey": {
"description": "Allows you to override default cache key generator.",
"instanceof": "Function"
},
"cacheIdentifier": {
"description": "Provide a cache directory where cache items should be stored (used for default read/write implementation).",
"type": "string"
},
"cacheDirectory": {
"description": "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).",
"type": "string"
},
"compare": {
"description": "Allows you to override default comparison function between the cached dependency and the one is being read. Return true to use the cached resource.",
"instanceof": "Function"
},
"precision": {
"description": "Round mtime by this number of milliseconds both for stats and deps before passing those params to the comparing function.",
"type": "number"
},
"read": {
"description": "Allows you to override default read cache data from file.",
"instanceof": "Function"
},
"readOnly": {
"description": "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).",
"type": "boolean"
},
"write": {
"description": "Allows you to override default write cache data to file (e.g. Redis, memcached).",
"instanceof": "Function"

@@ -31,0 +40,0 @@ }

37

package.json
{
"name": "cache-loader",
"version": "4.0.1",
"version": "4.1.0",
"description": "Caches the result of following loaders on disk.",

@@ -45,11 +45,11 @@ "license": "MIT",

"neo-async": "^2.6.1",
"schema-utils": "^1.0.0"
"schema-utils": "^2.0.0"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@commitlint/cli": "^8.0.0",
"@commitlint/config-conventional": "^8.0.0",
"@webpack-contrib/defaults": "^5.0.0",
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"@webpack-contrib/defaults": "^5.0.2",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",

@@ -60,21 +60,20 @@ "babel-jest": "^24.8.0",

"cross-env": "^5.2.0",
"del": "^4.1.1",
"del": "^5.0.0",
"del-cli": "^2.0.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-prettier": "^3.1.0",
"file-loader": "^4.0.0",
"husky": "^2.4.0",
"eslint": "^6.0.1",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-import": "^2.18.0",
"file-loader": "^4.1.0",
"husky": "^3.0.0",
"jest": "^24.8.0",
"jest-junit": "^6.4.0",
"lint-staged": "^8.1.7",
"lint-staged": "^9.2.0",
"memory-fs": "^0.4.1",
"normalize-path": "^3.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.17.1",
"prettier": "^1.18.2",
"standard-version": "^6.0.1",
"uuid": "^3.3.2",
"webpack": "^4.33.0",
"webpack-cli": "^3.3.2"
"webpack": "^4.36.1",
"webpack-cli": "^3.3.6"
},

@@ -81,0 +80,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc