@markw65/monkeyc-optimizer 1.0.43 → 1.0.45
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 +28 -0
- package/build/api.cjs +1241 -739
- package/build/optimizer.cjs +665 -251
- package/build/sdk-util.cjs +400 -1
- package/build/src/api.d.ts +3 -2
- package/build/src/ast.d.ts +30 -1
- package/build/src/data-flow.d.ts +45 -0
- package/build/src/function-info.d.ts +2 -0
- package/build/src/inliner.d.ts +2 -2
- package/build/src/interp-binary.d.ts +4 -0
- package/build/src/interp-call.d.ts +3 -0
- package/build/src/interp.d.ts +23 -0
- package/build/src/jungles.d.ts +2 -1
- package/build/src/manifest.d.ts +1 -0
- package/build/src/mc-types.d.ts +166 -0
- package/build/src/optimizer-types.d.ts +12 -3
- package/build/src/pre.d.ts +1 -1
- package/build/src/projects.d.ts +2 -1
- package/build/src/resources.d.ts +3 -4
- package/build/src/type-flow.d.ts +4 -0
- package/build/src/util.d.ts +6 -1
- package/build/src/worker-pool.d.ts +4 -0
- package/build/src/worker-task.d.ts +29 -0
- package/build/src/xml-util.d.ts +19 -7
- package/build/util.cjs +58 -2
- package/package.json +4 -3
- package/build/src/estree-types.d.ts +0 -324
package/README.md
CHANGED
|
@@ -518,3 +518,31 @@ Bug Fixes
|
|
|
518
518
|
- Add Symbols (`:name`) to the list of things the inliner knows are constants
|
|
519
519
|
- Propagate `:typecheck(false)` to the caller when inlining
|
|
520
520
|
- Fix an issue with bogus undefined symbols being reported against manifest.xml in some projects that use barrels.
|
|
521
|
+
|
|
522
|
+
### 1.0.44
|
|
523
|
+
|
|
524
|
+
- Update to [@markw65/prettier-plugin-monkeyc@1.0.40](https://github.com/markw65/prettier-plugin-monkeyc#1040)
|
|
525
|
+
|
|
526
|
+
- Fixes location ranges associated with parenthesized expressions
|
|
527
|
+
- Fixes parsing of Lang.Char literals
|
|
528
|
+
|
|
529
|
+
- Add more parsing of expressions embedded in resource files. This should now be complete, in that the analasis pass should see every symbol definition and reference from anywhere in the project.
|
|
530
|
+
- Generalize constant folding to (nearly) all supported types. We don't fold additions between Float or Double and String, because the exact behavior is [buggy and upredictable](https://forums.garmin.com/developer/connect-iq/i/bug-reports/sdk-4-1-7-constant-folds-floats-strings-incorrectly)
|
|
531
|
+
|
|
532
|
+
### 1.0.45
|
|
533
|
+
|
|
534
|
+
- Update to [@markw65/prettier-plugin-monkeyc@1.0.41](https://github.com/markw65/prettier-plugin-monkeyc#1041)
|
|
535
|
+
|
|
536
|
+
- Fixes a few parser edge cases
|
|
537
|
+
|
|
538
|
+
- Bug fixes
|
|
539
|
+
|
|
540
|
+
- Fix a bug constant folding == and !=
|
|
541
|
+
- Make sure to include all languages, even for devices that don't support them, because they're still supported in settings. Do this in a way that avoids creating warnings.
|
|
542
|
+
- Look at all build dependencies when deciding whether to regenerate the optimized files.
|
|
543
|
+
- Don't produce errors when "-" is used as the first character of an id in a resource file (although in most cases, this is not a good idea, and will fail at compile time)
|
|
544
|
+
|
|
545
|
+
- Improvements
|
|
546
|
+
- Better typing for resources
|
|
547
|
+
- Refactor PRE
|
|
548
|
+
- Improve accuracy of whether or not a function can modify a particular global (resulting in better PRE)
|