pdf-codec 2.0.10 → 2.1.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.
package/dist/codec.d.cts CHANGED
@@ -24,12 +24,12 @@ declare const pdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
24
24
  font: z.ZodObject<{
25
25
  family: z.ZodString;
26
26
  weight: z.ZodEnum<{
27
- normal: "normal";
28
27
  bold: "bold";
28
+ normal: "normal";
29
29
  }>;
30
30
  style: z.ZodEnum<{
31
- normal: "normal";
32
31
  italic: "italic";
32
+ normal: "normal";
33
33
  }>;
34
34
  }, z.core.$strip>;
35
35
  sizePt: z.ZodNumber;
package/dist/codec.d.ts CHANGED
@@ -24,12 +24,12 @@ declare const pdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
24
24
  font: z.ZodObject<{
25
25
  family: z.ZodString;
26
26
  weight: z.ZodEnum<{
27
- normal: "normal";
28
27
  bold: "bold";
28
+ normal: "normal";
29
29
  }>;
30
30
  style: z.ZodEnum<{
31
- normal: "normal";
32
31
  italic: "italic";
32
+ normal: "normal";
33
33
  }>;
34
34
  }, z.core.$strip>;
35
35
  sizePt: z.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdf-codec",
3
- "version": "2.0.10",
3
+ "version": "2.1.0",
4
4
  "description": "Hand-written, dependency-minimal PDF codec: parses arbitrary real-world PDFs and generates new ones, built on document-schema.js's LayoutDocument pivot and Zod 4 codecs.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -45,16 +45,25 @@
45
45
  "node": ">=20"
46
46
  },
47
47
  "scripts": {
48
- "build": "tsdown",
48
+ "build": "turbo run _build",
49
+ "_build": "tsdown",
49
50
  "prepublishOnly": "pnpm run lint && pnpm run typecheck && tsdown && publint && attw --pack",
50
- "lint": "eslint . --fix --cache --max-warnings 0",
51
- "typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.node.json",
52
- "test": "vitest run --project unit",
53
- "test:workers": "vitest run --config vitest.workers.config.ts",
51
+ "lint": "turbo run _lint",
52
+ "_lint": "eslint . --fix --cache --max-warnings 0",
53
+ "typecheck": "turbo run _typecheck _typecheck:node",
54
+ "_typecheck": "tsc -p tsconfig.json",
55
+ "_typecheck:node": "tsc -p tsconfig.node.json",
56
+ "test": "turbo run _test",
57
+ "_test": "vitest run --project unit",
58
+ "test:workers": "turbo run _test:workers",
59
+ "_test:workers": "vitest run --config vitest.workers.config.ts",
54
60
  "test:watch": "vitest --project unit",
55
- "test:coverage": "vitest run --project unit --coverage",
56
- "test:corpus": "vitest run --project corpus",
57
- "test:smoke": "tsdown && vitest run --project smoke",
61
+ "test:coverage": "turbo run _test:coverage",
62
+ "_test:coverage": "vitest run --project unit --coverage",
63
+ "test:corpus": "turbo run _test:corpus",
64
+ "_test:corpus": "vitest run --project corpus",
65
+ "test:smoke": "turbo run _test:smoke",
66
+ "_test:smoke": "tsdown && vitest run --project smoke",
58
67
  "prepare": "husky",
59
68
  "release": "semantic-release"
60
69
  },
@@ -72,7 +81,7 @@
72
81
  "packageManager": "pnpm@11.6.0",
73
82
  "dependencies": {
74
83
  "byte-codec": "^1.0.4",
75
- "document-schema.js": "^2.5.0",
84
+ "document-schema.js": "^2.5.1",
76
85
  "fflate": "^0.8.3",
77
86
  "zod": "^4.4.3"
78
87
  },
@@ -93,6 +102,7 @@
93
102
  "publint": "^0.3.21",
94
103
  "semantic-release": "^25.0.8",
95
104
  "tsdown": "^0.22.13",
105
+ "turbo": "^2.10.8",
96
106
  "typescript": "^6.0.3",
97
107
  "typescript-eslint": "^8.65.0",
98
108
  "vitest": "^4.1.10"