Repository navigation
v0.53.0
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.
MaskandMask[]can be parameter types, taking any type that extendsMask.- In the editor,
Maskis suggested afterextends, a new mask getslayoutandsymbolswritten out with a key for each layout character, missing keys are suggested insidesymbols: { }, 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 extendMask. Any other type is an error, with a quick fix that addsextends Mask. A mask withoutlayoutorsymbolsis an error too. See docs/upgrading.md.
Run kscript update to get this release.
What's Changed
- Build macOS release binaries on home-ci-macos by @kylepantall in #356
- Masks extend Mask, written the short way, first-class in the editor by @kylepantall in #357
- Release by changing VERSION by @kylepantall in #358
- Release v0.53.0, with its notes on the release page by @kylepantall in #359
Full Changelog: v0.52.0...v0.53.0