@lage-run/scheduler 0.4.0 → 0.4.1

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/scheduler",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 04 Oct 2022 03:38:40 GMT",
5
+ "date": "Tue, 04 Oct 2022 20:17:59 GMT",
6
+ "tag": "@lage-run/scheduler_v0.4.1",
7
+ "version": "0.4.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "kchau@microsoft.com",
12
+ "package": "@lage-run/scheduler",
13
+ "commit": "b0ffb4f99190b790fdd62560d97c60cb155fa95a",
14
+ "comment": "Adds a nicer warning message for workers that isn't compatible"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 04 Oct 2022 03:38:54 GMT",
6
21
  "tag": "@lage-run/scheduler_v0.4.0",
7
22
  "version": "0.4.0",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @lage-run/scheduler
2
2
 
3
- This log was last generated on Tue, 04 Oct 2022 03:38:40 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 04 Oct 2022 20:17:59 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.4.1
8
+
9
+ Tue, 04 Oct 2022 20:17:59 GMT
10
+
11
+ ### Patches
12
+
13
+ - Adds a nicer warning message for workers that isn't compatible (kchau@microsoft.com)
14
+
7
15
  ## 0.4.0
8
16
 
9
- Tue, 04 Oct 2022 03:38:40 GMT
17
+ Tue, 04 Oct 2022 03:38:54 GMT
10
18
 
11
19
  ### Minor changes
12
20
 
@@ -46,6 +46,9 @@ class WorkerRunner {
46
46
  // eslint-disable-next-line @typescript-eslint/no-var-requires
47
47
  const scriptModule = require(scriptFile);
48
48
  const runFn = typeof scriptModule.default === "function" ? scriptModule.default : scriptModule;
49
+ if (typeof runFn !== "function") {
50
+ throw new Error("WorkerRunner: worker script must export a function; you likely need to use `module.exports = function() {...}`");
51
+ }
49
52
  await runFn({ target, abortSignal });
50
53
  }
51
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"WorkerRunner.js","sourceRoot":"","sources":["../../src/runners/WorkerRunner.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,YAAY;IAGvB,KAAK,CAAC,GAAG,CAAC,MAAc,EAAE,WAAyB;;QACjD,IAAI,CAAC,CAAA,MAAA,MAAM,CAAC,OAAO,0CAAE,MAAM,CAAA,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,mGAAmG,CAAC,CAAC;SACtH;QAED,MAAM,UAAU,GAAG,MAAA,MAAA,MAAM,CAAC,OAAO,0CAAE,MAAM,mCAAI,MAAA,MAAM,CAAC,OAAO,0CAAE,MAAM,CAAC;QAEpE,8DAA8D;QAC9D,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC;QAE/F,MAAM,KAAK,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;IACvC,CAAC;;AAfH,oCAgBC;AAfQ,gCAAmB,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"WorkerRunner.js","sourceRoot":"","sources":["../../src/runners/WorkerRunner.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,YAAY;IAGvB,KAAK,CAAC,GAAG,CAAC,MAAc,EAAE,WAAyB;;QACjD,IAAI,CAAC,CAAA,MAAA,MAAM,CAAC,OAAO,0CAAE,MAAM,CAAA,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,mGAAmG,CAAC,CAAC;SACtH;QAED,MAAM,UAAU,GAAG,MAAA,MAAA,MAAM,CAAC,OAAO,0CAAE,MAAM,mCAAI,MAAA,MAAM,CAAC,OAAO,0CAAE,MAAM,CAAC;QAEpE,8DAA8D;QAC9D,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC;QAE/F,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE;YAC/B,MAAM,IAAI,KAAK,CAAC,gHAAgH,CAAC,CAAC;SACnI;QAED,MAAM,KAAK,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;IACvC,CAAC;;AAnBH,oCAoBC;AAnBQ,gCAAmB,GAAG,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/scheduler",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Scheduler for Lage",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"