Skip to content

v0.48.1

Choose a tag to compare

@github-actions github-actions released this 02 Dec 01:30
· 25 commits to master since this release
1aa3565

Highlights

Every row or every column. ->cells(rows) gives every row and ->cells(columns) every column (keyed by the header when there is one). row: and rows are one choice, and so are column: and columns:

$prices->cells(columns)               // { fruit: ['apple', 'plum'], price: [3, 5] }
$numbers->cells(columns)              // [[-903, 692], [-642, 853], [-518], ...]
$prices->cells(rows, column: 'price') // every row's price

Without a header, a column skips the rows too short to reach it, so ->cells(column: 2) is the third number of every row that has one.

Fixes

  • Hovers whose examples hold a ```csv block (such as ->cells()) showed the rest of the example as prose and the docs link as raw text. Code in hovers is now fenced so text blocks stay inside it.
  • ->cells(row) now says row needs a value and offers Change to rows. ->cells(rows, row: 0) is an error in the editor, not only when it runs.

Behaviour changes

  • Without a header, ->cells(column: n) skips rows too short to reach the column instead of failing. A column no row reaches is still an error.

What's Changed

  • Every row or column with ->cells(rows) / ->cells(columns), and fix hovers with text blocks by @kylepantall in #346

Full Changelog: v0.48.0...v0.48.1