Skip to content

v0.53.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 12:30
· 10 commits to master since this release
cf68eae

Highlights

Masks extend Mask. A mask is now a type that extends the built-in Mask, and its members need no type written:

/// Trees at the four corners of a 3x3 square, anything between.
type Corners extends Mask {
  layout: ```text
    #.#
    ...
    #.#
    ```
  symbols: { '#': '#', '.': null }
}

echo $grid->shapes(like: Corners)->count()
  • The indentation every layout line shares isn't part of the layout, so a closing fence indented less than the picture works.
  • Mask and Mask[] can be parameter types, taking any type that extends Mask.
  • In the editor, Mask is suggested after extends, a new mask gets layout and symbols written out with a key for each layout character, missing keys are suggested inside symbols: { }, layout characters are coloured by what they match, and hovers explain each part.

Faster macOS release builds. The macOS binaries are built on a larger machine, so releases finish sooner.

Breaking changes

  • A type passed to ->shapes(like:) must extend Mask. Any other type is an error, with a quick fix that adds extends Mask. A mask without layout or symbols is an error too. See docs/upgrading.md.

Run kscript update to get this release.

What's Changed

Full Changelog: v0.52.0...v0.53.0