@markw65/monkeyc-optimizer 1.0.23 → 1.0.24
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 +1 -1
package/README.md
CHANGED
|
@@ -275,3 +275,8 @@ More fixes found via open source projects.
|
|
|
275
275
|
- Tests
|
|
276
276
|
- Various new tests for module/class/local resolution of symbols
|
|
277
277
|
- Make tests fail by default if the optimizer reports any undefined symbols, and add `@expects` or `checkInvalidSymbols=WARNING` as needed to prevent test failures.
|
|
278
|
+
|
|
279
|
+
### 1.0.24
|
|
280
|
+
|
|
281
|
+
- Bug fix
|
|
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.
|
package/build/api.cjs
CHANGED
|
@@ -135,7 +135,7 @@ const mctreeTypeInfo = {
|
|
|
135
135
|
TryStatement: ["block", "handler", "finalizer"],
|
|
136
136
|
TypedefDeclaration: ["attrs", "id", "ts"],
|
|
137
137
|
TypeSpecList: ["ts"],
|
|
138
|
-
TypeSpecPart: ["body", "callspec", "generics"],
|
|
138
|
+
TypeSpecPart: ["name", "body", "callspec", "generics"],
|
|
139
139
|
UnaryExpression: ["argument"],
|
|
140
140
|
UpdateExpression: ["argument"],
|
|
141
141
|
Using: ["id", "as"],
|
package/build/optimizer.cjs
CHANGED
|
@@ -10861,7 +10861,7 @@ const mctreeTypeInfo = {
|
|
|
10861
10861
|
TryStatement: ["block", "handler", "finalizer"],
|
|
10862
10862
|
TypedefDeclaration: ["attrs", "id", "ts"],
|
|
10863
10863
|
TypeSpecList: ["ts"],
|
|
10864
|
-
TypeSpecPart: ["body", "callspec", "generics"],
|
|
10864
|
+
TypeSpecPart: ["name", "body", "callspec", "generics"],
|
|
10865
10865
|
UnaryExpression: ["argument"],
|
|
10866
10866
|
UpdateExpression: ["argument"],
|
|
10867
10867
|
Using: ["id", "as"],
|
|
@@ -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 && 1655680070380 < opt_time) {
|
|
13089
13089
|
return { hasTests, diagnostics: prevDiagnostics };
|
|
13090
13090
|
}
|
|
13091
13091
|
}
|
package/package.json
CHANGED