@ljharb/unused-files 0.1.1 → 0.1.2

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.
Files changed (4) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/index.mjs +13 -0
  3. package/package.json +16 -13
  4. package/jsr.json +0 -17
package/CHANGELOG.md CHANGED
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [v0.1.2](https://github.com/ljharb/unused-files/compare/v0.1.1...v0.1.2) - 2025-05-29
9
+
10
+ ### Commits
11
+
12
+ - [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/micromatch`, `@types/tape`, `auto-changelog`, `c8`, `playwright`, `tape` [`5ea2a9b`](https://github.com/ljharb/unused-files/commit/5ea2a9b60474033374e143a524b13dfeaeac3e9b)
13
+ - [jsr] v0.1.1 [`3c9b832`](https://github.com/ljharb/unused-files/commit/3c9b8326b3b3d203fea7467d80f2d39246f53c69)
14
+ - [Deps] update `knip`, `micromatch` [`ae13f9e`](https://github.com/ljharb/unused-files/commit/ae13f9e01ca10e7de50a11fb1af4c5a45a0c4ece)
15
+ - [Tests] replace `aud` with `npm audit` [`9cd7f44`](https://github.com/ljharb/unused-files/commit/9cd7f44ca05ae87d1be364113d732e897c622ddb)
16
+ - [Dev Deps] add missing peer dep [`d893df4`](https://github.com/ljharb/unused-files/commit/d893df4293dd7a73ba2cca2b0682e057a9b41416)
17
+ - [Dev Deps] add `playwright` because `knip` and TS needs it [`444359d`](https://github.com/ljharb/unused-files/commit/444359db8c78b4d15371c10aeacecebcc72c62f9)
18
+
8
19
  ## [v0.1.1](https://github.com/ljharb/unused-files/compare/v0.1.0...v0.1.1) - 2024-04-12
9
20
 
10
21
  ### Commits
package/index.mjs CHANGED
@@ -18,17 +18,30 @@ export default async function unusedFiles(
18
18
  const { main: knip } = await import('knip');
19
19
 
20
20
  ({ issues: { files } } = await knip({
21
+ cacheLocation: '',
21
22
  cwd,
23
+ excludedIssueTypes: [],
22
24
  fixTypes: [],
23
25
  gitignore: true,
26
+ includedIssueTypes: [],
27
+ isCache: false,
28
+ isDebug: false,
29
+ isDependenciesShorthand: false,
30
+ isExportsShorthand: false,
31
+ isFilesShorthand: false,
24
32
  isFix: false,
33
+ isFormat: false,
25
34
  isIncludeEntryExports: true,
26
35
  isIncludeLibs: true,
27
36
  isIsolateWorkspaces: false,
28
37
  isProduction: true,
38
+ isRemoveFiles: false,
29
39
  isShowProgress: false,
30
40
  isStrict: true,
41
+ isWatch: false,
31
42
  tags: [[], []],
43
+ tsConfigFile: '',
44
+ workspace: undefined,
32
45
  }));
33
46
  } finally {
34
47
  process.argv = origArgv;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ljharb/unused-files",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "List unused files in your package.",
5
5
  "bin": "./bin.mjs",
6
6
  "main": false,
@@ -17,7 +17,7 @@
17
17
  "pretest": "npm run lint",
18
18
  "tests-only": "c8 tape 'test/**/*.mjs'",
19
19
  "test": "npm run tests-only",
20
- "posttest": "aud --production",
20
+ "posttest": "npx npm@\">= 10.2\" audit --production",
21
21
  "version": "auto-changelog && git add CHANGELOG.md",
22
22
  "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
23
23
  },
@@ -37,27 +37,29 @@
37
37
  },
38
38
  "homepage": "https://github.com/ljharb/unused-files#readme",
39
39
  "dependencies": {
40
- "knip": "^5.9.4",
41
- "micromatch": "^4.0.5",
40
+ "knip": "^5.59.1",
41
+ "micromatch": "^4.0.8",
42
42
  "object.groupby": "^1.0.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@arethetypeswrong/cli": "^0.15.3",
45
+ "@arethetypeswrong/cli": "^0.18.1",
46
46
  "@jest/types": "^29.6.3",
47
- "@ljharb/eslint-config": "^21.1.0",
48
- "@ljharb/tsconfig": "^0.2.0",
49
- "@types/micromatch": "^4.0.6",
47
+ "@ljharb/eslint-config": "^21.1.1",
48
+ "@ljharb/tsconfig": "^0.3.2",
49
+ "@types/micromatch": "^4.0.9",
50
+ "@types/minimist": "^1.2.5",
50
51
  "@types/object.groupby": "^1.0.4",
51
- "@types/tape": "^5.6.4",
52
+ "@types/tape": "^5.8.1",
52
53
  "@types/webpack": "^5.28.5",
53
- "aud": "^2.0.4",
54
- "auto-changelog": "^2.4.0",
54
+ "auto-changelog": "^2.5.0",
55
55
  "c8": "^9.1.0",
56
+ "encoding": "^0.1.13",
56
57
  "eslint": "=8.8.0",
57
58
  "in-publish": "^2.0.1",
58
59
  "npmignore": "^0.3.1",
60
+ "playwright": "^1.52.0",
59
61
  "safe-publish-latest": "^2.0.0",
60
- "tape": "^5.7.5",
62
+ "tape": "^5.9.0",
61
63
  "typescript": "next"
62
64
  },
63
65
  "engines": {
@@ -77,7 +79,8 @@
77
79
  ".github/workflows",
78
80
  ".eslintrc",
79
81
  ".nycrc",
80
- "test"
82
+ "test",
83
+ "jsr.json"
81
84
  ]
82
85
  }
83
86
  }
package/jsr.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "name": "@ljharb/unused-files",
3
- "version": "0.1.0",
4
- "bin": "./bin.mjs",
5
- "exports": {
6
- "./package.json": "./package.json"
7
- },
8
- "publish": {
9
- "include": ["**/*"],
10
- "exclude": [
11
- ".github/workflows",
12
- ".eslintrc",
13
- ".nycrc",
14
- "test"
15
- ]
16
- }
17
- }