Releases: sequelize/umzug
v3.0.0-beta.5
Breaking changes
-
The Umzug constructor no longer accepts strings (such as
'json'
and'sequelize'
) to specify a storage type. Instead you are now forced to provide a storage instance yourself. To upgrade:- const { Umzug } = require('umzug'); + const { Umzug, SequelizeStorage } = require('umzug'); const umzug = new Umzug({ /* ... */, - storage: 'sequelize', - storageOptions: { /* your storage options */ } + storage: new SequelizeStorage({ /* your storage options */ }) });
-
Notice that in the upgrade example above,
SequelizeStorage
was imported directly fromrequire('umzug')
. This is another breaking change: you can no longer import the storages with an (unintuitive) import path such asrequire('umzug/lib/storages/JSONStorage')
. All built-in storages are now exported through the main entrypoint. -
Removed
NoneStorage
. If you need it, it should not be hard to replace it with the new Memory Storage.
Bug Fixes
- Fixed types for
umzug.down
: The callumzug.down({ to: 0 })
now type-checks (#223)
Features
- Added the Memory Storage
Commits
v3.0.0-beta.4
v3.0.0-beta.3
Umzug was unusable due to a mistake in package.json
. This was fixed and an AVA test was written to make sure this API stays the same.
To upgrade, please follow instructions from https://github.com/sequelize/umzug/releases/tag/v3.0.0-beta.2
v3.0.0-beta.2
This release brings a full TypeScript rewrite of the source code!
Features
- Built-in TypeScript typings, so you should stop using
@types/umzug
Breaking changes
- You now have to use
const { Umzug } = require('umzug')
instead ofconst Umzug = require('umzug')
- Removed Bluebird, so you can no longer use things like
.tap
directly on the Promise returned by some umzug method (you will have to wrap it first) - Renamed
Storage
toNoneStorage
- Removed the already deprecated old Umzug Storage constructor
Internals
v3.0.0-beta.1
Breaking Changes
- Removed the deprecated storage aliases:
none
,json
andsequelize
. To upgrade: just useStorage
,JsonStorage
andSequelizeStorage
instead. - Removed the
upName
anddownName
options, which allowed you to have migrations whose exported functions had custom names (not justup
anddown
). To upgrade: stop using this option and either rename the functions in your migrations toup
anddown
or use thewrap
option (orcustomResolver
option) to change that automatically before umzug reads it.
Commits
v3.0.0-beta.0
Breaking Changes
- Require Node 10 and up
- Drop support for coffee-script
Features
Internals
Commits
- Major refactor (#206) 849d3c0
- Update package.json bb0ff05
- Update .travis.yml dfb0d53
- Fix linting a1b41b5
- Simplify .gitignore f51d529
- Update changelog 5cb49fc
- Setup 'np' as release command 0206e8d
- Minor readme tweaks 38cc13f
- Stop using .npmignore 3026d9d
- Drop babel/coffeescript/typescript support entirely 265b1cf
- Remove babel from source and tests f7cdb60
- Require Node 10 635c3a2
- feat: add format function (#196) 80e4afb
- docs: maintainers wanted notice 16e71d7
- docs: options.storage accepts String|Object 328172b