@markw65/monkeyc-optimizer 1.0.14 → 1.0.17
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 +38 -0
- package/build/api.cjs +769 -351
- package/build/optimizer.cjs +664 -114
- package/build/sdk-util.cjs +1 -1
- package/build/src/api.d.ts +1 -1
- package/build/src/inliner.d.ts +13 -0
- package/build/src/optimizer.d.ts +52 -31
- package/build/src/pragma-checker.d.ts +2 -0
- package/build/src/variable-renamer.d.ts +1 -0
- package/build/util.cjs +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -155,3 +155,41 @@ More fixes found via open source projects.
|
|
|
155
155
|
- npm upgrade to pickup ts 4.7.2
|
|
156
156
|
- Add types to package exports for ts 4.7.2
|
|
157
157
|
- Better handling of program-logic errors
|
|
158
|
+
|
|
159
|
+
### 1.0.15
|
|
160
|
+
|
|
161
|
+
- Bug fixes
|
|
162
|
+
- Inject the superclass name into the classes namespace
|
|
163
|
+
- Separate type vs value lookup, and use the correct one based on context.
|
|
164
|
+
|
|
165
|
+
### 1.0.16
|
|
166
|
+
|
|
167
|
+
- Bug fixes
|
|
168
|
+
|
|
169
|
+
- Fix off-by-one in removeNodeComments
|
|
170
|
+
- Fix lookup to consistently lookup types or values.
|
|
171
|
+
- Fix lookup of superclass names
|
|
172
|
+
|
|
173
|
+
- New Features
|
|
174
|
+
|
|
175
|
+
- Add a simple inliner
|
|
176
|
+
- Add support for conditional inlining based on excludeAnnotations
|
|
177
|
+
|
|
178
|
+
- Testing
|
|
179
|
+
- Add support for @match pragmas to check the optimization results
|
|
180
|
+
- Add a test project, with some inlining tests
|
|
181
|
+
|
|
182
|
+
### 1.0.17
|
|
183
|
+
|
|
184
|
+
- New Features
|
|
185
|
+
|
|
186
|
+
- Extend the inliner to support more complex functions when called in a void context
|
|
187
|
+
- Cleanup unused expressions. `0;x;foo.bar;a+b` will all now be optimized away.
|
|
188
|
+
|
|
189
|
+
- Testing
|
|
190
|
+
|
|
191
|
+
- Rewrite the @match pragma implementation to have access to the next Node in the ast, rather than just the text of the remainder of the line.
|
|
192
|
+
- Add tests for the statement inliner, and the unused expression cleanup code.
|
|
193
|
+
|
|
194
|
+
- Bug Fixes
|
|
195
|
+
- Fix a bug affecting lookup of types, which could cause definitions, references and links to the api docs to be missed in the vscode extension
|