mongoosejs / mongoose-lean-getters

Apply getters on lean() documents: https://mongoosejs.com/docs/tutorials/lean.html
Apache License 2.0
10 stars 15 forks source link

Invalid semver range for mongoose peer dependency #18

Closed DesignByOnyx closed 2 years ago

DesignByOnyx commented 2 years ago

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

image

If the current behavior is a bug, please provide the steps to reproduce.

mkdir lean-getters-bug
cd lean-getters-bug
npm init -y
npm i mongoose@^5.13.14
npm i mongoose-lean-getters

What is the expected behavior?

The above commands should not produce the error in the screenshot.

What are the versions of Node.js, mongoose-lean-getters, and Mongoose are you are using? Note that "latest" is not a version.

node v16.13.2 mongoose v5.13.14 mongoose-lean-getters v0.3.4

Synopsis

I believe the peer deps defined in package.json ("mongoose": ">= 5.11.0 | 6.x") are invalid. It should have a double pipe.