Skip to content

feat: add defaultFilter to config and update generate method to use it#28

Merged
matiaslopezd merged 3 commits into
mainfrom
develop
Sep 24, 2025
Merged

feat: add defaultFilter to config and update generate method to use it#28
matiaslopezd merged 3 commits into
mainfrom
develop

Conversation

@matiaslopezd

Copy link
Copy Markdown
Member

This pull request introduces a small enhancement to the MongooseDummy class in src/index.js to improve the handling of default filters when generating data.

Configuration improvements:

  • Added a defaultFilter function to the config object, ensuring that a default filter is always available for data generation.

Method behavior update:

  • Updated the generate method to use the provided filter if available, or fallback to the new defaultFilter from the configuration, improving robustness when no filter is specified.

@matiaslopezd matiaslopezd self-assigned this Sep 24, 2025
@matiaslopezd matiaslopezd added the enhancement: feature New feature or request label Sep 24, 2025
@matiaslopezd matiaslopezd merged commit 4cca333 into main Sep 24, 2025
10 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement: feature New feature or request released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant