node-pg-migrate
Advanced tools
Comparing version 4.6.2 to 4.7.0
# Change Log | ||
## [4.7.0](2020-04-29) | ||
### Aded | ||
- Export ColumnDefinition [#611](https://github.com/salsita/node-pg-migrate/pull/611) | ||
- feat: support for parsing `tsconfig.json` with comments [#606](https://github.com/salsita/node-pg-migrate/pull/606) | ||
### Fixed | ||
- pipe return writeable, should use close event [#608](https://github.com/salsita/node-pg-migrate/pull/608) | ||
## [4.6.2](2020-04-23) | ||
@@ -4,0 +15,0 @@ |
@@ -16,3 +16,3 @@ import runner from './runner'; | ||
import { CreateSchema, DropSchema, RenameSchema, CreateSchemaOptions } from './operations/schemasTypes'; | ||
import { CreateTable, DropTable, AlterTable, RenameTable, AddColumns, DropColumns, AlterColumn, RenameColumn, CreateConstraint, DropConstraint, RenameConstraint, ColumnDefinitions, TableOptions, AlterTableOptions, AlterColumnOptions, ConstraintOptions } from './operations/tablesTypes'; | ||
import { CreateTable, DropTable, AlterTable, RenameTable, AddColumns, DropColumns, AlterColumn, RenameColumn, CreateConstraint, DropConstraint, RenameConstraint, ColumnDefinition, ColumnDefinitions, TableOptions, AlterTableOptions, AlterColumnOptions, ConstraintOptions } from './operations/tablesTypes'; | ||
import { CreateTrigger, DropTrigger, RenameTrigger, TriggerOptions } from './operations/triggersTypes'; | ||
@@ -22,2 +22,2 @@ import { CreateType, DropType, RenameType, AddTypeAttribute, DropTypeAttribute, SetTypeAttribute, AddTypeValue, RenameTypeAttribute, RenameTypeValue, AddTypeValueOptions } from './operations/typesTypes'; | ||
import { CreateMaterializedView, DropMaterializedView, AlterMaterializedView, RenameMaterializedView, RenameMaterializedViewColumn, RefreshMaterializedView, CreateMaterializedViewOptions, AlterMaterializedViewOptions, RefreshMaterializedViewOptions } from './operations/viewsMaterializedTypes'; | ||
export { runner as default, PgLiteral, Migration, PgType, MigrationBuilder, RunnerOption, Value, Name, Type, IfExistsOption, IfNotExistsOption, CascadeOption, DropOptions, CreateTable, DropTable, AlterTable, RenameTable, AddColumns, DropColumns, AlterColumn, RenameColumn, CreateConstraint, DropConstraint, RenameConstraint, ColumnDefinitions, TableOptions, AlterTableOptions, AlterColumnOptions, ConstraintOptions, CreateDomain, DropDomain, AlterDomain, RenameDomain, DomainOptionsCreate, DomainOptionsAlter, CreateExtension, DropExtension, Extension, CreateExtensionOptions, CreateFunction, DropFunction, RenameFunction, FunctionParam, FunctionOptions, DropIndex, CreateIndex, CreateIndexOptions, DropIndexOptions, CreateOperator, DropOperator, CreateOperatorClass, DropOperatorClass, RenameOperatorClass, CreateOperatorFamily, DropOperatorFamily, AddToOperatorFamily, RenameOperatorFamily, RemoveFromOperatorFamily, CreateOperatorOptions, DropOperatorOptions, OperatorListDefinition, CreateOperatorClassOptions, Sql, CreatePolicy, DropPolicy, AlterPolicy, RenamePolicy, CreatePolicyOptions, PolicyOptions, CreateRole, DropRole, AlterRole, RenameRole, RoleOptions, CreateSequence, DropSequence, AlterSequence, RenameSequence, SequenceOptionsCreate, SequenceOptionsAlter, CreateSchema, DropSchema, RenameSchema, CreateSchemaOptions, CreateTrigger, DropTrigger, RenameTrigger, TriggerOptions, CreateType, DropType, RenameType, AddTypeAttribute, DropTypeAttribute, SetTypeAttribute, AddTypeValue, RenameTypeAttribute, RenameTypeValue, AddTypeValueOptions, CreateView, DropView, AlterView, AlterViewColumn, RenameView, CreateViewOptions, AlterViewOptions, AlterViewColumnOptions, CreateMaterializedView, DropMaterializedView, AlterMaterializedView, RenameMaterializedView, RenameMaterializedViewColumn, RefreshMaterializedView, CreateMaterializedViewOptions, AlterMaterializedViewOptions, RefreshMaterializedViewOptions, }; | ||
export { runner as default, PgLiteral, Migration, PgType, MigrationBuilder, RunnerOption, Value, Name, Type, IfExistsOption, IfNotExistsOption, CascadeOption, DropOptions, CreateTable, DropTable, AlterTable, RenameTable, AddColumns, DropColumns, AlterColumn, RenameColumn, CreateConstraint, DropConstraint, RenameConstraint, ColumnDefinition, ColumnDefinitions, TableOptions, AlterTableOptions, AlterColumnOptions, ConstraintOptions, CreateDomain, DropDomain, AlterDomain, RenameDomain, DomainOptionsCreate, DomainOptionsAlter, CreateExtension, DropExtension, Extension, CreateExtensionOptions, CreateFunction, DropFunction, RenameFunction, FunctionParam, FunctionOptions, DropIndex, CreateIndex, CreateIndexOptions, DropIndexOptions, CreateOperator, DropOperator, CreateOperatorClass, DropOperatorClass, RenameOperatorClass, CreateOperatorFamily, DropOperatorFamily, AddToOperatorFamily, RenameOperatorFamily, RemoveFromOperatorFamily, CreateOperatorOptions, DropOperatorOptions, OperatorListDefinition, CreateOperatorClassOptions, Sql, CreatePolicy, DropPolicy, AlterPolicy, RenamePolicy, CreatePolicyOptions, PolicyOptions, CreateRole, DropRole, AlterRole, RenameRole, RoleOptions, CreateSequence, DropSequence, AlterSequence, RenameSequence, SequenceOptionsCreate, SequenceOptionsAlter, CreateSchema, DropSchema, RenameSchema, CreateSchemaOptions, CreateTrigger, DropTrigger, RenameTrigger, TriggerOptions, CreateType, DropType, RenameType, AddTypeAttribute, DropTypeAttribute, SetTypeAttribute, AddTypeValue, RenameTypeAttribute, RenameTypeValue, AddTypeValueOptions, CreateView, DropView, AlterView, AlterViewColumn, RenameView, CreateViewOptions, AlterViewOptions, AlterViewColumnOptions, CreateMaterializedView, DropMaterializedView, AlterMaterializedView, RenameMaterializedView, RenameMaterializedViewColumn, RefreshMaterializedView, CreateMaterializedViewOptions, AlterMaterializedViewOptions, RefreshMaterializedViewOptions, }; |
@@ -51,6 +51,7 @@ "use strict"; | ||
const newFile = `${directory}/${Date.now()}${SEPARATOR}${name}.${suffix}`; | ||
await new Promise((resolve) => { | ||
await new Promise((resolve, reject) => { | ||
fs_1.default.createReadStream(path_1.default.resolve(__dirname, `../templates/migration-template.${suffix}`)) | ||
.pipe(fs_1.default.createWriteStream(newFile)) | ||
.on('end', resolve); | ||
.on('close', resolve) | ||
.on('error', reject); | ||
}); | ||
@@ -57,0 +58,0 @@ return newFile; |
{ | ||
"name": "node-pg-migrate", | ||
"version": "4.6.2", | ||
"version": "4.7.0", | ||
"description": "Postgresql database migration management tool for node.js", | ||
@@ -60,4 +60,4 @@ "author": "Theo Ephraim", | ||
"@types/sinon-chai": "3.2.4", | ||
"@typescript-eslint/eslint-plugin": "2.28.0", | ||
"@typescript-eslint/parser": "2.28.0", | ||
"@typescript-eslint/eslint-plugin": "2.29.0", | ||
"@typescript-eslint/parser": "2.29.0", | ||
"chai": "4.2.0", | ||
@@ -71,3 +71,3 @@ "chai-as-promised": "7.1.1", | ||
"eslint-config-airbnb-base": "14.1.0", | ||
"eslint-config-prettier": "6.10.1", | ||
"eslint-config-prettier": "6.11.0", | ||
"eslint-import-resolver-typescript": "2.0.0", | ||
@@ -78,6 +78,7 @@ "eslint-plugin-import": "2.20.2", | ||
"husky": "4.2.5", | ||
"lint-staged": "10.1.6", | ||
"mocha": "7.1.1", | ||
"pg": "8.0.2", | ||
"prettier": "2.0.4", | ||
"json5": "2.1.3", | ||
"lint-staged": "10.1.7", | ||
"mocha": "7.1.2", | ||
"pg": "8.0.3", | ||
"prettier": "2.0.5", | ||
"proxyquire": "2.1.3", | ||
@@ -87,3 +88,3 @@ "rimraf": "3.0.2", | ||
"sinon-chai": "3.5.0", | ||
"ts-node": "8.8.2", | ||
"ts-node": "8.9.1", | ||
"typescript": "3.8.3" | ||
@@ -90,0 +91,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
272755
3289
35