Skip to content

Releases: salsita/node-pg-migrate

v7.2.0

25 Apr 09:09
6e5b6df
Compare
Choose a tag to compare

New & Noteworthy

  • The feature for create and drop casts landed 🚀 thx @aschrab 🙏

What's Changed

Full Changelog: v7.1.0...v7.2.0

v7.1.0

23 Apr 14:18
569d173
Compare
Choose a tag to compare

New & Noteworthy

  • One of the most awaited features (and 2 year stale PR) is now available: grant and revoke 🎉

What's Changed

Full Changelog: v7.0.0...v7.1.0

v7.0.0

19 Apr 10:28
fde10af
Compare
Choose a tag to compare

New & Noteworthy

The core maintainer of this project moved to @Shinigami92 (also core maintainer of FakerJS and core member of Vite).
The project is and remains under the MIT license.

This version is a mostly compatible to v6.2.2, but (should) supports ESM in addition to CJS 🎉
If you found any bugs while moving from version v6.2.2 to version v7.0.0, please open an issue and report what was broken for you.
If you need to contact me somehow directly, you can do so on Mastodon @Shini92@mas.to

I (@Shinigami92) worked hard the last 1.5 month on refactoring node-pg-migrate and I plan to convert the source code to ESM in the next major version. However I will need to drop support for Node <18 and TS <5 for that. So the next major version could potentially be released "quickly".
The code base is now stable to ship new features and fix more known bugs.

Here are the most important changes

  • This release fixes some whitespace issues (dropColumns, createMaterializedView) as well as an invalid swapped operation type #1024.
  • The minimum supported Node version is v16.18 and the minimum supported TypeScript version is 4.8 #998
  • Migration.create does not accept the deprecated params anymore #1002
    if you did not ignored the runtime warning, you should not be affected by this
  • The CLI is now TypeScript checked and therefore also got some slightly rework #1066
    hopefully nothing broke
  • The internal createSchemalize function now uses options instead of two boolean args #1058
    You should mostly not be affected by this, expect from extreme programmatic use-cases
  • utils got restructured #1053
    this should not have changed anything from the usage
  • The src folder got a bit restructure, so you should only be affected by breaking changes if you use node-pg-migrate progammatically (not CLI)
  • When using ts-node, tsconfig.json's 'ts-node' override is now respected (thx to @BriungRi)
  • The plain JS template now generates with JSDoc so you get improved autosuggestions (thx to @codermarcos)
  • Remove dependencies to mkdirp #1102 and decamilized #1099
  • Add JSDoc to pgm methods #1104
  • Refactored some base files (renamed migration-builder to migrationBuilder) and used node:* imports #1101
  • Throw error when using string expression and try infer drop constraint #1094

What's Changed

Read more

v7.0.0-alpha.4

18 Apr 19:29
3735071
Compare
Choose a tag to compare
v7.0.0-alpha.4 Pre-release
Pre-release

New & Noteworthy

  • Remove dependencies to mkdirp #1102 and decamilized #1099
  • Add JSDoc to pgm methods #1104
  • Refactored some base files (renamed migration-builder to migrationBuilder) and used node:* imports #1101
  • Throw error when using string expression and try infer drop constraint #1094

What's Changed

Full Changelog: v7.0.0-alpha.3...v7.0.0-alpha.4

v7.0.0-alpha.3

11 Apr 12:45
ffc7051
Compare
Choose a tag to compare
v7.0.0-alpha.3 Pre-release
Pre-release

New & Noteworthy

  • The src folder got a bit restructure, so you should only be affected by breaking changes if you use node-pg-migrate progammatically (not CLI)
  • When using ts-node, tsconfig.json's 'ts-node' override is now respected (thx to @BriungRi)
  • The plain JS template now generates with JSDoc so you get improved autosuggestions (thx to @codermarcos)

What's Changed

New Contributors

Full Changelog: v7.0.0-alpha.2...v7.0.0-alpha.3

v7.0.0-alpha.2

05 Apr 20:12
0b315ee
Compare
Choose a tag to compare
v7.0.0-alpha.2 Pre-release
Pre-release

New & Noteworthy

  • The CLI is now TypeScript checked and therefore also got some slightly rework #1066
    hopefully nothing broke
  • The internal createSchemalize function now uses options instead of two boolean args #1058
    You should mostly not be affected by this, expect from extreme programmatic use-cases
  • utils got restructured #1053
    this should not have changed anything from the usage

What's Changed

Full Changelog: v7.0.0-alpha.1...v7.0.0-alpha.2

v7.0.0-alpha.1

03 Apr 07:57
aacf8db
Compare
Choose a tag to compare
v7.0.0-alpha.1 Pre-release
Pre-release

New & Noteworthy

  • This release fixes some whitespace issues (dropColumns, createMaterializedView) as well as an invalid swapped operation type #1024.
  • The minimum supported Node version is v16.18 and the minimum supported TypeScript version is 4.8 #998
  • Migration.create does not accept the deprecated params anymore #1002
    if you did not ignored the runtime warning, you should not be affected by this

What's Changed

Full Changelog: v7.0.0-alpha.0...v7.0.0-alpha.1

v7.0.0-alpha.0

02 Mar 10:18
f38f4d1
Compare
Choose a tag to compare
v7.0.0-alpha.0 Pre-release
Pre-release

New & Noteworthy

The core maintainer of this project moved to @Shinigami92 (also core maintainer of FakerJS and core member of Vite).
The project is and remains under the MIT license.

Please follow New Maintainer @Shinigami92 & planning of restructuring the project #956 for the current process.

This alpha version is a direct replacement for v6.2.2, but supports ESM in addition to CJS 🎉
If you found any bugs while moving from version v6.2.2 to version v7.0.0-alpha.0, please open an issue and report what was broken for you.

What's Changed

Full Changelog: v6.2.2...v7.0.0-alpha.0

v6.2.2

30 Jun 10:31
Compare
Choose a tag to compare
  • chore(deps): update dependency dotenv to v16 (#875) 588595c
  • chore(deps): update dependency dotenv-expand to v8 (#876) 707a575

Breaking changes

Drop support for dotenv-expand with version lower than 6.0.0

v6.2.1...v6.2.2

v6.2.1

04 Jan 11:59
Compare
Choose a tag to compare

v6.2.0...v6.2.1