@markw65/monkeyc-optimizer 1.1.66 → 1.1.68
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 +16 -1
- package/build/api.cjs +35 -35
- package/build/{chunk-UDJNFXSX.cjs → chunk-NGCEDNHJ.cjs} +477 -369
- package/build/{chunk-67LU4GPQ.cjs → chunk-OASVKTK5.cjs} +7 -4
- package/build/optimizer.cjs +21 -19
- package/build/sdk-util.cjs +15 -15
- package/build/src/build-config.d.ts +2 -0
- package/build/src/mc-rewrite.d.ts +1 -1
- package/build/src/optimizer.d.ts +7 -7
- package/build/src/pragma-checker.d.ts +2 -2
- package/build/src/type-flow/type-flow-util.d.ts +1 -1
- package/build/src/util.d.ts +1 -1
- package/build/src/worker-task.d.ts +1 -0
- package/build/util.cjs +26 -26
- package/build/worker-thread.cjs +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the "monkeyc-optimizer" package will be documented in this file.
|
|
4
4
|
|
|
5
|
-
### 1.1.
|
|
5
|
+
### 1.1.68
|
|
6
|
+
|
|
7
|
+
- Fix a race between removing and creating outputPath that could potentially cause a build to fail
|
|
8
|
+
- Only ignore jungle paths that resolve to `prettierMonkeyC.outputPath` if the pattern is the default, `**.mc`
|
|
9
|
+
- Ignore jungle paths that resolve to `prettierMonkeyC.outputPath`, rather than `bin`.
|
|
10
|
+
- Prevent infinite recursion with cyclic Class graphs. Now gives sensible error messages, and doesn't crash
|
|
11
|
+
- Record barrel paths in build dependencies, so that rebuilding a barrel will cause a re-run of the live analysis
|
|
12
|
+
- Add the jungle as the source file for "unresolved barrel" errors. Lets you know which project caused the error.
|
|
13
|
+
|
|
14
|
+
### 1.1.67
|
|
15
|
+
|
|
16
|
+
- Use the type of a variable, when known, if its the base of a lookup (fixes #35)
|
|
17
|
+
- Add strictTypeCheck option
|
|
18
|
+
- Make getProjectAnalysis more forgiving when there are syntax errors (fixes #17)
|
|
19
|
+
|
|
20
|
+
### 1.1.66
|
|
6
21
|
|
|
7
22
|
- Match Garmin's handling of add and addAll for tuples (fixes #38)
|
|
8
23
|
- Add preSkipLiterals option (workaround for part of #38)
|
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_NGCEDNHJ.checkCompilerVersion,
|
|
22
|
+
collectNamespaces: () => import_chunk_NGCEDNHJ.collectNamespaces,
|
|
23
|
+
createDocumentationMap: () => import_chunk_NGCEDNHJ.createDocumentationMap,
|
|
24
|
+
diagnostic: () => import_chunk_NGCEDNHJ.diagnostic,
|
|
25
|
+
diagnosticHelper: () => import_chunk_NGCEDNHJ.diagnosticHelper,
|
|
26
|
+
findNamesInScope: () => import_chunk_NGCEDNHJ.findNamesInScope,
|
|
27
|
+
findUsingForNode: () => import_chunk_NGCEDNHJ.findUsingForNode,
|
|
28
|
+
formatAst: () => import_chunk_NGCEDNHJ.formatAst,
|
|
29
|
+
formatAstLongLines: () => import_chunk_NGCEDNHJ.formatAstLongLines,
|
|
30
|
+
formatScopedName: () => import_chunk_NGCEDNHJ.formatScopedName,
|
|
31
|
+
getApiFunctionInfo: () => import_chunk_NGCEDNHJ.getApiFunctionInfo,
|
|
32
|
+
getApiMapping: () => import_chunk_NGCEDNHJ.getApiMapping,
|
|
33
|
+
getSuperClasses: () => import_chunk_NGCEDNHJ.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_NGCEDNHJ.isClassVariable,
|
|
36
|
+
isLocal: () => import_chunk_NGCEDNHJ.isLocal,
|
|
37
|
+
isLookupCandidate: () => import_chunk_NGCEDNHJ.isLookupCandidate,
|
|
38
|
+
isStateNode: () => import_chunk_NGCEDNHJ.isStateNode,
|
|
39
|
+
lookupByFullName: () => import_chunk_NGCEDNHJ.lookupByFullName,
|
|
40
|
+
lookupNext: () => import_chunk_NGCEDNHJ.lookupNext,
|
|
41
|
+
lookupResultContains: () => import_chunk_NGCEDNHJ.lookupResultContains,
|
|
42
|
+
lookupWithType: () => import_chunk_NGCEDNHJ.lookupWithType,
|
|
43
|
+
makeToyboxLink: () => import_chunk_NGCEDNHJ.makeToyboxLink,
|
|
44
|
+
mapVarDeclsByType: () => import_chunk_NGCEDNHJ.mapVarDeclsByType,
|
|
45
|
+
markInvokeClassMethod: () => import_chunk_NGCEDNHJ.markInvokeClassMethod,
|
|
46
|
+
parseSdkVersion: () => import_chunk_NGCEDNHJ.parseSdkVersion,
|
|
47
|
+
resolveDiagnostics: () => import_chunk_NGCEDNHJ.resolveDiagnostics,
|
|
48
|
+
resolveDiagnosticsMap: () => import_chunk_NGCEDNHJ.resolveDiagnosticsMap,
|
|
49
|
+
sameLookupResult: () => import_chunk_NGCEDNHJ.sameLookupResult,
|
|
50
50
|
traverseAst: () => import_chunk_MBTLUWXR.traverseAst,
|
|
51
|
-
variableDeclarationName: () =>
|
|
52
|
-
visitReferences: () =>
|
|
53
|
-
visit_resources: () =>
|
|
54
|
-
visitorNode: () =>
|
|
51
|
+
variableDeclarationName: () => import_chunk_NGCEDNHJ.variableDeclarationName,
|
|
52
|
+
visitReferences: () => import_chunk_NGCEDNHJ.visitReferences,
|
|
53
|
+
visit_resources: () => import_chunk_NGCEDNHJ.visit_resources,
|
|
54
|
+
visitorNode: () => import_chunk_NGCEDNHJ.visitorNode
|
|
55
55
|
});
|
|
56
56
|
module.exports = __toCommonJS(api_exports);
|
|
57
|
-
var
|
|
58
|
-
var
|
|
57
|
+
var import_chunk_NGCEDNHJ = require("./chunk-NGCEDNHJ.cjs");
|
|
58
|
+
var import_chunk_OASVKTK5 = require("./chunk-OASVKTK5.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_NGCEDNHJ.init_api)();
|
|
62
62
|
// Annotate the CommonJS export names for ESM import in node:
|
|
63
63
|
0 && (module.exports = {
|
|
64
64
|
checkCompilerVersion,
|