conf
conf copied to clipboard
[BUG] Assigning `conf.store` overrides applied migrations
package.json
"conf": "^7.0.1",
Example:
import Config from "conf"
const config = new Config({
migrations: {
"2.0.0": store => store.set("lastSeenVersion", "2.0.0")
}
})
config.store = {newData: "blabla"} // this will destroy marked migration in __internal__
// @rafaelramalho19 In case you have time/interest in looking into this. If not, no worries.
Was this resolved? Seems tricky.
If anyone wants to work on this, see the initial attempt and feedback in: https://github.com/sindresorhus/conf/pull/137