@markw65/monkeyc-optimizer 1.0.26 → 1.0.27

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
@@ -292,3 +292,9 @@ More fixes found via open source projects.
292
292
  - Use `self.` rather than `ClassName.` to qualify names that would otherwise collide with locals, since that works with both public and private variables
293
293
  - Fix a bug that caused the inliner to fail to qualify certain names, even if there was a collision with an existing local variables
294
294
  - Fix some name lookup issues relating to whether the lookup is done as a type or a value.
295
+
296
+ ### 1.0.27
297
+
298
+ - Bug fixes
299
+ - Update to `@markw65/prettier-plugin-monkeyc@1.0.29` to fix certain obscure comment related bugs
300
+ - When replacing a node (espcially when inlining), delete any comments contained in the old node.
package/build/api.cjs CHANGED
@@ -2499,7 +2499,7 @@ function api_collectNamespaces(ast, stateIn) {
2499
2499
  }
2500
2500
  }
2501
2501
  }
2502
- if (ret === false) {
2502
+ if (ret != null) {
2503
2503
  state.removeNodeComments(node, ast);
2504
2504
  }
2505
2505
  return ret;
@@ -13105,7 +13105,7 @@ async function generateOneConfig(buildConfig, dependencyFiles, config) {
13105
13105
  // the oldest optimized file, we don't need to regenerate
13106
13106
  const source_time = await (0,external_util_cjs_namespaceObject.last_modified)(Object.keys(fnMap).concat(dependencyFiles));
13107
13107
  const opt_time = await (0,external_util_cjs_namespaceObject.first_modified)(Object.values(fnMap).map((v) => v.output));
13108
- if (source_time < opt_time && 1655771632397 < opt_time) {
13108
+ if (source_time < opt_time && 1655851904193 < opt_time) {
13109
13109
  return { hasTests, diagnostics: prevDiagnostics };
13110
13110
  }
13111
13111
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@markw65/monkeyc-optimizer",
3
3
  "type": "module",
4
- "version": "1.0.26",
4
+ "version": "1.0.27",
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",
@@ -37,7 +37,7 @@
37
37
  "author": "markw65",
38
38
  "license": "MIT",
39
39
  "dependencies": {
40
- "@markw65/prettier-plugin-monkeyc": "^1.0.28"
40
+ "@markw65/prettier-plugin-monkeyc": "^1.0.29"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/glob": "^7.2.0",