@markw65/monkeyc-optimizer 1.0.24 → 1.0.25
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 +5 -0
- package/build/api.cjs +1 -1
- package/build/optimizer.cjs +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -280,3 +280,8 @@ More fixes found via open source projects.
|
|
|
280
280
|
|
|
281
281
|
- Bug fix
|
|
282
282
|
- The new ast.ts didn't pick up child elements that could be either a string or a node. This resulted in it missing the name in TypeSpecPart.
|
|
283
|
+
|
|
284
|
+
### 1.0.25
|
|
285
|
+
|
|
286
|
+
- Bug fix
|
|
287
|
+
- estree-types was missing the returnType on FunctionDeclaration. Update to latest prettier-plugin, and fix ast.ts.
|
package/build/api.cjs
CHANGED
|
@@ -108,7 +108,7 @@ const mctreeTypeInfo = {
|
|
|
108
108
|
EnumStringMember: ["id", "init"],
|
|
109
109
|
ExpressionStatement: ["expression"],
|
|
110
110
|
ForStatement: ["init", "test", "body", "update"],
|
|
111
|
-
FunctionDeclaration: ["attrs", "id", "params", "body"],
|
|
111
|
+
FunctionDeclaration: ["attrs", "id", "params", "returnType", "body"],
|
|
112
112
|
Identifier: [],
|
|
113
113
|
IfStatement: ["test", "consequent", "alternate"],
|
|
114
114
|
ImportModule: ["id"],
|
package/build/optimizer.cjs
CHANGED
|
@@ -10834,7 +10834,7 @@ const mctreeTypeInfo = {
|
|
|
10834
10834
|
EnumStringMember: ["id", "init"],
|
|
10835
10835
|
ExpressionStatement: ["expression"],
|
|
10836
10836
|
ForStatement: ["init", "test", "body", "update"],
|
|
10837
|
-
FunctionDeclaration: ["attrs", "id", "params", "body"],
|
|
10837
|
+
FunctionDeclaration: ["attrs", "id", "params", "returnType", "body"],
|
|
10838
10838
|
Identifier: [],
|
|
10839
10839
|
IfStatement: ["test", "consequent", "alternate"],
|
|
10840
10840
|
ImportModule: ["id"],
|
|
@@ -13085,7 +13085,7 @@ async function generateOneConfig(buildConfig, dependencyFiles, config) {
|
|
|
13085
13085
|
// the oldest optimized file, we don't need to regenerate
|
|
13086
13086
|
const source_time = await (0,external_util_cjs_namespaceObject.last_modified)(Object.keys(fnMap).concat(dependencyFiles));
|
|
13087
13087
|
const opt_time = await (0,external_util_cjs_namespaceObject.first_modified)(Object.values(fnMap).map((v) => v.output));
|
|
13088
|
-
if (source_time < opt_time &&
|
|
13088
|
+
if (source_time < opt_time && 1655681973607 < opt_time) {
|
|
13089
13089
|
return { hasTests, diagnostics: prevDiagnostics };
|
|
13090
13090
|
}
|
|
13091
13091
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markw65/monkeyc-optimizer",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.25",
|
|
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.
|
|
40
|
+
"@markw65/prettier-plugin-monkeyc": "^1.0.28"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/glob": "^7.2.0",
|