@markw65/monkeyc-optimizer 1.1.3 → 1.1.4
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 +24 -0
- package/build/api.cjs +7742 -241
- package/build/optimizer.cjs +361 -289
- package/build/sdk-util.cjs +17 -14
- package/build/src/api.d.ts +1 -0
- package/build/src/optimizer-types.d.ts +2 -1
- package/build/src/optimizer.d.ts +2 -0
- package/build/src/type-flow/types.d.ts +10 -8
- package/build/src/type-flow.d.ts +1 -1
- package/build/src/visitor.d.ts +2 -1
- package/build/util.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -612,3 +612,27 @@ Bug Fixes
|
|
|
612
612
|
- Replace more expensive accesses by less expensive ones.
|
|
613
613
|
- Delete empty else blocks.
|
|
614
614
|
- Delete if statements with empty body and no else.
|
|
615
|
+
|
|
616
|
+
### 1.1.4
|
|
617
|
+
|
|
618
|
+
- Optimizations
|
|
619
|
+
|
|
620
|
+
- Minor tweaks to dead store elimination
|
|
621
|
+
- Better type resolution for untyped code
|
|
622
|
+
|
|
623
|
+
- Enhancements
|
|
624
|
+
|
|
625
|
+
- Retain the type map in the analysis pass, so that it can be used to improve
|
|
626
|
+
the results in visitReferences
|
|
627
|
+
|
|
628
|
+
- Bug fixes
|
|
629
|
+
|
|
630
|
+
- When multiple diagnostics were reported for a single location, all but the last was lost
|
|
631
|
+
- Sometimes when evaluating MemberExpressions type-flow would give up too easily, resulting
|
|
632
|
+
in unknown types for the object, which then resulted in unexpected error messages from
|
|
633
|
+
the type checker, often involving seemingly unrelated classes.
|
|
634
|
+
- Inlining history was sometimes lost when further optimizations were performed.
|
|
635
|
+
|
|
636
|
+
- Code cleanup
|
|
637
|
+
- refactor some of the type code for better type safety
|
|
638
|
+
- turn on the eslint rule eqeqeq and fix all the issues
|