Skip to content

Commit d552f4f

Browse files
committed
chore(deps): bump knip to 6.44.1
knip 6.44.1 tracks member use inside import().then() callbacks and follows Tailwind @reference and bun spawn arguments, so check:unused-exports now sees: - six exports only used in their own file (previously kept alive by an import('...').then(...) of their module): drop the export keyword and the matching keys in the storage-service test mock and the shared telemetry mock - @sim/auth-ui's stylesheet uses @reference/@apply from tailwindcss without listing it: declare it as a peer dependency (consumers compile it) - packages/db integration tests spawn bun scripts with an explicit cwd that knip cannot see: ignore those three specifiers with a reason
1 parent d7f3158 commit d552f4f

11 files changed

Lines changed: 42 additions & 43 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/note-block/note-markdown-editor.tsx‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ import type { NoteContentEditorProps } from '@sim/workflow-renderer'
55
import { RichMarkdownField } from '@/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-field'
66
import { useNoteImageUpload } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/note-block/use-note-image-upload'
77

8-
export const NOTE_EDITOR_PROSE_CLASS_NAME = [
8+
const NOTE_EDITOR_PROSE_CLASS_NAME = [
99
'min-h-full w-full text-current',
1010
/* The height the shared node chrome centres a checklist's checkbox against —
1111
the note's own line box, not the file editor's taller default. */
1212
'[--rich-markdown-line-height:1.25rem]',
1313
/* Mirrors NOTE_MARKDOWN_FLOW, the rhythm Streamdown paints in the read view.
1414
Tailwind's JIT only sees literal class strings, so this cannot be composed
15-
from that constant — the note view exports it, and the parity test pins the
16-
two together. Without it the editor falls back to the per-element margins
15+
from that constant, so keep the two in step by hand. Without it the editor falls back to the per-element margins
1716
and every block after the first sits ~12px higher than when viewing. */
1817
'[&_.ProseMirror]:space-y-4 [&_.ProseMirror>*:first-child]:mt-0 [&_.ProseMirror>*:last-child]:mb-0',
1918
'[&_.ProseMirror]:min-h-full [&_.ProseMirror]:break-words [&_.ProseMirror]:pt-0.5 [&_.ProseMirror]:pb-2 [&_.ProseMirror]:outline-hidden',

‎apps/sim/lib/core/telemetry.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ const BLOCK_TYPE_MAPPING: Record<
212212
* Convert a TraceSpan to an OpenTelemetry span
213213
* Creates a proper OTel span with all the metadata from the trace span
214214
*/
215-
export function createOTelSpanFromTraceSpan(traceSpan: TraceSpan, parentSpan?: Span): Span | null {
215+
function createOTelSpanFromTraceSpan(traceSpan: TraceSpan, parentSpan?: Span): Span | null {
216216
try {
217217
const tracer = getTracer()
218218

@@ -377,7 +377,7 @@ export function createOTelSpansForWorkflowExecution(params: {
377377
/**
378378
* Track platform events (workflow creation, knowledge base operations, etc.)
379379
*/
380-
export function trackPlatformEvent(
380+
function trackPlatformEvent(
381381
eventName: string,
382382
attributes: Record<string, string | number | boolean | string[]>
383383
): void {

‎apps/sim/lib/uploads/core/storage-service.test.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const {
2020
mockGetSignedUrl,
2121
mockHeadS3Object,
2222
mockPutObjectCommand,
23-
mockS3Client,
2423
partBodies,
2524
} = vi.hoisted(() => ({
2625
mockInitiate: vi.fn(),
@@ -33,7 +32,6 @@ const {
3332
mockGetSignedUrl: vi.fn(),
3433
mockHeadS3Object: vi.fn(),
3534
mockPutObjectCommand: vi.fn().mockImplementation(class {}),
36-
mockS3Client: {},
3735
partBodies: [] as Buffer[],
3836
}))
3937

@@ -54,7 +52,6 @@ vi.mock('@/lib/uploads/providers/s3/client', () => ({
5452
abortS3MultipartUpload: mockAbort,
5553
uploadToS3: mockUploadToS3,
5654
deleteFromS3: mockDeleteFromS3,
57-
getS3Client: () => mockS3Client,
5855
headS3Object: mockHeadS3Object,
5956
}))
6057

‎apps/sim/lib/uploads/providers/google-cloud-storage/client.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ interface GcsInlineCredentials {
5252
* Returns null when the variable is unset (Application Default Credentials).
5353
* @throws Error when the variable is set but not valid service-account JSON
5454
*/
55-
export function parseGcsCredentials(): GcsInlineCredentials | null {
55+
function parseGcsCredentials(): GcsInlineCredentials | null {
5656
if (!env.GCS_CREDENTIALS_JSON) return null
5757

5858
let parsed: unknown

‎apps/sim/lib/uploads/providers/s3/client.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function resetS3ClientForTesting(): void {
4848
_s3Client = null
4949
}
5050

51-
export function getS3Client(): S3Client {
51+
function getS3Client(): S3Client {
5252
if (_s3Client) return _s3Client
5353

5454
const { region } = S3_CONFIG

‎bun.lock‎

Lines changed: 25 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎knip.jsonc‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@
151151
"script-migrations/*.ts",
152152
"**/*.integration.ts",
153153
"vitest.integration.setup.ts"
154+
],
155+
// Integration tests spawn `bun <script>` with an explicit cwd (this package, or apps/sim
156+
// for backfill-projects.ts); knip resolves the path from the test file's own directory.
157+
"ignoreUnresolved": [
158+
"scripts/push.ts",
159+
"./scripts/purge-search-projection.ts",
160+
"scripts/backfill-projects.ts"
154161
]
155162
},
156163
// The contract audit reads this snapshot by filename.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
"gray-matter": "4.0.3",
201201
"husky": "9.1.7",
202202
"json-schema-to-typescript": "15.0.4",
203-
"knip": "6.41.0",
203+
"knip": "6.44.1",
204204
"lint-staged": "16.4.0",
205205
"opentype.js": "1.3.4",
206206
"pdf-lib": "1.17.1",

‎packages/auth-ui/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
},
2626
"peerDependencies": {
2727
"react": "^19",
28-
"react-dom": "^19"
28+
"react-dom": "^19",
29+
"tailwindcss": "^4"
2930
},
3031
"devDependencies": {
3132
"@sim/tsconfig": "workspace:*",

‎packages/logger/src/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ export function createLogger(module: string, config?: LoggerConfig): Logger {
621621
return new Logger(module, config)
622622
}
623623

624-
export type { RequestAuth, RequestContext, SetRequestAuthOptions } from './request-context'
624+
export type { RequestAuth, RequestContext } from './request-context'
625625
export {
626626
getRequestContext,
627627
runWithRequestContext,

0 commit comments

Comments
 (0)