@markw65/monkeyc-optimizer 1.1.36 → 1.1.37

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,32 @@
2
2
 
3
3
  All notable changes to the "monkeyc-optimizer" package will be documented in this file.
4
4
 
5
+ ### 1.1.37
6
+
7
+ - Update to [@markw65/prettier-plugin-monkeyc@1.0.53](https://github.com/markw65/prettier-plugin-monkeyc/blob/main/CHANGELOG.md#1053)
8
+
9
+ - Features
10
+
11
+ - Generate diagnostics for unary and binary operators with incorrect arguments
12
+ - Properly handle object-literal types (eg `{ :foo as String, :bar as Number }`).
13
+ - When converting Graphics.ColorValue to a number, format the number as hex.
14
+
15
+ - Tests
16
+
17
+ - Update tests for sdk 6.3.0
18
+ - Add more test coverage for binary operators and their expected types.
19
+
20
+ - Build
21
+
22
+ - Use [@markw65/peggy-optimizer](https://github.com/markw65/peggy/tree/peggy-optimizer/optimizer-plugin) to optimize the jungle and resource parsers
23
+ - Make things work properly with prettier-3.x, but don't actually upgrade yet
24
+
25
+ - Bug fixes
26
+
27
+ - Fix a bug with the result type of A & B when A could be Boolean
28
+ - Always include null for the types of values extracted from `Dictionary`s
29
+ - When inferring the type of a `Dictionary`, don't include values.
30
+
5
31
  ### 1.1.36
6
32
 
7
33
  - Update to [@markw65/prettier-plugin-monkeyc@1.0.52](https://github.com/markw65/prettier-plugin-monkeyc/blob/main/CHANGELOG.md#1052)
package/build/api.cjs CHANGED
@@ -18,44 +18,45 @@ 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_FD2NCZK4.checkCompilerVersion,
22
- collectNamespaces: () => import_chunk_FD2NCZK4.collectNamespaces,
23
- createDocumentationMap: () => import_chunk_FD2NCZK4.createDocumentationMap,
24
- diagnostic: () => import_chunk_FD2NCZK4.diagnostic,
25
- diagnosticHelper: () => import_chunk_FD2NCZK4.diagnosticHelper,
26
- findNamesInScope: () => import_chunk_FD2NCZK4.findNamesInScope,
27
- findUsingForNode: () => import_chunk_FD2NCZK4.findUsingForNode,
28
- formatAst: () => import_chunk_FD2NCZK4.formatAst,
29
- formatAstLongLines: () => import_chunk_FD2NCZK4.formatAstLongLines,
30
- getApiFunctionInfo: () => import_chunk_FD2NCZK4.getApiFunctionInfo,
31
- getApiMapping: () => import_chunk_FD2NCZK4.getApiMapping,
32
- getSuperClasses: () => import_chunk_FD2NCZK4.getSuperClasses,
21
+ checkCompilerVersion: () => import_chunk_E67DP34P.checkCompilerVersion,
22
+ collectNamespaces: () => import_chunk_E67DP34P.collectNamespaces,
23
+ createDocumentationMap: () => import_chunk_E67DP34P.createDocumentationMap,
24
+ diagnostic: () => import_chunk_E67DP34P.diagnostic,
25
+ diagnosticHelper: () => import_chunk_E67DP34P.diagnosticHelper,
26
+ findNamesInScope: () => import_chunk_E67DP34P.findNamesInScope,
27
+ findUsingForNode: () => import_chunk_E67DP34P.findUsingForNode,
28
+ formatAst: () => import_chunk_E67DP34P.formatAst,
29
+ formatAstLongLines: () => import_chunk_E67DP34P.formatAstLongLines,
30
+ formatScopedName: () => import_chunk_E67DP34P.formatScopedName,
31
+ getApiFunctionInfo: () => import_chunk_E67DP34P.getApiFunctionInfo,
32
+ getApiMapping: () => import_chunk_E67DP34P.getApiMapping,
33
+ getSuperClasses: () => import_chunk_E67DP34P.getSuperClasses,
33
34
  hasProperty: () => import_chunk_MBTLUWXR.hasProperty,
34
- isClassVariable: () => import_chunk_FD2NCZK4.isClassVariable,
35
- isLocal: () => import_chunk_FD2NCZK4.isLocal,
36
- isLookupCandidate: () => import_chunk_FD2NCZK4.isLookupCandidate,
37
- isStateNode: () => import_chunk_FD2NCZK4.isStateNode,
38
- lookupByFullName: () => import_chunk_FD2NCZK4.lookupByFullName,
39
- lookupNext: () => import_chunk_FD2NCZK4.lookupNext,
40
- lookupResultContains: () => import_chunk_FD2NCZK4.lookupResultContains,
41
- lookupWithType: () => import_chunk_FD2NCZK4.lookupWithType,
42
- makeToyboxLink: () => import_chunk_FD2NCZK4.makeToyboxLink,
43
- mapVarDeclsByType: () => import_chunk_FD2NCZK4.mapVarDeclsByType,
44
- markInvokeClassMethod: () => import_chunk_FD2NCZK4.markInvokeClassMethod,
45
- parseSdkVersion: () => import_chunk_FD2NCZK4.parseSdkVersion,
46
- sameLookupResult: () => import_chunk_FD2NCZK4.sameLookupResult,
35
+ isClassVariable: () => import_chunk_E67DP34P.isClassVariable,
36
+ isLocal: () => import_chunk_E67DP34P.isLocal,
37
+ isLookupCandidate: () => import_chunk_E67DP34P.isLookupCandidate,
38
+ isStateNode: () => import_chunk_E67DP34P.isStateNode,
39
+ lookupByFullName: () => import_chunk_E67DP34P.lookupByFullName,
40
+ lookupNext: () => import_chunk_E67DP34P.lookupNext,
41
+ lookupResultContains: () => import_chunk_E67DP34P.lookupResultContains,
42
+ lookupWithType: () => import_chunk_E67DP34P.lookupWithType,
43
+ makeToyboxLink: () => import_chunk_E67DP34P.makeToyboxLink,
44
+ mapVarDeclsByType: () => import_chunk_E67DP34P.mapVarDeclsByType,
45
+ markInvokeClassMethod: () => import_chunk_E67DP34P.markInvokeClassMethod,
46
+ parseSdkVersion: () => import_chunk_E67DP34P.parseSdkVersion,
47
+ sameLookupResult: () => import_chunk_E67DP34P.sameLookupResult,
47
48
  traverseAst: () => import_chunk_MBTLUWXR.traverseAst,
48
- variableDeclarationName: () => import_chunk_FD2NCZK4.variableDeclarationName,
49
- visitReferences: () => import_chunk_FD2NCZK4.visitReferences,
50
- visit_resources: () => import_chunk_FD2NCZK4.visit_resources,
51
- visitorNode: () => import_chunk_FD2NCZK4.visitorNode
49
+ variableDeclarationName: () => import_chunk_E67DP34P.variableDeclarationName,
50
+ visitReferences: () => import_chunk_E67DP34P.visitReferences,
51
+ visit_resources: () => import_chunk_E67DP34P.visit_resources,
52
+ visitorNode: () => import_chunk_E67DP34P.visitorNode
52
53
  });
53
54
  module.exports = __toCommonJS(api_exports);
54
- var import_chunk_FD2NCZK4 = require("./chunk-FD2NCZK4.cjs");
55
- var import_chunk_PVBIKZYZ = require("./chunk-PVBIKZYZ.cjs");
55
+ var import_chunk_E67DP34P = require("./chunk-E67DP34P.cjs");
56
+ var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
56
57
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
57
58
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
58
- (0, import_chunk_FD2NCZK4.init_api)();
59
+ (0, import_chunk_E67DP34P.init_api)();
59
60
  // Annotate the CommonJS export names for ESM import in node:
60
61
  0 && (module.exports = {
61
62
  checkCompilerVersion,
@@ -67,6 +68,7 @@ var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
67
68
  findUsingForNode,
68
69
  formatAst,
69
70
  formatAstLongLines,
71
+ formatScopedName,
70
72
  getApiFunctionInfo,
71
73
  getApiMapping,
72
74
  getSuperClasses,