From 5152b77bf9177bbba7cf858ff2526b86532af3e6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 15:40:42 +0000 Subject: [PATCH] chore(release): version packages --- .changeset/cylinder-stock.md | 9 --------- .changeset/stock-mesh-transitions.md | 5 ----- .changeset/stock-workpiece-shading.md | 5 ----- packages/viewer/CHANGELOG.md | 15 +++++++++++++++ packages/viewer/package.json | 2 +- 5 files changed, 16 insertions(+), 20 deletions(-) delete mode 100644 .changeset/cylinder-stock.md delete mode 100644 .changeset/stock-mesh-transitions.md delete mode 100644 .changeset/stock-workpiece-shading.md diff --git a/.changeset/cylinder-stock.md b/.changeset/cylinder-stock.md deleted file mode 100644 index 676cdd4..0000000 --- a/.changeset/cylinder-stock.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@toolpath/viewer': major ---- - -Consolidate stock rendering into `Stock`, accepting exactly one of `geometry`, `glb`, `box`, or `cylinder`. Box and cylinder inputs accept either resolved placement or part-relative preview options, with placement calculated internally. Resolved box figures support optional setup frames; resolved cylinder figures support arbitrary axes. Fetching, caching and artifact storage remain caller-owned. Stock outlines are built only when shown. - -Remove `BoxStock` and `BoxStockProps`. Replace `` with ``; for explicit dimensions use ``. Preview builders are internal, and inline options do not cause repeated part scans on ordinary renders. Existing `` usage is unchanged. - -`StockProps` is now a union type alias rather than an interface, so `interface X extends StockProps` no longer compiles; write `type X = StockProps & { … }` instead. Use `StockAppearanceProps` for the shared appearance props alone. diff --git a/.changeset/stock-mesh-transitions.md b/.changeset/stock-mesh-transitions.md deleted file mode 100644 index 774c4f7..0000000 --- a/.changeset/stock-mesh-transitions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@toolpath/viewer': minor ---- - -Add optional `Stock` `retainPrevious` behavior to keep the current GLB visible until its replacement finishes decoding. Dispose replaced geometry after the swap, and discard cancelled decode results. diff --git a/.changeset/stock-workpiece-shading.md b/.changeset/stock-workpiece-shading.md deleted file mode 100644 index 7ae366b..0000000 --- a/.changeset/stock-workpiece-shading.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@toolpath/viewer': minor ---- - -Add a `legacy-workpiece` render style to `Stock`, reproducing legacy white/emissive shading, 20% opacity, two surface passes and edges drawn before surfaces. Add optional `emissive` and `flatShading` appearance props. Existing overlay defaults and source geometry remain unchanged. diff --git a/packages/viewer/CHANGELOG.md b/packages/viewer/CHANGELOG.md index f6c5321..16ad37f 100644 --- a/packages/viewer/CHANGELOG.md +++ b/packages/viewer/CHANGELOG.md @@ -1,5 +1,20 @@ # @toolpath/viewer +## 2.0.0 + +### Major Changes + +- 6d4a91f: Consolidate stock rendering into `Stock`, accepting exactly one of `geometry`, `glb`, `box`, or `cylinder`. Box and cylinder inputs accept either resolved placement or part-relative preview options, with placement calculated internally. Resolved box figures support optional setup frames; resolved cylinder figures support arbitrary axes. Fetching, caching and artifact storage remain caller-owned. Stock outlines are built only when shown. + + Remove `BoxStock` and `BoxStockProps`. Replace `` with ``; for explicit dimensions use ``. Preview builders are internal, and inline options do not cause repeated part scans on ordinary renders. Existing `` usage is unchanged. + + `StockProps` is now a union type alias rather than an interface, so `interface X extends StockProps` no longer compiles; write `type X = StockProps & { … }` instead. Use `StockAppearanceProps` for the shared appearance props alone. + +### Minor Changes + +- a2fc359: Add optional `Stock` `retainPrevious` behavior to keep the current GLB visible until its replacement finishes decoding. Dispose replaced geometry after the swap, and discard cancelled decode results. +- a2fc359: Add a `legacy-workpiece` render style to `Stock`, reproducing legacy white/emissive shading, 20% opacity, two surface passes and edges drawn before surfaces. Add optional `emissive` and `flatShading` appearance props. Existing overlay defaults and source geometry remain unchanged. + ## 1.5.0 ### Minor Changes diff --git a/packages/viewer/package.json b/packages/viewer/package.json index e2c01bd..502322e 100644 --- a/packages/viewer/package.json +++ b/packages/viewer/package.json @@ -1,6 +1,6 @@ { "name": "@toolpath/viewer", - "version": "1.5.0", + "version": "2.0.0", "description": "React Three Fiber viewer for Toolpath Engine part reports", "license": "MIT", "engines": {