runem / web-component-analyzer

CLI that analyzes web components and emits documentation
https://runem.github.io/web-component-analyzer
MIT License
500 stars 61 forks source link

Support for TypeScript 4.8 decorator AST changes #249

Closed bicknellr closed 1 year ago

bicknellr commented 1 year ago

This PR adds TypeScript 4.8 to the set of TypeScript versions that are tested. TypeScript 4.8 has a breaking change to the AST where the .decorators property has been deprecated and decorators are now found in the .modifiers property.^1 This PR introduces a new getDecorators function that returns all decorators existing in either array, if they exist.

SimonAlling commented 1 year ago

Now that this PR has been merged, a new release would be highly appreciated, so that runem/lit-analyzer#278 can be fixed. Perhaps @runem or @rictic can help? :slightly_smiling_face: