@sqlanvil/cli 1.33.1 → 1.34.0

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/._LICENSE ADDED
Binary file
package/._NOTICE ADDED
Binary file
package/._README.md ADDED
Binary file
package/._bundle.js ADDED
Binary file
package/._package.json ADDED
Binary file
Binary file
package/README.md CHANGED
@@ -12,7 +12,7 @@ authority for the version you have installed: `sqlanvil help` lists the commands
12
12
 
13
13
  ```bash
14
14
  npm install -g @sqlanvil/cli
15
- sqlanvil --version # sqlanvil 1.33.0 (Dataform core 3.0.71)
15
+ sqlanvil --version # sqlanvil 1.34.0 (Dataform core 3.1.0)
16
16
  ```
17
17
 
18
18
  Requires Node.js 20.19+ or 22.12+. `--version` reports the sqlanvil release and the Dataform core
package/bundle.js CHANGED
@@ -49759,13 +49759,6 @@ function unknownToValueShallow(raw) {
49759
49759
  throw new Error(`Unsupported value: ${raw}`);
49760
49760
  }
49761
49761
 
49762
- (() => {
49763
- if (typeof process !== "undefined") {
49764
- return process.platform === "win32" ? "\\" : "/";
49765
- }
49766
- return "/";
49767
- })();
49768
-
49769
49762
  const nativeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : require;
49770
49763
  function globToRegExp(pattern) {
49771
49764
  const escapeLiteral = (literal) => literal.replace(/[.+?^${}()|[\]\\]/g, "\\$&");
@@ -51218,8 +51211,8 @@ function collectEvaluationQueries(queryOrAction, concatenate, queryModifier = (q
51218
51211
  .filter((validationQuery) => !!validationQuery.query);
51219
51212
  }
51220
51213
 
51221
- const version = "1.33.1";
51222
- const dataformVersion = "3.0.71";
51214
+ const version = "1.34.0";
51215
+ const dataformVersion = "3.1.0";
51223
51216
 
51224
51217
  async function build(compiledGraph, runConfig, dbadapter) {
51225
51218
  const prunedGraph = prune(compiledGraph, runConfig);
@@ -51322,7 +51315,7 @@ class BaseWorker {
51322
51315
  async runWorker(timeoutMillis, onBoot, onMessage) {
51323
51316
  const forkScript = this.resolveScript();
51324
51317
  const child = childProcess.fork(forkScript, [], {
51325
- stdio: [0, 1, 2, "ipc", "pipe"],
51318
+ stdio: [0, 1, 2, "ipc"],
51326
51319
  });
51327
51320
  return new Promise((resolve, reject) => {
51328
51321
  let completed = false;
@@ -54237,7 +54230,7 @@ class Runner {
54237
54230
  }
54238
54231
  execute() {
54239
54232
  var _a, _b, _c;
54240
- if (!!this.executionTask) {
54233
+ if (this.executionTask !== undefined) {
54241
54234
  throw new Error("Executor already started.");
54242
54235
  }
54243
54236
  this.executionTask = this.executeGraph();
@@ -56782,6 +56775,7 @@ function postProcessFormattedSqlx(formattedSql) {
56782
56775
  return `${formattedSql.trim()}\n`;
56783
56776
  }
56784
56777
 
56778
+ const normalizeLineEndings = (text) => text.replace(/\r\n/g, "\n");
56785
56779
  const checkOptionName = "check";
56786
56780
  const ignoreJsFilesOptionName = "ignore-js-files";
56787
56781
  const formatCommand = {
@@ -56808,7 +56802,10 @@ const formatCommand = {
56808
56802
  actions = argv[actionsOption.name];
56809
56803
  }
56810
56804
  const filenames = actions
56811
- .map((action) => glob__namespace.sync(action, { cwd: argv[projectDirMustExistOption.name] }))
56805
+ .map((action) => glob__namespace.sync(action, {
56806
+ cwd: argv[projectDirMustExistOption.name],
56807
+ windowsPathsNoEscape: process.platform === "win32",
56808
+ }))
56812
56809
  .flat();
56813
56810
  const isCheckMode = argv[checkOptionName];
56814
56811
  const results = await Promise.all(filenames.map(async (filename) => {
@@ -56821,7 +56818,7 @@ const formatCommand = {
56821
56818
  });
56822
56819
  return {
56823
56820
  filename,
56824
- needsFormatting: fileContent !== formattedContent,
56821
+ needsFormatting: normalizeLineEndings(fileContent) !== normalizeLineEndings(formattedContent),
56825
56822
  };
56826
56823
  }
56827
56824
  else {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "dependencies": {
3
3
  "@duckdb/node-api": "^1.5.4-r.1",
4
4
  "@google-cloud/bigquery": "~8.3.0",
5
- "chokidar": "^3.5.3",
5
+ "chokidar": "^4.0.3",
6
6
  "deepmerge": "^4.2.2",
7
7
  "fs-extra": "^9.0.0",
8
8
  "glob": "13.0.6",
@@ -24,20 +24,20 @@
24
24
  "tmp": "^0.2.7",
25
25
  "typeid-js": "0.3.0",
26
26
  "untildify": "^4.0.0",
27
- "vm2": "3.11.6",
27
+ "vm2": "3.12.2",
28
28
  "yargs": "^16.2.0"
29
29
  },
30
30
  "resolutions": {
31
31
  "**/object-path": "^0.11.5",
32
32
  "**/http-proxy": "^1.18.1",
33
- "**/serialize-javascript": "^7.1.1",
33
+ "**/serialize-javascript": "^7.1.2",
34
34
  "**/ssri": "^7.1.1",
35
35
  "**/glob-parent": "^5.1.2",
36
36
  "**/node-forge": "^1.0.0",
37
37
  "**/json-bigint": "^1.0.0",
38
38
  "**/y18n": "^5.0.5",
39
39
  "**/underscore": "^1.12.1",
40
- "**/protobufjs": "^7.0.0",
40
+ "**/protobufjs": "^7.6.5",
41
41
  "**/ansi-regex": "^3.0.1",
42
42
  "**/json-schema": "^0.4.0",
43
43
  "**/nth-check": "^2.0.1",
@@ -48,7 +48,8 @@
48
48
  "**/string-width": "4.1.0",
49
49
  "**/@eslint-community/eslint-utils": "4.9.1",
50
50
  "**/@ungap/structured-clone": "1.3.1",
51
- "**/brace-expansion": "5.0.9",
51
+ "**/brace-expansion": "5.0.12",
52
+ "**/fast-uri": "^3.1.7",
52
53
  "**/linkify-it": "^5.0.2",
53
54
  "**/braces": "^3.0.3",
54
55
  "**/@eslint/plugin-kit": "0.7.2",
@@ -82,7 +83,7 @@
82
83
  "engines": {
83
84
  "node": "^20.19.0 || >=22.12.0"
84
85
  },
85
- "version": "1.33.1",
86
+ "version": "1.34.0",
86
87
  "name": "@sqlanvil/cli",
87
88
  "description": "sqlanvil command line interface.",
88
89
  "main": "bundle.js"