@pgpmjs/core 6.10.3 → 6.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/files/plan/parser.js +2 -1
- package/esm/files/plan/writer.js +0 -4
- package/esm/files/sql/writer.js +0 -4
- package/esm/migrate/utils/transaction.js +1 -1
- package/files/plan/parser.d.ts +2 -1
- package/files/plan/parser.js +2 -1
- package/files/plan/writer.d.ts +0 -4
- package/files/plan/writer.js +0 -5
- package/files/sql/writer.d.ts +0 -4
- package/files/sql/writer.js +1 -5
- package/files/types/index.d.ts +0 -4
- package/migrate/utils/transaction.js +1 -1
- package/package.json +7 -7
package/esm/files/plan/parser.js
CHANGED
|
@@ -263,7 +263,8 @@ export function resolveReference(ref, plan, currentPackage) {
|
|
|
263
263
|
return { error: `Cannot resolve reference: ${ref}` };
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
266
|
-
* Simple plan file parser without validation
|
|
266
|
+
* Simple plan file parser without validation.
|
|
267
|
+
* Returns a PlanFile (without tags) for callers that don't need tag data.
|
|
267
268
|
*/
|
|
268
269
|
export function parsePlanFileSimple(planPath) {
|
|
269
270
|
const result = parsePlanFile(planPath);
|
package/esm/files/plan/writer.js
CHANGED
package/esm/files/sql/writer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Logger } from '@pgpmjs/logger';
|
|
2
2
|
import { extractPgErrorFields, formatPgErrorFields } from '@pgpmjs/types';
|
|
3
3
|
import { formatQueryHistory, truncateErrorOutput } from './errors';
|
|
4
|
-
// Re-export error formatting functions
|
|
4
|
+
// Re-export error formatting functions
|
|
5
5
|
export { formatQueryHistory, truncateErrorOutput } from './errors';
|
|
6
6
|
const log = new Logger('migrate:transaction');
|
|
7
7
|
/**
|
package/files/plan/parser.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export declare function resolveReference(ref: string, plan: ExtendedPlanFile, cu
|
|
|
14
14
|
error?: string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
* Simple plan file parser without validation
|
|
17
|
+
* Simple plan file parser without validation.
|
|
18
|
+
* Returns a PlanFile (without tags) for callers that don't need tag data.
|
|
18
19
|
*/
|
|
19
20
|
export declare function parsePlanFileSimple(planPath: string): PlanFile;
|
|
20
21
|
/**
|
package/files/plan/parser.js
CHANGED
|
@@ -270,7 +270,8 @@ function resolveReference(ref, plan, currentPackage) {
|
|
|
270
270
|
return { error: `Cannot resolve reference: ${ref}` };
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
|
-
* Simple plan file parser without validation
|
|
273
|
+
* Simple plan file parser without validation.
|
|
274
|
+
* Returns a PlanFile (without tags) for callers that don't need tag data.
|
|
274
275
|
*/
|
|
275
276
|
function parsePlanFileSimple(planPath) {
|
|
276
277
|
const result = parsePlanFile(planPath);
|
package/files/plan/writer.d.ts
CHANGED
|
@@ -25,7 +25,3 @@ export declare function generateChangeLineContent(change: Change): string;
|
|
|
25
25
|
* Generate a line for a tag in a plan file
|
|
26
26
|
*/
|
|
27
27
|
export declare function generateTagLineContent(tag: Tag): string;
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Use writePgpmPlan instead. This alias is kept for backwards compatibility.
|
|
30
|
-
*/
|
|
31
|
-
export declare const writeSqitchPlan: typeof writePgpmPlan;
|
package/files/plan/writer.js
CHANGED
|
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.writeSqitchPlan = void 0;
|
|
7
6
|
exports.writePgpmPlan = writePgpmPlan;
|
|
8
7
|
exports.writePlanFile = writePlanFile;
|
|
9
8
|
exports.generatePlanFileContent = generatePlanFileContent;
|
|
@@ -125,7 +124,3 @@ function generateTagLineContent(tag) {
|
|
|
125
124
|
}
|
|
126
125
|
return line;
|
|
127
126
|
}
|
|
128
|
-
/**
|
|
129
|
-
* @deprecated Use writePgpmPlan instead. This alias is kept for backwards compatibility.
|
|
130
|
-
*/
|
|
131
|
-
exports.writeSqitchPlan = writePgpmPlan;
|
package/files/sql/writer.d.ts
CHANGED
|
@@ -10,7 +10,3 @@ export interface SqlWriteOptions {
|
|
|
10
10
|
* Write SQL files for PGPM migrations (deploy, revert, verify)
|
|
11
11
|
*/
|
|
12
12
|
export declare const writePgpmFiles: (rows: PgpmRow[], opts: SqlWriteOptions) => void;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use writePgpmFiles instead. This alias is kept for backwards compatibility.
|
|
15
|
-
*/
|
|
16
|
-
export declare const writeSqitchFiles: (rows: PgpmRow[], opts: SqlWriteOptions) => void;
|
package/files/sql/writer.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.writePgpmFiles = void 0;
|
|
7
7
|
const env_1 = require("@pgpmjs/env");
|
|
8
8
|
const fs_1 = __importDefault(require("fs"));
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
@@ -112,7 +112,3 @@ ${useTx ? 'COMMIT;' : ''}
|
|
|
112
112
|
`;
|
|
113
113
|
fs_1.default.writeFileSync(actualFile, content);
|
|
114
114
|
};
|
|
115
|
-
/**
|
|
116
|
-
* @deprecated Use writePgpmFiles instead. This alias is kept for backwards compatibility.
|
|
117
|
-
*/
|
|
118
|
-
exports.writeSqitchFiles = exports.writePgpmFiles;
|
package/files/types/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ exports.executeQuery = executeQuery;
|
|
|
6
6
|
const logger_1 = require("@pgpmjs/logger");
|
|
7
7
|
const types_1 = require("@pgpmjs/types");
|
|
8
8
|
const errors_1 = require("./errors");
|
|
9
|
-
// Re-export error formatting functions
|
|
9
|
+
// Re-export error formatting functions
|
|
10
10
|
var errors_2 = require("./errors");
|
|
11
11
|
Object.defineProperty(exports, "formatQueryHistory", { enumerable: true, get: function () { return errors_2.formatQueryHistory; } });
|
|
12
12
|
Object.defineProperty(exports, "truncateErrorOutput", { enumerable: true, get: function () { return errors_2.truncateErrorOutput; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/core",
|
|
3
|
-
"version": "6.10.
|
|
3
|
+
"version": "6.10.5",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PGPM Package and Migration Tools",
|
|
6
6
|
"main": "index.js",
|
|
@@ -48,22 +48,22 @@
|
|
|
48
48
|
"makage": "^0.3.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@pgpmjs/env": "^2.16.
|
|
51
|
+
"@pgpmjs/env": "^2.16.3",
|
|
52
52
|
"@pgpmjs/logger": "^2.5.2",
|
|
53
|
-
"@pgpmjs/migrate-client": "^0.3.
|
|
54
|
-
"@pgpmjs/server-utils": "^3.5.
|
|
55
|
-
"@pgpmjs/types": "^2.20.
|
|
53
|
+
"@pgpmjs/migrate-client": "^0.3.4",
|
|
54
|
+
"@pgpmjs/server-utils": "^3.5.3",
|
|
55
|
+
"@pgpmjs/types": "^2.20.3",
|
|
56
56
|
"csv-to-pg": "^3.11.2",
|
|
57
57
|
"genomic": "^5.3.9",
|
|
58
58
|
"glob": "^13.0.6",
|
|
59
59
|
"minimatch": "^10.2.4",
|
|
60
60
|
"parse-package-name": "^1.0.0",
|
|
61
61
|
"pg": "^8.20.0",
|
|
62
|
-
"pg-cache": "^3.4.
|
|
62
|
+
"pg-cache": "^3.4.3",
|
|
63
63
|
"pg-env": "^1.8.2",
|
|
64
64
|
"pgsql-deparser": "^17.18.2",
|
|
65
65
|
"pgsql-parser": "^17.9.14",
|
|
66
66
|
"yanse": "^0.2.1"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "d0d8f5ca5828ad3efba5f607bc699a8d520e4603"
|
|
69
69
|
}
|