Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.

Releases: haltcase/levers

v1.0.0-alpha.1

v1.0.0-alpha.1 Pre-release
Pre-release

Choose a tag to compare

@haltcase haltcase released this 17 Mar 07:40

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

v0.7.0 Pre-release
Pre-release

Choose a tag to compare

@haltcase haltcase released this 19 Nov 05:40

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 new Levers instances.

Documentation

  • levers now uses my fork of docdash for custom styling, like citycide/trilogy already has.

Performance

  • The dependency on lodash has been dropped, since it was only used for a single method. This should increase install time and probably runtime performance as well.

Breaking Changes

  • lodash is 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.