@markw65/monkeyc-optimizer 1.1.17 → 1.1.18

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/README.md CHANGED
@@ -759,7 +759,7 @@ Bug Fixes
759
759
  - Optimize array initialization by using a loop
760
760
  - Identify arrays that are unused, and make it possible for dce to clean up their initializers.
761
761
 
762
- ### 1.1.16
762
+ ### 1.1.17 (this package is missing two files)
763
763
 
764
764
  - Project infrastructure
765
765
 
@@ -767,3 +767,7 @@ Bug Fixes
767
767
 
768
768
  - Bug fixes
769
769
  - When running the post build optimizer, the `*-settings.json` and `*-fit_contributions.json` need to be generated too.
770
+
771
+ ### 1.1.18
772
+
773
+ - add missing `worker-thread.cjs` and `worker-pool.cjs` files to the package.
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_BGKDODLS_exports = {};
30
- __export(chunk_BGKDODLS_exports, {
29
+ var chunk_TM6GLTGC_exports = {};
30
+ __export(chunk_TM6GLTGC_exports, {
31
31
  buildOptimizedProject: () => buildOptimizedProject,
32
32
  defaultConfig: () => defaultConfig,
33
33
  generateApiMirTests: () => generateApiMirTests,
@@ -49,7 +49,7 @@ __export(chunk_BGKDODLS_exports, {
49
49
  startPool: () => startPool,
50
50
  stopPool: () => stopPool
51
51
  });
52
- module.exports = __toCommonJS(chunk_BGKDODLS_exports);
52
+ module.exports = __toCommonJS(chunk_TM6GLTGC_exports);
53
53
  var import_chunk_YCLY27QH = require("./chunk-YCLY27QH.cjs");
54
54
  var import_chunk_IAUHYWVN = require("./chunk-IAUHYWVN.cjs");
55
55
  var path = __toESM(require("path"));
@@ -4462,7 +4462,7 @@ async function generateOneConfig(buildConfig, manifestXML, dependencyFiles, conf
4462
4462
  const opt_time = await (0, import_chunk_IAUHYWVN.first_modified)(
4463
4463
  Object.values(fnMap).map((v) => v.output)
4464
4464
  );
4465
- if (source_time < opt_time && 1678291955063 < opt_time) {
4465
+ if (source_time < opt_time && 1678298050134 < opt_time) {
4466
4466
  return { hasTests, diagnostics: prevDiagnostics };
4467
4467
  }
4468
4468
  }
@@ -4494,7 +4494,7 @@ async function generateOneConfig(buildConfig, manifestXML, dependencyFiles, conf
4494
4494
  JSON.stringify({
4495
4495
  hasTests: hasTests2,
4496
4496
  diagnostics,
4497
- optimizerVersion: "1.1.17",
4497
+ optimizerVersion: "1.1.18",
4498
4498
  ...Object.fromEntries(
4499
4499
  configOptionsToCheck.map((option) => [option, config[option]])
4500
4500
  )
@@ -19,27 +19,27 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  var optimizer_exports = {};
20
20
  __export(optimizer_exports, {
21
21
  StateNodeAttributes: () => import_chunk_YCLY27QH.StateNodeAttributes,
22
- buildOptimizedProject: () => import_chunk_BGKDODLS.buildOptimizedProject,
22
+ buildOptimizedProject: () => import_chunk_TM6GLTGC.buildOptimizedProject,
23
23
  copyRecursiveAsNeeded: () => import_chunk_IAUHYWVN.copyRecursiveAsNeeded,
24
- defaultConfig: () => import_chunk_BGKDODLS.defaultConfig,
24
+ defaultConfig: () => import_chunk_TM6GLTGC.defaultConfig,
25
25
  display: () => import_chunk_YCLY27QH.display,
26
- generateApiMirTests: () => import_chunk_BGKDODLS.generateApiMirTests,
27
- generateOneConfig: () => import_chunk_BGKDODLS.generateOneConfig,
28
- generateOptimizedProject: () => import_chunk_BGKDODLS.generateOptimizedProject,
29
- getConfig: () => import_chunk_BGKDODLS.getConfig,
30
- getProjectAnalysis: () => import_chunk_BGKDODLS.getProjectAnalysis,
31
- get_jungle: () => import_chunk_BGKDODLS.get_jungle,
32
- isErrorWithLocation: () => import_chunk_BGKDODLS.isErrorWithLocation,
33
- launchSimulator: () => import_chunk_BGKDODLS.launchSimulator,
34
- manifestProducts: () => import_chunk_BGKDODLS.manifestProducts,
35
- mctree: () => import_chunk_BGKDODLS.mctree,
36
- simulateProgram: () => import_chunk_BGKDODLS.simulateProgram
26
+ generateApiMirTests: () => import_chunk_TM6GLTGC.generateApiMirTests,
27
+ generateOneConfig: () => import_chunk_TM6GLTGC.generateOneConfig,
28
+ generateOptimizedProject: () => import_chunk_TM6GLTGC.generateOptimizedProject,
29
+ getConfig: () => import_chunk_TM6GLTGC.getConfig,
30
+ getProjectAnalysis: () => import_chunk_TM6GLTGC.getProjectAnalysis,
31
+ get_jungle: () => import_chunk_TM6GLTGC.get_jungle,
32
+ isErrorWithLocation: () => import_chunk_TM6GLTGC.isErrorWithLocation,
33
+ launchSimulator: () => import_chunk_TM6GLTGC.launchSimulator,
34
+ manifestProducts: () => import_chunk_TM6GLTGC.manifestProducts,
35
+ mctree: () => import_chunk_TM6GLTGC.mctree,
36
+ simulateProgram: () => import_chunk_TM6GLTGC.simulateProgram
37
37
  });
38
38
  module.exports = __toCommonJS(optimizer_exports);
39
- var import_chunk_BGKDODLS = require("./chunk-BGKDODLS.cjs");
39
+ var import_chunk_TM6GLTGC = require("./chunk-TM6GLTGC.cjs");
40
40
  var import_chunk_YCLY27QH = require("./chunk-YCLY27QH.cjs");
41
41
  var import_chunk_IAUHYWVN = require("./chunk-IAUHYWVN.cjs");
42
- (0, import_chunk_BGKDODLS.init_optimizer)();
42
+ (0, import_chunk_TM6GLTGC.init_optimizer)();
43
43
  // Annotate the CommonJS export names for ESM import in node:
44
44
  0 && (module.exports = {
45
45
  StateNodeAttributes,
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var worker_pool_exports = {};
20
+ __export(worker_pool_exports, {
21
+ runTaskInPool: () => import_chunk_TM6GLTGC.runTaskInPool,
22
+ startPool: () => import_chunk_TM6GLTGC.startPool,
23
+ stopPool: () => import_chunk_TM6GLTGC.stopPool
24
+ });
25
+ module.exports = __toCommonJS(worker_pool_exports);
26
+ var import_chunk_TM6GLTGC = require("./chunk-TM6GLTGC.cjs");
27
+ var import_chunk_YCLY27QH = require("./chunk-YCLY27QH.cjs");
28
+ var import_chunk_IAUHYWVN = require("./chunk-IAUHYWVN.cjs");
29
+ (0, import_chunk_TM6GLTGC.init_worker_pool)();
30
+ // Annotate the CommonJS export names for ESM import in node:
31
+ 0 && (module.exports = {
32
+ runTaskInPool,
33
+ startPool,
34
+ stopPool
35
+ });
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var worker_thread_exports = {};
20
+ __export(worker_thread_exports, {
21
+ default: () => worker_thread_default
22
+ });
23
+ module.exports = __toCommonJS(worker_thread_exports);
24
+ var import_chunk_TM6GLTGC = require("./chunk-TM6GLTGC.cjs");
25
+ var import_chunk_YCLY27QH = require("./chunk-YCLY27QH.cjs");
26
+ var import_chunk_IAUHYWVN = require("./chunk-IAUHYWVN.cjs");
27
+ var import_node_worker_threads = require("node:worker_threads");
28
+ var require_worker_thread = (0, import_chunk_IAUHYWVN.__commonJS)({
29
+ "src/worker-thread.ts"() {
30
+ (0, import_chunk_TM6GLTGC.init_worker_task)();
31
+ if (import_node_worker_threads.parentPort) {
32
+ import_node_worker_threads.parentPort.on("message", async (task) => {
33
+ return import_node_worker_threads.parentPort.postMessage(await (0, import_chunk_TM6GLTGC.performTask)(task));
34
+ });
35
+ }
36
+ }
37
+ });
38
+ var worker_thread_default = require_worker_thread();
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@markw65/monkeyc-optimizer",
3
3
  "type": "commonjs",
4
- "version": "1.1.17",
4
+ "version": "1.1.18",
5
5
  "description": "Source to source optimizer for Garmin Monkey C code",
6
6
  "main": "build/optimizer.cjs",
7
7
  "types": "build/src/optimizer.d.ts",
@@ -35,6 +35,8 @@
35
35
  "build/util.cjs",
36
36
  "build/sdk-util.cjs",
37
37
  "build/api.cjs",
38
+ "build/worker-thread.cjs",
39
+ "build/worker-pool.cjs",
38
40
  "build/chunk-*.cjs",
39
41
  "build/src/**/*.d.ts"
40
42
  ],