Skip to content

Latest commit

 

History

History
87 lines (44 loc) · 3.21 KB

CHANGELOG.md

File metadata and controls

87 lines (44 loc) · 3.21 KB

@wc-toolkit/type-parser

1.3.2

Patch Changes

  • 2fc0bb2: Resolve parsedType for members declared on a Lit-style mixin.

    Declaration matching only recognised a manifest declaration when its name matched the class node exactly. A mixin factory's inner class (for example WithFooClass) never matched its emitted kind: mixin declaration (WithFoo), so the mixin's members kept their raw type text instead of an expanded union. Declaration matching now recognises mixin declarations by their factory name, and the existing node-based resolution runs on them.

1.3.1

Patch Changes

  • ff0ce1a: Fix imported type alias resolution when a type name is declared in multiple files. Parsed types are now resolved through the TypeScript AST and type checker (using the type's actual declaration symbol) instead of matching by type name and resolved filename string, so members correctly resolve to the type actually imported by the module. Types imported from node_modules are also resolved correctly (previously they fell through the import-path fallbacks and were not expanded).

    Also respect tsconfig exclude glob patterns (e.g. **/dist) when walking source files, instead of substring-matching absolute paths.

    Memoize top-level type expansion results in a WeakMap keyed by the type object, so per-member resolution reuses the walk's computed types instead of re-expanding them.

    Add maxParseDepth (default 8) and maxParseProperties (default 50) options so the expansion bail limits can be raised for types with deep or large structures. Boolean-typed object properties now expand to boolean instead of false | true.

1.3.0

Minor Changes

  • fbceecc: Export getTypeChecker() and getProgram() accessor functions for use in custom CEM plugins (fixes #10).

    Replace typeChecker.getProgram() call (removed from TypeScript 5.x) with stored program reference to fix #14.

    Add debug field to default options and ensure logger is always initialized in getTsProgram to fix #15.

1.2.3

Patch Changes

  • 0997aff: Fix getTsProgram to resolve extends chains in tsconfig.json instead of silently falling back to default compiler options. Root files are now also resolved from the tsconfig's include/exclude, unioned with the caller-supplied globs.

1.2.2

Patch Changes

  • e924dbd: Improve type parsing fallbacks for complex and recursive aliases.

    The parser now preserves manifest generation by warning and falling back to the original type text when a type cannot be safely expanded, and it resolves more object-based utility types such as Omit.

1.2.1

Patch Changes

  • c2eb8e0: Fix Windows manifest module paths by converting absolute paths to relative paths consistently during analysis.

1.2.0

Minor Changes

  • 5995e59: Add config option for parsing method parameters

1.1.0

Minor Changes

  • bb312ca: Add parseObjectTypes config option to add interface/object types to CEM

1.0.3

Patch Changes

  • 5f75ef6: Excluded mode_modules from parser to prevent infinite loops

1.0.2

Patch Changes

  • 85ed983: Fixed error when trying to parse TypeScript types

1.0.1

Patch Changes

  • 1935ce1: Fixed image URL in README

1.0.0

Major Changes

  • 609c34a: Initial commit