wheresvic / mongoose-field-encryption

A simple symmetric encryption plugin for individual fields. Dependency free, only mongoose peer dependency.
MIT License
74 stars 32 forks source link

add mongoose 4-5 compatibility #16

Closed devdoomari3 closed 6 years ago

devdoomari3 commented 6 years ago

add mongoose 5 compatibility:

mongoose 5 does not have "next" function on hooks while mongoose 4 requires "next" function on hooks.

The solution is adding a 'fake' "next" function for mongoose5 for mongoose 4-5 compatibility.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-2.6%) to 95.098% when pulling 7484d8490925830b37054a8d755a691872573636 on devdoomari3:add-mongoose-4-5-compatibility into 677279e96529c75cceaecb7d9f8c8faac55300fd on victorparmar:master.

wheresvic commented 6 years ago

Hi @devdoomari3

Thanks a lot for this PR, really appreciate it :)

I have merged this in and published a new release v1.1.0, cheers!