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

refactor(commons): add FeathersGeneratorError and flexible version re… #3556

Open
wants to merge 1 commit into
base: dove
Choose a base branch
from

Conversation

Nair-VillaGran
Copy link

  • 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.

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.

1 participant