GeezerVison is showing github.com — chore(deps): upgrade @pierre/diffs to 1.5.2 and @pierre/trees to beta… · pingdotgg/t3code@f8ed2a0
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/mobile/package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 131 | 131 | }, | 132 | 132 | "devDependencies": { | 133 | 133 | "@effect/vitest": "catalog:", | 134 | | - "@pierre/trees": "1.0.0-beta.4", | | 134 | + "@pierre/trees": "1.0.0-beta.6", | 135 | 135 | "@types/react": "~19.3.0", | 136 | 136 | "@types/react-dom": "~19.2.3", | 137 | 137 | "babel-preset-expo": "~58.0.8", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/features/review/reviewModel.ts +2-3Lines changed: 2 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,6 @@ import { parsePatchFiles } from "@pierre/diffs/utils/parsePatchFiles"; | 2 | 2 | import type { ChangeTypes, FileDiffMetadata } from "@pierre/diffs/types"; | 3 | 3 | import type { ThreadCheckpointSummary } from "@t3tools/client-runtime/state/thread-checkpoints"; | 4 | 4 | import type { ReviewDiffPreviewSource } from "@t3tools/contracts"; | 5 | | -import { unquoteGitPatchPath } from "@t3tools/shared/gitPatchPath"; | 6 | 5 | import * as Arr from "effect/Array"; | 7 | 6 | import { pipe } from "effect/Function"; | 8 | 7 | import * as Order from "effect/Order"; | @@ -374,8 +373,8 @@ function buildRenderableRows(file: FileDiffMetadata): ReadonlyArray<ReviewRender | 374 | 373 | } | 375 | 374 |
| 376 | 375 | function mapRenderableFile(file: FileDiffMetadata): ReviewRenderableFile { | 377 | | - const path = unquoteGitPatchPath(file.name || file.prevName || ""); | 378 | | - const previousPath = file.prevName ? unquoteGitPatchPath(file.prevName) : null; | | 376 | + const path = file.name || file.prevName || ""; | | 377 | + const previousPath = file.prevName || null; | 379 | 378 | const additions = file.hunks.reduce((total, hunk) => total + hunk.additionLines, 0); | 380 | 379 | const deletions = file.hunks.reduce((total, hunk) => total + hunk.deletionLines, 0); | 381 | 380 | const cacheKey = file.cacheKey ?? `${previousPath ?? "none"}:${path}:${file.type}`; | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 25 | 25 | "@legendapp/list": "catalog:", | 26 | 26 | "@noble/hashes": "catalog:", | 27 | 27 | "@pierre/diffs": "catalog:", | 28 | | - "@pierre/trees": "1.0.0-beta.4", | | 28 | + "@pierre/trees": "1.0.0-beta.6", | 29 | 29 | "@t3tools/client-runtime": "workspace:*", | 30 | 30 | "@t3tools/contracts": "workspace:*", | 31 | 31 | "@t3tools/shared": "workspace:*", | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/diffs/AnnotatableCodeView.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -35,7 +35,7 @@ interface DiffCommentAnnotationGroup { | 35 | 35 | } | 36 | 36 |
| 37 | 37 | type DiffCommentLineAnnotation = DiffLineAnnotation<DiffCommentAnnotationGroup>; | 38 | | -export type AnnotatableCodeViewHandle = CodeViewHandle<DiffCommentAnnotationGroup>; | | 38 | +export type AnnotatableCodeViewHandle = CodeViewHandle<DiffCommentAnnotationGroup, undefined>; | 39 | 39 | const EMPTY_REVIEW_COMMENTS: ReadonlyArray<ReviewCommentContext> = []; | 40 | 40 |
| 41 | 41 | function annotationSide(range: SelectedLineRange): AnnotationSide { | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/diffs/StyledDiffCodeView.test.tsx +5-2Lines changed: 5 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -98,7 +98,7 @@ vi.mock("@pierre/diffs/worker/worker.js?worker", async () => { | 98 | 98 |
| 99 | 99 | vi.mock("@pierre/diffs/react", async (importOriginal) => ({ | 100 | 100 | ...(await importOriginal<typeof import("@pierre/diffs/react")>()), | 101 | | - CodeView: (props: CodeViewProps) => { | | 101 | + CodeView: (props: CodeViewProps<undefined, undefined>) => { | 102 | 102 | return props.items?.map((item) => | 103 | 103 | item.type === "file" ? <FileOutput key={item.id} file={item.file} /> : null, | 104 | 104 | ); | @@ -115,6 +115,7 @@ function FileOutput({ file }: { file: FileContents }) { | 115 | 115 | testState.renderPools.push(pool); | 116 | 116 | const renderer = new FileRenderer( | 117 | 117 | { theme: "pierre-dark", preferredHighlighter: "shiki-wasm" }, | | 118 | + undefined, | 118 | 119 | render, | 119 | 120 | pool, | 120 | 121 | ); | @@ -301,8 +302,10 @@ describe("code-view worker lifecycle", () => { | 301 | 302 | expect(pool.getStats().totalWorkers).toBe(2); | 302 | 303 | expect(testState.terminations).toHaveLength(0); | 303 | 304 | await act(async () => renderer!.update(renderViews(0))); | | 305 | + // Pierre gives up on a held startup after 10 seconds; the idle timer then tears the pool down. | | 306 | + const timedOut = expect(pending).rejects.toThrow("worker initialization timed out"); | 304 | 307 | await vi.advanceTimersByTimeAsync(30_000); | 305 | | - await pending; | | 308 | + await timedOut; | 306 | 309 | await Promise.all(testState.terminations); | 307 | 310 | await act(async () => { | 308 | 311 | for (const deliver of testState.heldResponses) deliver(); | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/diffs/StyledDiffCodeView.tsx +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -261,16 +261,16 @@ const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS} | 261 | 261 | `; | 262 | 262 |
| 263 | 263 | export type StyledDiffCodeViewOptions<LAnnotation> = Omit< | 264 | | - NonNullable<CodeViewProps<LAnnotation>["options"]>, | | 264 | + NonNullable<CodeViewProps<LAnnotation, undefined>["options"]>, | 265 | 265 | "unsafeCSS" | "itemMetrics" | "layout" | 266 | 266 | >; | 267 | 267 |
| 268 | 268 | type StyledDiffCodeViewProps<LAnnotation> = ( | 269 | | - | Omit<ControlledCodeViewProps<LAnnotation>, "options"> | 270 | | - | Omit<UncontrolledCodeViewProps<LAnnotation>, "options"> | | 269 | + | Omit<ControlledCodeViewProps<LAnnotation, undefined>, "options"> | | 270 | + | Omit<UncontrolledCodeViewProps<LAnnotation, undefined>, "options"> | 271 | 271 | ) & { | 272 | 272 | readonly options?: StyledDiffCodeViewOptions<LAnnotation>; | 273 | | - readonly viewerRef?: Ref<CodeViewHandle<LAnnotation>>; | | 273 | + readonly viewerRef?: Ref<CodeViewHandle<LAnnotation, undefined>>; | 274 | 274 | /** | 275 | 275 | * Appended to the shared stylesheet inside the viewer's shadow root, for a surface that has | 276 | 276 | * to restyle chrome the viewer owns — such as replacing its per-file line counts. | |
|