writr 6.1.2 → 6.1.3

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/dist/writr.mjs +1 -0
  2. package/package.json +29 -24
package/dist/writr.mjs CHANGED
@@ -134,6 +134,7 @@ const AVERAGE_WORDS_PER_MINUTE = 200;
134
134
  * translation, and metadata application for markdown documents.
135
135
  */
136
136
  var WritrAI = class {
137
+ writr;
137
138
  /**
138
139
  * The AI SDK model used for all generation requests.
139
140
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "writr",
3
- "version": "6.1.2",
3
+ "version": "6.1.3",
4
4
  "description": "Markdown Rendering Simplified",
5
5
  "type": "module",
6
6
  "main": "./dist/writr.mjs",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "author": "Jared Wray <me@jaredwray.com>",
19
19
  "engines": {
20
- "node": ">=20"
20
+ "node": "^22.18.0"
21
21
  },
22
22
  "license": "MIT",
23
23
  "keywords": [
@@ -49,13 +49,13 @@
49
49
  "markdown-to-react"
50
50
  ],
51
51
  "dependencies": {
52
- "ai": "^6.0.138",
53
- "cacheable": "^2.3.4",
54
- "hashery": "^2.0.0",
55
- "hookified": "^2.1.0",
56
- "html-react-parser": "^6.0.1",
57
- "js-yaml": "^4.1.1",
58
- "react": "^19.2.4",
52
+ "ai": "^6.0.203",
53
+ "cacheable": "^2.3.5",
54
+ "hashery": "^3.0.0",
55
+ "hookified": "^3.0.0",
56
+ "html-react-parser": "^6.1.3",
57
+ "js-yaml": "^4.2.0",
58
+ "react": "^19.2.7",
59
59
  "rehype-highlight": "^7.0.2",
60
60
  "rehype-katex": "^7.0.1",
61
61
  "rehype-raw": "^7.0.0",
@@ -70,29 +70,29 @@
70
70
  "remark-rehype": "^11.1.2",
71
71
  "remark-toc": "^9.0.0",
72
72
  "unified": "^11.0.5",
73
- "zod": "^4.3.6"
73
+ "zod": "^4.4.3"
74
74
  },
75
75
  "devDependencies": {
76
- "@ai-sdk/anthropic": "^3.0.64",
77
- "@ai-sdk/google": "^3.0.53",
78
- "@ai-sdk/openai": "^3.0.48",
79
- "@biomejs/biome": "^2.4.8",
76
+ "@ai-sdk/anthropic": "^3.0.84",
77
+ "@ai-sdk/google": "^3.0.82",
78
+ "@ai-sdk/openai": "^3.0.71",
79
+ "@biomejs/biome": "^2.5.0",
80
80
  "@monstermann/tinybench-pretty-printer": "^0.3.0",
81
81
  "@types/js-yaml": "^4.0.9",
82
82
  "@types/markdown-it": "^14.1.2",
83
- "@types/node": "^24.12.2",
84
- "@types/react": "^19.2.14",
85
- "@vitest/coverage-v8": "^4.1.1",
86
- "docula": "^1.10.0",
83
+ "@types/node": "^24.13.2",
84
+ "@types/react": "^19.2.17",
85
+ "@vitest/coverage-v8": "^4.1.8",
86
+ "docula": "^2.0.0",
87
87
  "dotenv": "^17.3.1",
88
- "markdown-it": "^14.1.1",
89
- "marked": "^18.0.2",
88
+ "markdown-it": "^14.2.0",
89
+ "marked": "^18.0.5",
90
90
  "rimraf": "^6.1.3",
91
- "tinybench": "^6.0.0",
92
- "tsdown": "^0.21.9",
93
- "tsx": "^4.21.0",
91
+ "tinybench": "^6.0.2",
92
+ "tsdown": "^0.22.2",
93
+ "tsx": "^4.22.4",
94
94
  "typescript": "^6.0.3",
95
- "vitest": "^4.1.1"
95
+ "vitest": "^4.1.8"
96
96
  },
97
97
  "files": [
98
98
  "dist",
@@ -107,6 +107,11 @@
107
107
  "test": "pnpm lint && vitest run --coverage",
108
108
  "test:ci": "biome check --error-on-warnings && vitest run --coverage",
109
109
  "test:integration": "vitest run --config vitest.integration.config.ts",
110
+ "test:harness": "vitest run --config vitest.harness.config.ts",
111
+ "corpus:fetch": "tsx test/harness/fetch/fetcher.ts",
112
+ "corpus:fetch:offline": "tsx test/harness/fetch/fetcher.ts --offline",
113
+ "golden:generate": "tsx test/harness/generate-goldens.ts",
114
+ "golden:check": "tsx test/harness/generate-goldens.ts --check",
110
115
  "website:build": "rimraf ./site/README.md ./site/dist && pnpm docula build",
111
116
  "website:serve": "rimraf ./site/README.md ./site/dist && pnpm docula dev"
112
117
  }