@jest/create-cache-key-function
Advanced tools
Comparing version
@@ -6,18 +6,39 @@ /** | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
*/ | ||
import type { Config } from '@jest/types'; | ||
import type {Config} from '@jest/types'; | ||
declare function createCacheKey( | ||
files?: Array<string>, | ||
values?: Array<string>, | ||
): GetCacheKeyFunction; | ||
export default createCacheKey; | ||
declare type GetCacheKeyFunction = | ||
| OldGetCacheKeyFunction | ||
| NewGetCacheKeyFunction; | ||
declare type NewCacheKeyOptions = { | ||
config: Config.ProjectConfig; | ||
configString: string; | ||
instrument: boolean; | ||
}; | ||
declare type NewGetCacheKeyFunction = ( | ||
sourceText: string, | ||
sourcePath: Config.Path, | ||
options: NewCacheKeyOptions, | ||
) => string; | ||
declare type OldCacheKeyOptions = { | ||
config: Config.ProjectConfig; | ||
instrument: boolean; | ||
config: Config.ProjectConfig; | ||
instrument: boolean; | ||
}; | ||
declare type NewCacheKeyOptions = { | ||
config: Config.ProjectConfig; | ||
configString: string; | ||
instrument: boolean; | ||
}; | ||
declare type OldGetCacheKeyFunction = (fileData: string, filePath: Config.Path, configStr: string, options: OldCacheKeyOptions) => string; | ||
declare type NewGetCacheKeyFunction = (sourceText: string, sourcePath: Config.Path, options: NewCacheKeyOptions) => string; | ||
declare type GetCacheKeyFunction = OldGetCacheKeyFunction | NewGetCacheKeyFunction; | ||
export default function createCacheKey(files?: Array<string>, values?: Array<string>): GetCacheKeyFunction; | ||
declare type OldGetCacheKeyFunction = ( | ||
fileData: string, | ||
filePath: Config.Path, | ||
configStr: string, | ||
options: OldCacheKeyOptions, | ||
) => string; | ||
export {}; |
{ | ||
"name": "@jest/create-cache-key-function", | ||
"version": "27.5.1", | ||
"version": "28.0.0-alpha.0", | ||
"repository": { | ||
@@ -10,10 +10,10 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/types": "^27.5.1" | ||
"@jest/types": "^28.0.0-alpha.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "*", | ||
"jest-util": "^27.5.1" | ||
"jest-util": "^28.0.0-alpha.0" | ||
}, | ||
"engines": { | ||
"node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" | ||
"node": "^12.13.0 || ^14.15.0 || ^16.13.0 || >=17.0.0" | ||
}, | ||
@@ -33,3 +33,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "67c1aa20c5fec31366d733e901fee2b981cb1850" | ||
"gitHead": "89275b08977065d98e42ad71fcf223f4ad169f09" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5087
1.46%109
14.74%2
100%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
Updated