Skip to content

Commit f4e1a2f

Browse files
committed
release: 1.13.12
1 parent c59e951 commit f4e1a2f

9 files changed

Lines changed: 319 additions & 260 deletions

File tree

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Change log
22

3+
## [1.13.12] - 2026-04-12
4+
5+
### Fixed
6+
7+
- `Mesh3DScene.svelte`: production build crash caused by `T.BufferAttribute args` array in Vite 8 — replaced with `T.BufferGeometry oncreate` to set buffer attributes directly
8+
9+
### Changed
10+
11+
- Migrated `Mesh3DScene.svelte` props from Svelte 4 `export let` syntax to Svelte 5 `$props()` rune
12+
- Updated dependencies
13+
- @typescript-eslint/eslint-plugin 8.58.0 → 8.58.1
14+
- @typescript-eslint/parser 8.58.0 → 8.58.1
15+
- postcss 8.5.8 → 8.5.9
16+
- prettier 3.8.1 → 3.8.2
17+
- vite 8.0.7 → 8.0.8
18+
- @threlte/core 8.5.7 → 8.5.9
19+
- @threlte/extras 9.14.4 → 9.14.5
20+
- flowbite-svelte 1.33.0 → 1.33.1
21+
- konva 10.2.3 → 10.2.5
22+
- svelte 5.55.1 → 5.55.3
23+
324
## [1.13.11] - 2026-04-07
425

526
### Changed

CLAUDE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,25 @@ isRectangle(element: GenericElement): element is RectangleData
160160
isLeg(element: GenericElement): element is LegData
161161
```
162162

163+
### Threlte BufferGeometry Pattern
164+
165+
**NEVER use `T.BufferAttribute` with `args` array** — in Vite 8 production builds this causes a `byteLength` crash.
166+
167+
**Use `T.BufferGeometry oncreate` instead** to set buffer attributes and compute normals:
168+
169+
```svelte
170+
import { BufferAttribute } from 'three';
171+
172+
const setupGeometry = (geo: BufferGeometry) => {
173+
geo.setAttribute('position', new BufferAttribute(vertices, 3));
174+
geo.computeVertexNormals();
175+
};
176+
// ...
177+
<T.BufferGeometry oncreate={setupGeometry} />
178+
```
179+
180+
See `Mesh3DScene.svelte` for the canonical example.
181+
163182
### Implementation Details
164183

165184
- **Globals**: `__PKG_VERSION__`, `__BASE_URL__` injected at build time
@@ -168,6 +187,7 @@ isLeg(element: GenericElement): element is LegData
168187
- **Environment**: Production base path `/pcb-tht-holder`, dev empty string
169188
- **ESLint**: unicorn/all config, import sorting, no console/alert/debugger
170189
- **Requirements**: Node >=24.0.0, npm >=11.0.0
190+
- **Svelte 5 rune syntax**: all components use `$props()`, `$state()`, `$derived()` — no `export let` props
171191

172192
## Keyboard Shortcuts
173193

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Use a PLA printer to save time and money. Practice shows that it is enough to pr
128128

129129
### Tech Stack
130130

131-
- **Framework**: Svelte 5 with TypeScript
131+
- **Framework**: Svelte 5 with TypeScript (rune syntax: `$props()`, `$state()`, `$derived()`)
132132
- **Build Tool**: Vite
133133
- **3D Rendering**: Three.js with @threlte/core
134134
- **3D Operations**: three-bvh-csg for CSG boolean operations
Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
property="twitter:image"
4545
content="https://segmentcontroller.github.io/pcb-tht-holder/pcb-board-32.png"
4646
/>
47-
<script type="module" crossorigin src="/pcb-tht-holder/assets/index-BoKtTNLb.js"></script>
47+
<script type="module" crossorigin src="/pcb-tht-holder/assets/index-BwCo7VG6.js"></script>
4848
<link rel="stylesheet" crossorigin href="/pcb-tht-holder/assets/index-B54_ulQB.css">
4949
</head>
5050

docs/service-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const GHPATH = 'https://segmentcontroller.github.io/pcb-tht-holder/';
22

33
const APP_PREFIX = 'pwa_pcb-tht-holder_';
44

5-
const VERSION = 'v1.13.11';
5+
const VERSION = 'v1.13.12';
66

77
// The files to make available for offline use. make sure to add others to this list
88
const URLS = [

0 commit comments

Comments
 (0)