@lightdash/cli 0.1425.5 → 0.1426.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,8 @@ const getDbtManifest = async () => {
19
19
  return common_1.DbtManifestVersion.V11;
20
20
  if (version.startsWith('1.8.'))
21
21
  return common_1.DbtManifestVersion.V12;
22
+ if (version.startsWith('1.9.'))
23
+ return common_1.DbtManifestVersion.V12;
22
24
  return common_1.DbtManifestVersion.V8;
23
25
  };
24
26
  exports.getDbtManifest = getDbtManifest;
@@ -34,14 +34,14 @@ const compile = async (options) => {
34
34
  });
35
35
  if (!(0, getDbtVersion_1.isSupportedDbtVersion)(dbtVersion)) {
36
36
  if (process.env.CI === 'true') {
37
- console.error(`Your dbt version ${dbtVersion} does not match our supported versions (1.3.* - 1.8.*), this could cause problems on compile or validation.`);
37
+ console.error(`Your dbt version ${dbtVersion} does not match our supported versions (1.3.* - 1.9.*), this could cause problems on compile or validation.`);
38
38
  }
39
39
  else {
40
40
  const answers = await inquirer_1.default.prompt([
41
41
  {
42
42
  type: 'confirm',
43
43
  name: 'isConfirm',
44
- message: `${styles.warning(`Your dbt version ${dbtVersion} does not match our supported version (1.3.* - 1.8.*), this could cause problems on compile or validation.`)}\nDo you still want to continue?`,
44
+ message: `${styles.warning(`Your dbt version ${dbtVersion} does not match our supported version (1.3.* - 1.9.*), this could cause problems on compile or validation.`)}\nDo you still want to continue?`,
45
45
  },
46
46
  ]);
47
47
  if (!answers.isConfirm) {
@@ -36,12 +36,22 @@ const getSupportedDbtVersion = async () => {
36
36
  return common_1.SupportedDbtVersions.V1_7;
37
37
  if (version.startsWith('1.8.'))
38
38
  return common_1.SupportedDbtVersions.V1_8;
39
+ if (version.startsWith('1.9.'))
40
+ return common_1.SupportedDbtVersions.V1_9;
39
41
  console.error(styles.warning(`We don't currently support version ${version} on Lightdash, we'll be using ${common_1.DefaultSupportedDbtVersion} instead when dbt is refresh from the UI.`));
40
42
  return common_1.DefaultSupportedDbtVersion;
41
43
  };
42
44
  exports.getSupportedDbtVersion = getSupportedDbtVersion;
43
45
  const isSupportedDbtVersion = (version) => {
44
- const supportedVersions = ['1.3.', '1.4.', '1.5.', '1.6.', '1.7', '1.8'];
46
+ const supportedVersions = [
47
+ '1.3.',
48
+ '1.4.',
49
+ '1.5.',
50
+ '1.6.',
51
+ '1.7',
52
+ '1.8',
53
+ '1.9',
54
+ ];
45
55
  return supportedVersions.some((supportedVersion) => version.startsWith(supportedVersion));
46
56
  };
47
57
  exports.isSupportedDbtVersion = isSupportedDbtVersion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/cli",
3
- "version": "0.1425.5",
3
+ "version": "0.1426.1",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "lightdash": "dist/index.js"
@@ -11,8 +11,8 @@
11
11
  ],
12
12
  "dependencies": {
13
13
  "@actions/core": "^1.11.1",
14
- "@lightdash/common": "^0.1425.5",
15
- "@lightdash/warehouses": "^0.1425.5",
14
+ "@lightdash/common": "^0.1426.1",
15
+ "@lightdash/warehouses": "^0.1426.1",
16
16
  "@types/columnify": "^1.5.1",
17
17
  "ajv": "^8.11.0",
18
18
  "ajv-formats": "^2.1.1",