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

Compatibility with mongoose 5.x and later #23

Merged
merged 3 commits into from
May 14, 2024
Merged

Compatibility with mongoose 5.x and later #23

merged 3 commits into from
May 14, 2024

Conversation

matiaslopezd
Copy link
Member

@matiaslopezd matiaslopezd commented May 14, 2024

Certain SchemaTypes are not present in older version, so now using instance property of each schema (schema.instance) is able to get the name as String to compare correctly, but as a fallback when instanceof can't be compare with undefined SchemaType.

Noheliajoeliana and others added 3 commits May 6, 2024 17:40
Some types doesn't exist in older versions, and some schemaTypes are removed in newer versions
I noticed that tests were passing but the output wasn't as expected, so
I added more tests to correctly check deeper schemas (with version 5 and
8) and made the generation compatible with both

Some types don't exist in older versions, and some schemaTypes are
removed in newer versions
@matiaslopezd matiaslopezd added the refactor Code refactored without behavior changes label May 14, 2024
@matiaslopezd matiaslopezd merged commit e3ad4b6 into main May 14, 2024
6 checks passed
Copy link

🎉 This PR is included in version 1.4.3 🎉

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
refactor Code refactored without behavior changes released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants