@markw65/monkeyc-optimizer 1.1.52 → 1.1.53

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.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to the "monkeyc-optimizer" package will be documented in this file.
4
4
 
5
+ ### 1.1.53
6
+
7
+ - Update to [@markw65/prettier-plugin-monkeyc@1.0.56](https://github.com/markw65/prettier-plugin-monkeyc/blob/main/CHANGELOG.md#1056)
8
+ - Allows excludeAnnotations on typedefs
9
+ - Allows arbitrary initializers for enums
10
+ - Fix a few nits with the post build optimizer
11
+
5
12
  ### 1.1.52
6
13
 
7
14
  - Add support for System 5 .prg files, including new bytecodes.
package/build/api.cjs CHANGED
@@ -18,47 +18,47 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var api_exports = {};
20
20
  __export(api_exports, {
21
- checkCompilerVersion: () => import_chunk_J5XJWBYV.checkCompilerVersion,
22
- collectNamespaces: () => import_chunk_J5XJWBYV.collectNamespaces,
23
- createDocumentationMap: () => import_chunk_J5XJWBYV.createDocumentationMap,
24
- diagnostic: () => import_chunk_J5XJWBYV.diagnostic,
25
- diagnosticHelper: () => import_chunk_J5XJWBYV.diagnosticHelper,
26
- findNamesInScope: () => import_chunk_J5XJWBYV.findNamesInScope,
27
- findUsingForNode: () => import_chunk_J5XJWBYV.findUsingForNode,
28
- formatAst: () => import_chunk_J5XJWBYV.formatAst,
29
- formatAstLongLines: () => import_chunk_J5XJWBYV.formatAstLongLines,
30
- formatScopedName: () => import_chunk_J5XJWBYV.formatScopedName,
31
- getApiFunctionInfo: () => import_chunk_J5XJWBYV.getApiFunctionInfo,
32
- getApiMapping: () => import_chunk_J5XJWBYV.getApiMapping,
33
- getSuperClasses: () => import_chunk_J5XJWBYV.getSuperClasses,
21
+ checkCompilerVersion: () => import_chunk_32NRMXAJ.checkCompilerVersion,
22
+ collectNamespaces: () => import_chunk_32NRMXAJ.collectNamespaces,
23
+ createDocumentationMap: () => import_chunk_32NRMXAJ.createDocumentationMap,
24
+ diagnostic: () => import_chunk_32NRMXAJ.diagnostic,
25
+ diagnosticHelper: () => import_chunk_32NRMXAJ.diagnosticHelper,
26
+ findNamesInScope: () => import_chunk_32NRMXAJ.findNamesInScope,
27
+ findUsingForNode: () => import_chunk_32NRMXAJ.findUsingForNode,
28
+ formatAst: () => import_chunk_32NRMXAJ.formatAst,
29
+ formatAstLongLines: () => import_chunk_32NRMXAJ.formatAstLongLines,
30
+ formatScopedName: () => import_chunk_32NRMXAJ.formatScopedName,
31
+ getApiFunctionInfo: () => import_chunk_32NRMXAJ.getApiFunctionInfo,
32
+ getApiMapping: () => import_chunk_32NRMXAJ.getApiMapping,
33
+ getSuperClasses: () => import_chunk_32NRMXAJ.getSuperClasses,
34
34
  hasProperty: () => import_chunk_MBTLUWXR.hasProperty,
35
- isClassVariable: () => import_chunk_J5XJWBYV.isClassVariable,
36
- isLocal: () => import_chunk_J5XJWBYV.isLocal,
37
- isLookupCandidate: () => import_chunk_J5XJWBYV.isLookupCandidate,
38
- isStateNode: () => import_chunk_J5XJWBYV.isStateNode,
39
- lookupByFullName: () => import_chunk_J5XJWBYV.lookupByFullName,
40
- lookupNext: () => import_chunk_J5XJWBYV.lookupNext,
41
- lookupResultContains: () => import_chunk_J5XJWBYV.lookupResultContains,
42
- lookupWithType: () => import_chunk_J5XJWBYV.lookupWithType,
43
- makeToyboxLink: () => import_chunk_J5XJWBYV.makeToyboxLink,
44
- mapVarDeclsByType: () => import_chunk_J5XJWBYV.mapVarDeclsByType,
45
- markInvokeClassMethod: () => import_chunk_J5XJWBYV.markInvokeClassMethod,
46
- parseSdkVersion: () => import_chunk_J5XJWBYV.parseSdkVersion,
47
- resolveDiagnostics: () => import_chunk_J5XJWBYV.resolveDiagnostics,
48
- resolveDiagnosticsMap: () => import_chunk_J5XJWBYV.resolveDiagnosticsMap,
49
- sameLookupResult: () => import_chunk_J5XJWBYV.sameLookupResult,
35
+ isClassVariable: () => import_chunk_32NRMXAJ.isClassVariable,
36
+ isLocal: () => import_chunk_32NRMXAJ.isLocal,
37
+ isLookupCandidate: () => import_chunk_32NRMXAJ.isLookupCandidate,
38
+ isStateNode: () => import_chunk_32NRMXAJ.isStateNode,
39
+ lookupByFullName: () => import_chunk_32NRMXAJ.lookupByFullName,
40
+ lookupNext: () => import_chunk_32NRMXAJ.lookupNext,
41
+ lookupResultContains: () => import_chunk_32NRMXAJ.lookupResultContains,
42
+ lookupWithType: () => import_chunk_32NRMXAJ.lookupWithType,
43
+ makeToyboxLink: () => import_chunk_32NRMXAJ.makeToyboxLink,
44
+ mapVarDeclsByType: () => import_chunk_32NRMXAJ.mapVarDeclsByType,
45
+ markInvokeClassMethod: () => import_chunk_32NRMXAJ.markInvokeClassMethod,
46
+ parseSdkVersion: () => import_chunk_32NRMXAJ.parseSdkVersion,
47
+ resolveDiagnostics: () => import_chunk_32NRMXAJ.resolveDiagnostics,
48
+ resolveDiagnosticsMap: () => import_chunk_32NRMXAJ.resolveDiagnosticsMap,
49
+ sameLookupResult: () => import_chunk_32NRMXAJ.sameLookupResult,
50
50
  traverseAst: () => import_chunk_MBTLUWXR.traverseAst,
51
- variableDeclarationName: () => import_chunk_J5XJWBYV.variableDeclarationName,
52
- visitReferences: () => import_chunk_J5XJWBYV.visitReferences,
53
- visit_resources: () => import_chunk_J5XJWBYV.visit_resources,
54
- visitorNode: () => import_chunk_J5XJWBYV.visitorNode
51
+ variableDeclarationName: () => import_chunk_32NRMXAJ.variableDeclarationName,
52
+ visitReferences: () => import_chunk_32NRMXAJ.visitReferences,
53
+ visit_resources: () => import_chunk_32NRMXAJ.visit_resources,
54
+ visitorNode: () => import_chunk_32NRMXAJ.visitorNode
55
55
  });
56
56
  module.exports = __toCommonJS(api_exports);
57
- var import_chunk_J5XJWBYV = require("./chunk-J5XJWBYV.cjs");
57
+ var import_chunk_32NRMXAJ = require("./chunk-32NRMXAJ.cjs");
58
58
  var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
59
59
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
60
60
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
61
- (0, import_chunk_J5XJWBYV.init_api)();
61
+ (0, import_chunk_32NRMXAJ.init_api)();
62
62
  // Annotate the CommonJS export names for ESM import in node:
63
63
  0 && (module.exports = {
64
64
  checkCompilerVersion,
@@ -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_J5XJWBYV_exports = {};
30
- __export(chunk_J5XJWBYV_exports, {
29
+ var chunk_32NRMXAJ_exports = {};
30
+ __export(chunk_32NRMXAJ_exports, {
31
31
  EnumTagsConst: () => EnumTagsConst,
32
32
  LastTypeTag: () => LastTypeTag,
33
33
  ObjectLikeTagsConst: () => ObjectLikeTagsConst,
@@ -133,7 +133,7 @@ __export(chunk_J5XJWBYV_exports, {
133
133
  visitorNode: () => visitorNode,
134
134
  xml_util_exports: () => xml_util_exports
135
135
  });
136
- module.exports = __toCommonJS(chunk_J5XJWBYV_exports);
136
+ module.exports = __toCommonJS(chunk_32NRMXAJ_exports);
137
137
  var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
138
138
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
139
139
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
@@ -16674,7 +16674,11 @@ async function optimizeMonkeyCHelper(fnMap, resourcesMap, manifestXML, config) {
16674
16674
  const ret = preEvaluate(istate, node);
16675
16675
  switch (node.type) {
16676
16676
  case "EnumDeclaration":
16677
- return [];
16677
+ return ["body"];
16678
+ case "EnumStringBody":
16679
+ return ["members"];
16680
+ case "EnumStringMember":
16681
+ return ["init"];
16678
16682
  case "ForStatement": {
16679
16683
  const map2 = topLocals().map;
16680
16684
  if (map2) {
@@ -17101,20 +17105,18 @@ function cleanup(state, node, ast) {
17101
17105
  const name = "name" in m ? m.name : m.id.name;
17102
17106
  return (0, import_chunk_MBTLUWXR.hasProperty)(state.index, name) && !(0, import_chunk_MBTLUWXR.hasProperty)(state.exposed, name) && !(0, import_chunk_MBTLUWXR.hasProperty)(state.usedByName, name);
17103
17107
  })) {
17104
- node.enumType = [
17105
- ...new Set(
17106
- node.members.map((m) => {
17107
- if (!("init" in m))
17108
- return "Number";
17109
- const [node2, type] = (0, import_chunk_MBTLUWXR.getNodeValue)(m.init);
17110
- if (!node2) {
17111
- throw new Error("Failed to get type for eliminated enum");
17112
- }
17113
- return type;
17114
- })
17115
- )
17116
- ].join(" or ");
17117
- node.members.splice(0);
17108
+ const enumType = new Set(
17109
+ node.members.map((m) => {
17110
+ if (!("init" in m))
17111
+ return "Number";
17112
+ const [node2, type] = (0, import_chunk_MBTLUWXR.getNodeValue)(m.init);
17113
+ return node2 ? type : null;
17114
+ })
17115
+ );
17116
+ if (!enumType.has(null)) {
17117
+ node.enumType = [...enumType].join(" or ");
17118
+ node.members.splice(0);
17119
+ }
17118
17120
  }
17119
17121
  break;
17120
17122
  case "EnumDeclaration":
@@ -18723,17 +18725,16 @@ function stateFuncs() {
18723
18725
  }
18724
18726
  const name = m.id.name;
18725
18727
  const init = (0, import_chunk_MBTLUWXR.getLiteralNode)(m.init);
18726
- if (!init) {
18727
- throw new Error("Unexpected enum initializer");
18728
- }
18729
- if (init !== m.init) {
18730
- if (m.init.enumType) {
18731
- init.enumType = m.init.enumType;
18728
+ if (init) {
18729
+ if (init !== m.init) {
18730
+ if (m.init.enumType) {
18731
+ init.enumType = m.init.enumType;
18732
+ }
18733
+ m.init = init;
18734
+ }
18735
+ if (init.type === "Literal" && init.raw && import_prettier_plugin_monkeyc4.LiteralIntegerRe.test(init.raw)) {
18736
+ prev = init.value;
18732
18737
  }
18733
- m.init = init;
18734
- }
18735
- if (init.type === "Literal" && init.raw && import_prettier_plugin_monkeyc4.LiteralIntegerRe.test(init.raw)) {
18736
- prev = init.value;
18737
18738
  }
18738
18739
  if (!(0, import_chunk_MBTLUWXR.hasProperty)(values, name)) {
18739
18740
  values[name] = [];
@@ -21460,31 +21461,31 @@ function instForType(type, offset) {
21460
21461
  op: 43,
21461
21462
  arg: type.type === 2 ? 0 : 1,
21462
21463
  offset,
21463
- size: 1
21464
+ size: 2
21464
21465
  };
21465
21466
  case 8:
21466
- return { op: 37, arg: type.value, offset, size: 1 };
21467
+ return { op: 37, arg: type.value, offset, size: 5 };
21467
21468
  case 16:
21468
- return { op: 49, arg: type.value, offset, size: 1 };
21469
+ return { op: 49, arg: type.value, offset, size: 9 };
21469
21470
  case 32:
21470
- return { op: 38, arg: type.value, offset, size: 1 };
21471
+ return { op: 38, arg: type.value, offset, size: 5 };
21471
21472
  case 64:
21472
- return { op: 50, arg: type.value, offset, size: 1 };
21473
+ return { op: 50, arg: type.value, offset, size: 9 };
21473
21474
  case 128:
21474
21475
  return {
21475
21476
  op: 52,
21476
21477
  arg: type.value.charCodeAt(0),
21477
21478
  offset,
21478
- size: 1
21479
+ size: 5
21479
21480
  };
21480
21481
  case 131072: {
21481
21482
  const match = type.value.match(/<(\d+)>$/);
21482
21483
  (0, import_node_assert7.default)(match);
21483
21484
  return {
21484
- op: 37,
21485
+ op: 39,
21485
21486
  arg: parseInt(match[1], 10),
21486
21487
  offset,
21487
- size: 1
21488
+ size: 5
21488
21489
  };
21489
21490
  }
21490
21491
  }
@@ -28591,19 +28592,6 @@ async function generateOptimizedProject(options) {
28591
28592
  const pick_one = config.products ? config.products.indexOf("pick-one") : -1;
28592
28593
  if (pick_one >= 0) {
28593
28594
  let preferredProduct = 0;
28594
- targets.every((t, i) => {
28595
- const dev = devices[t.product];
28596
- if (!dev)
28597
- return true;
28598
- if (dev.ciqVersions.every((ciq) => ciq.startsWith("5"))) {
28599
- preferredProduct = i;
28600
- return false;
28601
- }
28602
- if (dev.ciqVersions.some((ciq) => ciq.startsWith("5"))) {
28603
- preferredProduct = i;
28604
- }
28605
- return true;
28606
- });
28607
28595
  options.products = [...options.products];
28608
28596
  options.products[pick_one] = targets[preferredProduct].product;
28609
28597
  }
@@ -28981,7 +28969,7 @@ async function generateOneConfig(buildConfig, manifestXML, dependencyFiles, conf
28981
28969
  const opt_time = await (0, import_chunk_SG7ODKRM.first_modified)(
28982
28970
  Object.values(fnMap).map((v) => v.output)
28983
28971
  );
28984
- if (source_time < opt_time && 1712442631755 < opt_time) {
28972
+ if (source_time < opt_time && 1712549362694 < opt_time) {
28985
28973
  return {
28986
28974
  hasTests,
28987
28975
  diagnostics: prevDiagnostics,
@@ -29020,7 +29008,7 @@ async function generateOneConfig(buildConfig, manifestXML, dependencyFiles, conf
29020
29008
  hasTests: hasTests2,
29021
29009
  diagnostics,
29022
29010
  sdkVersion,
29023
- optimizerVersion: "1.1.52",
29011
+ optimizerVersion: "1.1.53",
29024
29012
  ...Object.fromEntries(
29025
29013
  configOptionsToCheck.map((option) => [option, config[option]])
29026
29014
  )
@@ -18,28 +18,28 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var optimizer_exports = {};
20
20
  __export(optimizer_exports, {
21
- StateNodeAttributes: () => import_chunk_J5XJWBYV.StateNodeAttributes,
22
- buildOptimizedProject: () => import_chunk_J5XJWBYV.buildOptimizedProject,
21
+ StateNodeAttributes: () => import_chunk_32NRMXAJ.StateNodeAttributes,
22
+ buildOptimizedProject: () => import_chunk_32NRMXAJ.buildOptimizedProject,
23
23
  copyRecursiveAsNeeded: () => import_chunk_SG7ODKRM.copyRecursiveAsNeeded,
24
- defaultConfig: () => import_chunk_J5XJWBYV.defaultConfig,
25
- display: () => import_chunk_J5XJWBYV.display,
26
- generateOneConfig: () => import_chunk_J5XJWBYV.generateOneConfig,
27
- generateOptimizedProject: () => import_chunk_J5XJWBYV.generateOptimizedProject,
28
- getConfig: () => import_chunk_J5XJWBYV.getConfig,
29
- getProjectAnalysis: () => import_chunk_J5XJWBYV.getProjectAnalysis,
30
- get_jungle: () => import_chunk_J5XJWBYV.get_jungle,
31
- isErrorWithLocation: () => import_chunk_J5XJWBYV.isErrorWithLocation,
32
- launchSimulator: () => import_chunk_J5XJWBYV.launchSimulator,
33
- manifestProducts: () => import_chunk_J5XJWBYV.manifestProducts,
34
- mctree: () => import_chunk_J5XJWBYV.mctree,
35
- simulateProgram: () => import_chunk_J5XJWBYV.simulateProgram
24
+ defaultConfig: () => import_chunk_32NRMXAJ.defaultConfig,
25
+ display: () => import_chunk_32NRMXAJ.display,
26
+ generateOneConfig: () => import_chunk_32NRMXAJ.generateOneConfig,
27
+ generateOptimizedProject: () => import_chunk_32NRMXAJ.generateOptimizedProject,
28
+ getConfig: () => import_chunk_32NRMXAJ.getConfig,
29
+ getProjectAnalysis: () => import_chunk_32NRMXAJ.getProjectAnalysis,
30
+ get_jungle: () => import_chunk_32NRMXAJ.get_jungle,
31
+ isErrorWithLocation: () => import_chunk_32NRMXAJ.isErrorWithLocation,
32
+ launchSimulator: () => import_chunk_32NRMXAJ.launchSimulator,
33
+ manifestProducts: () => import_chunk_32NRMXAJ.manifestProducts,
34
+ mctree: () => import_chunk_32NRMXAJ.mctree,
35
+ simulateProgram: () => import_chunk_32NRMXAJ.simulateProgram
36
36
  });
37
37
  module.exports = __toCommonJS(optimizer_exports);
38
- var import_chunk_J5XJWBYV = require("./chunk-J5XJWBYV.cjs");
38
+ var import_chunk_32NRMXAJ = require("./chunk-32NRMXAJ.cjs");
39
39
  var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
40
40
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
41
41
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
42
- (0, import_chunk_J5XJWBYV.init_optimizer)();
42
+ (0, import_chunk_32NRMXAJ.init_optimizer)();
43
43
  // Annotate the CommonJS export names for ESM import in node:
44
44
  0 && (module.exports = {
45
45
  StateNodeAttributes,
@@ -18,25 +18,25 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var sdk_util_exports = {};
20
20
  __export(sdk_util_exports, {
21
- SectionKinds: () => import_chunk_J5XJWBYV.SectionKinds,
22
- appSupport: () => import_chunk_J5XJWBYV.appSupport,
23
- connectiq: () => import_chunk_J5XJWBYV.connectiq,
24
- getDeviceInfo: () => import_chunk_J5XJWBYV.getDeviceInfo,
25
- getFunctionDocumentation: () => import_chunk_J5XJWBYV.getFunctionDocumentation,
26
- getLanguages: () => import_chunk_J5XJWBYV.getLanguages,
27
- getSdkPath: () => import_chunk_J5XJWBYV.getSdkPath,
28
- isWin: () => import_chunk_J5XJWBYV.isWin,
29
- optimizeProgram: () => import_chunk_J5XJWBYV.optimizeProgram,
30
- readPrg: () => import_chunk_J5XJWBYV.readPrg,
31
- readPrgWithOffsets: () => import_chunk_J5XJWBYV.readPrgWithOffsets,
32
- xmlUtil: () => import_chunk_J5XJWBYV.xml_util_exports
21
+ SectionKinds: () => import_chunk_32NRMXAJ.SectionKinds,
22
+ appSupport: () => import_chunk_32NRMXAJ.appSupport,
23
+ connectiq: () => import_chunk_32NRMXAJ.connectiq,
24
+ getDeviceInfo: () => import_chunk_32NRMXAJ.getDeviceInfo,
25
+ getFunctionDocumentation: () => import_chunk_32NRMXAJ.getFunctionDocumentation,
26
+ getLanguages: () => import_chunk_32NRMXAJ.getLanguages,
27
+ getSdkPath: () => import_chunk_32NRMXAJ.getSdkPath,
28
+ isWin: () => import_chunk_32NRMXAJ.isWin,
29
+ optimizeProgram: () => import_chunk_32NRMXAJ.optimizeProgram,
30
+ readPrg: () => import_chunk_32NRMXAJ.readPrg,
31
+ readPrgWithOffsets: () => import_chunk_32NRMXAJ.readPrgWithOffsets,
32
+ xmlUtil: () => import_chunk_32NRMXAJ.xml_util_exports
33
33
  });
34
34
  module.exports = __toCommonJS(sdk_util_exports);
35
- var import_chunk_J5XJWBYV = require("./chunk-J5XJWBYV.cjs");
35
+ var import_chunk_32NRMXAJ = require("./chunk-32NRMXAJ.cjs");
36
36
  var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
37
37
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
38
38
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
39
- (0, import_chunk_J5XJWBYV.init_sdk_util)();
39
+ (0, import_chunk_32NRMXAJ.init_sdk_util)();
40
40
  // Annotate the CommonJS export names for ESM import in node:
41
41
  0 && (module.exports = {
42
42
  SectionKinds,
@@ -1,5 +1,4 @@
1
1
  import { mctree } from "@markw65/prettier-plugin-monkeyc";
2
- import { EnumStringMember } from "@markw65/prettier-plugin-monkeyc/build/estree-types";
3
2
  import { xmlUtil } from "./sdk-util";
4
3
  import { ExactOrUnion } from "./type-flow/types";
5
4
  export type DiagnosticType = "ERROR" | "WARNING" | "INFO";
@@ -228,7 +227,7 @@ export type ProgramState = {
228
227
  };
229
228
  diagnostics?: Record<string, PreDiagnostic[]>;
230
229
  inlineDiagnostics?: Record<string, Diagnostic[]>;
231
- enumMap?: Map<EnumStringMember, EnumStateNode>;
230
+ enumMap?: Map<mctree.EnumStringMember, EnumStateNode>;
232
231
  };
233
232
  export type Finalized<T, Keys extends keyof T> = T & {
234
233
  [key in Keys]-?: NonNullable<T[key]>;
@@ -21,17 +21,17 @@ __export(worker_thread_exports, {
21
21
  default: () => worker_thread_default
22
22
  });
23
23
  module.exports = __toCommonJS(worker_thread_exports);
24
- var import_chunk_J5XJWBYV = require("./chunk-J5XJWBYV.cjs");
24
+ var import_chunk_32NRMXAJ = require("./chunk-32NRMXAJ.cjs");
25
25
  var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
26
26
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
27
27
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
28
28
  var import_node_worker_threads = require("node:worker_threads");
29
29
  var require_worker_thread = (0, import_chunk_ABYVSU2C.__commonJS)({
30
30
  "src/worker-thread.ts"() {
31
- (0, import_chunk_J5XJWBYV.init_worker_task)();
31
+ (0, import_chunk_32NRMXAJ.init_worker_task)();
32
32
  if (import_node_worker_threads.parentPort) {
33
33
  import_node_worker_threads.parentPort.on("message", async (task) => {
34
- return import_node_worker_threads.parentPort.postMessage(await (0, import_chunk_J5XJWBYV.performTask)(task));
34
+ return import_node_worker_threads.parentPort.postMessage(await (0, import_chunk_32NRMXAJ.performTask)(task));
35
35
  });
36
36
  }
37
37
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@markw65/monkeyc-optimizer",
3
3
  "type": "commonjs",
4
- "version": "1.1.52",
4
+ "version": "1.1.53",
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",
@@ -52,7 +52,7 @@
52
52
  "author": "markw65",
53
53
  "license": "MIT",
54
54
  "dependencies": {
55
- "@markw65/prettier-plugin-monkeyc": "^1.0.55"
55
+ "@markw65/prettier-plugin-monkeyc": "^1.0.56"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@markw65/peggy-optimizer": "^1.0.1",