@markw65/monkeyc-optimizer 1.1.88 → 1.1.90

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,15 @@
2
2
 
3
3
  All notable changes to the "monkeyc-optimizer" package will be documented in this file.
4
4
 
5
+ ### 1.1.90
6
+
7
+ - Fix a bug that could result in infinite recursion when computing the union or intersection of two types involving typedefs
8
+ - Fix a bug where the inferred type of `[ null ]` was tuple containing `Object?`.
9
+
10
+ ### 1.1.89
11
+
12
+ - Fix error determining whether or not to generate a SHA256 signature, so that things start working with sdk-8.2.2 again
13
+
5
14
  ### 1.1.88
6
15
 
7
16
  - Fix output of cft-font-info
File without changes
package/build/api.cjs CHANGED
@@ -18,52 +18,52 @@ 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_ROZUBUPR.checkCompilerVersion,
22
- clearDiagnostics: () => import_chunk_ROZUBUPR.clearDiagnostics,
23
- collectNamespaces: () => import_chunk_ROZUBUPR.collectNamespaces,
24
- createDocumentationMap: () => import_chunk_ROZUBUPR.createDocumentationMap,
25
- declKey: () => import_chunk_ROZUBUPR.declKey,
26
- diagnostic: () => import_chunk_ROZUBUPR.diagnostic,
27
- diagnosticHelper: () => import_chunk_ROZUBUPR.diagnosticHelper,
28
- findNamesInScope: () => import_chunk_ROZUBUPR.findNamesInScope,
29
- findUsingForNode: () => import_chunk_ROZUBUPR.findUsingForNode,
30
- formatAst: () => import_chunk_ROZUBUPR.formatAst,
31
- formatAstLongLines: () => import_chunk_ROZUBUPR.formatAstLongLines,
32
- formatScopedName: () => import_chunk_ROZUBUPR.formatScopedName,
33
- getApiFunctionInfo: () => import_chunk_ROZUBUPR.getApiFunctionInfo,
34
- getApiMapping: () => import_chunk_ROZUBUPR.getApiMapping,
35
- getSuperClasses: () => import_chunk_ROZUBUPR.getSuperClasses,
36
- handleImportUsing: () => import_chunk_ROZUBUPR.handleImportUsing,
37
- hasProperty: () => import_chunk_JDC43A3I.hasProperty,
38
- isClassVariable: () => import_chunk_ROZUBUPR.isClassVariable,
39
- isLocal: () => import_chunk_ROZUBUPR.isLocal,
40
- isLookupCandidate: () => import_chunk_ROZUBUPR.isLookupCandidate,
41
- isStateNode: () => import_chunk_ROZUBUPR.isStateNode,
42
- lookupByFullName: () => import_chunk_ROZUBUPR.lookupByFullName,
43
- lookupNext: () => import_chunk_ROZUBUPR.lookupNext,
44
- lookupResultContains: () => import_chunk_ROZUBUPR.lookupResultContains,
45
- lookupWithType: () => import_chunk_ROZUBUPR.lookupWithType,
46
- makeToyboxLink: () => import_chunk_ROZUBUPR.makeToyboxLink,
47
- mapVarDeclsByType: () => import_chunk_ROZUBUPR.mapVarDeclsByType,
48
- markInvokeClassMethod: () => import_chunk_ROZUBUPR.markInvokeClassMethod,
49
- parseSdkVersion: () => import_chunk_ROZUBUPR.parseSdkVersion,
50
- popRootNode: () => import_chunk_ROZUBUPR.popRootNode,
51
- pushRootNode: () => import_chunk_ROZUBUPR.pushRootNode,
52
- resolveDiagnostics: () => import_chunk_ROZUBUPR.resolveDiagnostics,
53
- resolveDiagnosticsMap: () => import_chunk_ROZUBUPR.resolveDiagnosticsMap,
54
- sameLookupResult: () => import_chunk_ROZUBUPR.sameLookupResult,
55
- traverseAst: () => import_chunk_JDC43A3I.traverseAst,
56
- variableDeclarationName: () => import_chunk_ROZUBUPR.variableDeclarationName,
57
- visitReferences: () => import_chunk_ROZUBUPR.visitReferences,
58
- visit_resources: () => import_chunk_ROZUBUPR.visit_resources,
59
- visitorNode: () => import_chunk_ROZUBUPR.visitorNode
21
+ checkCompilerVersion: () => import_chunk_BOVSYC7N.checkCompilerVersion,
22
+ clearDiagnostics: () => import_chunk_BOVSYC7N.clearDiagnostics,
23
+ collectNamespaces: () => import_chunk_BOVSYC7N.collectNamespaces,
24
+ createDocumentationMap: () => import_chunk_BOVSYC7N.createDocumentationMap,
25
+ declKey: () => import_chunk_BOVSYC7N.declKey,
26
+ diagnostic: () => import_chunk_BOVSYC7N.diagnostic,
27
+ diagnosticHelper: () => import_chunk_BOVSYC7N.diagnosticHelper,
28
+ findNamesInScope: () => import_chunk_BOVSYC7N.findNamesInScope,
29
+ findUsingForNode: () => import_chunk_BOVSYC7N.findUsingForNode,
30
+ formatAst: () => import_chunk_BOVSYC7N.formatAst,
31
+ formatAstLongLines: () => import_chunk_BOVSYC7N.formatAstLongLines,
32
+ formatScopedName: () => import_chunk_BOVSYC7N.formatScopedName,
33
+ getApiFunctionInfo: () => import_chunk_BOVSYC7N.getApiFunctionInfo,
34
+ getApiMapping: () => import_chunk_BOVSYC7N.getApiMapping,
35
+ getSuperClasses: () => import_chunk_BOVSYC7N.getSuperClasses,
36
+ handleImportUsing: () => import_chunk_BOVSYC7N.handleImportUsing,
37
+ hasProperty: () => import_chunk_UBAYZSM3.hasProperty,
38
+ isClassVariable: () => import_chunk_BOVSYC7N.isClassVariable,
39
+ isLocal: () => import_chunk_BOVSYC7N.isLocal,
40
+ isLookupCandidate: () => import_chunk_BOVSYC7N.isLookupCandidate,
41
+ isStateNode: () => import_chunk_BOVSYC7N.isStateNode,
42
+ lookupByFullName: () => import_chunk_BOVSYC7N.lookupByFullName,
43
+ lookupNext: () => import_chunk_BOVSYC7N.lookupNext,
44
+ lookupResultContains: () => import_chunk_BOVSYC7N.lookupResultContains,
45
+ lookupWithType: () => import_chunk_BOVSYC7N.lookupWithType,
46
+ makeToyboxLink: () => import_chunk_BOVSYC7N.makeToyboxLink,
47
+ mapVarDeclsByType: () => import_chunk_BOVSYC7N.mapVarDeclsByType,
48
+ markInvokeClassMethod: () => import_chunk_BOVSYC7N.markInvokeClassMethod,
49
+ parseSdkVersion: () => import_chunk_BOVSYC7N.parseSdkVersion,
50
+ popRootNode: () => import_chunk_BOVSYC7N.popRootNode,
51
+ pushRootNode: () => import_chunk_BOVSYC7N.pushRootNode,
52
+ resolveDiagnostics: () => import_chunk_BOVSYC7N.resolveDiagnostics,
53
+ resolveDiagnosticsMap: () => import_chunk_BOVSYC7N.resolveDiagnosticsMap,
54
+ sameLookupResult: () => import_chunk_BOVSYC7N.sameLookupResult,
55
+ traverseAst: () => import_chunk_UBAYZSM3.traverseAst,
56
+ variableDeclarationName: () => import_chunk_BOVSYC7N.variableDeclarationName,
57
+ visitReferences: () => import_chunk_BOVSYC7N.visitReferences,
58
+ visit_resources: () => import_chunk_BOVSYC7N.visit_resources,
59
+ visitorNode: () => import_chunk_BOVSYC7N.visitorNode
60
60
  });
61
61
  module.exports = __toCommonJS(api_exports);
62
- var import_chunk_ROZUBUPR = require("./chunk-ROZUBUPR.cjs");
63
- var import_chunk_X7QCZR3F = require("./chunk-X7QCZR3F.cjs");
64
- var import_chunk_JDC43A3I = require("./chunk-JDC43A3I.cjs");
65
- var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
66
- (0, import_chunk_ROZUBUPR.init_api)();
62
+ var import_chunk_BOVSYC7N = require("./chunk-BOVSYC7N.cjs");
63
+ var import_chunk_KHQPCXSJ = require("./chunk-KHQPCXSJ.cjs");
64
+ var import_chunk_UBAYZSM3 = require("./chunk-UBAYZSM3.cjs");
65
+ var import_chunk_VS2QQHAK = require("./chunk-VS2QQHAK.cjs");
66
+ (0, import_chunk_BOVSYC7N.init_api)();
67
67
  // Annotate the CommonJS export names for ESM import in node:
68
68
  0 && (module.exports = {
69
69
  checkCompilerVersion,
package/build/cftinfo.cjs CHANGED
@@ -33,13 +33,13 @@ __export(cftinfo_exports, {
33
33
  getDeviceFontInfo: () => getDeviceFontInfo
34
34
  });
35
35
  module.exports = __toCommonJS(cftinfo_exports);
36
- var import_chunk_JDC43A3I = require("./chunk-JDC43A3I.cjs");
37
- var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
36
+ var import_chunk_UBAYZSM3 = require("./chunk-UBAYZSM3.cjs");
37
+ var import_chunk_VS2QQHAK = require("./chunk-VS2QQHAK.cjs");
38
38
  var import_node_assert = __toESM(require("node:assert"));
39
39
  var fs = __toESM(require("node:fs/promises"));
40
40
  var path = __toESM(require("node:path"));
41
41
  var zlib = __toESM(require("node:zlib"));
42
- (0, import_chunk_JDC43A3I.init_ast)();
42
+ (0, import_chunk_UBAYZSM3.init_ast)();
43
43
  async function getCFTFontInfoFromBuffer(name, data, options) {
44
44
  const view = new DataView(data.buffer, data.byteOffset, data.byteLength);
45
45
  const glyphFlags = view.getUint8(3);
@@ -131,8 +131,8 @@ function getDeviceFontInfo(dirname) {
131
131
  const langMap = {};
132
132
  partNumbers.map(
133
133
  (part) => part.languages.map((lang) => {
134
- (0, import_node_assert.default)((0, import_chunk_JDC43A3I.hasProperty)(fontSets, lang.fontSet));
135
- if ((0, import_chunk_JDC43A3I.hasProperty)(langMap, lang.code)) {
134
+ (0, import_node_assert.default)((0, import_chunk_UBAYZSM3.hasProperty)(fontSets, lang.fontSet));
135
+ if ((0, import_chunk_UBAYZSM3.hasProperty)(langMap, lang.code)) {
136
136
  (0, import_node_assert.default)(langMap[lang.code] === lang.fontSet);
137
137
  } else {
138
138
  langMap[lang.code] = lang.fontSet;
@@ -194,8 +194,7 @@ function getGlyphAscentDescent(glyphData, glyphOffset, width, height, ascent, al
194
194
  do {
195
195
  const offset = row * byteWidth;
196
196
  for (let i = 0; i < bytesToCount; i++) {
197
- if (glyph.getUint8(offset + i))
198
- return ascent - row;
197
+ if (glyph.getUint8(offset + i)) return ascent - row;
199
198
  }
200
199
  } while (++row < ascent);
201
200
  return 0;
@@ -205,8 +204,7 @@ function getGlyphAscentDescent(glyphData, glyphOffset, width, height, ascent, al
205
204
  while (row-- > ascent) {
206
205
  const offset = row * byteWidth;
207
206
  for (let i = 0; i < bytesToCount; i++) {
208
- if (glyph.getUint8(offset + i))
209
- return row - ascent;
207
+ if (glyph.getUint8(offset + i)) return row - ascent;
210
208
  }
211
209
  }
212
210
  return 0;