@markw65/monkeyc-optimizer 1.1.48 → 1.1.50
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 +13 -0
- package/bin/cft-font-info.js +0 -0
- package/build/api.cjs +34 -34
- package/build/{chunk-NB4IMZ6R.cjs → chunk-6KP65YOB.cjs} +424 -212
- package/build/optimizer.cjs +16 -16
- package/build/sdk-util.cjs +14 -14
- package/build/src/inliner.d.ts +1 -0
- package/build/worker-thread.cjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the "monkeyc-optimizer" package will be documented in this file.
|
|
4
4
|
|
|
5
|
+
### 1.1.50
|
|
6
|
+
|
|
7
|
+
- Add a diagnostic when an inline function doesn't get removed
|
|
8
|
+
- No diagnostics for String + Symbol, or String + Method, or String + Object, or String + Enum (Fixes #9)
|
|
9
|
+
- Fix a bug in minimizeLocals (Fixes #15)
|
|
10
|
+
|
|
11
|
+
### 1.1.49
|
|
12
|
+
|
|
13
|
+
- Fix a bug in cleanupUnusedVars that could cause the wrong variable to be removed
|
|
14
|
+
- Allow variables mixed with literals in jungle files
|
|
15
|
+
- Allow Char as operands to relational operators
|
|
16
|
+
- Include Null in dictionary return type
|
|
17
|
+
|
|
5
18
|
### 1.1.48
|
|
6
19
|
|
|
7
20
|
- Adds a `--char-info-as-array` option to `cft-font-info`. When this option is set, charInfo is an array of arrays, rather than an array of objects, and there is a (single) `charInfoNames` array, giving the names of the elements of the charInfo sub-arrays. This is to save space - the charInfo array only contains the data, rather than (potentially) thousands of copies of the field names.
|
package/bin/cft-font-info.js
CHANGED
|
File without changes
|
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_6KP65YOB.checkCompilerVersion,
|
|
22
|
+
collectNamespaces: () => import_chunk_6KP65YOB.collectNamespaces,
|
|
23
|
+
createDocumentationMap: () => import_chunk_6KP65YOB.createDocumentationMap,
|
|
24
|
+
diagnostic: () => import_chunk_6KP65YOB.diagnostic,
|
|
25
|
+
diagnosticHelper: () => import_chunk_6KP65YOB.diagnosticHelper,
|
|
26
|
+
findNamesInScope: () => import_chunk_6KP65YOB.findNamesInScope,
|
|
27
|
+
findUsingForNode: () => import_chunk_6KP65YOB.findUsingForNode,
|
|
28
|
+
formatAst: () => import_chunk_6KP65YOB.formatAst,
|
|
29
|
+
formatAstLongLines: () => import_chunk_6KP65YOB.formatAstLongLines,
|
|
30
|
+
formatScopedName: () => import_chunk_6KP65YOB.formatScopedName,
|
|
31
|
+
getApiFunctionInfo: () => import_chunk_6KP65YOB.getApiFunctionInfo,
|
|
32
|
+
getApiMapping: () => import_chunk_6KP65YOB.getApiMapping,
|
|
33
|
+
getSuperClasses: () => import_chunk_6KP65YOB.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_6KP65YOB.isClassVariable,
|
|
36
|
+
isLocal: () => import_chunk_6KP65YOB.isLocal,
|
|
37
|
+
isLookupCandidate: () => import_chunk_6KP65YOB.isLookupCandidate,
|
|
38
|
+
isStateNode: () => import_chunk_6KP65YOB.isStateNode,
|
|
39
|
+
lookupByFullName: () => import_chunk_6KP65YOB.lookupByFullName,
|
|
40
|
+
lookupNext: () => import_chunk_6KP65YOB.lookupNext,
|
|
41
|
+
lookupResultContains: () => import_chunk_6KP65YOB.lookupResultContains,
|
|
42
|
+
lookupWithType: () => import_chunk_6KP65YOB.lookupWithType,
|
|
43
|
+
makeToyboxLink: () => import_chunk_6KP65YOB.makeToyboxLink,
|
|
44
|
+
mapVarDeclsByType: () => import_chunk_6KP65YOB.mapVarDeclsByType,
|
|
45
|
+
markInvokeClassMethod: () => import_chunk_6KP65YOB.markInvokeClassMethod,
|
|
46
|
+
parseSdkVersion: () => import_chunk_6KP65YOB.parseSdkVersion,
|
|
47
|
+
resolveDiagnostics: () => import_chunk_6KP65YOB.resolveDiagnostics,
|
|
48
|
+
resolveDiagnosticsMap: () => import_chunk_6KP65YOB.resolveDiagnosticsMap,
|
|
49
|
+
sameLookupResult: () => import_chunk_6KP65YOB.sameLookupResult,
|
|
50
50
|
traverseAst: () => import_chunk_MBTLUWXR.traverseAst,
|
|
51
|
-
variableDeclarationName: () =>
|
|
52
|
-
visitReferences: () =>
|
|
53
|
-
visit_resources: () =>
|
|
54
|
-
visitorNode: () =>
|
|
51
|
+
variableDeclarationName: () => import_chunk_6KP65YOB.variableDeclarationName,
|
|
52
|
+
visitReferences: () => import_chunk_6KP65YOB.visitReferences,
|
|
53
|
+
visit_resources: () => import_chunk_6KP65YOB.visit_resources,
|
|
54
|
+
visitorNode: () => import_chunk_6KP65YOB.visitorNode
|
|
55
55
|
});
|
|
56
56
|
module.exports = __toCommonJS(api_exports);
|
|
57
|
-
var
|
|
57
|
+
var import_chunk_6KP65YOB = require("./chunk-6KP65YOB.cjs");
|
|
58
58
|
var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.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_6KP65YOB.init_api)();
|
|
62
62
|
// Annotate the CommonJS export names for ESM import in node:
|
|
63
63
|
0 && (module.exports = {
|
|
64
64
|
checkCompilerVersion,
|