Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: correct generation of events in cem #10827

Merged
merged 2 commits into from
Feb 13, 2025
Merged

chore: correct generation of events in cem #10827

merged 2 commits into from
Feb 13, 2025

Conversation

nnaydenow
Copy link
Contributor

TypeScript decorators can be imported in two ways:

  • Default import from @ui5/webcomponents-base/dist/decorators/{decoratorName}.js
  • Named import from @ui5/webcomponents-base/dist/decorators.js

Recently, the event.js decorator was deprecated and replaced with event-strict.js. When using the default import, the decorator could retain its old name, and the custom element analyzer would still process it correctly. However, when using the named import, the @eventStrict decorator was not processed, leading to missing parts of the component's API.

This PR adjusts the custom element analyzer to correctly process both @event and @eventStrict decorators.

@aborjinik
Copy link
Contributor

Thanks Nayden!

@nnaydenow nnaydenow merged commit c429471 into main Feb 13, 2025
12 checks passed
@nnaydenow nnaydenow deleted the cem-events branch February 13, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants