Skip to content

Commit 4906160

Browse files
committed
Fix the package listing and the repository links
Three things, all of them stale rather than newly broken. **The README listed seven of the ten packages.** `dastdown`, `slate-utils` and `generic-html-renderer` were never added when they appeared, so the monorepo's own front page under-reported itself by three. (`to-markdown` was already there.) **Every link pointed at a `master` branch this repository does not have.** The default branch is `main`; `master` resolves only because GitHub still redirects the old default branch name, which is not something to keep depending on. 10 links in the README and the `homepage` of all ten manifests. **Two of those homepages were a genuine 404**, redirect or not: `datocms-structured-text-utils` pointed at `packages/datocms-structured-text-utils` and `datocms-structured-text-slate-utils` at `packages/datocms-structured-text-slate-utils`, neither of which exists — the directories are `packages/utils` and `packages/slate-utils`. `homepage` is what npm renders on a package's page, so those were dead links on two published packages, one of them the most depended-on in the repo. Verified: all ten now return HTTP 200 directly, with no redirect. Also deletes `packages/to-markdown/REVIEW.md`, 2787 lines of one-off review notes committed by accident alongside the package itself. It is dated 2025-10-01, reviews version 5.1.4, and its headline is "Block release until P0 items are fixed" — for a package that has since been released and is now at 6.0.0. Checked before deleting that the P0 it blocks on is gone: it warned that `render()` kept list state at module level and was therefore unsafe under `Promise.all`. There is no module-scope mutable state in the source any more, and rendering three documents concurrently now produces output identical to rendering them in sequence. The file is not in `files`, so it was never published. No changeset: nothing here changes behaviour, and the manifest links reach npm with each package's next release.
1 parent 42c283a commit 4906160

12 files changed

Lines changed: 23 additions & 2804 deletions

File tree

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,30 @@ Monorepo with Typescript libraries for handling and rendering [DatoCMS Structure
1818

1919
### Official
2020

21-
- [`html-to-structured-text`](https://github.com/datocms/structured-text/tree/master/packages/html-to-structured-text)
21+
- [`html-to-structured-text`](https://github.com/datocms/structured-text/tree/main/packages/html-to-structured-text)
2222
- Convert HTML (or [Hast](https://github.com/syntax-tree/hast) syntax tree) to a valid Structured Text document.
23-
- [`datocms-structured-text-utils`](https://github.com/datocms/structured-text/tree/master/packages/utils)
23+
- [`datocms-structured-text-utils`](https://github.com/datocms/structured-text/tree/main/packages/utils)
2424
- A set of Typescript types and helpers to work with DatoCMS Structured Text fields.
25-
- [`datocms-structured-text-to-plain-text`](https://github.com/datocms/structured-text/tree/master/packages/to-plain-text)
25+
- [`datocms-structured-text-to-plain-text`](https://github.com/datocms/structured-text/tree/main/packages/to-plain-text)
2626
- Plain text renderer for the Structured Text document.
27-
- [`datocms-structured-text-to-html-string`](https://github.com/datocms/structured-text/tree/master/packages/to-html-string)
27+
- [`datocms-structured-text-to-html-string`](https://github.com/datocms/structured-text/tree/main/packages/to-html-string)
2828
- HTML renderer for the DatoCMS Structured Text field type.
29-
- [`datocms-structured-text-to-markdown`](https://github.com/datocms/structured-text/tree/master/packages/to-markdown)
29+
- [`datocms-structured-text-to-markdown`](https://github.com/datocms/structured-text/tree/main/packages/to-markdown)
3030
- Markdown renderer for the DatoCMS Structured Text field type.
3131
- [`<StructuredText />`](https://github.com/datocms/react-datocms#structured-text)
3232
- React component that you can use to render Structured Text documents.
3333
- [`<datocms-structured-text />`](https://github.com/datocms/vue-datocms#structured-text)
3434
- Vue component that you can use to render Structured Text documents.
35-
- [`datocms-structured-text-to-dom-nodes`](https://github.com/datocms/structured-text/tree/master/packages/to-dom-nodes)
35+
- [`datocms-structured-text-to-dom-nodes`](https://github.com/datocms/structured-text/tree/main/packages/to-dom-nodes)
3636
- DOM nodes renderer for the DatoCMS Structured Text field type. To be used inside the browser, as it expects to find `document.createElement`.
37-
- [`datocms-contentful-to-structured-text`](https://github.com/datocms/structured-text/tree/master/packages/contentful-to-structured-text)
37+
- [`datocms-contentful-to-structured-text`](https://github.com/datocms/structured-text/tree/main/packages/contentful-to-structured-text)
3838
- Convert Contentful Rich Text to a valid Structured Text document.
39+
- [`datocms-structured-text-dastdown`](https://github.com/datocms/structured-text/tree/main/packages/dastdown)
40+
- Lossless textual serialization (dastdown) for Structured Text documents, with both a parser and a serializer.
41+
- [`datocms-structured-text-slate-utils`](https://github.com/datocms/structured-text/tree/main/packages/slate-utils)
42+
- Helpers to translate Structured Text documents to and from [Slate](https://docs.slatejs.org/) structures.
43+
- [`datocms-structured-text-generic-html-renderer`](https://github.com/datocms/structured-text/tree/main/packages/generic-html-renderer)
44+
- Shared building blocks for the HTML-ish renderers above. You rarely depend on it directly.
3945

4046
## About Structured Text
4147

packages/contentful-to-structured-text/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"rich-text"
1111
],
1212
"author": "Irene Oppo <i.oppo@datocms.com>",
13-
"homepage": "https://github.com/datocms/structured-text/tree/master/packages/contentful-to-structured-text#readme",
13+
"homepage": "https://github.com/datocms/structured-text/tree/main/packages/contentful-to-structured-text#readme",
1414
"license": "MIT",
1515
"main": "dist/cjs/index.js",
1616
"module": "dist/esm/index.js",

packages/dastdown/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"markdown"
1010
],
1111
"author": "Stefano Verna <s.verna@datocms.com>",
12-
"homepage": "https://github.com/datocms/structured-text/tree/master/packages/dastdown#readme",
12+
"homepage": "https://github.com/datocms/structured-text/tree/main/packages/dastdown#readme",
1313
"license": "MIT",
1414
"main": "dist/cjs/index.js",
1515
"module": "dist/esm/index.js",

packages/generic-html-renderer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"structured-text"
88
],
99
"author": "Stefano Verna <s.verna@datocms.com>",
10-
"homepage": "https://github.com/datocms/structured-text/tree/master/packages/generic-html-renderer#readme",
10+
"homepage": "https://github.com/datocms/structured-text/tree/main/packages/generic-html-renderer#readme",
1111
"license": "MIT",
1212
"main": "dist/cjs/index.js",
1313
"module": "dist/esm/index.js",

packages/html-to-structured-text/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dast"
99
],
1010
"author": "Giuseppe Gurgone",
11-
"homepage": "https://github.com/datocms/structured-text/tree/master/packages/html-to-structured-text#readme",
11+
"homepage": "https://github.com/datocms/structured-text/tree/main/packages/html-to-structured-text#readme",
1212
"license": "MIT",
1313
"type": "module",
1414
"exports": {

packages/slate-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"structured-text"
88
],
99
"author": "Stefano Verna <s.verna@datocms.com>",
10-
"homepage": "https://github.com/datocms/structured-text/tree/master/packages/datocms-structured-text-slate-utils#readme",
10+
"homepage": "https://github.com/datocms/structured-text/tree/main/packages/slate-utils#readme",
1111
"license": "MIT",
1212
"main": "dist/cjs/index.js",
1313
"module": "dist/esm/index.js",

packages/to-dom-nodes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"structured-text"
88
],
99
"author": "Stefano Verna <s.verna@datocms.com>",
10-
"homepage": "https://github.com/datocms/structured-text/tree/master/packages/to-dom-nodes#readme",
10+
"homepage": "https://github.com/datocms/structured-text/tree/main/packages/to-dom-nodes#readme",
1111
"license": "MIT",
1212
"main": "dist/cjs/index.js",
1313
"module": "dist/esm/index.js",

packages/to-html-string/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"structured-text"
88
],
99
"author": "Stefano Verna <s.verna@datocms.com>",
10-
"homepage": "https://github.com/datocms/structured-text/tree/master/packages/to-html-string#readme",
10+
"homepage": "https://github.com/datocms/structured-text/tree/main/packages/to-html-string#readme",
1111
"license": "MIT",
1212
"main": "dist/cjs/index.js",
1313
"module": "dist/esm/index.js",

0 commit comments

Comments
 (0)