@quillmark/wasm 0.124.0 → 0.126.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 +396 -0
- package/LICENSE +198 -10
- package/NOTICE +8 -0
- package/README.md +42 -30
- package/THIRD_PARTY_LICENSES.md +10629 -0
- package/core/wasm.d.ts +43 -26
- package/core/wasm.js +34 -22
- package/core/wasm_bg.wasm +0 -0
- package/package.json +21 -3
- package/render/wasm.d.ts +80 -38
- package/render/wasm.js +66 -33
- package/render/wasm_bg.wasm +0 -0
- package/render/wasm_bg.wasm.d.ts +1 -0
- package/runtime/runtime.d.ts +53 -21
- package/runtime/runtime.js +80 -20
- package/sbom.cdx.json +12835 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,401 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.126.0 - 2026-10-16
|
|
4
|
+
|
|
5
|
+
Upgrade path: [0.125 → 0.126](docs/migrations/0.125-to-0.126.md). Script
|
|
6
|
+
links, runaway YAML expansion, bodies nested past 12 levels and a field named
|
|
7
|
+
`body` are refused, a quill's font collections load and a character no loaded
|
|
8
|
+
font covers warns `typst::missing_glyph`, an acroform quill's field spec is
|
|
9
|
+
`form.yaml`, a Typst quill's plate is `plate.typ` by name and an unknown
|
|
10
|
+
`typst:` key fails the load, a card groups fields under a top-level `object`
|
|
11
|
+
where it declared `sections:`, a `$quill` name may carry a collection, a
|
|
12
|
+
quill's `version` is `MAJOR.MINOR.PATCH` and a `$quill` selector
|
|
13
|
+
`@MAJOR.MINOR` or exact, a document the quill creates pins its `MAJOR.MINOR`,
|
|
14
|
+
`status_report` stores enum ids, a blueprint prints a blank `default:` as no
|
|
15
|
+
default, a WASM trap rejects coded, a text field is `text` or `richtext`, one
|
|
16
|
+
line unless it declares `multiline: true`, and prebuilt `quillmark` binaries
|
|
17
|
+
ship on every GitHub Release.
|
|
18
|
+
|
|
19
|
+
### Field types
|
|
20
|
+
|
|
21
|
+
- feat(core)!: **`type: plaintext` is `type: text`, and `text` and `richtext`
|
|
22
|
+
are one line unless they declare `multiline: true`**, the one line-shape key
|
|
23
|
+
coercion, `validate`, the editor and acroform all read. `inline:` and
|
|
24
|
+
`ui.multiline` are retired and fail the load as `quill::field_parse_error`,
|
|
25
|
+
naming the replacement, and a `richtext` spells `multiline:` either way for
|
|
26
|
+
this release, so no quill declaring a text field loads on both 0.125 and
|
|
27
|
+
0.126. `schema()` carries `multiline` where it carried `inline: true` on the
|
|
28
|
+
opposite fields, and the transform schema a plate reads carries
|
|
29
|
+
`quillmark:multiline: true` where it carried `quillmark:inline`. The
|
|
30
|
+
blueprint prints `text<plain>`, `text(multiline)<plain>`,
|
|
31
|
+
`richtext<markdown>` and `richtext(multiline)<markdown>`, where
|
|
32
|
+
`richtext<markdown>` named a block field. `validation::not_inline`,
|
|
33
|
+
`edit::field_not_inline`, `conform::field_not_inline` and
|
|
34
|
+
`quill::seed_not_inline` end in `not_single_line`, and their `codec` names
|
|
35
|
+
`text`; a `coercion_failed` `target` reads `text(single_line)`,
|
|
36
|
+
`richtext(single_line)` or `text`, where it read `plaintext(inline)`,
|
|
37
|
+
`richtext(inline)` or `plaintext`. In Rust, `FieldType::PlainText { inline }`
|
|
38
|
+
is `Text { multiline }`, `RichText { inline }` is `RichText { multiline }`,
|
|
39
|
+
`ValidationError::NotInline` is `NotSingleLine`, `EditError::FieldNotInline`
|
|
40
|
+
is `FieldNotSingleLine`, `QUILLMARK_INLINE_KEY` is
|
|
41
|
+
`QUILLMARK_MULTILINE_KEY` and `CODEC_PLAINTEXT` is `CODEC_TEXT`;
|
|
42
|
+
`UiFieldSchema::multiline` and WASM `QuillFieldUi.multiline` are removed. An
|
|
43
|
+
acroform text widget binds multiline exactly where its field declares it, so
|
|
44
|
+
a `richtext` declaring `multiline: true` binds a multiline widget, where a
|
|
45
|
+
block `richtext` without `ui.multiline` bound a one-line one. (#2217, #2229,
|
|
46
|
+
#2232)
|
|
47
|
+
- feat(core)!: **`type: string` is retired in favor of `text`**, and a plate
|
|
48
|
+
that computes with a text value reads its `str` through the new
|
|
49
|
+
`qm.str(..)`, which returns the value's text with trailing whitespace
|
|
50
|
+
dropped. A former `string` value reaches the plate as content, with nav and
|
|
51
|
+
click-to-edit, and still rests as the verbatim string. A matrix added item's
|
|
52
|
+
`title` is a one-line `text` cell. A stored `string` value holding an
|
|
53
|
+
interior line break fails `validation::not_single_line` and its render
|
|
54
|
+
`validation::coercion_failed`; a one-line value ignores trailing whitespace.
|
|
55
|
+
`FieldType::String` is removed. (#2230, #2232)
|
|
56
|
+
- fix(core)!: **a one-line `text` value ignores its trailing whitespace**, so
|
|
57
|
+
one written as a YAML `|` block, whose newline the block keeps, validates,
|
|
58
|
+
renders and conforms to its line, where an `inline: true` `plaintext` failed
|
|
59
|
+
`validation::not_inline`. Only a line break inside the value fails.
|
|
60
|
+
`trailingNewline` leaves the `not_single_line` args, and `trailing_newline`
|
|
61
|
+
leaves `ValidationError::NotSingleLine` and `EditError::FieldNotSingleLine`.
|
|
62
|
+
(#2234)
|
|
63
|
+
|
|
64
|
+
### PDF forms
|
|
65
|
+
|
|
66
|
+
- feat(acroform)!: **an acroform quill's field spec is `form.yaml`**, read as
|
|
67
|
+
`Quill.yaml` is, where it was `form.json`. JSON is YAML 1.2, so a renamed
|
|
68
|
+
`form.json` loads unchanged but for the three contents the upgrade guide
|
|
69
|
+
names: a raw DEL, C1 control, U+FFFE or U+FFFF, a repeated key, and a `rect`
|
|
70
|
+
value past `f32` range. A quill holding `form.json` fails as
|
|
71
|
+
`acroform::legacy_form_json`. `acroform::invalid_form_json` is
|
|
72
|
+
`acroform::invalid_form_spec`, located in `form.yaml`, and
|
|
73
|
+
`acroform::missing_form_json` is `acroform::missing_form_spec`, its hint
|
|
74
|
+
adding `form.yaml` at the quill root. (#2210, #2234)
|
|
75
|
+
- fix(cli): **`quillmark validate --no-render` reads an acroform quill's
|
|
76
|
+
`form.yaml` as `open` does**, binding it against the schema and `form.pdf`'s
|
|
77
|
+
pages, so a quill holding `form.json`, no spec, or one that does not parse
|
|
78
|
+
fails there, where it passed and then failed to open.
|
|
79
|
+
`quillmark::acroform_check_form` is that check. (#2234)
|
|
80
|
+
|
|
81
|
+
### Blueprint
|
|
82
|
+
|
|
83
|
+
- feat(core)!: **a blueprint's `$kind: main` line carries `main.title` and
|
|
84
|
+
`main.description` alone**, where it fell back to `quill.description`, which
|
|
85
|
+
describes the package and never reaches the blueprint. (#2222)
|
|
86
|
+
- feat(core)!: **a blank `default:` (`""`, `[]`, `{}`) prints in the blueprint
|
|
87
|
+
as no default does**, an empty cell where it printed `""`, since it renders
|
|
88
|
+
as one; `0` and `false` print. **A required typed table without a
|
|
89
|
+
`default:` prints `[]` led by its synthetic row commented out**, the shape
|
|
90
|
+
`default: []` printed, and an optional one an empty cell,
|
|
91
|
+
`r: # array<object>?`, under the same commented row, since `[]` answers it;
|
|
92
|
+
either printed the row live, and an unedited blueprint rendered one blank
|
|
93
|
+
row. The blank `default:` stays legal, and no diagnostic names it. (#2233)
|
|
94
|
+
|
|
95
|
+
### Typst plates
|
|
96
|
+
|
|
97
|
+
- feat(typst)!: **a Typst quill's plate is `plate.typ` at its root, found by
|
|
98
|
+
name, and `typst:` holds only the keys the backend reads.**
|
|
99
|
+
`typst.plate_file` stays, as an override. A quill holding `plate.typ` and
|
|
100
|
+
declaring no `plate_file` renders that plate, where it rendered a blank
|
|
101
|
+
page, and nothing reports the change; a `plate.typ` there that does not
|
|
102
|
+
compile fails `open` and `quillmark validate`. A quill holding no
|
|
103
|
+
`plate.typ` and declaring no `plate_file` fails to open as
|
|
104
|
+
`typst::plate_missing`, and `quillmark validate` reports it, where it
|
|
105
|
+
rendered a blank page; a `plate_file` that is not a string, or names no
|
|
106
|
+
path, fails as `typst::plate_path_invalid`. An unknown key under the
|
|
107
|
+
backend's section fails the load as `quill::unknown_backend_key`, where a
|
|
108
|
+
`typst:` key warned `typst::unknown_key` on every render, and a scalar or
|
|
109
|
+
sequence section fails as `quill::invalid_backend_section`.
|
|
110
|
+
`quillmark::typst_plate_file` returns the path, not an `Option`. (#2225)
|
|
111
|
+
|
|
112
|
+
### Grouping
|
|
113
|
+
|
|
114
|
+
- feat(core)!: **a card groups fields under a top-level `object`, and a card
|
|
115
|
+
declaring `sections:` fails `quill::invalid_card_schema`**, its hint naming
|
|
116
|
+
the `object`. `quill::empty_section`, `quill::invalid_section_id`,
|
|
117
|
+
`quill::mixed_sectioning` and `quill::duplicate_field` are retired;
|
|
118
|
+
`ui.group` / `ui.groups` load with `quill::deprecated_groups`, which hints
|
|
119
|
+
the `object` rewrite. The `usaf_memo` fixture declares its fields ungrouped.
|
|
120
|
+
(#2213)
|
|
121
|
+
|
|
122
|
+
### Formats that grow
|
|
123
|
+
|
|
124
|
+
- feat(acroform): **a field spec tagged with a later `0.x` than `0.2`
|
|
125
|
+
loads**, its unknown keys ignored as before, where any version but `0.2.x`
|
|
126
|
+
failed as `acroform::invalid_form_json`. A new major still fails. (#2208)
|
|
127
|
+
- feat(core): **`quill.requires: ">=1.3"` names the oldest Quillmark a quill
|
|
128
|
+
loads on**, and an engine from this release on that is below the floor
|
|
129
|
+
refuses it with one `quill::engine_too_old` error instead of reporting the
|
|
130
|
+
keys it has not learned as typos. (#2206)
|
|
131
|
+
|
|
132
|
+
### Links and untrusted input
|
|
133
|
+
|
|
134
|
+
- fix(typst)!: **a link whose target's scheme is `javascript:`, `vbscript:`,
|
|
135
|
+
`data:` or `file:` renders as its text alone**, where it rendered a live link
|
|
136
|
+
in PDF and SVG. (#2178)
|
|
137
|
+
- fix(typst): **SVG output is well-formed XML when a link's URL holds `&` or
|
|
138
|
+
`<`**, where its `href` carried them raw and an XML parser refused the file.
|
|
139
|
+
(#2194)
|
|
140
|
+
- fix(typst): **a link whose URL holds a character XML 1.0 cannot carry, a C0
|
|
141
|
+
control but tab, LF and CR or U+FFFE or U+FFFF, renders as its text
|
|
142
|
+
alone**, where its `href` carried it raw and the whole SVG failed to parse.
|
|
143
|
+
(#2234)
|
|
144
|
+
- fix(core)!: **a card-yaml block's aliases and tags expand within a budget
|
|
145
|
+
linear in its source**: past twice the block's bytes plus 4 KiB of scalars,
|
|
146
|
+
or its bytes plus 4 KiB of nodes, the block fails its YAML parse, with a
|
|
147
|
+
hint. (#2178)
|
|
148
|
+
- fix(pdf): **a PDF's page tree shares ancestor chains, its node cap counts
|
|
149
|
+
queued kids, and a deep chain drops without recursing.** (#2178)
|
|
150
|
+
- docs: **`SECURITY.md` says how to report a vulnerability and what counts as
|
|
151
|
+
one**, and Operations states what an integration expects of untrusted input
|
|
152
|
+
and how to bound an untrusted render. (#2176, #2178)
|
|
153
|
+
|
|
154
|
+
### Fonts
|
|
155
|
+
|
|
156
|
+
- fix(typst)!: **a `.ttc` or `.otc` the quill ships loads every face it
|
|
157
|
+
holds, up to 256**, where the font scan skipped it and naming its family
|
|
158
|
+
warned `unknown font family`. A collection declaring more faces loads none
|
|
159
|
+
and warns `typst::font_collection_skipped`, and one whose header declares
|
|
160
|
+
more faces than the file holds offsets for loads none. A quill whose only
|
|
161
|
+
fonts are collections renders in them rather than the embedded Roboto, so a
|
|
162
|
+
plate there naming `Roboto` warns `unknown font family`. (#2167, #2168,
|
|
163
|
+
#2189, #2234)
|
|
164
|
+
- feat(typst)!: **a character no loaded font covers warns
|
|
165
|
+
`typst::missing_glyph`**, once per render, naming each character the page
|
|
166
|
+
draws as an empty box, where Typst drew it and said nothing. `quillmark
|
|
167
|
+
validate` fails an `example.md` that draws one. (#2179, #2196, #2234)
|
|
168
|
+
|
|
169
|
+
### Markdown
|
|
170
|
+
|
|
171
|
+
- fix(content)!: **a body nests at most 12 list items, quotes and elements
|
|
172
|
+
deep, its marks counting nothing, so every body that imports renders under
|
|
173
|
+
Typst**, where import took 100 and Typst's show-rule depth refused 16 quotes
|
|
174
|
+
or 32 lists. A body past the bound fails `parse::body_import` at its `path`,
|
|
175
|
+
and a stored row holding one fails to load; `ParseError::BodyImport` holds
|
|
176
|
+
`{ path, message }`. (#2187, #2190, #2234)
|
|
177
|
+
- fix(core)!: **a stored row holding more than 1,000 cards fails to load**,
|
|
178
|
+
`StorageError::Malformed`, as markdown parse refuses that markdown, where it
|
|
179
|
+
loaded and its own `to_markdown` failed `parse::too_many_cards`; and placing
|
|
180
|
+
a 1,001st card refuses as `edit::too_many_cards`, `EditError::TooManyCards`,
|
|
181
|
+
where the edit landed. (#2234)
|
|
182
|
+
|
|
183
|
+
### Quill names
|
|
184
|
+
|
|
185
|
+
- feat(core)!: **a `$quill` name may carry a collection,
|
|
186
|
+
`$quill: borb.usaf_memo@1.2`**, the host's to resolve; the engine pairs by
|
|
187
|
+
the name after the `.`. A quill name and a collection name are each
|
|
188
|
+
`[a-z][a-z0-9_]*`, at most 64 characters, so `$quill` no longer admits a
|
|
189
|
+
leading `_`. `QuillReference` carries `collection`. (#2198, #2205)
|
|
190
|
+
|
|
191
|
+
### Versioning
|
|
192
|
+
|
|
193
|
+
- feat(core)!: **a quill's `version` is `MAJOR.MINOR.PATCH`**: a two-segment
|
|
194
|
+
`version: "1.2"`, or an unquoted `1.10`, fails `quill::invalid_version`. A
|
|
195
|
+
bump is ranked by what it costs a stored document: PATCH needs no change,
|
|
196
|
+
MINOR a mechanical rewrite, MAJOR loses data or function. (#2221, #2224)
|
|
197
|
+
- feat(core)!: **a `$quill` selector is `@MAJOR.MINOR` or
|
|
198
|
+
`@MAJOR.MINOR.PATCH`**, the compatibility boundary being `MAJOR.MINOR`:
|
|
199
|
+
`$quill: memo@1` fails `parse::invalid_quill_reference`, where it matched any
|
|
200
|
+
`1.x.x`, and a stored row holding it fails to load. `VersionSelector::Major`
|
|
201
|
+
is removed. (#2221, #2224)
|
|
202
|
+
- feat(core)!: **a document the quill creates pins `name@MAJOR.MINOR`**: the
|
|
203
|
+
seeded, empty and example documents and the blueprint carry
|
|
204
|
+
`$quill: memo@1.2`, where they carried `memo@1.2.0`, so every patch in the
|
|
205
|
+
series reads them. (#2221, #2224)
|
|
206
|
+
|
|
207
|
+
### Quill metadata
|
|
208
|
+
|
|
209
|
+
- feat(core)!: **`quill.license` names a quill's license as an SPDX expression,
|
|
210
|
+
and `quill.homepage` where its source or docs live.** Both are optional and
|
|
211
|
+
surface on `Quill.metadata` and `quillmark info`, absent when undeclared.
|
|
212
|
+
`QuillConfig` gains the public fields `license` and `homepage`, so Rust code
|
|
213
|
+
building it with a struct literal fails to compile until it names them. A
|
|
214
|
+
license is checked against the SPDX license list the engine ships: an id off
|
|
215
|
+
it, a lowercase operator, `/` for `OR` or any line break fails
|
|
216
|
+
`quill::invalid_license`, and a deprecated id warns
|
|
217
|
+
`quill::deprecated_license`. A homepage that is not an absolute `http` or
|
|
218
|
+
`https` URL naming a host and no user fails `quill::invalid_homepage`.
|
|
219
|
+
(#2225, #2234)
|
|
220
|
+
|
|
221
|
+
### Bindings
|
|
222
|
+
|
|
223
|
+
- fix(wasm)!: **a render that traps rejects as `runtime::backend_trapped`**,
|
|
224
|
+
the `WebAssembly.RuntimeError` on its `cause`, where it rejected as an
|
|
225
|
+
uncoded `attempted to take ownership of Rust value while it was borrowed`.
|
|
226
|
+
`Engine.render` / `open` and `LiveSession.update` / `render` / `paint` are
|
|
227
|
+
covered; a host routes on the code and discards the realm. (#2176)
|
|
228
|
+
- fix(wasm): **`@quillmark/wasm` declares `engines: { node: ">=22" }`**,
|
|
229
|
+
where it declared `>=24` and npm on Node 22 resolved 0.103.0, the last
|
|
230
|
+
release under that floor. The `using` sugar needs Node 24. (#2199, #2234)
|
|
231
|
+
- fix(wasm)!: **a native stack overflow inside a render rejects as
|
|
232
|
+
`runtime::backend_trapped`** too, the `RangeError` V8 and JavaScriptCore
|
|
233
|
+
raise for it, or Firefox's `InternalError`, on `cause`, where it rejected as
|
|
234
|
+
that error, uncoded, though it leaves the build's state as undefined as a
|
|
235
|
+
trap does. (#2234)
|
|
236
|
+
- fix(python): **`render` releases the GIL while the backend compiles**, and
|
|
237
|
+
renders a clone of the document, so other threads run and may edit it
|
|
238
|
+
meanwhile. (#2176)
|
|
239
|
+
|
|
240
|
+
### Errors and suggestions
|
|
241
|
+
|
|
242
|
+
- fix(core,typst,quillmark): **first-run errors name the newcomer's mistake**:
|
|
243
|
+
`---` front matter, a backtick fence holding a `$quill:` line, an indented
|
|
244
|
+
opener, `quill:` for `$quill`, an enum value off only by case, an unknown
|
|
245
|
+
field type, and a quill path that is a file. A helper assert locates at the
|
|
246
|
+
plate line that called it. (#2174)
|
|
247
|
+
- fix(core): **field and quill-name suggestions read as a person would write
|
|
248
|
+
them**: `validation::unknown_field` suggests within a quarter of the key's
|
|
249
|
+
length, a tie goes to the longest shared prefix, and a truncated key
|
|
250
|
+
suggests the field it begins; `quill::invalid_name` suggests `cafe` for
|
|
251
|
+
`Café` and `my_quill` for `MyQuill`. (#2184)
|
|
252
|
+
- fix(core,typst): **a data key spelled `$path` warns that plate data spells
|
|
253
|
+
each dictionary's address `$path`**, and a spread failing `unexpected
|
|
254
|
+
argument: $path` hints a sink parameter such as `..rest`. (#2167)
|
|
255
|
+
- fix(core)!: **a quill declaring a field named `body` fails to load with
|
|
256
|
+
`quill::reserved_field_name`**, its hint to rename the field, where the
|
|
257
|
+
field and the card's body shared one path, `main.body` or
|
|
258
|
+
`cards.<kind>[i].body`. (#2207, #2234)
|
|
259
|
+
- docs(reference): **the diagnostic-codes page lists every code the engine
|
|
260
|
+
mints**, and a test fails on a code minted but not listed, or listed but
|
|
261
|
+
minted nowhere. (#2175)
|
|
262
|
+
|
|
263
|
+
### Fixtures
|
|
264
|
+
|
|
265
|
+
- fix(fixtures)!: **`status_report`'s `state` stores `on_track`, `at_risk` and
|
|
266
|
+
`blocked`**, where it stored `on track`, `at risk` and `blocked`, and its
|
|
267
|
+
`version` is `0.2.0`, so a document pinned `status_report@0.1` fails
|
|
268
|
+
`quill::version_mismatch`. A document holding the old text fails
|
|
269
|
+
`validation::enum_violation`; the banner prints the same words. (#2167,
|
|
270
|
+
#2234)
|
|
271
|
+
- fix(fixtures): **`usaf_memo` sets in TeX Gyre Termes**, so its rendered
|
|
272
|
+
output changes, and the fixtures crate names each third-party file's
|
|
273
|
+
license. (#2173)
|
|
274
|
+
- fix(fixtures): **`usaf_memo` renders a list nested six levels deep or
|
|
275
|
+
more**, numbering past its last format and restarting each such level under
|
|
276
|
+
a new parent, where it failed `typst::compile` with
|
|
277
|
+
`dictionary does not contain key "6"`. (#2191, #2234)
|
|
278
|
+
|
|
279
|
+
### Distribution
|
|
280
|
+
|
|
281
|
+
- feat(cli): **prebuilt `quillmark` binaries ship on every GitHub Release**,
|
|
282
|
+
for Linux (musl, x86_64 and aarch64), macOS (arm64 and x86_64) and Windows
|
|
283
|
+
(x86_64, static C runtime), each archive carrying the NOTICE and
|
|
284
|
+
`THIRD_PARTY_LICENSES.md`, and `cargo binstall quillmark-cli` installs
|
|
285
|
+
them. (#2177, #2195)
|
|
286
|
+
- chore(legal): **every package carries the full Apache-2.0 text and a
|
|
287
|
+
NOTICE**, and the npm package and the wheels ship `THIRD_PARTY_LICENSES.md`,
|
|
288
|
+
the licenses of the crates they link and the embedded Roboto's OFL.
|
|
289
|
+
`@quillmark/wasm` declares keywords, author, homepage and bugs, and the
|
|
290
|
+
library crates their crates.io keywords and categories. (#2173, #2177)
|
|
291
|
+
- build(deps): **the PDF form backend rasters through hayro 0.8.** (#2100)
|
|
292
|
+
- docs: **a quickstart renders one starter quill from the CLI, Python,
|
|
293
|
+
JavaScript and Rust**, and the README and docs home lead with a rendered
|
|
294
|
+
memo and link the quillmark-js playground; quillmark.dev is the docs site
|
|
295
|
+
and the package homepage. (#2172, #2174)
|
|
296
|
+
- docs: **snippets that threw run as written**, and backend statements match
|
|
297
|
+
the code. (#2171)
|
|
298
|
+
- docs(community): **`CONTRIBUTING.md` says where questions, bugs and
|
|
299
|
+
proposals go**, with bug and feature issue forms and a PR template. (#2169)
|
|
300
|
+
|
|
301
|
+
### Release
|
|
302
|
+
|
|
303
|
+
- ci(release): **`@quillmark/wasm` is built and tested in jobs that cannot
|
|
304
|
+
publish**, from a committed `package-lock.json`; the tests run against the
|
|
305
|
+
built tarball, and the publishing job publishes that tarball with a pinned
|
|
306
|
+
npm. The Pages permissions move to the docs deploy job, and Dependabot
|
|
307
|
+
proposes a version once it is a week old. Publishing refuses a package
|
|
308
|
+
without its SBOM. (#2165, #2170)
|
|
309
|
+
|
|
310
|
+
## v0.125.0 - 2026-10-12
|
|
311
|
+
|
|
312
|
+
Upgrade path: [0.124 → 0.125](docs/migrations/0.124-to-0.125.md). Every Typst
|
|
313
|
+
plate migrates: the helper is version 0.2.0, imported `as qm`. Stored documents
|
|
314
|
+
load as before, under the same storage tag.
|
|
315
|
+
|
|
316
|
+
### Regions and the helper
|
|
317
|
+
|
|
318
|
+
- feat(typst)!: **the helper is a module imported as `qm`, at version 0.2.0**,
|
|
319
|
+
and every other import fails the render as `typst::helper_import`.
|
|
320
|
+
`field-region` is `qm.region`, `ink(x).f` and `display(..)` are
|
|
321
|
+
`qm.ink(x, "f", ..)`, and every other member reads under `qm.`. No
|
|
322
|
+
dictionary carries `$ink`; `data`, every card and every typed dictionary
|
|
323
|
+
carry `$path`. (#2157)
|
|
324
|
+
- feat(typst)!: **regions come from three declared producers**: ink the helper
|
|
325
|
+
generates, a `qm.region` claim and a form widget. A value the plate prints
|
|
326
|
+
itself, `#data.subject` included, surfaces no region. (#2157)
|
|
327
|
+
- feat(typst)!: **a claim takes the text between its markers that has no
|
|
328
|
+
source position of its own**, list bullets included, and no header, footer,
|
|
329
|
+
background, page number, footnote or float it crosses; a claim opened
|
|
330
|
+
inside one of those takes its ink. `typst::unclosed_field_region` is
|
|
331
|
+
`typst::unclosed_region`. (#2157, #2163)
|
|
332
|
+
- feat(core,cli,wasm): **`LiveSession::coverage` and `quillmark check
|
|
333
|
+
--regions` list the filled fields no click reaches**, a printed `0` or
|
|
334
|
+
`false` included. (#2157, #2160)
|
|
335
|
+
|
|
336
|
+
### Sections
|
|
337
|
+
|
|
338
|
+
- feat(core)!: **a card frames its fields in titled panels under
|
|
339
|
+
`sections:`**, and `ui.group` / `ui.groups` warn `quill::deprecated_groups`.
|
|
340
|
+
`schema()` still emits `ui.groups`, lists a grouped card's fields in display
|
|
341
|
+
order, and gives an object alone in its group `ui.layout: flat`. An empty
|
|
342
|
+
section fails the load. (#2156)
|
|
343
|
+
|
|
344
|
+
### Validation and typed writes
|
|
345
|
+
|
|
346
|
+
- feat(core)!: **`Quill::validate` warns `backend::declined_construct`, the
|
|
347
|
+
render's own diagnostic**, where it warned `validation::declined_construct`,
|
|
348
|
+
which is gone. (#2147)
|
|
349
|
+
- feat(core,wasm,python)!: **a typed `set` / `setAll` returns the
|
|
350
|
+
`parse::dropped_construct` of each `richtext` string it writes**, at the
|
|
351
|
+
string's path, and `addCard` its fields' ahead of its body's. (#2147, #2160)
|
|
352
|
+
- fix(acroform): **a `form@0.1.0` file gets the version message**, not a
|
|
353
|
+
field-shape error. (#2160)
|
|
354
|
+
|
|
355
|
+
### Markdown
|
|
356
|
+
|
|
357
|
+
- fix(core)!: **a backtick line whose info string holds a backtick opens no
|
|
358
|
+
code fence**, as CommonMark reads it, so a card block under it opens its
|
|
359
|
+
card. (#2147)
|
|
360
|
+
- fix(content)!: **a newline beside a hard break imports as no space, a line
|
|
361
|
+
whose content all drops imports as no line, and U+0000 reads as U+FFFD.**
|
|
362
|
+
Content stored by 0.124 keeps its space. (#2164)
|
|
363
|
+
- fix(content)!: **a raw tag inside a footnote definition warns nothing beside
|
|
364
|
+
the definition's `footnote`.** (#2160)
|
|
365
|
+
- fix(content): **a replaced line pairs by its word diff whatever its word
|
|
366
|
+
count.** (#2147)
|
|
367
|
+
|
|
368
|
+
### Tables
|
|
369
|
+
|
|
370
|
+
- fix(typst)!: **a placed table aligns its cells as an unplaced one does**
|
|
371
|
+
under the plate's `table.align` and a vertical `table.cell` rule. (#2147)
|
|
372
|
+
- fix(content)!: **a table's `align`, `widths` or `headless` outside its set
|
|
373
|
+
rests as written and reads as absent**, where normalization removed it.
|
|
374
|
+
(#2147)
|
|
375
|
+
- fix(typst): **`keep` holds its run whatever the element registry holds.**
|
|
376
|
+
(#2147)
|
|
377
|
+
|
|
378
|
+
### Revise
|
|
379
|
+
|
|
380
|
+
- refactor(core,wasm)!: **`droppedAnchors` holds `DocumentAnchor`s, `{ id,
|
|
381
|
+
path, line }`**, matched at the exact address, and an anchor dropped from
|
|
382
|
+
content stored out of canonical order is named. `DocumentAnchor` exports
|
|
383
|
+
from the WASM package root. (#2147)
|
|
384
|
+
|
|
385
|
+
### Rust
|
|
386
|
+
|
|
387
|
+
- refactor(content)!: **`ImportWarning` is a struct, and
|
|
388
|
+
`Container::Element` holds a validated `carrier::Element`.** The typed
|
|
389
|
+
writer's `set` / `set_all` return `Vec<Diagnostic>`, and
|
|
390
|
+
`SessionHandle::update` takes the session's `QuillConfig`. (#2147)
|
|
391
|
+
|
|
392
|
+
### CLI and packaging
|
|
393
|
+
|
|
394
|
+
- feat(typst,cli): **`quillmark --version` names the linked Typst**, 0.15.
|
|
395
|
+
(#2162)
|
|
396
|
+
- **`@quillmark/wasm` ships a CycloneDX SBOM of its crate graph**, and every
|
|
397
|
+
CI action is pinned by commit SHA. (#2132)
|
|
398
|
+
|
|
3
399
|
## v0.124.0 - 2026-10-10
|
|
4
400
|
|
|
5
401
|
Upgrade path: [0.123 → 0.124](docs/migrations/0.123-to-0.124.md).
|
package/LICENSE
CHANGED
|
@@ -1,13 +1,201 @@
|
|
|
1
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
you may not use this file except in compliance with the License.
|
|
5
|
-
You may obtain a copy of the License at
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
1. Definitions.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Quillmark
|
|
2
|
+
Copyright 2025-2026 Nibs
|
|
3
|
+
|
|
4
|
+
The Typst backend embeds the Roboto typeface, Copyright 2011 The Roboto
|
|
5
|
+
Project Authors, under the SIL Open Font License 1.1. Its license text ships
|
|
6
|
+
as crates/backends/typst/src/fonts/OFL.txt in source, and in
|
|
7
|
+
THIRD_PARTY_LICENSES.md beside this file in the npm package and the Python
|
|
8
|
+
wheels, with the licenses and notices of the third-party crates they link.
|