indexzero / nconf

Hierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging.
https://github.com/indexzero/nconf
MIT License
3.87k stars 255 forks source link

file.secure option is incompatible with NodeJS 22 #423

Open raffaele-abramini opened 3 months ago

raffaele-abramini commented 3 months ago

Hey folks, I love the library.

I'm using it as part of a small CLI helper library, in which I'm using the storing to file functionality, particulary with the secure option.

When I run on NodeJs v22, it crashes badly, as

Error parsing your configuration file: [....]: crypto.createCipher is not a function

I see this has already been updated in the source code of the library, where we are using createCipheriv instead. However, that is not currently released.

Is there any plan to release the fix?