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

feat: use static imports in @validateArgs(), elaborate errors #7407

Merged
merged 11 commits into from
Nov 19, 2024

Conversation

AlCalzone
Copy link
Member

@AlCalzone AlCalzone commented Nov 15, 2024

fixes #7404

@AlCalzone AlCalzone marked this pull request as ready for review November 18, 2024 11:59
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@AlCalzone
Copy link
Member Author

@zwave-js-bot pack this

@zwave-js-bot
Copy link
Collaborator

👋 Hey @AlCalzone!
I've started to deploy this PR as a development build.
You can monitor the progress here.

@zwave-js-bot
Copy link
Collaborator

🎉 The packages have been published.
You can now install the test version with

@AlCalzone
Copy link
Member Author

@zwave-js-bot automerge

@zwave-js-bot zwave-js-bot merged commit ef68078 into master Nov 19, 2024
25 checks passed
@zwave-js-bot zwave-js-bot deleted the better-validateArgs branch November 19, 2024 12:42
AlCalzone added a commit that referenced this pull request Nov 20, 2024
### Bugfixes
* Fixed an issue where CC classes would have a different name when `zwave-js` was loaded as CommonJS, changing how those CCs were handled (#7426)

### Changes under the hood
* Argument validation of CC APIs no longer uses `require` calls and explains the validation errors much better (#7407)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rework validateArgs transformer to avoid require calls
2 participants