aalfiann / recachegoose

A Mongoose caching module that works exactly how you would expect it to, with the latest version of Mongoose.
https://nodei.co/npm/recachegoose
MIT License
26 stars 14 forks source link

add mongoose ^7.0.0 #9

Closed OtayNacef closed 1 year ago

OtayNacef commented 1 year ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch recachegoose@9.1.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/recachegoose/package.json b/node_modules/recachegoose/package.json
index 1e1092f..5b40668 100644
--- a/node_modules/recachegoose/package.json
+++ b/node_modules/recachegoose/package.json
@@ -14,7 +14,7 @@
     "sha1": "^1.1.1"
   },
   "peerDependencies": {
-    "mongoose": "^5.0.1 || ^6.0.0"
+    "mongoose": "^5.0.1 || ^6.0.0 || ^7.0.0"
   },
   "devDependencies": {
     "@babel/cli": "^7.18.10",

This issue body was partially generated by patch-package.

aalfiann commented 1 year ago

Thank you, I have already update to support mongoose 7..