@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 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.
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: () => import_chunk_NB4IMZ6R.checkCompilerVersion,
22
- collectNamespaces: () => import_chunk_NB4IMZ6R.collectNamespaces,
23
- createDocumentationMap: () => import_chunk_NB4IMZ6R.createDocumentationMap,
24
- diagnostic: () => import_chunk_NB4IMZ6R.diagnostic,
25
- diagnosticHelper: () => import_chunk_NB4IMZ6R.diagnosticHelper,
26
- findNamesInScope: () => import_chunk_NB4IMZ6R.findNamesInScope,
27
- findUsingForNode: () => import_chunk_NB4IMZ6R.findUsingForNode,
28
- formatAst: () => import_chunk_NB4IMZ6R.formatAst,
29
- formatAstLongLines: () => import_chunk_NB4IMZ6R.formatAstLongLines,
30
- formatScopedName: () => import_chunk_NB4IMZ6R.formatScopedName,
31
- getApiFunctionInfo: () => import_chunk_NB4IMZ6R.getApiFunctionInfo,
32
- getApiMapping: () => import_chunk_NB4IMZ6R.getApiMapping,
33
- getSuperClasses: () => import_chunk_NB4IMZ6R.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: () => import_chunk_NB4IMZ6R.isClassVariable,
36
- isLocal: () => import_chunk_NB4IMZ6R.isLocal,
37
- isLookupCandidate: () => import_chunk_NB4IMZ6R.isLookupCandidate,
38
- isStateNode: () => import_chunk_NB4IMZ6R.isStateNode,
39
- lookupByFullName: () => import_chunk_NB4IMZ6R.lookupByFullName,
40
- lookupNext: () => import_chunk_NB4IMZ6R.lookupNext,
41
- lookupResultContains: () => import_chunk_NB4IMZ6R.lookupResultContains,
42
- lookupWithType: () => import_chunk_NB4IMZ6R.lookupWithType,
43
- makeToyboxLink: () => import_chunk_NB4IMZ6R.makeToyboxLink,
44
- mapVarDeclsByType: () => import_chunk_NB4IMZ6R.mapVarDeclsByType,
45
- markInvokeClassMethod: () => import_chunk_NB4IMZ6R.markInvokeClassMethod,
46
- parseSdkVersion: () => import_chunk_NB4IMZ6R.parseSdkVersion,
47
- resolveDiagnostics: () => import_chunk_NB4IMZ6R.resolveDiagnostics,
48
- resolveDiagnosticsMap: () => import_chunk_NB4IMZ6R.resolveDiagnosticsMap,
49
- sameLookupResult: () => import_chunk_NB4IMZ6R.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: () => import_chunk_NB4IMZ6R.variableDeclarationName,
52
- visitReferences: () => import_chunk_NB4IMZ6R.visitReferences,
53
- visit_resources: () => import_chunk_NB4IMZ6R.visit_resources,
54
- visitorNode: () => import_chunk_NB4IMZ6R.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 import_chunk_NB4IMZ6R = require("./chunk-NB4IMZ6R.cjs");
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, import_chunk_NB4IMZ6R.init_api)();
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,