Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-pg-migrate

Package Overview
Dependencies
Maintainers
0
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pg-migrate - npm Package Compare versions

Comparing version 7.8.0 to 7.9.0

6

dist/index.js

@@ -19,4 +19,4 @@ "use strict";

var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var src_exports = {};
__export(src_exports, {
var index_exports = {};
__export(index_exports, {
Migration: () => import_migration.Migration,

@@ -29,3 +29,3 @@ PgLiteral: () => import_utils.PgLiteral,

});
module.exports = __toCommonJS(src_exports);
module.exports = __toCommonJS(index_exports);
var import_migration = require("./migration");

@@ -32,0 +32,0 @@ var import_runner = require("./runner");

@@ -71,5 +71,7 @@ "use strict";

nodir: true,
absolute: true
withFileTypes: true
});
return globMatches.sort(localeCompareStringsNumerically);
return globMatches.sort(
(a, b) => compareFileNamesByTimestamp(a.name, b.name, logger) || localeCompareStringsNumerically(a.name, b.name)
).map((pathScurry) => pathScurry.fullpath());
}

@@ -76,0 +78,0 @@ if (Array.isArray(dir) || Array.isArray(ignorePattern)) {

@@ -17,4 +17,5 @@ import type { MigrationOptions } from '../../types';

sequenceGenerated?: null | false | SequenceGeneratedOptions;
expressionGenerated?: null | string;
}
export type AlterColumn = (tableName: Name, columnName: string, options: AlterColumnOptions) => string;
export declare function alterColumn(mOptions: MigrationOptions): AlterColumn;

@@ -35,3 +35,4 @@ "use strict";

allowNull,
comment
comment,
expressionGenerated
} = options;

@@ -69,2 +70,10 @@ const sequenceGenerated = options.sequenceGenerated === void 0 ? options.generated : options.sequenceGenerated;

}
if (expressionGenerated !== void 0) {
if (typeof expressionGenerated === "string") {
actions.push(`SET EXPRESSION AS (${expressionGenerated})`);
}
if (expressionGenerated === null) {
actions.push("DROP EXPRESSION");
}
}
const queries = [];

@@ -71,0 +80,0 @@ if (actions.length > 0) {

{
"name": "node-pg-migrate",
"version": "7.8.0",
"version": "7.9.0",
"description": "PostgreSQL database migration management tool for node.js",
"bin": {
"node-pg-migrate": "bin/node-pg-migrate.js",
"node-pg-migrate-cjs": "bin/node-pg-migrate.js",
"node-pg-migrate-esm": "bin/node-pg-migrate.mjs"
"keywords": [
"db",
"database",
"migrate",
"migration",
"migrations",
"migrator",
"db-migrate",
"sql",
"pg",
"postgre",
"postgres",
"postgresql",
"cockroach",
"cockroachdb",
"extensible",
"expandable",
"programatic",
"programable",
"api"
],
"homepage": "https://github.com/salsita/node-pg-migrate",
"bugs": {
"url": "https://github.com/salsita/node-pg-migrate/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/salsita/node-pg-migrate.git"
},
"license": "MIT",
"author": "Theo Ephraim",
"contributors": [
"Salsita Software <jando@salsitasoft.com>",
"Christopher Quadflieg <chrissi92@hotmail.de>"
],
"type": "commonjs",
"main": "dist/index.js",
"module": "dist/esm/index.mjs",
"types": "dist/index.d.ts",
"exports": {

@@ -38,2 +65,10 @@ "./dist/*": {

},
"main": "dist/index.js",
"module": "dist/esm/index.mjs",
"types": "dist/index.d.ts",
"bin": {
"node-pg-migrate": "bin/node-pg-migrate.js",
"node-pg-migrate-cjs": "bin/node-pg-migrate.js",
"node-pg-migrate-esm": "bin/node-pg-migrate.mjs"
},
"files": [

@@ -44,37 +79,2 @@ "bin",

],
"author": "Theo Ephraim",
"contributors": [
"Salsita Software <jando@salsitasoft.com>",
"Christopher Quadflieg <chrissi92@hotmail.de>"
],
"keywords": [
"db",
"database",
"migrate",
"migration",
"migrations",
"migrator",
"db-migrate",
"sql",
"pg",
"postgre",
"postgres",
"postgresql",
"cockroach",
"cockroachdb",
"extensible",
"expandable",
"programatic",
"programable",
"api"
],
"bugs": {
"url": "https://github.com/salsita/node-pg-migrate/issues"
},
"license": "MIT",
"homepage": "https://github.com/salsita/node-pg-migrate",
"repository": {
"type": "git",
"url": "git+https://github.com/salsita/node-pg-migrate.git"
},
"dependencies": {

@@ -85,18 +85,18 @@ "glob": "11.0.0",

"devDependencies": {
"@eslint-types/prettier": "5.1.3",
"@eslint-types/typescript-eslint": "7.5.0",
"@eslint-types/unicorn": "52.0.0",
"@eslint/compat": "1.2.5",
"@eslint/js": "9.18.0",
"@stylistic/eslint-plugin": "2.12.1",
"@types/config": "3.3.5",
"@types/node": "18.19.64",
"@types/eslint__js": "8.42.3",
"@types/node": "22.10.5",
"@types/pg": "8.11.10",
"@types/yargs": "17.0.33",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@vitest/coverage-v8": "2.1.5",
"@vitest/ui": "2.1.5",
"@vitest/coverage-v8": "2.1.8",
"@vitest/eslint-plugin": "1.1.24",
"@vitest/ui": "2.1.8",
"config": "3.3.12",
"cross-env": "7.0.3",
"dotenv": "16.4.5",
"dotenv-expand": "11.0.7",
"eslint": "8.57.1",
"dotenv": "16.4.7",
"dotenv-expand": "12.0.1",
"eslint": "9.18.0",
"eslint-config-prettier": "9.1.0",

@@ -106,9 +106,11 @@ "eslint-define-config": "2.1.0",

"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-unicorn": "55.0.0",
"eslint-plugin-unicorn": "56.0.1",
"jiti": "2.4.2",
"json5": "2.2.3",
"node-pg-migrate": "file:.",
"npm-run-all2": "6.2.6",
"npm-run-all2": "7.0.2",
"pg": "8.13.1",
"prettier": "3.3.3",
"prettier": "3.4.2",
"prettier-plugin-organize-imports": "4.1.0",
"prettier-plugin-packagejson": "2.5.6",
"rimraf": "6.0.1",

@@ -118,5 +120,6 @@ "ts-node": "10.9.2",

"tsx": "4.19.2",
"typescript": "5.6.3",
"typescript": "5.7.3",
"typescript-eslint": "8.19.1",
"vitepress": "1.5.0",
"vitest": "2.1.5"
"vitest": "2.1.8"
},

@@ -143,3 +146,3 @@ "peerDependencies": {

"format": "prettier --cache --write .",
"lint": "eslint --cache --cache-strategy content --report-unused-disable-directives .",
"lint": "eslint --cache --cache-strategy content .",
"ts-check": "tsc",

@@ -146,0 +149,0 @@ "test": "vitest",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc