- v0.7.51
- Added
dateTimeFormat
method inside configuration and can be used to generate custom timestamp for files
export default async () => {
return {
defaultTemplate: 'typescript',
outDir: './.xmigrate',
typescript: true,
dateTimeFormat: () => new Date().toISOString(),
};
};
On every xmigrate create my-migration
will trigger dateTimeFormat predefined function
- v0.7.39
- Fixed issue related with wrong format name when creating migration
- v0.7.38
- Fixed issue with new date format
Use
yyyyinstead of
YYYYfor formatting years; see: https://git.io/fxCyr
- v0.7.16
- Fixed bug with
npm ERR! enoent ENOENT: no such file or directory,
- v0.7.13
- Full typescript support! Files are Transpiled using ParcelJS insternally inside
@gapi/cli
- 500 Migrations run with Typescript > Javascript > Execution in 13 seconds!
- Users can now choose
typescript
outFolder with configoutDir
defaults to./dist
- Connections for
mongoose
andmongodb
can be closed forcefully - Tests for specific scenarios added
- Modified
createWithTemplate
method insideMigrationService
to return value with/
instead of empty line since it was breaking consistency - Introduced inside tests(For now) custom template providing string example:
xmigrate create mytemplate --typescript true --raw true --template 'oh my god i have a template'
later in version v0.7.14 will have this capabilities - ES6 Configuration file can be loaded with
export default async function() {}
syntax - Typescript Configuration file can be loaded
xmigrate.ts
.xmigrate
temp folder is removed when command execution finish- Added simple documentation for API usage
- v0.7.8
- Changed
db
toclient
since we are appendingMongoClient
instead of database - Supports for ACID transactions
- Modified templates to fit new scenario
- v0.7.7
- Added
typescript
support on Rollbacked migration - Added
es6
andes5
modules. Removedbasic
template naming - Fallback changed to Rollback
xmigrate up --rollback
instead ofxmigrate up --fallback
ESM
module installed so we can transpile modules and use ES6 syntax- Ensure directories is moved when we apply config instead of passing
DEFAULT_CONFIG
- Templates are re-aranged to fit new
ES6
syntax - Database connection passed to down migration when executing
xmigrate up --rollback
- v0.7.6
- Added
typescript
support - Added
init
script helping us to setup project which doesn't have configuration - Removed Error message
DeprecationWarning: current URL string parser is deprecated
fromMongoose.connect
- v0.7.5
- Init commit