v0.15.2
·
512 commits
to master
since this release
As per #471 ->
"
I'm using [email protected] with levelup and redis as a db.
I'm not using leveldown/levelDB so I don't want to install it (plus, it doesn't build on the specific node-alpine version I am targeting), that's why I am installing search-index with the --no-optional option.
The problem is, despite leveldown being marked as optional, it's required at the top of the search-index/index.js, so when I start my app it immediately crashes, complaining about leveldown not being resolvable.
The fix is easy: move the require down, so that it's only executed when necessary.
"