Skip to content

ext-typst 0.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 15:54
0.5.0
f7d3206

PHP 8.6 is now supported on every platform. This release also upgrades ext-php-rs to 0.16.5, fixes fonts added to a World after a Compiler or Inspector was created, and moves the macOS builds to the macOS 15 runner.

✨ Features

Build

  • PHP 8.6 support: builds, tests, and publishes prebuilt binaries for PHP 8.6 on Linux glibc (NTS, ZTS), Linux musl, and macOS (NTS, ZTS). (2a15cfa)

Distribution

  • PHP 8.6 musl builds are ZTS: the official PHP 8.6 Alpine Docker images ship ZTS only, so the 8.6 musl archives are ZTS and end with -zts, for example php_typst-0.5.0_php8.6-x86_64-linux-musl-zts.zip. PHP 8.3, 8.4, and 8.5 musl builds stay NTS. (5af0fea)
  • Composer constraints: carthage-software/ext-typst and carthage-software/ext-typst-stubs now allow PHP 8.6. (2a15cfa)

🐛 Bug Fixes

  • Fonts added after creating a compiler: Compiler and Inspector now share the World's fonts instead of copying them. A font added to the World later now reaches compileInBackground() and getWorld()->getFontFamilies(), not just compile(). (ae4d72a)
  • Package directory error: the error for a missing package directory now tells you to pass package_dir to Typst\World, instead of naming the removed SourceResolver class. (ab14cd8)

📖 Documentation

  • Supported platforms: lists PHP 8.6 and notes that the PHP 8.6 musl builds are ZTS. (2a15cfa, eeced99)

🏗️ Internal

  • ext-php-rs: upgrades from 0.15.6 to 0.16.5, the first line that builds against PHP 8.6. The enum smoke test and the full test suite pass on the new version. (fd3c855)
  • CI: points libclang and clang at the same LLVM on Linux runners, working around a bindgen header mismatch in ext-php-rs 0.16.5. (7fd37a0)
  • CI: moves macOS jobs from the retired macos-14 arm64 runner to macos-15. (3b38991)
  • Clippy: fixes a map_unwrap_or lint raised by newer clippy. (1e5b24b)

Full Changelog: 0.4.0...0.5.0