Skip to content

0.5.22

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 14:29
· 39 commits to main since this release
a52039d

Fixes

  • Parser and ListParser read form fields that have no Annotated metadata. Before, they read only the annotated keys, so validating a plain TypedDict such as {"title": str} always failed with 400 Bad Request. A key without a parser is now read as a string.
  • When two components use the same selector or at-rule, for example the same @media query, style.load() merges their blocks. Before, it kept only the block of the later component, so the other component silently lost its rules. A property declared by both takes the value of the later component, as in the cascade.
  • link(rel=...) accepts the common link types, such as preload, modulepreload, manifest, dns-prefetch, license and me. Before, mypy rejected valid links like link(rel="preload", as_="font", ...).
  • CodeBlock fills the width of its container. The page limits text to the theme's measure, which is given in ch, and a ch of the smaller monospace font is narrower, so code blocks were narrower than the paragraphs around them.

What's Changed

  • fix: Read form fields without Annotated metadata in Parser (0.5.x) by @paveldedik in #161
  • fix(catalog): Let CodeBlock fill the width of its container (0.5.x) by @paveldedik in #167
  • fix: Merge styles with the same selector and accept common link rel values (0.5.x) by @paveldedik in #169

Full Changelog: 0.5.21...0.5.22