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
2 changes: 0 additions & 2 deletions .changeset/md-cache-life-pinned.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/md-core-converter.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/md-deep-nesting.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/md-faster-conversion.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/md-flight-placeholder.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/md-flight-unrun-scripts.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/md-literal-streamed-not-found.md

This file was deleted.

8 changes: 8 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @affordances/cli

## 0.1.5

### Patch Changes

- @affordances/mcp@0.5.1
- @affordances/next@0.5.1
- @affordances/protocol@0.5.1

## 0.1.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@affordances/cli",
"version": "0.1.4",
"version": "0.1.5",
"description": "The Affordances CLI: set up an app, and see and call any page the way an agent does",
"license": "MIT",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @affordances/core

## 0.5.1

### Patch Changes

- @affordances/protocol@0.5.1

## 0.5.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@affordances/core",
"version": "0.5.0",
"version": "0.5.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions packages/lint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @affordances/lint

## 0.5.1

No changes in this release.

## 0.5.0

No changes in this release.
Expand Down
2 changes: 1 addition & 1 deletion packages/lint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@affordances/lint",
"version": "0.5.0",
"version": "0.5.1",
"description": "Affordances lint rules for ESLint and oxlint: require-affordance, static-action-name",
"license": "MIT",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions packages/mcp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @affordances/mcp

## 0.5.1

### Patch Changes

- @affordances/protocol@0.5.1

## 0.5.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@affordances/mcp",
"version": "0.5.0",
"version": "0.5.1",
"description": "Affordances over MCP: any Affordances site as two tools, for Claude, Cursor, and other MCP clients",
"license": "MIT",
"repository": {
Expand Down
16 changes: 16 additions & 0 deletions packages/md/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @affordances/md

## 0.5.1

### Patch Changes

- b020384: Converts about 5× faster; the markdown is unchanged. Malformed HTML, and a few unusual placements (a form inside a link, strikethrough or table cell, a comment or script inside a `<nobr>`, a React streamed boundary that moves through an `<svg>` or into its own segment, an AgentMain inside a link that also holds tabs, form values or empty blocks, a slot inside a form control or an element other than plain containers, headings, emphasis, code, table cells, buttons, labels, summaries, forms and links, or in a link that holds a value or says nothing but values, a shown tab panel whose tab is inside a link or table, or tabs whose only shown panel is under a hidden element), can convert slightly slower.
- 1681ef6: A page nested thousands of elements deep no longer throws or takes minutes to convert. `htmlToMarkdown`, `readPage` and the route read anything nested more than 128 elements deep as its plain text, and a page nested more than 512 deep up to there. When either leaves something out, `readPage` and `htmlToMarkdown` say `cut: true`, and the route marks the page `x-affordances-md-partial`, with a note in the Markdown. An error md didn't foresee no longer decides a page alone: when the faster converter throws, the page is converted the original way, and `readPage` never throws. If md can't convert a page at all, `markdown()` and `htmlToMarkdown` throw that error, and the route answers `502`, `private, no-store`, as it does for Flight data it can't read, instead of the framework's generic `500`.
- e339302: Converting a page to markdown takes about half the time, and far less on some pages. The markdown is the same.

- The html is parsed without each node's place in the source. Nothing read it, and on a page of many lines working it out took longer than everything else together.
- The tree is no longer structured-cloned before it's converted, and its whitespace is collapsed without rebuilding the tag tests for every node.
- A page's chrome and its shown tab panels are found by reading each element's properties rather than with css selectors over the whole page.

- b74ec79: A Flight push in a JSON-LD script, or in a script inside a MathML `<title>`, no longer leaves an internal placeholder in the Markdown: it reads as the page does without its Flight data.
- d629f46: A Flight script or a streamed boundary's instruction inside a `<noscript>`, or in MathML, is no longer trusted. md parses a page with scripting off, so it read such a script as one, but a browser never runs it there, so it was never Next's. A page that has one is read as untrusted Flight data. `readPage` reads it without its Flight data, and the route answers `502`, `private, no-store`. Hidden content such an instruction names stays hidden. A script a browser runs, including one in SVG, is read as before.
- 7de2336: On a `literalMd` route, a page that streams `notFound()` after its shell (a `200` with the not-found page) now counts as a 404, so a request for `x.md` gets the twin, as a Markdown request already did. One that streams `forbidden()` or `unauthorized()` answers its `403` or `401`, `private, no-store`. To tell, the handler reads a `200` HTML page before passing it on, up to `maxBytes` and within the `timeout`. It then sends the page's own bytes, status and headers.

## 0.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/md/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@affordances/md",
"version": "0.5.0",
"version": "0.5.1",
"description": "Serve any Next.js page as clean markdown at the same URL",
"license": "MIT",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/next/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @affordances/next

## 0.5.1

### Patch Changes

- @affordances/core@0.5.1
- @affordances/protocol@0.5.1

## 0.5.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@affordances/next",
"version": "0.5.0",
"version": "0.5.1",
"description": "Affordances for Next.js: withAffordances, codegen, and the route handler",
"license": "MIT",
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions packages/protocol/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @affordances/protocol

## 0.5.1

No changes in this release.

## 0.5.0

No changes in this release.
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@affordances/protocol",
"version": "0.5.0",
"version": "0.5.1",
"description": "Affordances protocol: types, JSON Schemas, and the spec",
"license": "MIT",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @affordances/react

## 0.5.1

### Patch Changes

- @affordances/protocol@0.5.1

## 0.5.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@affordances/react",
"version": "0.5.0",
"version": "0.5.1",
"description": "Affordances for React: WebMCP tools from the page graph, and <Affordance> markers",
"license": "MIT",
"repository": {
Expand Down
Loading