diff --git a/knip.config.ts b/knip.config.ts index 2f44be83fb3186..d1192e38da6f60 100644 --- a/knip.config.ts +++ b/knip.config.ts @@ -75,10 +75,6 @@ const config: KnipConfig = { ignoreDependencies: [ 'core-js', 'tslib', // subdependency of many packages, declare the latest version - 'jest-environment-jsdom', // used as testEnvironment in jest config - 'jsdom', // knip thinks we need this because of jest-environment jsdom - 'swc-plugin-component-annotate', // used in rspack config, needs better knip plugin - '@swc/plugin-emotion', // used in rspack config, needs better knip plugin 'buffer', // rspack.ProvidePlugin, needs better knip plugin 'process', // rspack.ProvidePlugin, needs better knip plugin '@babel/preset-env', // Still used in jest diff --git a/package.json b/package.json index 9fff38b759cd1f..282eaecd5c31c5 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "https-proxy": "caddy run --config - <<< '{\"apps\":{\"http\":{\"servers\":{\"srv0\":{\"listen\":[\":8003\"],\"routes\":[{\"handle\":[{\"handler\":\"reverse_proxy\",\"upstreams\":[{\"dial\":\"localhost:8000\"}]}]}],\"tls_connection_policies\":[{\"certificate_selection\":{\"any_tag\":[\"cert0\"]}}]}}},\"tls\":{\"certificates\":{\"load_files\":[{\"certificate\":\"./config/localhost.pem\",\"key\":\"./config/localhost-key.pem\",\"tags\":[\"cert0\"]}]}}}}'", "snapshots": "jest --config jest.config.snapshots.ts", "knip": "knip --treat-config-hints-as-errors", - "knip:prod": "pnpm run knip --production --exclude dependencies,unresolved" + "knip:prod": "pnpm run knip --production --exclude dependencies" }, "dependencies": { "@amplitude/analytics-browser": "^1.5.3", @@ -279,7 +279,7 @@ "jest-environment-jsdom": "30.3.0", "jest-fail-on-console": "3.3.4", "jest-junit": "16.0.0", - "knip": "6.3.1", + "knip": "6.4.1", "odiff-bin": "^4.3.2", "oxfmt": "^0.41.0", "playwright": "^1.58.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 92fcf814bad55b..a4fe24fb2449bf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -695,8 +695,8 @@ importers: specifier: 16.0.0 version: 16.0.0 knip: - specifier: 6.3.1 - version: 6.3.1 + specifier: 6.4.1 + version: 6.4.1 odiff-bin: specifier: ^4.3.2 version: 4.3.2 @@ -7171,8 +7171,8 @@ packages: resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} engines: {node: '>=6'} - knip@6.3.1: - resolution: {integrity: sha512-22kLJloVcOVOAudCxlFOC0ICAMme7dKsS7pVTEnrmyKGpswb8ieznvAiSKUeFVDJhb01ect6dkDc1Ha1g1sPpg==} + knip@6.4.1: + resolution: {integrity: sha512-Ry+ywmDFSZvKp/jx7LxMgsZWRTs931alV84e60lh0Stf6kSRYqSIUTkviyyDFRcSO3yY1Kpbi83OirN+4lA2Xw==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true @@ -7986,10 +7986,6 @@ packages: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} - picomatch@4.0.3: - resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} - engines: {node: '>=12'} - picomatch@4.0.4: resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==} engines: {node: '>=12'} @@ -17402,7 +17398,7 @@ snapshots: '@types/stack-utils': 2.0.3 chalk: 4.1.2 graceful-fs: 4.2.11 - picomatch: 4.0.3 + picomatch: 4.0.4 pretty-format: 30.3.0 slash: 3.0.0 stack-utils: 2.0.6 @@ -17541,7 +17537,7 @@ snapshots: chalk: 4.1.2 ci-info: 4.2.0 graceful-fs: 4.2.11 - picomatch: 4.0.3 + picomatch: 4.0.4 jest-validate@30.3.0: dependencies: @@ -17725,7 +17721,7 @@ snapshots: kleur@4.1.5: {} - knip@6.3.1: + knip@6.4.1: dependencies: '@nodelib/fs.walk': 1.2.8 fast-glob: 3.3.3 @@ -18855,8 +18851,6 @@ snapshots: picomatch@2.3.1: {} - picomatch@4.0.3: {} - picomatch@4.0.4: {} pify@4.0.1: