-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1db7cf4
commit 32a84b7
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32a84b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an undocumented change in the release notes of v7.4.0, at least I couldn't understand from the listed points.
Because of this, our code (which used to duplicate) an existing document (in TypeScript) started to fail-
32a84b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems it got reverted later in v8 #13784
32a84b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sagrawal31 that is good point, we added this change to 7.4 changelog here: 87fb382
32a84b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @vkarpov15. I appreciate this. Also, does it make sense to highlight this point in bold or mark it as a breaking change because this broke the application in many places? This was the case with me, and it sure must be with any mid- to large-size apps using Mongoose. Just a thought!
32a84b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also added this change to our migration guide for mongoose 7 to highlight it as a breaking change, would that be sufficient in your case? Or did you primarily look at the change log when searching for breaking changes?
32a84b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my case, I was migrating from 7.3.1 to 7.6, so I would not have consulted the migration guide from Mongoose v6 to v7, so I prefer to read the change logs of all the releases under the same major release and yes look for breaking changes, if any.
32a84b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, we added a note here: 0deb234
32a84b7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, @vkarpov15. This will help fellow developers.