Skip to content

Latest commit

 

History

History
101 lines (54 loc) · 6.18 KB

CHANGELOG.md

File metadata and controls

101 lines (54 loc) · 6.18 KB

@lit-labs/analyzer

0.6.0

Minor Changes

  • #3621 dfdc3f71 - Added analysys of vanilla custom elements that extend HTMLElement.

  • #3662 cabc6189 - Added support for analyzing const variables initialized to class or function expressions as ClassDeclaration and FunctionDeclaration, respectively.

  • #3658 b7b01c0d - JSDoc types in TS files now have no effect on the analyzer's output, matching TS itself.

  • #3702 520b4713 - Adds support for overloaded functions. Methods of model objects that accept a string key will now specifically return the FunctionDeclaration of the implementation signature of an overloaded function, which has a new overloads field containing a FunctionOverloadDeclaration for each overload signature.

  • #3648 39ac5275 - Fix support for static class members by storing them in separate maps by name.

  • #3655 7e20a528 - Added support for analyzing function declarations.

  • #3529 389d0c55 - Added CLI improvements:

    • Add support for --exclude options (important for excluding test files from e.g. manifest or wrapper generation)

    Added more analysis support and manifest emit:

    • TS enum type variables
    • description, summary, and deprecated for all models
    • module-level description & summary
    • ClassField and ClassMethod

0.5.0

Minor Changes

  • #3507 b152db29 - Added support for export, slot, cssPart, and cssProperty to analyzer and manifest generator. Also improved JS project analysis performance.

  • #3507 b152db29 - Added superclass analysis to ClassDeclaration, along with the ability to query exports of a Module (via getExport() and getResolvedExport()) and the ability to dereference References to the Declaration they point to (via dereference()). A ClassDeclaration's superClass may be interrogated via classDeclaration.heritage.superClass.dereference() (heritage.superClass returns a Reference, which can be dereferenced to access its superclass's ClassDeclaration model.

0.4.0

Minor Changes

Patch Changes

  • #2990 ad361cc2 - Added initial implementation of custom elements manifest generator (WIP).

0.3.0

Minor Changes

  • #3304 31bed8d6 - Added support for analyzing JavaScript files.

  • #3288 569a6237 - Refactored Analyzer into better fit for use in plugins. Analyzer class now takes a ts.Program, and PackageAnalyzer takes a package path and creates a program to analyze a package on the filesystem.

  • #3254 fc2fd4c8 - Fixes bug where global install of CLI resulted in incompatible use of analyzer between CLI packages. Fixes #3234.

0.2.2

Patch Changes

0.2.1

Patch Changes

  • #2976 bf13dae2 - Added Type, Reference, and VariableDeclaration to model

0.2.0

Minor Changes

  • #2822 aa57f683 - Added basic generation of React wrapper to CLI.

Patch Changes

0.1.1

Patch Changes

  • #2796 a4253b83 - Initial support for finding LitElement declarations

  • #2798 a95740dc - Refactor LitElement-specific utilities into separate module

  • #2789 07212750 - Add minimal class declaration gathering

0.1.0

Minor Changes