@turndown/library 0.1.64 → 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 +41 -1
- package/dist/{index.cjs → helpers/index.cjs} +30 -1116
- package/dist/helpers/index.cjs.map +1 -0
- package/dist/helpers/index.d.cts +675 -0
- package/dist/helpers/index.d.ts +675 -0
- package/dist/{index.mjs → helpers/index.mjs} +17 -926
- package/dist/helpers/index.mjs.map +1 -0
- package/dist/index-CzB45yLv.d.cts +334 -0
- package/dist/index-CzB45yLv.d.ts +334 -0
- package/dist/types/index.cjs +947 -0
- package/dist/types/index.cjs.map +1 -0
- package/dist/{index.d.cts → types/index.d.cts} +15 -1133
- package/dist/{index.d.ts → types/index.d.ts} +15 -1133
- package/dist/types/index.mjs +924 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/types/validation/index.cjs +195 -0
- package/dist/types/validation/index.cjs.map +1 -0
- package/dist/types/validation/index.d.cts +51 -0
- package/dist/types/validation/index.d.ts +51 -0
- package/dist/types/validation/index.mjs +174 -0
- package/dist/types/validation/index.mjs.map +1 -0
- package/package.json +30 -10
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1 +1,41 @@
|
|
|
1
|
-
# turndown
|
|
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
|
+
```
|