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

fix(generators): Add FeathersGeneratorError #3556

Merged
merged 2 commits into from
Feb 1, 2025

Conversation

Nair-VillaGran
Copy link
Contributor

  • Summary of Changes
  • This PR introduces several enhancements to improve code quality, error handling, and flexibility:

  • Custom Error Class: Provides more context in exceptions, making debugging and logging easier.
    Prettier Configuration: Added more comprehensive formatting options to ensure consistent code style.

  • Key Improvements
    Default Version Parameter:
  • Before: Defaulted to 'latest' if no version was defined.
    Now: Allows custom default versions for greater flexibility and control.
    Improved Logical Operator:

  • Before: versions[dep] ? versions[dep] : 'latest'
    Now: versions[dep] || defaultVersion for cleaner and more readable code.
    Explicit Return Typing:

  • Added : string[] to improve type clarity and prevent errors.

@daffl daffl changed the title refactor(commons): add FeathersGeneratorError and flexible version re… fix(generators): Add FeathersGeneratorError Feb 1, 2025
@daffl daffl merged commit 2a81a20 into feathersjs:dove Feb 1, 2025
2 checks passed
@daffl
Copy link
Member

daffl commented Feb 1, 2025

Thank you for putting this together. Will go out with the next release.

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.

2 participants