writr 6.1.2 → 6.1.4

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/writr.d.mts CHANGED
@@ -4,7 +4,6 @@ import { Processor } from "unified";
4
4
  import { CacheableMemory } from "cacheable";
5
5
  import { LanguageModel } from "ai";
6
6
  import React from "react";
7
-
8
7
  //#region src/types.d.ts
9
8
  /**
10
9
  * Writr options.
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.4",
4
4
  "description": "Markdown Rendering Simplified",
5
5
  "type": "module",
6
6
  "main": "./dist/writr.mjs",
@@ -15,9 +15,13 @@
15
15
  "type": "git",
16
16
  "url": "https://github.com/jaredwray/writr.git"
17
17
  },
18
+ "homepage": "https://github.com/jaredwray/writr#readme",
19
+ "bugs": {
20
+ "url": "https://github.com/jaredwray/writr/issues"
21
+ },
18
22
  "author": "Jared Wray <me@jaredwray.com>",
19
23
  "engines": {
20
- "node": ">=20"
24
+ "node": "^22.18.0"
21
25
  },
22
26
  "license": "MIT",
23
27
  "keywords": [
@@ -49,13 +53,13 @@
49
53
  "markdown-to-react"
50
54
  ],
51
55
  "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",
56
+ "ai": "^7.0.23",
57
+ "cacheable": "^2.5.0",
58
+ "hashery": "^3.0.1",
59
+ "hookified": "^3.0.1",
60
+ "html-react-parser": "^6.1.4",
61
+ "js-yaml": "^5.2.1",
62
+ "react": "^19.2.7",
59
63
  "rehype-highlight": "^7.0.2",
60
64
  "rehype-katex": "^7.0.1",
61
65
  "rehype-raw": "^7.0.0",
@@ -70,29 +74,28 @@
70
74
  "remark-rehype": "^11.1.2",
71
75
  "remark-toc": "^9.0.0",
72
76
  "unified": "^11.0.5",
73
- "zod": "^4.3.6"
77
+ "zod": "^4.4.3"
74
78
  },
75
79
  "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",
80
+ "@ai-sdk/anthropic": "^4.0.12",
81
+ "@ai-sdk/google": "^4.0.12",
82
+ "@ai-sdk/openai": "^4.0.11",
83
+ "@biomejs/biome": "^2.5.3",
80
84
  "@monstermann/tinybench-pretty-printer": "^0.3.0",
81
- "@types/js-yaml": "^4.0.9",
82
85
  "@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",
86
+ "@types/node": "^24.13.3",
87
+ "@types/react": "^19.2.17",
88
+ "@vitest/coverage-v8": "^4.1.10",
89
+ "docula": "^2.2.0",
87
90
  "dotenv": "^17.3.1",
88
- "markdown-it": "^14.1.1",
89
- "marked": "^18.0.2",
91
+ "markdown-it": "^14.3.0",
92
+ "marked": "^18.0.6",
90
93
  "rimraf": "^6.1.3",
91
- "tinybench": "^6.0.0",
92
- "tsdown": "^0.21.9",
93
- "tsx": "^4.21.0",
94
+ "tinybench": "^6.0.2",
95
+ "tsdown": "^0.22.7",
96
+ "tsx": "^4.23.1",
94
97
  "typescript": "^6.0.3",
95
- "vitest": "^4.1.1"
98
+ "vitest": "^4.1.10"
96
99
  },
97
100
  "files": [
98
101
  "dist",
@@ -107,6 +110,11 @@
107
110
  "test": "pnpm lint && vitest run --coverage",
108
111
  "test:ci": "biome check --error-on-warnings && vitest run --coverage",
109
112
  "test:integration": "vitest run --config vitest.integration.config.ts",
113
+ "test:harness": "vitest run --config vitest.harness.config.ts",
114
+ "corpus:fetch": "tsx test/harness/fetch/fetcher.ts",
115
+ "corpus:fetch:offline": "tsx test/harness/fetch/fetcher.ts --offline",
116
+ "golden:generate": "tsx test/harness/generate-goldens.ts",
117
+ "golden:check": "tsx test/harness/generate-goldens.ts --check",
110
118
  "website:build": "rimraf ./site/README.md ./site/dist && pnpm docula build",
111
119
  "website:serve": "rimraf ./site/README.md ./site/dist && pnpm docula dev"
112
120
  }