@markw65/monkeyc-optimizer 1.1.16 → 1.1.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 CHANGED
@@ -60,7 +60,7 @@ More fixes found via open source projects.
60
60
 
61
61
  - Improvements
62
62
 
63
- - Update to @markw65/prettier-plugin-monkeyc:1.0.14
63
+ - Update to `@markw65/prettier-plugin-monkeyc:1.0.14`
64
64
  - Parse and respect \<build\> instructions in resource files
65
65
  - Add minimal barrel support
66
66
  - Better checking for whether the optimized source is up to date
@@ -87,7 +87,7 @@ More fixes found via open source projects.
87
87
 
88
88
  - Only generate the parts of the jungle we're going to use
89
89
  - Also publish sdk-util.cjs
90
- - Bump to @markw65/prettier-plugin-monkeyc:1.0.15
90
+ - Bump to `@markw65/prettier-plugin-monkeyc:1.0.15`
91
91
  - Fixes a bug that dropped attributes on modules
92
92
  - LiteralIntegerRe should be case insensitive
93
93
  - Proper fix for promiseAll
@@ -98,7 +98,7 @@ More fixes found via open source projects.
98
98
  - Add --execute option to test.js to run the projects after building them
99
99
  - Add support for optimizing barrels
100
100
  - Add some typing via jsdoc, and turn on ts validation in vscode
101
- - Bump to @markw65/prettier-plugin-monkeyc:1.0.16 so ts recognizes its exports
101
+ - Bump to `@markw65/prettier-plugin-monkeyc:1.0.16` so ts recognizes its exports
102
102
  - Add [garmin/connectiq-apps](https://github.com/garmin/connectiq-apps) and fix some minor issues it revealed
103
103
 
104
104
  ### 1.0.11
@@ -106,7 +106,7 @@ More fixes found via open source projects.
106
106
  - Improvements
107
107
 
108
108
  - Add option to run tests (for projects that have them)
109
- - Add getProjectAnalysis api, to support various language features in @markw65/prettier-extension-monkeyc
109
+ - Add getProjectAnalysis api, to support various language features in `@markw65/prettier-extension-monkeyc`
110
110
 
111
111
  - Bug fixes
112
112
 
@@ -118,7 +118,7 @@ More fixes found via open source projects.
118
118
  - The project was becoming hard to maintain due to too much ad-hoc dynamic typing. This should allow easier/safer refactors and code cleanup.
119
119
  - Refactoring to make analysis available in prettier-extension-monkeyc
120
120
  - Generate .d.ts, and drop unneeded paths/resolve.alias
121
- - Pull in a typed version of @markw65/prettier-plugin-monkeyc
121
+ - Pull in a typed version of `@markw65/prettier-plugin-monkeyc`
122
122
 
123
123
  ### 1.0.12
124
124
 
@@ -134,7 +134,7 @@ More fixes found via open source projects.
134
134
 
135
135
  - Code cleanup
136
136
 
137
- - Update to @markw65/prettier-plugin-monkeyc@1.0.20 for mctree fixes
137
+ - Update to `@markw65/prettier-plugin-monkeyc@1.0.20` for mctree fixes
138
138
  - Enable typescript strict checks
139
139
  - Turn off synthetic default imports, and fix issues
140
140
  - Better manifest typing
@@ -151,7 +151,7 @@ More fixes found via open source projects.
151
151
  - Remove comments that are completely contained within removed nodes
152
152
 
153
153
  - Code cleanup
154
- - Upgrade to @markw65/prettier-plugin-monkeyc@1.0.21 for some typescript fixes
154
+ - Upgrade to `@markw65/prettier-plugin-monkeyc@1.0.21` for some typescript fixes
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
@@ -201,7 +201,7 @@ More fixes found via open source projects.
201
201
 
202
202
  ### 1.0.19
203
203
 
204
- - Upgrade to @markw65/prettier-plugin-monkeyc@1.0.22
204
+ - Upgrade to `@markw65/prettier-plugin-monkeyc@1.0.22`
205
205
 
206
206
  - fixes some minor typing issues for mctree
207
207
  - special handling for certain parenthesized expressions.
@@ -219,7 +219,7 @@ More fixes found via open source projects.
219
219
 
220
220
  - Code cleanup
221
221
  - Properly type the results of JSON.parse
222
- - Switch over to using ParenthesizedExpression for formatAst (depends on @markw65/prettier-plugin-monkeyc@1.0.22)
222
+ - Switch over to using ParenthesizedExpression for formatAst (depends on `@markw65/prettier-plugin-monkeyc@1.0.22`)
223
223
 
224
224
  ### 1.0.20
225
225
 
@@ -241,7 +241,7 @@ More fixes found via open source projects.
241
241
  - Bug fixes
242
242
 
243
243
  - Parameters from the calling function should be treated just line locals when inlining
244
- - Upgrade to @markw65/prettier-plugin-monkeyc@1.0.24
244
+ - Upgrade to `@markw65/prettier-plugin-monkeyc@1.0.24`
245
245
  - fixes crash with comments following an attribute: `(:foo) /* comment */ function foo() {}`
246
246
  - Fix issues with recursive inlining
247
247
 
@@ -306,7 +306,7 @@ More fixes found via open source projects.
306
306
 
307
307
  ### 1.0.29
308
308
 
309
- - Update to @markw65/prettier-plugin-monkeyc@1.0.32
309
+ - Update to `@markw65/prettier-plugin-monkeyc@1.0.32`
310
310
 
311
311
  - Fixes a parser issue where `x as Type ? a : b` would be parsed as `(x as Type?) a : b` which would then be reported as a syntax error.
312
312
 
@@ -758,3 +758,12 @@ Bug Fixes
758
758
  - Avoid `goto` when the target is fewer than 3 bytes
759
759
  - Optimize array initialization by using a loop
760
760
  - Identify arrays that are unused, and make it possible for dce to clean up their initializers.
761
+
762
+ ### 1.1.16
763
+
764
+ - Project infrastructure
765
+
766
+ - Use worker threads to speed up exporting a .iq file. With an 8 core (16 with hyperthreading) system, my project goes from taking 28 seconds to generate the optimized source to less than 10. It still takes garmin's compiler nearly 3 minutes to compile though.
767
+
768
+ - Bug fixes
769
+ - When running the post build optimizer, the `*-settings.json` and `*-fit_contributions.json` need to be generated too.
package/build/api.cjs CHANGED
@@ -18,42 +18,42 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var api_exports = {};
20
20
  __export(api_exports, {
21
- checkCompilerVersion: () => import_chunk_VVIZ2ADY.checkCompilerVersion,
22
- collectNamespaces: () => import_chunk_VVIZ2ADY.collectNamespaces,
23
- createDocumentationMap: () => import_chunk_VVIZ2ADY.createDocumentationMap,
24
- diagnostic: () => import_chunk_VVIZ2ADY.diagnostic,
25
- diagnosticHelper: () => import_chunk_VVIZ2ADY.diagnosticHelper,
26
- findNamesInScope: () => import_chunk_VVIZ2ADY.findNamesInScope,
27
- findUsingForNode: () => import_chunk_VVIZ2ADY.findUsingForNode,
28
- formatAst: () => import_chunk_VVIZ2ADY.formatAst,
29
- formatAstLongLines: () => import_chunk_VVIZ2ADY.formatAstLongLines,
30
- getApiFunctionInfo: () => import_chunk_VVIZ2ADY.getApiFunctionInfo,
31
- getApiMapping: () => import_chunk_VVIZ2ADY.getApiMapping,
32
- getSuperClasses: () => import_chunk_VVIZ2ADY.getSuperClasses,
33
- hasProperty: () => import_chunk_VVIZ2ADY.hasProperty,
34
- isClassVariable: () => import_chunk_VVIZ2ADY.isClassVariable,
35
- isLocal: () => import_chunk_VVIZ2ADY.isLocal,
36
- isLookupCandidate: () => import_chunk_VVIZ2ADY.isLookupCandidate,
37
- isStateNode: () => import_chunk_VVIZ2ADY.isStateNode,
38
- lookupByFullName: () => import_chunk_VVIZ2ADY.lookupByFullName,
39
- lookupNext: () => import_chunk_VVIZ2ADY.lookupNext,
40
- lookupResultContains: () => import_chunk_VVIZ2ADY.lookupResultContains,
41
- lookupWithType: () => import_chunk_VVIZ2ADY.lookupWithType,
42
- makeToyboxLink: () => import_chunk_VVIZ2ADY.makeToyboxLink,
43
- mapVarDeclsByType: () => import_chunk_VVIZ2ADY.mapVarDeclsByType,
44
- markInvokeClassMethod: () => import_chunk_VVIZ2ADY.markInvokeClassMethod,
45
- parseSdkVersion: () => import_chunk_VVIZ2ADY.parseSdkVersion,
46
- sameLookupResult: () => import_chunk_VVIZ2ADY.sameLookupResult,
47
- traverseAst: () => import_chunk_VVIZ2ADY.traverseAst,
48
- variableDeclarationName: () => import_chunk_VVIZ2ADY.variableDeclarationName,
49
- visitReferences: () => import_chunk_VVIZ2ADY.visitReferences,
50
- visit_resources: () => import_chunk_VVIZ2ADY.visit_resources,
51
- visitorNode: () => import_chunk_VVIZ2ADY.visitorNode
21
+ checkCompilerVersion: () => import_chunk_YCLY27QH.checkCompilerVersion,
22
+ collectNamespaces: () => import_chunk_YCLY27QH.collectNamespaces,
23
+ createDocumentationMap: () => import_chunk_YCLY27QH.createDocumentationMap,
24
+ diagnostic: () => import_chunk_YCLY27QH.diagnostic,
25
+ diagnosticHelper: () => import_chunk_YCLY27QH.diagnosticHelper,
26
+ findNamesInScope: () => import_chunk_YCLY27QH.findNamesInScope,
27
+ findUsingForNode: () => import_chunk_YCLY27QH.findUsingForNode,
28
+ formatAst: () => import_chunk_YCLY27QH.formatAst,
29
+ formatAstLongLines: () => import_chunk_YCLY27QH.formatAstLongLines,
30
+ getApiFunctionInfo: () => import_chunk_YCLY27QH.getApiFunctionInfo,
31
+ getApiMapping: () => import_chunk_YCLY27QH.getApiMapping,
32
+ getSuperClasses: () => import_chunk_YCLY27QH.getSuperClasses,
33
+ hasProperty: () => import_chunk_YCLY27QH.hasProperty,
34
+ isClassVariable: () => import_chunk_YCLY27QH.isClassVariable,
35
+ isLocal: () => import_chunk_YCLY27QH.isLocal,
36
+ isLookupCandidate: () => import_chunk_YCLY27QH.isLookupCandidate,
37
+ isStateNode: () => import_chunk_YCLY27QH.isStateNode,
38
+ lookupByFullName: () => import_chunk_YCLY27QH.lookupByFullName,
39
+ lookupNext: () => import_chunk_YCLY27QH.lookupNext,
40
+ lookupResultContains: () => import_chunk_YCLY27QH.lookupResultContains,
41
+ lookupWithType: () => import_chunk_YCLY27QH.lookupWithType,
42
+ makeToyboxLink: () => import_chunk_YCLY27QH.makeToyboxLink,
43
+ mapVarDeclsByType: () => import_chunk_YCLY27QH.mapVarDeclsByType,
44
+ markInvokeClassMethod: () => import_chunk_YCLY27QH.markInvokeClassMethod,
45
+ parseSdkVersion: () => import_chunk_YCLY27QH.parseSdkVersion,
46
+ sameLookupResult: () => import_chunk_YCLY27QH.sameLookupResult,
47
+ traverseAst: () => import_chunk_YCLY27QH.traverseAst,
48
+ variableDeclarationName: () => import_chunk_YCLY27QH.variableDeclarationName,
49
+ visitReferences: () => import_chunk_YCLY27QH.visitReferences,
50
+ visit_resources: () => import_chunk_YCLY27QH.visit_resources,
51
+ visitorNode: () => import_chunk_YCLY27QH.visitorNode
52
52
  });
53
53
  module.exports = __toCommonJS(api_exports);
54
- var import_chunk_VVIZ2ADY = require("./chunk-VVIZ2ADY.cjs");
54
+ var import_chunk_YCLY27QH = require("./chunk-YCLY27QH.cjs");
55
55
  var import_chunk_IAUHYWVN = require("./chunk-IAUHYWVN.cjs");
56
- (0, import_chunk_VVIZ2ADY.init_api)();
56
+ (0, import_chunk_YCLY27QH.init_api)();
57
57
  // Annotate the CommonJS export names for ESM import in node:
58
58
  0 && (module.exports = {
59
59
  checkCompilerVersion,