@lage-run/cache 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@lage-run/cache",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 06 Sep 2022 20:10:00 GMT",
5
+ "date": "Fri, 16 Sep 2022 01:32:13 GMT",
6
+ "tag": "@lage-run/cache_v0.1.9",
7
+ "version": "0.1.9",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "renovate@whitesourcesoftware.com",
12
+ "package": "@lage-run/cache",
13
+ "commit": "b509683b29885c254d2ffa3c18d60cba20371f90",
14
+ "comment": "Update dependency mock-fs to v5.1.4"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 06 Sep 2022 20:10:16 GMT",
6
21
  "tag": "@lage-run/cache_v0.1.8",
7
22
  "version": "0.1.8",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @lage-run/cache
2
2
 
3
- This log was last generated on Tue, 06 Sep 2022 20:10:00 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 16 Sep 2022 01:32:13 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.1.9
8
+
9
+ Fri, 16 Sep 2022 01:32:13 GMT
10
+
11
+ ### Patches
12
+
13
+ - Update dependency mock-fs to v5.1.4 (renovate@whitesourcesoftware.com)
14
+
7
15
  ## 0.1.8
8
16
 
9
- Tue, 06 Sep 2022 20:10:00 GMT
17
+ Tue, 06 Sep 2022 20:10:16 GMT
10
18
 
11
19
  ### Patches
12
20
 
package/README.md CHANGED
@@ -68,3 +68,19 @@ if (target.cache && !skipCaching) {
68
68
 
69
69
  await cacheProvider.put(hash, target);
70
70
  ```
71
+
72
+ ## Differentiating Cache
73
+ To specifically differentiate the hash generated for the cache, between different steps the parameter `cacheKey` can be used. The parameter will be a part of the hash generation for the cache, and generated hash can be altered by modifying the parameter.
74
+
75
+ ### Usage
76
+ Add the parameter in your `lage.config.js` as follows
77
+
78
+ ```ts
79
+ {
80
+ cacheOptions: {
81
+ cacheKey: "some cache key"
82
+ }
83
+ }
84
+ ```
85
+
86
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/cache",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Cache for Lage",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"
@@ -30,7 +30,7 @@
30
30
  "@types/mock-fs": "^4.13.1",
31
31
  "@types/node": "14.18.26",
32
32
  "monorepo-scripts": "*",
33
- "mock-fs": "^5.1.2"
33
+ "mock-fs": "5.1.4"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"