brepjs 17.0.0 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -15
  2. package/package.json +9 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@ CAD modeling for JavaScript.
6
6
  [![CI](https://github.com/andymai/brepjs/actions/workflows/ci.yml/badge.svg)](https://github.com/andymai/brepjs/actions/workflows/ci.yml)
7
7
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](./LICENSE)
8
8
 
9
- **[Getting Started](./docs/getting-started.md)** · **[Cheat Sheet](./docs/cheat-sheet.md)** · **[Docs](https://andymai.github.io/brepjs/)**
9
+ **[Getting Started](./docs/getting-started.md)** · **[Cheat Sheet](./docs/cheat-sheet.md)** · **[Docs](https://docs.brepjs.dev/)**
10
10
 
11
11
  Shapes are exact mathematical boundaries - not triangle meshes - so booleans are precise, measurements are real, and you can export to STEP. TypeScript types prove the geometry is valid at compile time.
12
12
 
@@ -67,20 +67,21 @@ Imports flow downward only. Boundaries are enforced in CI.
67
67
 
68
68
  ## Documentation
69
69
 
70
- - [Getting Started](./docs/getting-started.md): Install, create shapes, export to STEP
71
- - [B-Rep Concepts](./docs/concepts.md): Vertices, edges, faces, solids - and why they matter
72
- - [Which API?](./docs/which-api.md): Fluent wrapper vs Sketcher vs functional
73
- - [Cheat Sheet](./docs/cheat-sheet.md): Single-page quick reference
74
- - [Cookbook](./docs/cookbook.md): 21 practical recipes for common CAD workflows
75
- - [Three.js Integration](./docs/threejs-integration.md): Render brepjs shapes in the browser
76
- - [Function Lookup](./docs/function-lookup.md): Alphabetical index of every export
77
- - [Error Reference](./docs/errors.md): Error codes and recovery
78
- - [API Reference](https://andymai.github.io/brepjs/): Searchable TypeDoc reference
79
- - [Memory Management](./docs/memory-management.md): WASM resource cleanup patterns
80
- - [Performance](./docs/performance.md): Optimization tips
81
- - [Custom Kernels](./docs/kernel-swap.md): Swap or write your own geometry kernel
82
- - [Architecture](./docs/architecture.md): Layer diagram and module overview
83
- - [Compatibility](./docs/compatibility.md): Tested environments
70
+ The chapter-based guide is the recommended starting point:
71
+
72
+ - **[Why brepjs](https://docs.brepjs.dev/introduction/why-brepjs)** what makes it different, who it's for
73
+ - **[Install & Initialize](https://docs.brepjs.dev/getting-started/install)** three init styles, bundler notes
74
+ - **[Your First Solid](https://docs.brepjs.dev/getting-started/first-solid)** the canonical drill-fillet-export workflow
75
+ - **[Cheat Sheet](https://docs.brepjs.dev/getting-started/cheat-sheet)** single-page reference
76
+ - **[Core Concepts](https://docs.brepjs.dev/concepts/brep-vs-mesh)** B-Rep, topology, types, kernels, tolerance
77
+ - **[Common Tasks](https://docs.brepjs.dev/tasks/booleans)** booleans, fillets, sketching, lofts, sweeps, finders, measurement, IO
78
+ - **[Three.js Integration](https://docs.brepjs.dev/integration/threejs)** meshing and rendering
79
+ - **[Migration](https://docs.brepjs.dev/migration/replicad)** coming from Replicad, OpenSCAD, or Three.js
80
+ - **[Extending brepjs](https://docs.brepjs.dev/extending/architecture)** custom kernels, custom operations, architecture
81
+ - **[Reference](https://docs.brepjs.dev/reference/glossary)** glossary, function lookup, error codes, ADRs
82
+ - **[API Reference (TypeDoc)](https://andymai.github.io/brepjs/)** searchable type-level reference
83
+
84
+ Legacy single-page docs in [./docs/](./docs/) remain available; the chapter site is the canonical location going forward.
84
85
 
85
86
  ## Projects Using brepjs
86
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "17.0.0",
3
+ "version": "18.0.0",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",
@@ -207,6 +207,12 @@
207
207
  "size": "size-limit",
208
208
  "docs:api": "typedoc",
209
209
  "docs:generate-lookup": "npx tsx scripts/generate-function-lookup.ts",
210
+ "docs:dev": "npm -C docs-site run dev",
211
+ "docs:build": "npm -C docs-site run build",
212
+ "docs:preview": "npm -C docs-site run preview",
213
+ "docs:extract-tests": "npx tsx scripts/extract-doc-tests.ts",
214
+ "docs:render-images": "npx tsx scripts/render-doc-images.ts",
215
+ "test:docs": "npm run docs:extract-tests && vitest run --project occt tests/docs",
210
216
  "conformance:generate": "npx tsx scripts/generateConformance.ts",
211
217
  "sync:brepkit-types": "npx tsx scripts/sync-brepkit-types.ts",
212
218
  "prepare": "husky && bash scripts/ensure-wasm.sh"
@@ -225,8 +231,10 @@
225
231
  "husky": "9.1.7",
226
232
  "knip": "6.11.0",
227
233
  "lint-staged": "16.4.0",
234
+ "lz-string": "1.5.0",
228
235
  "occt-wasm": "3.0.0",
229
236
  "prettier": "3.8.3",
237
+ "puppeteer": "24.42.0",
230
238
  "size-limit": "12.1.0",
231
239
  "typedoc": "0.28.19",
232
240
  "typescript": "6.0.3",