@lage-run/scheduler 0.9.2 → 0.10.0

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,40 @@
2
2
  "name": "@lage-run/scheduler",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 08 Mar 2023 17:35:15 GMT",
5
+ "date": "Fri, 10 Mar 2023 01:24:11 GMT",
6
+ "tag": "@lage-run/scheduler_v0.10.0",
7
+ "version": "0.10.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "kchau@microsoft.com",
12
+ "package": "@lage-run/scheduler",
13
+ "commit": "5fd1b1eb7f87917f3abec9e99b240d38846eea09",
14
+ "comment": "adding the ability to have a NoOp Task"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@lage-run/scheduler",
19
+ "comment": "Bump @lage-run/target-graph to v0.8.0",
20
+ "commit": "5fd1b1eb7f87917f3abec9e99b240d38846eea09"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@lage-run/scheduler",
25
+ "comment": "Bump @lage-run/cache to v0.4.2",
26
+ "commit": "5fd1b1eb7f87917f3abec9e99b240d38846eea09"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@lage-run/scheduler",
31
+ "comment": "Bump @lage-run/scheduler-types to v0.3.3",
32
+ "commit": "5fd1b1eb7f87917f3abec9e99b240d38846eea09"
33
+ }
34
+ ]
35
+ }
36
+ },
37
+ {
38
+ "date": "Wed, 08 Mar 2023 17:35:28 GMT",
6
39
  "tag": "@lage-run/scheduler_v0.9.2",
7
40
  "version": "0.9.2",
8
41
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # Change Log - @lage-run/scheduler
2
2
 
3
- This log was last generated on Wed, 08 Mar 2023 17:35:15 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 10 Mar 2023 01:24:11 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.10.0
8
+
9
+ Fri, 10 Mar 2023 01:24:11 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - adding the ability to have a NoOp Task (kchau@microsoft.com)
14
+ - Bump @lage-run/target-graph to v0.8.0
15
+ - Bump @lage-run/cache to v0.4.2
16
+ - Bump @lage-run/scheduler-types to v0.3.3
17
+
7
18
  ## 0.9.2
8
19
 
9
- Wed, 08 Mar 2023 17:35:15 GMT
20
+ Wed, 08 Mar 2023 17:35:28 GMT
10
21
 
11
22
  ### Patches
12
23
 
package/lib/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export { NpmScriptRunner } from "./runners/NpmScriptRunner.js";
2
2
  export { SimpleScheduler } from "./SimpleScheduler.js";
3
3
  export { TargetRunnerPicker, type TargetRunnerPickerOptions } from "./runners/TargetRunnerPicker.js";
4
4
  export { WorkerRunner } from "./runners/WorkerRunner.js";
5
+ export { NoOpRunner } from "./runners/NoOpRunner.js";
package/lib/index.js CHANGED
@@ -12,9 +12,11 @@ _export(exports, {
12
12
  NpmScriptRunner: ()=>_npmScriptRunnerJs.NpmScriptRunner,
13
13
  SimpleScheduler: ()=>_simpleSchedulerJs.SimpleScheduler,
14
14
  TargetRunnerPicker: ()=>_targetRunnerPickerJs.TargetRunnerPicker,
15
- WorkerRunner: ()=>_workerRunnerJs.WorkerRunner
15
+ WorkerRunner: ()=>_workerRunnerJs.WorkerRunner,
16
+ NoOpRunner: ()=>_noOpRunnerJs.NoOpRunner
16
17
  });
17
18
  const _npmScriptRunnerJs = require("./runners/NpmScriptRunner.js");
18
19
  const _simpleSchedulerJs = require("./SimpleScheduler.js");
19
20
  const _targetRunnerPickerJs = require("./runners/TargetRunnerPicker.js");
20
21
  const _workerRunnerJs = require("./runners/WorkerRunner.js");
22
+ const _noOpRunnerJs = require("./runners/NoOpRunner.js");
@@ -1,2 +1,5 @@
1
1
  import type { TargetRunner } from "@lage-run/scheduler-types";
2
- export declare const NoOpRunner: TargetRunner;
2
+ export declare class NoOpRunner implements TargetRunner {
3
+ shouldRun(): Promise<boolean>;
4
+ run(): Promise<void>;
5
+ }
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "NoOpRunner", {
6
6
  enumerable: true,
7
7
  get: ()=>NoOpRunner
8
8
  });
9
- const NoOpRunner = {
10
- async shouldRun () {
9
+ class NoOpRunner {
10
+ async shouldRun() {
11
11
  return true;
12
- },
13
- async run () {
12
+ }
13
+ async run() {
14
14
  // pass
15
15
  }
16
- };
16
+ }
@@ -17,7 +17,7 @@ function _interopRequireDefault(obj) {
17
17
  class TargetRunnerPicker {
18
18
  async pick(target) {
19
19
  if (target.id === (0, _targetGraph.getStartTargetId)()) {
20
- return (await import("./NoOpRunner.js")).NoOpRunner;
20
+ return new (await import("./NoOpRunner.js")).NoOpRunner();
21
21
  }
22
22
  if (!target.type) {
23
23
  target.type = "npmScript";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/scheduler",
3
- "version": "0.9.2",
3
+ "version": "0.10.0",
4
4
  "description": "Scheduler for Lage",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"
@@ -15,13 +15,13 @@
15
15
  "lint": "monorepo-scripts lint"
16
16
  },
17
17
  "dependencies": {
18
- "@lage-run/target-graph": "^0.7.0",
18
+ "@lage-run/target-graph": "^0.8.0",
19
19
  "@lage-run/logger": "^1.2.2",
20
- "@lage-run/cache": "^0.4.1",
20
+ "@lage-run/cache": "^0.4.2",
21
21
  "@lage-run/worker-threads-pool": "^0.5.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@lage-run/scheduler-types": "^0.3.2",
24
+ "@lage-run/scheduler-types": "^0.3.3",
25
25
  "monorepo-scripts": "*"
26
26
  },
27
27
  "publishConfig": {