knip 6.0.0-3 → 6.0.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
@@ -3,7 +3,7 @@ import { run } from "./run.js";
3
3
  import parseArgs, { helpText } from "./util/cli-arguments.js";
4
4
  import { createOptions } from "./util/create-options.js";
5
5
  import { getKnownErrors, hasErrorCause, isConfigurationError, isKnownError, isLoaderError, isModuleNotFoundError, } from "./util/errors.js";
6
- import { logError, logWarning } from "./util/log.js";
6
+ import { logError } from "./util/log.js";
7
7
  import { perfObserver } from "./util/Performance.js";
8
8
  import { runPreprocessors, runReporters } from "./util/reporter.js";
9
9
  import { prettyMilliseconds } from "./util/string.js";
@@ -72,9 +72,6 @@ const main = async () => {
72
72
  console.log('\nTotal running time:', prettyMilliseconds(duration));
73
73
  perfObserver.reset();
74
74
  }
75
- if (args['experimental-tags'] && args['experimental-tags'].length > 0) {
76
- logWarning('DEPRECATION WARNING', '--experimental-tags is deprecated, please start using --tags instead');
77
- }
78
75
  if ((!args['no-exit-code'] && totalErrorCount > Number(args['max-issues'] ?? 0)) ||
79
76
  (!options.isDisableConfigHints && options.isTreatConfigHintsAsErrors && configurationHints.length > 0)) {
80
77
  process.exit(1);
@@ -10,7 +10,6 @@ export default function parseCLIArgs(): {
10
10
  exclude?: string[] | undefined;
11
11
  exports?: boolean | undefined;
12
12
  tags?: string[] | undefined;
13
- 'experimental-tags'?: string[] | undefined;
14
13
  files?: boolean | undefined;
15
14
  fix?: boolean | undefined;
16
15
  'fix-type'?: string[] | undefined;
@@ -87,7 +87,6 @@ export default function parseCLIArgs() {
87
87
  exclude: { type: 'string', multiple: true },
88
88
  exports: { type: 'boolean' },
89
89
  tags: { type: 'string', multiple: true },
90
- 'experimental-tags': { type: 'string', multiple: true },
91
90
  files: { type: 'boolean' },
92
91
  fix: { type: 'boolean' },
93
92
  'fix-type': { type: 'string', multiple: true },
@@ -90,7 +90,7 @@ export const createOptions = async (options) => {
90
90
  }
91
91
  const fixTypes = options.fixTypes ?? args['fix-type'] ?? [];
92
92
  const isFixFiles = args['allow-remove-files'] && (fixTypes.length === 0 || fixTypes.includes('files'));
93
- const tags = splitTags(args.tags ?? options.tags ?? parsedConfig.tags ?? args['experimental-tags'] ?? []);
93
+ const tags = splitTags(args.tags ?? options.tags ?? parsedConfig.tags ?? []);
94
94
  const workspace = options.workspace ?? args.workspace;
95
95
  return {
96
96
  cacheLocation: args['cache-location'] ?? join(cwd, 'node_modules', '.cache', 'knip'),
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "6.0.0-3";
1
+ export declare const version = "6.0.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '6.0.0-3';
1
+ export const version = '6.0.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "6.0.0-3",
3
+ "version": "6.0.0",
4
4
  "description": "Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects",
5
5
  "keywords": [
6
6
  "analysis",