@markw65/monkeyc-optimizer 1.1.65 → 1.1.67
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/CHANGELOG.md +12 -0
- package/build/api.cjs +35 -35
- package/build/{chunk-MDTDXRQB.cjs → chunk-2OEXWI65.cjs} +479 -392
- package/build/{chunk-67LU4GPQ.cjs → chunk-OASVKTK5.cjs} +7 -4
- package/build/optimizer.cjs +21 -19
- package/build/sdk-util.cjs +15 -15
- package/build/src/build-config.d.ts +3 -0
- package/build/src/mc-rewrite.d.ts +1 -1
- package/build/src/optimizer.d.ts +6 -6
- package/build/src/pragma-checker.d.ts +2 -2
- package/build/src/type-flow/type-flow-util.d.ts +1 -1
- package/build/src/util.d.ts +1 -1
- package/build/util.cjs +26 -26
- package/build/worker-thread.cjs +4 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the "monkeyc-optimizer" package will be documented in this file.
|
|
4
4
|
|
|
5
|
+
### 1.1.67
|
|
6
|
+
|
|
7
|
+
- Use the type of a variable, when known, if its the base of a lookup (fixes #35)
|
|
8
|
+
- Add strictTypeCheck option
|
|
9
|
+
- Make getProjectAnalysis more forgiving when there are syntax errors (fixes #17)
|
|
10
|
+
|
|
11
|
+
### 1.1.66
|
|
12
|
+
|
|
13
|
+
- Match Garmin's handling of add and addAll for tuples (fixes #38)
|
|
14
|
+
- Add preSkipLiterals option (workaround for part of #38)
|
|
15
|
+
- Remove casts when an enum is replaced by a typedef (Fixes #44)
|
|
16
|
+
|
|
5
17
|
### 1.1.65
|
|
6
18
|
|
|
7
19
|
- Fix lookup scopes for tuples and object literals (fixes #39)
|
package/build/api.cjs
CHANGED
|
@@ -18,47 +18,47 @@ 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: () =>
|
|
22
|
-
collectNamespaces: () =>
|
|
23
|
-
createDocumentationMap: () =>
|
|
24
|
-
diagnostic: () =>
|
|
25
|
-
diagnosticHelper: () =>
|
|
26
|
-
findNamesInScope: () =>
|
|
27
|
-
findUsingForNode: () =>
|
|
28
|
-
formatAst: () =>
|
|
29
|
-
formatAstLongLines: () =>
|
|
30
|
-
formatScopedName: () =>
|
|
31
|
-
getApiFunctionInfo: () =>
|
|
32
|
-
getApiMapping: () =>
|
|
33
|
-
getSuperClasses: () =>
|
|
21
|
+
checkCompilerVersion: () => import_chunk_2OEXWI65.checkCompilerVersion,
|
|
22
|
+
collectNamespaces: () => import_chunk_2OEXWI65.collectNamespaces,
|
|
23
|
+
createDocumentationMap: () => import_chunk_2OEXWI65.createDocumentationMap,
|
|
24
|
+
diagnostic: () => import_chunk_2OEXWI65.diagnostic,
|
|
25
|
+
diagnosticHelper: () => import_chunk_2OEXWI65.diagnosticHelper,
|
|
26
|
+
findNamesInScope: () => import_chunk_2OEXWI65.findNamesInScope,
|
|
27
|
+
findUsingForNode: () => import_chunk_2OEXWI65.findUsingForNode,
|
|
28
|
+
formatAst: () => import_chunk_2OEXWI65.formatAst,
|
|
29
|
+
formatAstLongLines: () => import_chunk_2OEXWI65.formatAstLongLines,
|
|
30
|
+
formatScopedName: () => import_chunk_2OEXWI65.formatScopedName,
|
|
31
|
+
getApiFunctionInfo: () => import_chunk_2OEXWI65.getApiFunctionInfo,
|
|
32
|
+
getApiMapping: () => import_chunk_2OEXWI65.getApiMapping,
|
|
33
|
+
getSuperClasses: () => import_chunk_2OEXWI65.getSuperClasses,
|
|
34
34
|
hasProperty: () => import_chunk_MBTLUWXR.hasProperty,
|
|
35
|
-
isClassVariable: () =>
|
|
36
|
-
isLocal: () =>
|
|
37
|
-
isLookupCandidate: () =>
|
|
38
|
-
isStateNode: () =>
|
|
39
|
-
lookupByFullName: () =>
|
|
40
|
-
lookupNext: () =>
|
|
41
|
-
lookupResultContains: () =>
|
|
42
|
-
lookupWithType: () =>
|
|
43
|
-
makeToyboxLink: () =>
|
|
44
|
-
mapVarDeclsByType: () =>
|
|
45
|
-
markInvokeClassMethod: () =>
|
|
46
|
-
parseSdkVersion: () =>
|
|
47
|
-
resolveDiagnostics: () =>
|
|
48
|
-
resolveDiagnosticsMap: () =>
|
|
49
|
-
sameLookupResult: () =>
|
|
35
|
+
isClassVariable: () => import_chunk_2OEXWI65.isClassVariable,
|
|
36
|
+
isLocal: () => import_chunk_2OEXWI65.isLocal,
|
|
37
|
+
isLookupCandidate: () => import_chunk_2OEXWI65.isLookupCandidate,
|
|
38
|
+
isStateNode: () => import_chunk_2OEXWI65.isStateNode,
|
|
39
|
+
lookupByFullName: () => import_chunk_2OEXWI65.lookupByFullName,
|
|
40
|
+
lookupNext: () => import_chunk_2OEXWI65.lookupNext,
|
|
41
|
+
lookupResultContains: () => import_chunk_2OEXWI65.lookupResultContains,
|
|
42
|
+
lookupWithType: () => import_chunk_2OEXWI65.lookupWithType,
|
|
43
|
+
makeToyboxLink: () => import_chunk_2OEXWI65.makeToyboxLink,
|
|
44
|
+
mapVarDeclsByType: () => import_chunk_2OEXWI65.mapVarDeclsByType,
|
|
45
|
+
markInvokeClassMethod: () => import_chunk_2OEXWI65.markInvokeClassMethod,
|
|
46
|
+
parseSdkVersion: () => import_chunk_2OEXWI65.parseSdkVersion,
|
|
47
|
+
resolveDiagnostics: () => import_chunk_2OEXWI65.resolveDiagnostics,
|
|
48
|
+
resolveDiagnosticsMap: () => import_chunk_2OEXWI65.resolveDiagnosticsMap,
|
|
49
|
+
sameLookupResult: () => import_chunk_2OEXWI65.sameLookupResult,
|
|
50
50
|
traverseAst: () => import_chunk_MBTLUWXR.traverseAst,
|
|
51
|
-
variableDeclarationName: () =>
|
|
52
|
-
visitReferences: () =>
|
|
53
|
-
visit_resources: () =>
|
|
54
|
-
visitorNode: () =>
|
|
51
|
+
variableDeclarationName: () => import_chunk_2OEXWI65.variableDeclarationName,
|
|
52
|
+
visitReferences: () => import_chunk_2OEXWI65.visitReferences,
|
|
53
|
+
visit_resources: () => import_chunk_2OEXWI65.visit_resources,
|
|
54
|
+
visitorNode: () => import_chunk_2OEXWI65.visitorNode
|
|
55
55
|
});
|
|
56
56
|
module.exports = __toCommonJS(api_exports);
|
|
57
|
-
var
|
|
58
|
-
var
|
|
57
|
+
var import_chunk_2OEXWI65 = require("./chunk-2OEXWI65.cjs");
|
|
58
|
+
var import_chunk_OASVKTK5 = require("./chunk-OASVKTK5.cjs");
|
|
59
59
|
var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
|
|
60
60
|
var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
|
|
61
|
-
(0,
|
|
61
|
+
(0, import_chunk_2OEXWI65.init_api)();
|
|
62
62
|
// Annotate the CommonJS export names for ESM import in node:
|
|
63
63
|
0 && (module.exports = {
|
|
64
64
|
checkCompilerVersion,
|