fix(javascript): integrate current managed and stability fixes
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
commit
6d470fc9cb
@@ -110,6 +110,18 @@ const managedTypeSchema = z.object({
|
||||
}),
|
||||
});
|
||||
|
||||
/** One ExportedType row: a type this assembly exports from another module or forwards. */
|
||||
const managedExportedTypeSchema = z.object({
|
||||
token: tokenSchema,
|
||||
row_offset: offsetSchema,
|
||||
namespace: z.string(),
|
||||
name: z.string(),
|
||||
flags: z.number().int().min(0).max(0xffff_ffff),
|
||||
forwarder: z.boolean(),
|
||||
type_def_id: z.number().int().min(0).max(0xffff_ffff),
|
||||
implementation_token: tokenSchema.nullable(),
|
||||
});
|
||||
|
||||
const managedFieldSchema = z.object({
|
||||
token: tokenSchema,
|
||||
row_offset: offsetSchema,
|
||||
@@ -420,6 +432,9 @@ export const managedMemberInspectionSchema = z.object({
|
||||
requires_mvid: cliMetadataGuidSchema.nullable(),
|
||||
}),
|
||||
types: z.array(managedTypeSchema),
|
||||
// Member Evidence recorded before ExportedType rows were read omits this
|
||||
// field; null means the table was not examined, not that it was empty.
|
||||
exported_types: z.array(managedExportedTypeSchema).nullable().default(null),
|
||||
fields: z.array(managedFieldSchema),
|
||||
methods: z.array(managedMethodSchema),
|
||||
member_refs: z.array(managedMemberReferenceSchema),
|
||||
|
||||
@@ -96,5 +96,16 @@ export const comparisonLimitations = (
|
||||
];
|
||||
if (left.coverage.state !== "complete" || right.coverage.state !== "complete")
|
||||
limitations.push("At least one managed member observation is partial.");
|
||||
if (left.exported_types === null || right.exported_types === null)
|
||||
limitations.push(
|
||||
"At least one managed member observation predates ExportedType inspection; its exported and forwarded types are unknown.",
|
||||
);
|
||||
if (
|
||||
(left.exported_types?.length ?? 0) > 0 ||
|
||||
(right.exported_types?.length ?? 0) > 0
|
||||
)
|
||||
limitations.push(
|
||||
"ExportedType rows, including type forwarders, are observed but not compared; an unchanged comparison does not establish an unchanged exported or forwarded type set.",
|
||||
);
|
||||
return limitations;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user