This repository was archived by the owner on Dec 6, 2022. It is now read-only.
Releases: haltcase/levers
Releases · haltcase/levers
Release list
v1.0.0-alpha.1
Massive breaking changes in this version, as it's almost a complete rewrite, or at the
very least a reimagining 😆 The goal is to make it more functional - so it's not
a class anymore, and it doesn't use internal state relying on this.
I'll be playing with the idea of making the API partially apply-able in FP style,
but that might not be all that useful. We'll see.
BREAKING CHANGE: levers is no longer a class. Most functionality should remain
mostly the same aside from creating instances. The main export is simply a function.
Before:
const Levers = require('levers')
const settings = new Levers('app')
// or:
const settings = Levers.create('app')After:
const levers = require('levers')
const settings = levers('app')levers also does not depend on Electron, and will store its data in the OS data
directory in the folder name of the root package.json's name property.
v0.7.0
Features
- Add static
.exists()method for checking whether or not a file exists using the same path resolution as creating a new instance. - Add static
.create()factory method for creating newLeversinstances.
Documentation
- levers now uses my fork of
docdashfor custom styling, like citycide/trilogy already has.
Performance
- The dependency on
lodashhas been dropped, since it was only used for a single method. This should increase install time and probably runtime performance as well.
Breaking Changes
lodashis no longer a dependency.- Built files use ES2015 syntax, so engines not supporting these features won't be able to use levers. This shouldn't be much of an issue since levers targets Electron.