@turndown/library 0.1.63 → 0.1.65

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.
package/README.md CHANGED
@@ -1 +1,41 @@
1
- # turndown-types
1
+ # @turndown/library
2
+
3
+ Shared TypeScript contracts and validation utilities for the Turndown suite.
4
+
5
+ This package is intended to stay small and contract-focused. It should contain API DTOs, route request/response types, constants, validation schemas, and stable client-facing error shapes.
6
+
7
+ ## Public entry points
8
+
9
+ ```ts
10
+ import { IPropertyDetail } from "@turndown/library";
11
+ import { IPropertyDetail } from "@turndown/library/types";
12
+ import { createValidationSchema } from "@turndown/library/validation";
13
+ ```
14
+
15
+ Helpers are intentionally not exported from the package root. Use the explicit helper entry point when legacy helper utilities are needed:
16
+
17
+ ```ts
18
+ import { formatAddress } from "@turndown/library/helpers";
19
+ ```
20
+
21
+ ## Boundary rules
22
+
23
+ Do not add runtime-owned implementation details to this package:
24
+
25
+ - Express middleware
26
+ - database rows or repositories
27
+ - token hashes or password hashes
28
+ - storage bucket names or object keys
29
+ - service orchestration
30
+ - UI screen/form view models
31
+ - provider clients
32
+
33
+ Backend-only and frontend-only models should live in their owning application packages.
34
+
35
+ ## Checks
36
+
37
+ ```bash
38
+ npm test -- --runInBand
39
+ npm run check
40
+ npm run build
41
+ ```