Closed johannes-wolf closed 3 weeks ago
This allows other libs checking the cetz version number at runtime for compat. Code can require a minimum version using the new assert-version element (as long as the internal API does not completely change).
assert-version
Example (somelib/shapes.typ):
somelib/shapes.typ
#let my-shape(...) = { import cetz.draw: * assert-version(version(0,2,2), hint: "somelib") rect(...) }
This is a solution to improve the current module/version situation until Typst supports some kind of version negotiation.
This is wanted/needed for the cetz-plot split!
cetz-plot
This allows other libs checking the cetz version number at runtime for compat. Code can require a minimum version using the new
assert-version
element (as long as the internal API does not completely change).Example (
somelib/shapes.typ
):This is a solution to improve the current module/version situation until Typst supports some kind of version negotiation.