Skip to content

Releases: sequelize/umzug

v3.0.0-beta.5

14 May 01:05
Compare
Choose a tag to compare
v3.0.0-beta.5 Pre-release
Pre-release

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 from require('umzug'). This is another breaking change: you can no longer import the storages with an (unintuitive) import path such as require('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 call umzug.down({ to: 0 }) now type-checks (#223)

Features

Commits

v3.0.0-beta.4...v3.0.0-beta.5

v3.0.0-beta.4

04 May 12:24
Compare
Choose a tag to compare
v3.0.0-beta.4 Pre-release
Pre-release

Features

Internals

  • Enable prettier (#213)
  • Replace AVA with Jest (#215)

v3.0.0-beta.3...v3.0.0-beta.4

v3.0.0-beta.3

07 Apr 02:55
Compare
Choose a tag to compare
v3.0.0-beta.3 Pre-release
Pre-release

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...v3.0.0-beta.3

v3.0.0-beta.2

05 Apr 21:46
Compare
Choose a tag to compare
v3.0.0-beta.2 Pre-release
Pre-release

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 of const 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 to NoneStorage
  • Removed the already deprecated old Umzug Storage constructor

Internals

  • Although the old tests written in Mocha were kept for now, starting today all new Umzug tests will be AVA + TypeScript!
  • Replaced a mixture of several ESLint plugins with XO

v3.0.0-beta.1...v3.0.0-beta.2

v3.0.0-beta.1

29 Mar 21:13
Compare
Choose a tag to compare
v3.0.0-beta.1 Pre-release
Pre-release

Breaking Changes

  • Removed the deprecated storage aliases: none, json and sequelize. To upgrade: just use Storage, JsonStorage and SequelizeStorage instead.
  • Removed the upName and downName options, which allowed you to have migrations whose exported functions had custom names (not just up and down). To upgrade: stop using this option and either rename the functions in your migrations to up and down or use the wrap option (or customResolver option) to change that automatically before umzug reads it.

Commits

  • Increase mocha tests timeout c7859ff
  • Remove upName/downName options 38ea10c
  • Remove deprecated storage aliases 73ada4f

v3.0.0-beta.0...v3.0.0-beta.1

v3.0.0-beta.0

29 Mar 17:48
Compare
Choose a tag to compare
v3.0.0-beta.0 Pre-release
Pre-release

Breaking Changes

Features

  • Added nameFormatter option (#196) (thanks @jaulz!)

Internals

Commits

v2.3.0...v3.0.0-beta.0