@lage-run/scheduler 0.3.6 → 0.3.7

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,28 @@
2
2
  "name": "@lage-run/scheduler",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 29 Sep 2022 21:54:28 GMT",
5
+ "date": "Fri, 30 Sep 2022 23:00:05 GMT",
6
+ "tag": "@lage-run/scheduler_v0.3.7",
7
+ "version": "0.3.7",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "kchau@microsoft.com",
12
+ "package": "@lage-run/scheduler",
13
+ "commit": "a86ba91c06d5ede0916e84633896324ea30aaf07",
14
+ "comment": "get rid of \"node:\""
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@lage-run/scheduler",
19
+ "comment": "Bump @lage-run/worker-threads-pool to v0.1.3",
20
+ "commit": "a86ba91c06d5ede0916e84633896324ea30aaf07"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Thu, 29 Sep 2022 21:54:45 GMT",
6
27
  "tag": "@lage-run/scheduler_v0.3.6",
7
28
  "version": "0.3.6",
8
29
  "comments": {
@@ -17,13 +38,13 @@
17
38
  "author": "beachball",
18
39
  "package": "@lage-run/scheduler",
19
40
  "comment": "Bump @lage-run/target-graph to v0.3.4",
20
- "commit": "96f43fa9da1e4e8d43e3e1d213b25e344bd35de6"
41
+ "commit": "8fc978626144db852c6a908cb0e4bcfebc51f1c2"
21
42
  },
22
43
  {
23
44
  "author": "beachball",
24
45
  "package": "@lage-run/scheduler",
25
46
  "comment": "Bump @lage-run/cache to v0.1.12",
26
- "commit": "96f43fa9da1e4e8d43e3e1d213b25e344bd35de6"
47
+ "commit": "8fc978626144db852c6a908cb0e4bcfebc51f1c2"
27
48
  }
28
49
  ]
29
50
  }
package/CHANGELOG.md CHANGED
@@ -1,12 +1,21 @@
1
1
  # Change Log - @lage-run/scheduler
2
2
 
3
- This log was last generated on Thu, 29 Sep 2022 21:54:28 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 30 Sep 2022 23:00:05 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.3.7
8
+
9
+ Fri, 30 Sep 2022 23:00:05 GMT
10
+
11
+ ### Patches
12
+
13
+ - get rid of "node:" (kchau@microsoft.com)
14
+ - Bump @lage-run/worker-threads-pool to v0.1.3
15
+
7
16
  ## 0.3.6
8
17
 
9
- Thu, 29 Sep 2022 21:54:28 GMT
18
+ Thu, 29 Sep 2022 21:54:45 GMT
10
19
 
11
20
  ### Patches
12
21
 
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
2
  import type { Target } from "@lage-run/target-graph";
3
- import { Transform } from "node:stream";
3
+ import { Transform } from "stream";
4
4
  export declare function getLageOutputCacheLocation(target: Target, hash: string): string;
5
5
  export declare function createCachedOutputTransform(target: Target, hash: string): Transform;
@@ -4,21 +4,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.createCachedOutputTransform = exports.getLageOutputCacheLocation = void 0;
7
- const node_stream_1 = require("node:stream");
8
- const node_fs_1 = __importDefault(require("node:fs"));
9
- const node_path_1 = __importDefault(require("node:path"));
7
+ const stream_1 = require("stream");
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const path_1 = __importDefault(require("path"));
10
10
  function getLageOutputCacheLocation(target, hash) {
11
- const outputPath = node_path_1.default.join(target.cwd, "node_modules/.cache/lage/output/");
12
- return node_path_1.default.join(outputPath, hash + ".txt");
11
+ const outputPath = path_1.default.join(target.cwd, "node_modules/.cache/lage/output/");
12
+ return path_1.default.join(outputPath, hash + ".txt");
13
13
  }
14
14
  exports.getLageOutputCacheLocation = getLageOutputCacheLocation;
15
15
  function createCachedOutputTransform(target, hash) {
16
16
  const outputFile = getLageOutputCacheLocation(target, hash);
17
- const outputPath = node_path_1.default.dirname(outputFile);
18
- if (!node_fs_1.default.existsSync(outputFile)) {
19
- node_fs_1.default.mkdirSync(outputPath, { recursive: true });
20
- const writeStream = node_fs_1.default.createWriteStream(node_path_1.default.join(outputPath, hash + ".txt"));
21
- const transform = new node_stream_1.Transform({
17
+ const outputPath = path_1.default.dirname(outputFile);
18
+ if (!fs_1.default.existsSync(outputFile)) {
19
+ fs_1.default.mkdirSync(outputPath, { recursive: true });
20
+ const writeStream = fs_1.default.createWriteStream(path_1.default.join(outputPath, hash + ".txt"));
21
+ const transform = new stream_1.Transform({
22
22
  transform(chunk, encoding, callback) {
23
23
  writeStream.write(chunk);
24
24
  callback(null, chunk);
@@ -26,7 +26,7 @@ function createCachedOutputTransform(target, hash) {
26
26
  });
27
27
  return transform;
28
28
  }
29
- const transform = new node_stream_1.Transform({
29
+ const transform = new stream_1.Transform({
30
30
  transform(chunk, encoding, callback) {
31
31
  callback(null, chunk);
32
32
  },
@@ -1 +1 @@
1
- {"version":3,"file":"createCachedOutputTransform.js","sourceRoot":"","sources":["../src/createCachedOutputTransform.ts"],"names":[],"mappings":";;;;;;AACA,6CAAwC;AACxC,sDAAyB;AACzB,0DAA6B;AAE7B,SAAgB,0BAA0B,CAAC,MAAc,EAAE,IAAY;IACrE,MAAM,UAAU,GAAG,mBAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,kCAAkC,CAAC,CAAC;IAC7E,OAAO,mBAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;AAC9C,CAAC;AAHD,gEAGC;AAED,SAAgB,2BAA2B,CAAC,MAAc,EAAE,IAAY;IACtE,MAAM,UAAU,GAAG,0BAA0B,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC5D,MAAM,UAAU,GAAG,mBAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAE5C,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;QAC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U,CAAC,CAAC;IAE5C,IAAI,CAAC,YAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;QAC9B,YAAE,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC9C,MAAM,WAAW,GAAG,YAAE,CAAC,iBAAiB,CAAC,cAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC;QAE/E,MAAM,SAAS,GAAG,IAAI,kBAAS,CAAC;YAC9B,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ;gBACjC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACzB,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YACxB,CAAC;SACF,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,SAAS,GAAG,IAAI,kBAAS,CAAC;QAC9B,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ;YACjC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACxB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AACnB,CAAC;AAzBD,kEAyBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/scheduler",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Scheduler for Lage",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"
@@ -18,7 +18,7 @@
18
18
  "@lage-run/target-graph": "^0.3.4",
19
19
  "@lage-run/logger": "^1.2.0",
20
20
  "@lage-run/cache": "^0.1.12",
21
- "@lage-run/worker-threads-pool": "^0.1.2",
21
+ "@lage-run/worker-threads-pool": "^0.1.3",
22
22
  "p-graph": "^1.1.1",
23
23
  "p-profiler": "^0.2.1",
24
24
  "abort-controller": "^3.0.0",