@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 +26 -0
- package/build/api.cjs +34 -32
- package/build/{chunk-FD2NCZK4.cjs → chunk-E67DP34P.cjs} +2742 -3119
- package/build/{chunk-PVBIKZYZ.cjs → chunk-SG7ODKRM.cjs} +40 -11
- package/build/optimizer.cjs +18 -20
- package/build/sdk-util.cjs +15 -15
- package/build/src/api.d.ts +8 -7
- package/build/src/data-flow.d.ts +1 -1
- package/build/src/logger.d.ts +2 -1
- package/build/src/mc-rewrite.d.ts +2 -2
- package/build/src/optimizer-types.d.ts +4 -1
- package/build/src/optimizer.d.ts +5 -11
- package/build/src/pragma-checker.d.ts +2 -2
- package/build/src/pre.d.ts +1 -1
- package/build/src/type-flow/dead-store.d.ts +1 -1
- package/build/src/type-flow/interp-binary.d.ts +10 -3
- package/build/src/type-flow/interp.d.ts +4 -1
- package/build/src/type-flow/type-flow-util.d.ts +2 -2
- package/build/src/type-flow/types.d.ts +10 -1
- package/build/src/util.d.ts +6 -1
- package/build/src/worker-task.d.ts +3 -3
- package/build/util.cjs +28 -24
- package/build/worker-thread.cjs +4 -4
- package/package.json +3 -2
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: () =>
|
|
22
|
-
collectNamespaces: () =>
|
|
23
|
-
createDocumentationMap: () =>
|
|
24
|
-
diagnostic: () =>
|
|
25
|
-
diagnosticHelper: () =>
|
|
26
|
-
findNamesInScope: () =>
|
|
27
|
-
findUsingForNode: () =>
|
|
28
|
-
formatAst: () =>
|
|
29
|
-
formatAstLongLines: () =>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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: () =>
|
|
35
|
-
isLocal: () =>
|
|
36
|
-
isLookupCandidate: () =>
|
|
37
|
-
isStateNode: () =>
|
|
38
|
-
lookupByFullName: () =>
|
|
39
|
-
lookupNext: () =>
|
|
40
|
-
lookupResultContains: () =>
|
|
41
|
-
lookupWithType: () =>
|
|
42
|
-
makeToyboxLink: () =>
|
|
43
|
-
mapVarDeclsByType: () =>
|
|
44
|
-
markInvokeClassMethod: () =>
|
|
45
|
-
parseSdkVersion: () =>
|
|
46
|
-
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: () =>
|
|
49
|
-
visitReferences: () =>
|
|
50
|
-
visit_resources: () =>
|
|
51
|
-
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
|
|
55
|
-
var
|
|
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,
|
|
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,
|