@markw65/monkeyc-optimizer 1.1.83 → 1.1.85

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,21 @@
2
2
 
3
3
  All notable changes to the "monkeyc-optimizer" package will be documented in this file.
4
4
 
5
+ ### 1.1.85
6
+
7
+ - Update to [@markw65/prettier-plugin-monkeyc@1.0.60](https://github.com/markw65/prettier-plugin-monkeyc/blob/main/CHANGELOG.md#1060)
8
+ - Fixes a crash introduced by stashing ArrayExpression/ObjectExpression types on nodes.
9
+ - Preserve casts on ArrayExpression and ObjectExpression (Fixes #30)
10
+ - Identify more 'obviously safe' reference expressions
11
+
12
+ ### 1.1.84
13
+
14
+ - Refactor `extraReferenceTypeChecks` and take account of type constraints (fixes #56)
15
+ - Clear const and enum caches when an enum is resolved (Fixes #59)
16
+ - Apply `extraReferenceTypeChecks` to assignments and return value
17
+ - Fix description of extraReferenceTypeChecks in settings (shows a named link, rather than the text of the link)
18
+ - Convert enum expressions as array indices to their underlying type (Fixes #55)
19
+
5
20
  ### 1.1.83
6
21
 
7
22
  - Rewrite enums to handle arbitrary unions (Fixes #48)
package/build/api.cjs CHANGED
@@ -18,54 +18,56 @@ 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_UNU55JJ3.checkCompilerVersion,
22
- collectNamespaces: () => import_chunk_UNU55JJ3.collectNamespaces,
23
- createDocumentationMap: () => import_chunk_UNU55JJ3.createDocumentationMap,
24
- declKey: () => import_chunk_UNU55JJ3.declKey,
25
- diagnostic: () => import_chunk_UNU55JJ3.diagnostic,
26
- diagnosticHelper: () => import_chunk_UNU55JJ3.diagnosticHelper,
27
- findNamesInScope: () => import_chunk_UNU55JJ3.findNamesInScope,
28
- findUsingForNode: () => import_chunk_UNU55JJ3.findUsingForNode,
29
- formatAst: () => import_chunk_UNU55JJ3.formatAst,
30
- formatAstLongLines: () => import_chunk_UNU55JJ3.formatAstLongLines,
31
- formatScopedName: () => import_chunk_UNU55JJ3.formatScopedName,
32
- getApiFunctionInfo: () => import_chunk_UNU55JJ3.getApiFunctionInfo,
33
- getApiMapping: () => import_chunk_UNU55JJ3.getApiMapping,
34
- getSuperClasses: () => import_chunk_UNU55JJ3.getSuperClasses,
35
- handleImportUsing: () => import_chunk_UNU55JJ3.handleImportUsing,
21
+ checkCompilerVersion: () => import_chunk_OFOOTSQM.checkCompilerVersion,
22
+ clearDiagnostics: () => import_chunk_OFOOTSQM.clearDiagnostics,
23
+ collectNamespaces: () => import_chunk_OFOOTSQM.collectNamespaces,
24
+ createDocumentationMap: () => import_chunk_OFOOTSQM.createDocumentationMap,
25
+ declKey: () => import_chunk_OFOOTSQM.declKey,
26
+ diagnostic: () => import_chunk_OFOOTSQM.diagnostic,
27
+ diagnosticHelper: () => import_chunk_OFOOTSQM.diagnosticHelper,
28
+ findNamesInScope: () => import_chunk_OFOOTSQM.findNamesInScope,
29
+ findUsingForNode: () => import_chunk_OFOOTSQM.findUsingForNode,
30
+ formatAst: () => import_chunk_OFOOTSQM.formatAst,
31
+ formatAstLongLines: () => import_chunk_OFOOTSQM.formatAstLongLines,
32
+ formatScopedName: () => import_chunk_OFOOTSQM.formatScopedName,
33
+ getApiFunctionInfo: () => import_chunk_OFOOTSQM.getApiFunctionInfo,
34
+ getApiMapping: () => import_chunk_OFOOTSQM.getApiMapping,
35
+ getSuperClasses: () => import_chunk_OFOOTSQM.getSuperClasses,
36
+ handleImportUsing: () => import_chunk_OFOOTSQM.handleImportUsing,
36
37
  hasProperty: () => import_chunk_JDC43A3I.hasProperty,
37
- isClassVariable: () => import_chunk_UNU55JJ3.isClassVariable,
38
- isLocal: () => import_chunk_UNU55JJ3.isLocal,
39
- isLookupCandidate: () => import_chunk_UNU55JJ3.isLookupCandidate,
40
- isStateNode: () => import_chunk_UNU55JJ3.isStateNode,
41
- lookupByFullName: () => import_chunk_UNU55JJ3.lookupByFullName,
42
- lookupNext: () => import_chunk_UNU55JJ3.lookupNext,
43
- lookupResultContains: () => import_chunk_UNU55JJ3.lookupResultContains,
44
- lookupWithType: () => import_chunk_UNU55JJ3.lookupWithType,
45
- makeToyboxLink: () => import_chunk_UNU55JJ3.makeToyboxLink,
46
- mapVarDeclsByType: () => import_chunk_UNU55JJ3.mapVarDeclsByType,
47
- markInvokeClassMethod: () => import_chunk_UNU55JJ3.markInvokeClassMethod,
48
- parseSdkVersion: () => import_chunk_UNU55JJ3.parseSdkVersion,
49
- popRootNode: () => import_chunk_UNU55JJ3.popRootNode,
50
- pushRootNode: () => import_chunk_UNU55JJ3.pushRootNode,
51
- resolveDiagnostics: () => import_chunk_UNU55JJ3.resolveDiagnostics,
52
- resolveDiagnosticsMap: () => import_chunk_UNU55JJ3.resolveDiagnosticsMap,
53
- sameLookupResult: () => import_chunk_UNU55JJ3.sameLookupResult,
38
+ isClassVariable: () => import_chunk_OFOOTSQM.isClassVariable,
39
+ isLocal: () => import_chunk_OFOOTSQM.isLocal,
40
+ isLookupCandidate: () => import_chunk_OFOOTSQM.isLookupCandidate,
41
+ isStateNode: () => import_chunk_OFOOTSQM.isStateNode,
42
+ lookupByFullName: () => import_chunk_OFOOTSQM.lookupByFullName,
43
+ lookupNext: () => import_chunk_OFOOTSQM.lookupNext,
44
+ lookupResultContains: () => import_chunk_OFOOTSQM.lookupResultContains,
45
+ lookupWithType: () => import_chunk_OFOOTSQM.lookupWithType,
46
+ makeToyboxLink: () => import_chunk_OFOOTSQM.makeToyboxLink,
47
+ mapVarDeclsByType: () => import_chunk_OFOOTSQM.mapVarDeclsByType,
48
+ markInvokeClassMethod: () => import_chunk_OFOOTSQM.markInvokeClassMethod,
49
+ parseSdkVersion: () => import_chunk_OFOOTSQM.parseSdkVersion,
50
+ popRootNode: () => import_chunk_OFOOTSQM.popRootNode,
51
+ pushRootNode: () => import_chunk_OFOOTSQM.pushRootNode,
52
+ resolveDiagnostics: () => import_chunk_OFOOTSQM.resolveDiagnostics,
53
+ resolveDiagnosticsMap: () => import_chunk_OFOOTSQM.resolveDiagnosticsMap,
54
+ sameLookupResult: () => import_chunk_OFOOTSQM.sameLookupResult,
54
55
  traverseAst: () => import_chunk_JDC43A3I.traverseAst,
55
- variableDeclarationName: () => import_chunk_UNU55JJ3.variableDeclarationName,
56
- visitReferences: () => import_chunk_UNU55JJ3.visitReferences,
57
- visit_resources: () => import_chunk_UNU55JJ3.visit_resources,
58
- visitorNode: () => import_chunk_UNU55JJ3.visitorNode
56
+ variableDeclarationName: () => import_chunk_OFOOTSQM.variableDeclarationName,
57
+ visitReferences: () => import_chunk_OFOOTSQM.visitReferences,
58
+ visit_resources: () => import_chunk_OFOOTSQM.visit_resources,
59
+ visitorNode: () => import_chunk_OFOOTSQM.visitorNode
59
60
  });
60
61
  module.exports = __toCommonJS(api_exports);
61
- var import_chunk_UNU55JJ3 = require("./chunk-UNU55JJ3.cjs");
62
+ var import_chunk_OFOOTSQM = require("./chunk-OFOOTSQM.cjs");
62
63
  var import_chunk_X7QCZR3F = require("./chunk-X7QCZR3F.cjs");
63
64
  var import_chunk_JDC43A3I = require("./chunk-JDC43A3I.cjs");
64
65
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
65
- (0, import_chunk_UNU55JJ3.init_api)();
66
+ (0, import_chunk_OFOOTSQM.init_api)();
66
67
  // Annotate the CommonJS export names for ESM import in node:
67
68
  0 && (module.exports = {
68
69
  checkCompilerVersion,
70
+ clearDiagnostics,
69
71
  collectNamespaces,
70
72
  createDocumentationMap,
71
73
  declKey,