writr 6.0.0 → 6.0.1

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
@@ -921,14 +921,13 @@ Generate SEO metadata using `writr.ai.getSEO()`. By default all fields are gener
921
921
  ```typescript
922
922
  const seo = await writr.ai.getSEO();
923
923
  console.log(seo.slug); // "getting-started-with-writr"
924
- console.log(seo.canonical); // "https://example.com/getting-started-with-writr"
925
924
  console.log(seo.openGraph?.title); // "Getting Started with Writr"
926
925
 
927
926
  // Generate only a slug
928
927
  const seo = await writr.ai.getSEO({ slug: true });
929
928
  ```
930
929
 
931
- **Available fields:** `slug`, `canonical`, `openGraph` (includes `title`, `description`, `image`).
930
+ **Available fields:** `slug`, `openGraph` (includes `title`, `description`, `image`).
932
931
 
933
932
  ## Translation
934
933
 
package/dist/writr.d.ts CHANGED
@@ -116,10 +116,6 @@ type WritrSEO = {
116
116
  * A URL-safe identifier for the document.
117
117
  */
118
118
  slug?: string;
119
- /**
120
- * The preferred canonical URL for the document.
121
- */
122
- canonical?: string;
123
119
  /**
124
120
  * Open Graph metadata used by social platforms.
125
121
  */
@@ -240,10 +236,6 @@ type WritrGetSEOOptions = {
240
236
  * Generate a URL-safe slug.
241
237
  */
242
238
  slug?: boolean;
243
- /**
244
- * Generate a canonical URL value.
245
- */
246
- canonical?: boolean;
247
239
  /**
248
240
  * Generate Open Graph metadata for the document.
249
241
  */
package/dist/writr.js CHANGED
@@ -332,7 +332,7 @@ ${this.writr.content}`
332
332
  );
333
333
  }
334
334
  resolveSEOFields(options) {
335
- const allFields = ["slug", "canonical", "openGraph"];
335
+ const allFields = ["slug", "openGraph"];
336
336
  if (!options) {
337
337
  return allFields;
338
338
  }
@@ -420,12 +420,6 @@ ${this.writr.content}`
420
420
  z.string().describe("A URL-safe identifier for the document")
421
421
  ]);
422
422
  }
423
- if (fieldSet.has("canonical")) {
424
- entries.push([
425
- "canonical",
426
- z.string().describe("The preferred canonical URL for the document")
427
- ]);
428
- }
429
423
  if (fieldSet.has("openGraph")) {
430
424
  entries.push([
431
425
  "openGraph",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "writr",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "Markdown Rendering Simplified",
5
5
  "type": "module",
6
6
  "main": "./dist/writr.js",