@lage-run/cache 0.1.19 → 0.1.21

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,43 @@
2
2
  "name": "@lage-run/cache",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 06 Oct 2022 16:07:15 GMT",
5
+ "date": "Sun, 23 Oct 2022 04:31:33 GMT",
6
+ "tag": "@lage-run/cache_v0.1.21",
7
+ "version": "0.1.21",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@lage-run/cache",
13
+ "comment": "Bump @lage-run/target-graph to v0.4.4",
14
+ "commit": "6ad9b723b65f6ef6b45aa156eb406344de8299eb"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Thu, 20 Oct 2022 00:22:27 GMT",
21
+ "tag": "@lage-run/cache_v0.1.20",
22
+ "version": "0.1.20",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "kchau@microsoft.com",
27
+ "package": "@lage-run/cache",
28
+ "commit": "9b6f27c0d2684f5bdcba0591ca2eb323e00c5529",
29
+ "comment": "Allows for target specific environmentGlob override"
30
+ },
31
+ {
32
+ "author": "beachball",
33
+ "package": "@lage-run/cache",
34
+ "comment": "Bump @lage-run/target-graph to v0.4.3",
35
+ "commit": "9b6f27c0d2684f5bdcba0591ca2eb323e00c5529"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Thu, 06 Oct 2022 16:07:29 GMT",
6
42
  "tag": "@lage-run/cache_v0.1.19",
7
43
  "version": "0.1.19",
8
44
  "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 Thu, 06 Oct 2022 16:07:15 GMT and should not be manually modified.
3
+ This log was last generated on Sun, 23 Oct 2022 04:31:33 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.1.21
8
+
9
+ Sun, 23 Oct 2022 04:31:33 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @lage-run/target-graph to v0.4.4
14
+
15
+ ## 0.1.20
16
+
17
+ Thu, 20 Oct 2022 00:22:27 GMT
18
+
19
+ ### Patches
20
+
21
+ - Allows for target specific environmentGlob override (kchau@microsoft.com)
22
+ - Bump @lage-run/target-graph to v0.4.3
23
+
7
24
  ## 0.1.19
8
25
 
9
- Thu, 06 Oct 2022 16:07:15 GMT
26
+ Thu, 06 Oct 2022 16:07:29 GMT
10
27
 
11
28
  ### Patches
12
29
 
@@ -15,7 +15,8 @@ class TargetHasher {
15
15
  this.backfillLogger = (0, backfillWrapper_1.createBackfillLogger)();
16
16
  }
17
17
  async hash(target) {
18
- const hashKey = await (0, salt_1.salt)(this.options.environmentGlob || ["lage.config.js"], `${target.id}|${JSON.stringify(this.options.cliArgs)}`, this.options.root, this.options.cacheKey || "");
18
+ var _a, _b;
19
+ const hashKey = await (0, salt_1.salt)((_b = (_a = target.environmentGlob) !== null && _a !== void 0 ? _a : this.options.environmentGlob) !== null && _b !== void 0 ? _b : ["lage.config.js"], `${target.id}|${JSON.stringify(this.options.cliArgs)}`, this.options.root, this.options.cacheKey || "");
19
20
  const hasher = new backfill_hasher_1.Hasher({ packageRoot: target.cwd }, this.backfillLogger);
20
21
  return hasher.createPackageHash(hashKey);
21
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TargetHasher.js","sourceRoot":"","sources":["../src/TargetHasher.ts"],"names":[],"mappings":";;;AAAA,uDAAyD;AACzD,qDAA2D;AAC3D,iCAA8B;AAW9B;;;;GAIG;AACH,MAAa,YAAY;IAGvB,YAAoB,OAA4B;QAA5B,YAAO,GAAP,OAAO,CAAqB;QAC9C,IAAI,CAAC,cAAc,GAAG,IAAA,sCAAoB,GAAE,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,MAAc;QACvB,MAAM,OAAO,GAAG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G,EAAE,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QACpF,OAAO,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;CACF;AAjBD,oCAiBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/cache",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Cache for Lage",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"
@@ -15,7 +15,7 @@
15
15
  "lint": "monorepo-scripts lint"
16
16
  },
17
17
  "dependencies": {
18
- "@lage-run/target-graph": "^0.4.2",
18
+ "@lage-run/target-graph": "^0.4.4",
19
19
  "@lage-run/logger": "^1.2.0",
20
20
  "backfill-config": "^6.3.0",
21
21
  "backfill-cache": "^5.6.1",