Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: memory storage #220

Merged
merged 14 commits into from
May 7, 2020
Merged

feat: memory storage #220

merged 14 commits into from
May 7, 2020

Conversation

mmkal
Copy link
Contributor

@mmkal mmkal commented May 6, 2020

BREAKING CHANGE: storage instances now must be passed into the Umzug constructor. strings ('json', 'sequelize', 'mongodb' etc.), as well as storageOptions, are no longer supported.

This also changes folder structure slightly:

before:

src/storages/JSONStorage.ts
src/storages/MongoDBStorage.ts
...

after:

src/storage/json.ts
src/storage/mongodb.ts
...

And all built-in storages are exported from the package's main module, so they can be imported with (e.g.) import { JSONStorage } from 'umzug'

@mmkal mmkal requested a review from papb May 6, 2020 01:58
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
legacy-tests/fixtures/index.js Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/storage/index.ts Show resolved Hide resolved
src/storage/memory.ts Show resolved Hide resolved
src/umzug.ts Outdated Show resolved Hide resolved
tsconfig.json Show resolved Hide resolved
test/storage/memory.test.ts Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
test/storage/memory.test.ts Show resolved Hide resolved
Copy link
Member

@papb papb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Just two minor remarks now

mmkal and others added 2 commits May 6, 2020 22:22
Co-authored-by: Pedro Augusto de Paula Barbosa <[email protected]>
@papb
Copy link
Member

papb commented May 7, 2020

Nice catch on changing the `UmzugStorage` interface to it. Much better.

@mmkal mmkal merged commit 31d010f into master May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants