@lage-run/cache 0.1.8 → 0.1.10

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,88 @@
2
2
  "name": "@lage-run/cache",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 06 Sep 2022 20:10:00 GMT",
5
+ "date": "Sat, 17 Sep 2022 01:09:18 GMT",
6
+ "tag": "@lage-run/cache_v0.1.10",
7
+ "version": "0.1.10",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "email not defined",
12
+ "package": "@lage-run/cache",
13
+ "commit": "f972817afd8d234b31c013290e1a7bc952e7bf61",
14
+ "comment": "Update dependency workspace-tools to ^0.27.0"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@lage-run/cache",
19
+ "comment": "Bump @lage-run/target-graph to v0.3.2",
20
+ "commit": "f972817afd8d234b31c013290e1a7bc952e7bf61"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Fri, 16 Sep 2022 20:06:10 GMT",
27
+ "tag": "@lage-run/cache_v0.1.9",
28
+ "version": "0.1.9",
29
+ "comments": {
30
+ "none": [
31
+ {
32
+ "author": "email not defined",
33
+ "package": "@lage-run/cache",
34
+ "commit": "4cc6afee8a8b0eeabd5e36f764615860baca6de4",
35
+ "comment": "Update devDependency @types/node to v14.18.29"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Fri, 16 Sep 2022 03:59:54 GMT",
42
+ "tag": "@lage-run/cache_v0.1.9",
43
+ "version": "0.1.9",
44
+ "comments": {
45
+ "none": [
46
+ {
47
+ "author": "renovate@whitesourcesoftware.com",
48
+ "package": "@lage-run/cache",
49
+ "commit": "feb30c988cd07f121e217f9825758af844b18b77",
50
+ "comment": "Update jest monorepo to v29"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Fri, 16 Sep 2022 01:59:38 GMT",
57
+ "tag": "@lage-run/cache_v0.1.9",
58
+ "version": "0.1.9",
59
+ "comments": {
60
+ "none": [
61
+ {
62
+ "author": "email not defined",
63
+ "package": "@lage-run/cache",
64
+ "commit": "7bb3cfa39ca17144915a94233b46ba67e284788f",
65
+ "comment": "Pin devDependencies"
66
+ }
67
+ ]
68
+ }
69
+ },
70
+ {
71
+ "date": "Fri, 16 Sep 2022 01:32:24 GMT",
72
+ "tag": "@lage-run/cache_v0.1.9",
73
+ "version": "0.1.9",
74
+ "comments": {
75
+ "patch": [
76
+ {
77
+ "author": "renovate@whitesourcesoftware.com",
78
+ "package": "@lage-run/cache",
79
+ "commit": "b509683b29885c254d2ffa3c18d60cba20371f90",
80
+ "comment": "Update dependency mock-fs to v5.1.4"
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ {
86
+ "date": "Tue, 06 Sep 2022 20:10:16 GMT",
6
87
  "tag": "@lage-run/cache_v0.1.8",
7
88
  "version": "0.1.8",
8
89
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,29 @@
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 Sat, 17 Sep 2022 01:09:18 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.1.10
8
+
9
+ Sat, 17 Sep 2022 01:09:18 GMT
10
+
11
+ ### Patches
12
+
13
+ - Update dependency workspace-tools to ^0.27.0 (email not defined)
14
+ - Bump @lage-run/target-graph to v0.3.2
15
+
16
+ ## 0.1.9
17
+
18
+ Fri, 16 Sep 2022 01:32:24 GMT
19
+
20
+ ### Patches
21
+
22
+ - Update dependency mock-fs to v5.1.4 (renovate@whitesourcesoftware.com)
23
+
7
24
  ## 0.1.8
8
25
 
9
- Tue, 06 Sep 2022 20:10:00 GMT
26
+ Tue, 06 Sep 2022 20:10:16 GMT
10
27
 
11
28
  ### Patches
12
29
 
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
+
@@ -6,7 +6,7 @@ export interface RemoteFallbackCacheProviderOptions {
6
6
  logger: Logger;
7
7
  localCacheProvider?: CacheProvider;
8
8
  remoteCacheProvider?: CacheProvider;
9
- writeRemoteCache: boolean;
9
+ writeRemoteCache?: boolean;
10
10
  }
11
11
  /**
12
12
  * Remote Fallback Cache Provider
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.10",
4
4
  "description": "Cache for Lage",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"
@@ -15,22 +15,22 @@
15
15
  "lint": "monorepo-scripts lint"
16
16
  },
17
17
  "dependencies": {
18
- "@lage-run/target-graph": "^0.3.1",
18
+ "@lage-run/target-graph": "^0.3.2",
19
19
  "@lage-run/logger": "^1.2.0",
20
20
  "backfill-config": "^6.3.0",
21
21
  "backfill-cache": "^5.6.1",
22
22
  "backfill-hasher": "^6.4.2",
23
23
  "backfill-logger": "^5.1.3",
24
24
  "fast-glob": "^3.2.11",
25
- "workspace-tools": "^0.26.0"
25
+ "workspace-tools": "^0.27.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@lage-run/monorepo-fixture": "^0.1.0",
29
- "@types/jest": "^27.0.1",
30
- "@types/mock-fs": "^4.13.1",
31
- "@types/node": "14.18.26",
29
+ "@types/jest": "29.0.3",
30
+ "@types/mock-fs": "4.13.1",
31
+ "@types/node": "14.18.29",
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"
package/tsconfig.json CHANGED
@@ -1,7 +1,4 @@
1
1
  {
2
- "ts-node": {
3
- "transpileOnly": true
4
- },
5
2
  "compilerOptions": {
6
3
  "target": "ES2017",
7
4
  "module": "CommonJS",