Releases: akmjenkins/flighty
Releases · akmjenkins/flighty
Flighty!
Breaking Change!!!
Flighty used to export its constructor as default so users used to use it:
const Flighty = require('flighty'); // or import Flighty from 'flighty';
const api = new Flighty({ ...options });
api.get(...)
Flighty now default exports an instance rather than a constructor, with a create
method to create new instances:
const flighty = require('flighty'); // or import flighty from 'flighty';
flighty.get(...);
// to create new instances:
const api = flighty.create({ ...options });
api.get(...); // flighty !== api
This is a major breaking change and will kickoff Flighty's use of semantic version. Enjoy 1.0!