Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/optimize-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"leadtype": patch
---

Shrink published install closure by swapping out heavier deps:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add a top-level heading to satisfy markdownlint MD041.

This file currently starts with plain text after frontmatter; promoting it to an H1 will clear the warning with minimal churn.

Proposed diff
-Shrink published install closure by swapping out heavier deps:
+# Shrink published install closure by swapping out heavier deps
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Shrink published install closure by swapping out heavier deps:
# Shrink published install closure by swapping out heavier deps
🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 5-5: First line in a file should be a top-level heading

(MD041, first-line-heading, first-line-h1)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.changeset/optimize-dependencies.md at line 5, Add a top-level H1 heading to
the Markdown body so markdownlint MD041 is satisfied: insert a single line
starting with "# " (e.g., "# Optimize dependencies") immediately after the
existing frontmatter and before the current paragraph text in the .changeset
file so the document begins with an H1 heading.


- `gray-matter` → `vfile-matter` + `yaml` (drops `js-yaml`, `kind-of`, `section-matter`, `strip-bom-string` from the closure).
- `jiti` moved from `dependencies` to optional `peerDependencies` — only required when authoring `docs.config.ts`; `.js`/`.mjs`/`.cjs` configs load via native `import()`.
- `decode-named-character-reference` dropped — entity decode inside `<Steps>` titles now uses a small inline map.
- `mdast-util-to-markdown` dropped in `prompt.remark` — serialization now goes through the existing `remark()` processor.
- `mdast-util-compact` dropped in `steps.remark` — small in-tree adjacent-text/blockquote merge inlined.
- `unist-builder` dropped — `u(...)` calls replaced with mdast object literals.
- `unist-util-is` dropped — 7 `is(node, "type")` call sites switched to `node.type === "type"`.

Behavior change: YAML frontmatter timestamps now round-trip through the `yaml` package's timestamp tag. Date-only scalars like `2026-04-19` emit as `2026-04-19` (compact) instead of `2026-04-19T00:00:00.000Z`. Datetime scalars without sub-second precision emit as `2026-04-19T12:00:00` instead of `2026-04-19T12:00:00.000Z`. The values remain `Date` instances in JS, so consuming code is unaffected.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"emmet.showExpandedAbbreviation": "never",
Expand Down
32 changes: 16 additions & 16 deletions apps/example/src/generated/agent-readability.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": 1,
"generatedAt": "2026-05-11T17:26:32.280Z",
"generatedAt": "2026-05-11T23:20:44.255Z",
"baseUrl": "https://leadtype.dev",
"product": {
"name": "Leadtype",
Expand All @@ -18,7 +18,7 @@
"groups": [
"get-started"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Components",
Expand All @@ -31,7 +31,7 @@
"groups": [
"authoring"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Frontmatter",
Expand All @@ -44,7 +44,7 @@
"groups": [
"authoring"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Add search",
Expand All @@ -57,7 +57,7 @@
"groups": [
"docs-site"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Connect a docs site",
Expand All @@ -70,7 +70,7 @@
"groups": [
"docs-site"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Optimize docs for agents",
Expand All @@ -83,7 +83,7 @@
"groups": [
"docs-site"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Render MDX and TOC",
Expand All @@ -96,7 +96,7 @@
"groups": [
"docs-site"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Validate in CI",
Expand All @@ -109,7 +109,7 @@
"groups": [
"docs-site"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "How it works",
Expand All @@ -122,7 +122,7 @@
"groups": [
"get-started"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Methodology",
Expand All @@ -135,7 +135,7 @@
"groups": [
"get-started"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Bundle docs into a package",
Expand All @@ -148,7 +148,7 @@
"groups": [
"package-docs"
],
"lastModified": "2026-05-11T17:26:32.216Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Quickstart",
Expand All @@ -161,7 +161,7 @@
"groups": [
"get-started"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "CLI",
Expand All @@ -174,7 +174,7 @@
"groups": [
"reference"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Convert",
Expand All @@ -200,7 +200,7 @@
"groups": [
"reference"
],
"lastModified": "2026-05-11T01:01:43.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Lint rules",
Expand All @@ -226,7 +226,7 @@
"groups": [
"reference"
],
"lastModified": "2026-05-11T16:24:34.000Z"
"lastModified": "2026-05-11T17:53:02.000Z"
},
{
"title": "Remark plugins",
Expand Down
2 changes: 1 addition & 1 deletion apps/example/src/generated/docs-search-content.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/example/src/generated/docs-search-index.json

Large diffs are not rendered by default.

Loading
Loading