@homepages/concrete 13.0.1 → 14.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.
- package/CHANGELOG.md +34 -0
- package/README.md +4 -5
- package/codemods/manifest.json +7 -0
- package/dist/artifact/playground/client/assets/index-DZbV6Ucf.js +1338 -0
- package/dist/artifact/playground/client/index.html +1 -1
- package/dist/artifact/playground/host.mjs +22 -22
- package/dist/cli/build/manifest.js +1 -1
- package/dist/cli/build/record.js +1 -1
- package/dist/cli/check/load-workspace.js +3 -6
- package/dist/cli/commands.js +63 -15
- package/dist/cli/media/deriver-plugin.js +10 -1
- package/dist/cli/publish/artifact.js +18 -40
- package/dist/cli/publish/fixtures.js +1 -1
- package/dist/cli/publish/index.js +90 -115
- package/dist/cli/publish/report.js +36 -56
- package/dist/cli/publish/send.js +142 -0
- package/dist/cli/publish/target.js +33 -31
- package/dist/cli/publish/verdict.js +65 -0
- package/dist/cli/release/client.js +69 -0
- package/dist/cli/release/index.js +143 -0
- package/dist/cli/release/report.js +73 -0
- package/dist/cli/upgrade/fixture-modules.js +3 -5
- package/dist/cli.js +1 -0
- package/dist/css/graph.js +29 -40
- package/dist/fixtures/media-plugin.js +7 -25
- package/dist/fixtures/package-stylesheets.js +12 -48
- package/dist/packages/external/concrete/package.js +1 -1
- package/dist/packages/internal/media-resolution/dist/image.js +23 -0
- package/dist/packages/internal/playground/dist/fixture-formats.js +5 -1
- package/dist/packages/internal/playground/dist/host/built.js +4 -12
- package/dist/packages/internal/playground/dist/host/catalog-fixture.js +0 -1
- package/dist/packages/internal/playground/dist/host/download.js +1 -8
- package/dist/packages/internal/playground/dist/host/fixture-addresses.js +3 -4
- package/dist/packages/internal/playground/dist/host/program.js +1 -2
- package/dist/packages/internal/playground/dist/host/serve.js +4 -30
- package/dist/packages/internal/playground/dist/host/stored-fixtures.js +2 -9
- package/dist/packages/internal/playground/dist/layout.js +5 -5
- package/dist/packages/internal/playground/dist/send-wire.js +9 -0
- package/dist/packages/internal/playground/dist/server/changes.js +0 -1
- package/dist/packages/internal/playground/dist/server/listen.js +2 -19
- package/dist/packages/internal/property-facts/dist/registry-facts.js +0 -7
- package/dist/packages/internal/template-artifact/dist/framework-floor.js +33 -0
- package/dist/packages/internal/template-artifact/dist/index.js +3 -3
- package/dist/packages/internal/template-artifact/dist/layout.js +2 -39
- package/dist/packages/internal/template-artifact/dist/manifest.js +1 -1
- package/dist/packages/internal/template-artifact/dist/verify.js +6 -57
- package/dist/packages/internal/template-contracts/dist/tour-value.d.ts +1 -1
- package/dist/packages/internal/template-contracts/dist/video-value.d.ts +1 -1
- package/dist/template/logic-build.js +38 -19
- package/guide/reference/cli/INDEX.md +5 -4
- package/guide/reference/cli/build.md +1 -1
- package/guide/reference/cli/check.md +1 -1
- package/guide/reference/cli/dev.md +1 -1
- package/guide/reference/cli/install.md +1 -1
- package/guide/reference/cli/property-add.md +1 -1
- package/guide/reference/cli/property-list.md +1 -1
- package/guide/reference/cli/publish.md +17 -16
- package/guide/reference/cli/release.md +57 -0
- package/guide/reference/cli/upgrade.md +1 -1
- package/guide/reference/rules/INDEX.md +1 -1
- package/package.json +6 -4
- package/dist/artifact/playground/client/assets/index-Bmvcss4B.js +0 -1338
- package/dist/cli/publish/captures.js +0 -61
- package/dist/cli/publish/client.js +0 -118
- package/dist/cli/publish/pack.js +0 -77
- package/dist/cli/publish/playground.js +0 -27
- package/dist/cli/publish/wire.js +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @homepages/concrete
|
|
2
2
|
|
|
3
|
+
## 14.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- ea010a1: Manual: drop `CONCRETE_TOKEN` and `CONCRETE_API_URL` from the workspace's `.env` and every key file, and after `concrete publish` run `concrete release` to hand the version to HomePages; a script that ran `concrete publish --dry-run` runs `concrete release --dry-run` instead.
|
|
8
|
+
|
|
9
|
+
`concrete publish` ends at the development console. It builds, checks and sends the template as a new version, then asks the console for that version's verdict: whether the platform loads and renders its build. It prints the version, what the merge replaced or kept, the verdict, the playground's link and the `concrete release --version <n>` that hands the build to HomePages, and asks nothing of HomePages itself. A failing verdict lists its problems and exits 1; the version stays on the console, and its playground shows the build. The only key is the team's console key, `CONCRETE_CONSOLE_KEY`: the publisher key `CONCRETE_TOKEN`, `CONCRETE_API_URL` and the upload to HomePages are gone, and so is `--dry-run`. `--json` writes the version, its link, the merge and the verdict. The stage lines are console, build, send and verify.
|
|
10
|
+
|
|
11
|
+
- 275bb2d: Manual: set `CONCRETE_CONSOLE_KEY` to your team's console key (in the workspace's `.env`, the environment, or the file `--env-file` names); `concrete publish` refuses without it.
|
|
12
|
+
|
|
13
|
+
`concrete publish` sends the template to the development console. The send carries the build and the authored fixtures under the team's console key; the console merges it with the work already there, and the publish prints the playground's link, every fixture where the console's work was replaced or kept, and a warning when the build's Concrete is older than the console's. A build carries no `playground/`, `fixtures/` or `captures/`, so publish no longer takes captures and needs no browser. The console reads only the new build shape (`artifact_schema` 6) and refuses an older build with the Concrete to build it with.
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- 87e5528: `concrete release` hands a version on the development console to HomePages. It reads the team's console key from `CONCRETE_CONSOLE_KEY` (the key's prefix names the console; `CONCRETE_CONSOLE_URL` replaces it), builds and sends nothing, and releases the template's current version or the one `--version <n>` names. It prints the version and who sent its build, the audience, what changed and how many deliverables are adopting; `--dry-run` changes nothing in HomePages, and `--json` writes the outcome alone to stdout. Exits 0 released, 1 refused, 2 failed.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 7389266: Source comments in the playground's build verification and the framework floor describe the release as the only way a template reaches HomePages. No behaviour changes.
|
|
22
|
+
- 8366b0a: In the playground's editor, a Publish press made before the required-content list has loaded is held until the list loads, so a press made as the editor opens reveals the empty required slots' marks, as any other press does.
|
|
23
|
+
- 0a65e3d: Type and schema comments name the files a template's build stores, such as a section's `schema.json` and `read-graph.json` and the template's `composition.json`, `preview.json` and `static-assets.json`, in place of database columns the platform no longer keeps. No behaviour changes.
|
|
24
|
+
- 77254fa: `concrete check` no longer hangs when the workspace sits under a directory holding a very large number of entries, such as a shared `/tmp`. Its esbuild passes resolved many imports through plugin resolves, and each one listed every directory above the workspace again. Every import now resolves once, in the pass itself, and a package's stylesheet loads empty where Node evaluates it.
|
|
25
|
+
- dceacd0: In the playground's facts page, a save made while a fill writes the same list lands instead of showing "Couldn't save": a row the fill took out leaves the page unless you changed it, a value the fill wrote under your edit stays, and a save whose row the fill took out a moment before is read back and saved once more before any notice.
|
|
26
|
+
- 0d7de82: The framework's build fingerprint skips dot-named folders inside the framework's own folder, so a scratch folder there no longer changes it. No framework file is dot-named.
|
|
27
|
+
- b30ec43: The package's own test script runs every test under one time limit. Nothing a consumer installs changed.
|
|
28
|
+
- eef7e87: The schema types' comments give the reason `slot_order` and `item_order` carry declaration order: an object's keys do not carry it reliably, since integer-like keys come first. No behaviour changes.
|
|
29
|
+
- 4464688: Source comments point at the design records' new home, `docs/plans/`. No code changed.
|
|
30
|
+
- 257dd7d: The publication record type carries no `review_url`: the platform keeps no hosted playground link for a publication. A template's playground is on the development console.
|
|
31
|
+
- a75324c: A render that waits for media still processing (a published site, a download) now also waits for an image's cut at its crop. Until now it served the uncropped original while the cut was still being made. A cut that can no longer land does not hold the render. Renders that serve straight away, like the playground's canvas, are unchanged.
|
|
32
|
+
- 2728ddd: The package metadata points at the repository's new home, `github.com/homepages-io/homepages`.
|
|
33
|
+
- 1c0d067: The bundled facts code no longer carries the helpers that read a media value in the platform's retired fact-row form. No fixture, check or playground behaviour changes.
|
|
34
|
+
- 844c860: The package's own tests are linted by the repository's test standard. Development tooling only: nothing a consumer installs or runs changed.
|
|
35
|
+
- b7f201f: The package's own test script sizes its test workers to the machine it runs on. Nothing a consumer installs changed.
|
|
36
|
+
|
|
3
37
|
## 13.0.1
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -21,8 +21,7 @@
|
|
|
21
21
|
written, checked and built: the authoring API and the contract primitives
|
|
22
22
|
(`@homepages/concrete`), the lint preset (`@homepages/concrete/eslint`), the compiler
|
|
23
23
|
options (`@homepages/concrete/tsconfig`), the primitives' stylesheet
|
|
24
|
-
(`@homepages/concrete/styles.css`),
|
|
25
|
-
(`@homepages/concrete/fixtures`), what a published page's island imports
|
|
24
|
+
(`@homepages/concrete/styles.css`), what a published page's island imports
|
|
26
25
|
(`@homepages/concrete/browser`), and the `concrete` command.
|
|
27
26
|
|
|
28
27
|
The package owns its whole toolchain. TypeScript, ESLint, esbuild and Tailwind
|
|
@@ -34,7 +33,7 @@ and `publish`; each command's flags, arguments, exit codes and constraints are i
|
|
|
34
33
|
[`guide/reference/cli/`](guide/reference/cli/INDEX.md), and every rule `check` grades is in
|
|
35
34
|
[`guide/reference/rules/`](guide/reference/rules/INDEX.md). `build` writes the template's
|
|
36
35
|
built files, rebuilding only what changed; `check` grades them; and `publish` builds,
|
|
37
|
-
checks and sends the template's
|
|
36
|
+
checks and sends the template to your team's development console, then its build to HomePages. Breaking changes ship as
|
|
38
37
|
majors, each with the codemod `concrete upgrade` runs to carry a workspace across it.
|
|
39
38
|
|
|
40
39
|
## Prerequisites
|
|
@@ -45,8 +44,8 @@ The same on macOS, Windows and Linux:
|
|
|
45
44
|
- **git**, optionally. Nothing in the toolchain needs a repository; `npm create` makes a
|
|
46
45
|
new workspace one when git is installed, and says so when it is not.
|
|
47
46
|
- **Chromium**, for an image or document template only (a deck, a social
|
|
48
|
-
post, a print sheet): the playground's Download
|
|
49
|
-
|
|
47
|
+
post, a print sheet): the playground's Download
|
|
48
|
+
captures its pages with the build the platform renders with. Concrete carries the
|
|
50
49
|
Playwright that pins that build, so the workspace adds nothing for it; on a machine
|
|
51
50
|
without the build, the first capture answers with the one command that installs it.
|
|
52
51
|
|
package/codemods/manifest.json
CHANGED
|
@@ -30,6 +30,13 @@
|
|
|
30
30
|
"13.0.1": {
|
|
31
31
|
"codemods": [],
|
|
32
32
|
"manual": []
|
|
33
|
+
},
|
|
34
|
+
"14.0.0": {
|
|
35
|
+
"codemods": [],
|
|
36
|
+
"manual": [
|
|
37
|
+
"drop `CONCRETE_TOKEN` and `CONCRETE_API_URL` from the workspace's `.env` and every key file, and after `concrete publish` run `concrete release` to hand the version to HomePages; a script that ran `concrete publish --dry-run` runs `concrete release --dry-run` instead.",
|
|
38
|
+
"set `CONCRETE_CONSOLE_KEY` to your team's console key (in the workspace's `.env`, the environment, or the file `--env-file` names); `concrete publish` refuses without it."
|
|
39
|
+
]
|
|
33
40
|
}
|
|
34
41
|
}
|
|
35
42
|
}
|