Fold the unreleased changelog entries into 0.2.0
0.2.0 has not been tagged yet, so the OpenAPI document, the list block, the module routes with the note module, and the format time settings ship in it. The entries join the 0.2.0 Added section next to the ones they extend, and the archive file list now names docs/swagger.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3e9779f71a
commit
fa15cb27b1
1 file changed
+31
-35
+31
-35
@@ -7,37 +7,6 @@ version may break callers; such changes are listed under **Breaking**.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- `docs/swagger.json`, the OpenAPI 3.1 document of the HTTP API: every
|
||||
route with its parameters, responses and the error codes it and its
|
||||
middleware answer with, and the schemas of the job and of every response.
|
||||
It is generated from the route table and the Go types
|
||||
(`go generate ./...`), served at `GET /openapi.json` without a token, and
|
||||
shipped in the release archives and the Docker build. CI fails when it is
|
||||
out of date.
|
||||
- `list` block: `items` with a `dot`, `dash`, `number` or `checkbox`
|
||||
bullet, and `done` to tick checklist items (`[√]`, or `[x]` on code pages
|
||||
without `√`). Long items wrap with a hanging indent. A list can stand
|
||||
alone or go inside a box.
|
||||
- Modules, which build a receipt from a few plain fields:
|
||||
- `POST /api/v1/print/:module` queues it and `POST /api/v1/preview/:module`
|
||||
previews it. `?copies=` sets the copies; `?printer=` is reserved and
|
||||
takes only `default`.
|
||||
- `GET /api/v1/modules` lists the modules.
|
||||
- The `note` module prints a box with a title, the text, a checklist and
|
||||
the time in the bottom border, from
|
||||
`{"title", "text", "items", "done"}`, with `style`, `footer` and `stamp`
|
||||
as options. `docs/api.md` § Modules describes it.
|
||||
- Error codes `invalid_payload` (400), `invalid_query` (400),
|
||||
`unknown_printer` (400), `module_not_found` (404) and `module_failed`
|
||||
(422), for the module routes.
|
||||
- `format.timezone` (default `Local`) and `format.time_layout` (default
|
||||
`02 Jan 15:04`) set how modules print times. The binary carries the time
|
||||
zone database, so zone names load on Windows and in slim containers.
|
||||
- `uberbringer preview --module <name>` shows the receipt a module builds
|
||||
from a payload.
|
||||
|
||||
## [0.2.0] - 2026-11-30
|
||||
|
||||
The daemon is rewritten, and so are its install script and release process,
|
||||
@@ -142,10 +111,17 @@ upgrade a 0.1 install.
|
||||
- installs a given release with `UBERBRINGER_VERSION=vX.Y.Z`;
|
||||
- installs on arm64, armv7 and armv6 as well as amd64.
|
||||
- Release archives contain `LICENSE.txt`, `README.md`, `docs/api.md`,
|
||||
`CHANGELOG.md`, `configs/config.example.toml` and
|
||||
`docs/swagger.json`, `CHANGELOG.md`, `configs/config.example.toml` and
|
||||
`packaging/uberbringer.service` next to the binary.
|
||||
- `docs/api.md`, the API reference: routes, elements, blocks and error
|
||||
codes. README covers installing, configuration and the command line.
|
||||
- `docs/swagger.json`, the OpenAPI 3.1 document of the HTTP API: every
|
||||
route with its parameters, responses and the error codes it and its
|
||||
middleware answer with, and the schemas of the job and of every response.
|
||||
It is generated from the route table and the Go types
|
||||
(`go generate ./...`), served at `GET /openapi.json` without a token, and
|
||||
shipped in the release archives and the Docker build. CI fails when it is
|
||||
out of date.
|
||||
- A weekly govulncheck run (Mondays 06:00 UTC, and on every push to main), so
|
||||
a new advisory against unchanged dependencies is reported.
|
||||
- A Makefile for development. `make check` runs the CI gate in the same order,
|
||||
@@ -156,11 +132,15 @@ upgrade a 0.1 install.
|
||||
- `box`: `single`, `double`, `double-h`, `double-v` or `ascii` borders, a
|
||||
title set into the top border (`inline` or `capped`), a footer in the
|
||||
bottom border, `padding`, `fit` and `columns`. Its body is `text` or
|
||||
`children`: text, feed, kv and rules, which print as dividers joined to
|
||||
the borders.
|
||||
`children`: text, feed, kv, lists and rules, which print as dividers
|
||||
joined to the borders.
|
||||
- `rule`: nine line styles, from `single` and `double` to shades, dashes
|
||||
and dots, with an optional label.
|
||||
- `kv`: key-value rows joined by a leader; long values wrap.
|
||||
- `list`: `items` with a `dot`, `dash`, `number` or `checkbox` bullet,
|
||||
and `done` to tick checklist items (`[√]`, or `[x]` on code pages
|
||||
without `√`). Long items wrap with a hanging indent. A list can stand
|
||||
alone or go inside a box.
|
||||
|
||||
`size` (1–3) and `font` scale a block's borders and text together. On
|
||||
cp850, cp858 and cp1252, glyphs the code page lacks fall back to ones it
|
||||
@@ -170,9 +150,26 @@ upgrade a 0.1 install.
|
||||
printing it or fetching images. The route answers plain text, or JSON with
|
||||
the styled runs, the line count and warnings for characters printed as
|
||||
`?`.
|
||||
- Modules, which build a receipt from a few plain fields:
|
||||
- `POST /api/v1/print/:module` queues it and `POST /api/v1/preview/:module`
|
||||
previews it. `?copies=` sets the copies; `?printer=` is reserved and
|
||||
takes only `default`.
|
||||
- `GET /api/v1/modules` lists the modules.
|
||||
- `uberbringer preview --module <name>` shows the receipt a module builds
|
||||
from a payload.
|
||||
- The `note` module prints a box with a title, the text, a checklist and
|
||||
the time in the bottom border, from
|
||||
`{"title", "text", "items", "done"}`, with `style`, `footer` and `stamp`
|
||||
as options. `docs/api.md` § Modules describes it.
|
||||
- The module routes answer with the error codes `invalid_payload` (400),
|
||||
`invalid_query` (400), `unknown_printer` (400), `module_not_found` (404)
|
||||
and `module_failed` (422).
|
||||
- `[format]` with `max_lines` (default 2000): a job that would print more
|
||||
lines fails instead of printing. `/api/v1/preview` answers such a job with
|
||||
`422` and the code `too_many_lines`.
|
||||
- `format.timezone` (default `Local`) and `format.time_layout` (default
|
||||
`02 Jan 15:04`) set how modules print times. The binary carries the time
|
||||
zone database, so zone names load on Windows and in slim containers.
|
||||
- `printer.box_line_spacing` (default 0): the line spacing used while a box
|
||||
prints, to close the gaps in its vertical borders. The default, the
|
||||
printer's own spacing, was checked on paper on the TM-T88IV.
|
||||
@@ -214,7 +211,6 @@ upgrade a 0.1 install.
|
||||
`elements[0].children[3] (qr): not allowed inside a box; place it after the
|
||||
box`. A field that applies to another element type, such as `title` on
|
||||
`text`, is listed there (`field "title" does not apply to text`).
|
||||
|
||||
- The licence is now the European Union Public Licence v. 1.2 (EUPL-1.2),
|
||||
replacing the GNU Affero General Public License v3.0. Releases up to and
|
||||
including 0.1.2 stay available under AGPL-3.0.
|
||||
|
||||
Reference in new issue
Block a user