clickhouse-migrations 1.1.2 → 1.1.4

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/lib/migrate.js CHANGED
@@ -45,6 +45,7 @@ var commander_1 = require("commander");
45
45
  var fs_1 = __importDefault(require("fs"));
46
46
  var crypto_1 = __importDefault(require("crypto"));
47
47
  var sql_parse_1 = require("./sql-parse");
48
+ var version_1 = require("./version");
48
49
  var log = function (type, message, error) {
49
50
  if (type === void 0) { type = 'info'; }
50
51
  if (type === 'info') {
@@ -114,7 +115,7 @@ var create_db = function (host, username, password, db_name, db_engine, timeout,
114
115
  _a.label = 5;
115
116
  case 5:
116
117
  _a.trys.push([5, 7, , 8]);
117
- return [4 /*yield*/, client.exec({
118
+ return [4 /*yield*/, client.command({
118
119
  query: q,
119
120
  clickhouse_settings: {
120
121
  wait_end_of_query: 1,
@@ -144,7 +145,7 @@ var init_migration_table = function (client) { return __awaiter(void 0, void 0,
144
145
  _a.label = 1;
145
146
  case 1:
146
147
  _a.trys.push([1, 3, , 4]);
147
- return [4 /*yield*/, client.exec({
148
+ return [4 /*yield*/, client.command({
148
149
  query: q,
149
150
  clickhouse_settings: {
150
151
  wait_end_of_query: 1,
@@ -263,7 +264,7 @@ var apply_migrations = function (client, migrations, migrations_home) { return _
263
264
  _b.label = 8;
264
265
  case 8:
265
266
  _b.trys.push([8, 10, , 11]);
266
- return [4 /*yield*/, client.exec({
267
+ return [4 /*yield*/, client.command({
267
268
  query: query,
268
269
  clickhouse_settings: sets,
269
270
  })];
@@ -339,7 +340,7 @@ var migration = function (migrations_home, host, username, password, db_name, db
339
340
  exports.migration = migration;
340
341
  var migrate = function () {
341
342
  var program = new commander_1.Command();
342
- program.name('clickhouse-migrations').description('ClickHouse migrations.').version('1.1.2');
343
+ program.name('clickhouse-migrations').description('ClickHouse migrations.').version(version_1.VERSION);
343
344
  program
344
345
  .command('migrate')
345
346
  .description('Apply migrations.')
@@ -0,0 +1 @@
1
+ export declare const VERSION = "1.1.4";
package/lib/version.js ADDED
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VERSION = void 0;
4
+ exports.VERSION = '1.1.4'; // x-release-please-version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickhouse-migrations",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "ClickHouse Migrations",
5
5
  "bin": {
6
6
  "clickhouse-migrations": "lib/cli.js"
@@ -28,23 +28,23 @@
28
28
  "postversion": "git push && git push --tags"
29
29
  },
30
30
  "dependencies": {
31
- "@clickhouse/client": "^1.16.0",
32
- "commander": "^14.0.2"
31
+ "@clickhouse/client": "^1.18.2",
32
+ "commander": "^14.0.3"
33
33
  },
34
34
  "devDependencies": {
35
- "@eslint/js": "^9.39.2",
35
+ "@eslint/js": "^10.0.1",
36
36
  "@types/jest": "^30.0.0",
37
37
  "@types/node": "^20.0.0",
38
- "@typescript-eslint/eslint-plugin": "^8.54.0",
39
- "@typescript-eslint/parser": "^8.54.0",
40
- "eslint": "^9.39.2",
38
+ "@typescript-eslint/eslint-plugin": "^8.57.2",
39
+ "@typescript-eslint/parser": "^8.57.2",
40
+ "eslint": "^10.0.1",
41
41
  "eslint-config-prettier": "^10.1.8",
42
42
  "eslint-plugin-prettier": "^5.5.5",
43
- "jest": "^30.2.0",
43
+ "jest": "^30.3.0",
44
44
  "prettier": "^3.8.1",
45
45
  "ts-jest": "^29.4.6",
46
46
  "typescript": "^5.9.3",
47
- "typescript-eslint": "^8.54.0"
47
+ "typescript-eslint": "^8.57.2"
48
48
  },
49
49
  "files": [
50
50
  "lib/**/*"