schemashift-cli 0.7.0 → 0.8.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/dist/cli.js CHANGED
@@ -35824,7 +35824,10 @@ var TIER_FEATURES = {
35824
35824
  customPlugins: false,
35825
35825
  governance: false,
35826
35826
  failOnWarnings: false,
35827
- maxRiskScoreThreshold: false
35827
+ maxRiskScoreThreshold: false,
35828
+ formResolverMigration: false,
35829
+ complexityEstimator: false,
35830
+ monorepoAware: false
35828
35831
  },
35829
35832
  [
35830
35833
  "individual"
@@ -35848,7 +35851,10 @@ var TIER_FEATURES = {
35848
35851
  customPlugins: false,
35849
35852
  governance: false,
35850
35853
  failOnWarnings: false,
35851
- maxRiskScoreThreshold: false
35854
+ maxRiskScoreThreshold: false,
35855
+ formResolverMigration: true,
35856
+ complexityEstimator: true,
35857
+ monorepoAware: false
35852
35858
  },
35853
35859
  [
35854
35860
  "pro"
@@ -35879,7 +35885,10 @@ var TIER_FEATURES = {
35879
35885
  customPlugins: false,
35880
35886
  governance: false,
35881
35887
  failOnWarnings: false,
35882
- maxRiskScoreThreshold: false
35888
+ maxRiskScoreThreshold: false,
35889
+ formResolverMigration: true,
35890
+ complexityEstimator: true,
35891
+ monorepoAware: true
35883
35892
  },
35884
35893
  [
35885
35894
  "team"
@@ -35910,7 +35919,10 @@ var TIER_FEATURES = {
35910
35919
  customPlugins: true,
35911
35920
  governance: true,
35912
35921
  failOnWarnings: true,
35913
- maxRiskScoreThreshold: true
35922
+ maxRiskScoreThreshold: true,
35923
+ formResolverMigration: true,
35924
+ complexityEstimator: true,
35925
+ monorepoAware: true
35914
35926
  }
35915
35927
  };
35916
35928
  function canUseMigration(tier, from, to) {
@@ -36894,8 +36906,12 @@ Changed: ${relative2(process.cwd(), fullPath)}`));
36894
36906
  console.log(pc3.green(`Transformed successfully
36895
36907
  `));
36896
36908
  } catch (error) {
36897
- console.error(pc3.red(`Transform failed: ${error}
36898
- `));
36909
+ console.error(
36910
+ pc3.red(
36911
+ `Transform failed: ${error instanceof Error ? error.message : String(error)}
36912
+ `
36913
+ )
36914
+ );
36899
36915
  }
36900
36916
  this.debounceTimers.delete(fullPath);
36901
36917
  }, 100)
@@ -37149,6 +37165,10 @@ program.command("migrate <path>").description("Migrate schemas from one library
37149
37165
  Number.parseInt
37150
37166
  ).action(async (targetPath, options) => {
37151
37167
  const startTime = Date.now();
37168
+ if (options.maxRiskScore !== void 0 && Number.isNaN(options.maxRiskScore)) {
37169
+ console.error(pc4.red("--max-risk-score must be a valid number."));
37170
+ process.exit(1);
37171
+ }
37152
37172
  let config2;
37153
37173
  try {
37154
37174
  config2 = await loadConfig(options.config);
package/dist/index.cjs CHANGED
@@ -33788,7 +33788,10 @@ var TIER_FEATURES = {
33788
33788
  customPlugins: false,
33789
33789
  governance: false,
33790
33790
  failOnWarnings: false,
33791
- maxRiskScoreThreshold: false
33791
+ maxRiskScoreThreshold: false,
33792
+ formResolverMigration: false,
33793
+ complexityEstimator: false,
33794
+ monorepoAware: false
33792
33795
  },
33793
33796
  [
33794
33797
  "individual"
@@ -33812,7 +33815,10 @@ var TIER_FEATURES = {
33812
33815
  customPlugins: false,
33813
33816
  governance: false,
33814
33817
  failOnWarnings: false,
33815
- maxRiskScoreThreshold: false
33818
+ maxRiskScoreThreshold: false,
33819
+ formResolverMigration: true,
33820
+ complexityEstimator: true,
33821
+ monorepoAware: false
33816
33822
  },
33817
33823
  [
33818
33824
  "pro"
@@ -33843,7 +33849,10 @@ var TIER_FEATURES = {
33843
33849
  customPlugins: false,
33844
33850
  governance: false,
33845
33851
  failOnWarnings: false,
33846
- maxRiskScoreThreshold: false
33852
+ maxRiskScoreThreshold: false,
33853
+ formResolverMigration: true,
33854
+ complexityEstimator: true,
33855
+ monorepoAware: true
33847
33856
  },
33848
33857
  [
33849
33858
  "team"
@@ -33874,7 +33883,10 @@ var TIER_FEATURES = {
33874
33883
  customPlugins: true,
33875
33884
  governance: true,
33876
33885
  failOnWarnings: true,
33877
- maxRiskScoreThreshold: true
33886
+ maxRiskScoreThreshold: true,
33887
+ formResolverMigration: true,
33888
+ complexityEstimator: true,
33889
+ monorepoAware: true
33878
33890
  }
33879
33891
  };
33880
33892
  var POLAR_ORG_ID = process.env.POLAR_ORG_ID || "79bbe935-1836-4b9e-9ca8-4c7a94217f5e";
@@ -34652,8 +34664,12 @@ Changed: ${(0, import_node_path2.relative)(process.cwd(), fullPath)}`));
34652
34664
  console.log(import_picocolors.default.green(`Transformed successfully
34653
34665
  `));
34654
34666
  } catch (error) {
34655
- console.error(import_picocolors.default.red(`Transform failed: ${error}
34656
- `));
34667
+ console.error(
34668
+ import_picocolors.default.red(
34669
+ `Transform failed: ${error instanceof Error ? error.message : String(error)}
34670
+ `
34671
+ )
34672
+ );
34657
34673
  }
34658
34674
  this.debounceTimers.delete(fullPath);
34659
34675
  }, 100)
package/dist/index.js CHANGED
@@ -33747,7 +33747,10 @@ var TIER_FEATURES = {
33747
33747
  customPlugins: false,
33748
33748
  governance: false,
33749
33749
  failOnWarnings: false,
33750
- maxRiskScoreThreshold: false
33750
+ maxRiskScoreThreshold: false,
33751
+ formResolverMigration: false,
33752
+ complexityEstimator: false,
33753
+ monorepoAware: false
33751
33754
  },
33752
33755
  [
33753
33756
  "individual"
@@ -33771,7 +33774,10 @@ var TIER_FEATURES = {
33771
33774
  customPlugins: false,
33772
33775
  governance: false,
33773
33776
  failOnWarnings: false,
33774
- maxRiskScoreThreshold: false
33777
+ maxRiskScoreThreshold: false,
33778
+ formResolverMigration: true,
33779
+ complexityEstimator: true,
33780
+ monorepoAware: false
33775
33781
  },
33776
33782
  [
33777
33783
  "pro"
@@ -33802,7 +33808,10 @@ var TIER_FEATURES = {
33802
33808
  customPlugins: false,
33803
33809
  governance: false,
33804
33810
  failOnWarnings: false,
33805
- maxRiskScoreThreshold: false
33811
+ maxRiskScoreThreshold: false,
33812
+ formResolverMigration: true,
33813
+ complexityEstimator: true,
33814
+ monorepoAware: true
33806
33815
  },
33807
33816
  [
33808
33817
  "team"
@@ -33833,7 +33842,10 @@ var TIER_FEATURES = {
33833
33842
  customPlugins: true,
33834
33843
  governance: true,
33835
33844
  failOnWarnings: true,
33836
- maxRiskScoreThreshold: true
33845
+ maxRiskScoreThreshold: true,
33846
+ formResolverMigration: true,
33847
+ complexityEstimator: true,
33848
+ monorepoAware: true
33837
33849
  }
33838
33850
  };
33839
33851
  var POLAR_ORG_ID = process.env.POLAR_ORG_ID || "79bbe935-1836-4b9e-9ca8-4c7a94217f5e";
@@ -34619,8 +34631,12 @@ Changed: ${relative2(process.cwd(), fullPath)}`));
34619
34631
  console.log(pc.green(`Transformed successfully
34620
34632
  `));
34621
34633
  } catch (error) {
34622
- console.error(pc.red(`Transform failed: ${error}
34623
- `));
34634
+ console.error(
34635
+ pc.red(
34636
+ `Transform failed: ${error instanceof Error ? error.message : String(error)}
34637
+ `
34638
+ )
34639
+ );
34624
34640
  }
34625
34641
  this.debounceTimers.delete(fullPath);
34626
34642
  }, 100)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schemashift-cli",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "TypeScript schema migration CLI - migrate between Zod, Yup, Joi, and more",
5
5
  "type": "module",
6
6
  "bin": {
@@ -49,12 +49,12 @@
49
49
  "author": "Joseph May",
50
50
  "license": "MIT",
51
51
  "dependencies": {
52
- "@schemashift/core": "0.7.0",
53
- "@schemashift/io-ts-zod": "0.7.0",
54
- "@schemashift/joi-zod": "0.7.0",
55
- "@schemashift/yup-zod": "0.7.0",
56
- "@schemashift/zod-valibot": "0.7.0",
57
- "@schemashift/zod-v3-v4": "0.7.0",
52
+ "@schemashift/core": "0.8.0",
53
+ "@schemashift/io-ts-zod": "0.8.0",
54
+ "@schemashift/joi-zod": "0.8.0",
55
+ "@schemashift/yup-zod": "0.8.0",
56
+ "@schemashift/zod-valibot": "0.8.0",
57
+ "@schemashift/zod-v3-v4": "0.8.0",
58
58
  "commander": "14.0.2",
59
59
  "cosmiconfig": "9.0.0",
60
60
  "glob": "13.0.0",
@@ -63,7 +63,7 @@
63
63
  "picocolors": "1.1.1"
64
64
  },
65
65
  "devDependencies": {
66
- "@schemashift/license": "0.4.0"
66
+ "@schemashift/license": "0.5.0"
67
67
  },
68
68
  "publishConfig": {
69
69
  "access": "public"