@seamlet/astro 0.12.1 → 1.0.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +3 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,28 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0
4
+
5
+ The first stable version. From here the package follows semver: what a site writes against it keeps building until the next major version.
6
+
7
+ What is stable:
8
+
9
+ - `@seamlet/astro` — the integration `seamlet()`, with the site's id, title and CMS in `seamlet.json` (`CMS_ORIGIN` takes the place of `cms`).
10
+ - `@seamlet/astro/site` — `defineSeamletSite({ schema, initialContent, pages, photos })` with `pageAt`, `loadPublishedContent`, `ownPhotoAt` and `description`.
11
+ - `@seamlet/astro/schema` — the field kinds and their builders, `ContentOf`, `defaultContent`, `parseContent`, `editable`, `resolveFieldPath`, formatted text (`richTextOf`, `plainTextOf`, `linesOf`), `safeHref`, `imagePosition`, the presets, record ids, `readSiteConfig`, `readSiteDescription`, `checkSiteDescription` and `checkFields`.
12
+ - `@seamlet/astro/components/RichText.astro` and the routes the integration adds: the preview (`/preview`), the site's description (`/seamlet/site.json`), the photos taken from the CMS (`/media/<site>/<file>`) and the site's own photos for the editor (`/seamlet-photos/<address>`).
13
+ - `@seamlet/astro/protocol` — the messages between the bridge and the CMS's editor at `PROTOCOL_VERSION` 2. A change the other side cannot read raises it; the editor speaks with the bridges of earlier versions it lists.
14
+ - `npx @seamlet/astro init`.
15
+
16
+ Since 0.12.1 nothing changed in the code.
17
+
18
+ ## 0.12.1
19
+
20
+ - A field that became plain text keeps the words of a formatted text saved in it.
21
+
22
+ ## 0.12.0
23
+
24
+ - `safeHref`: an address no link may have never reaches markup; `RichText` and the bridge use it.
25
+ - A site the CMS would refuse stops its build with every reason (`checkSiteDescription`, `checkFields`); `readFields` refuses names with a dot or of digits, options of the wrong kind, references to a missing collection and an `itemTitle` that is no text or link.
26
+ - Requests to the CMS are bounded in time and number; `/media` answers 502 when the CMS does not.
27
+ - A draft rendered while a text is typed or the page pressed is shown once that is over.
28
+ - `init` starts a site with a title of any length and writes its modules all or none.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamlet/astro",
3
- "version": "0.12.1",
3
+ "version": "1.0.0",
4
4
  "description": "Connects an Astro site to the Seamlet CMS: the schema of its content, the preview the editor frames, and its published content.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -59,7 +59,8 @@
59
59
  "files": [
60
60
  "dist",
61
61
  "routes",
62
- "components"
62
+ "components",
63
+ "CHANGELOG.md"
63
64
  ],
64
65
  "scripts": {
65
66
  "build": "tsup"