Repository navigation
Commit a7be32a
authored
Compatibility with mongoose 9 (#30)
This pull request updates the `mongoose` dependency to version 9.5.0 and
improves compatibility with newer Mongoose schema structures in the
`getArrayItem` method. These changes ensure better support for recent
versions of Mongoose and enhance the handling of array item schemas.
Dependency update:
* Upgraded the `mongoose` package version from `^8.2.3` to `^9.5.0` in
`package.json` to support the latest features and fixes.
Schema compatibility improvement:
* Updated the `getArrayItem` method in `src/index.js` to use
`schema.caster ?? schema.embeddedSchemaType`, improving support for
array schemas in newer versions of Mongoose.3 files changed
Lines changed: 49 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
0 commit comments