- **Methods that take options refuse anything else than an object**: a stray number, string, boolean or `null` as the options of `cropCircle()`, `Image.renderText()`, the encoders (`encodeWebP()`, `encodeAVIF()`, `encodeJXL()`, ...), `quantize()`, `transform()`, `dropShadow()`, `outline()`, the gradients, `Image.decode()`, the animation encoders, `new GainMap()` and `new TextLayout()` throws a `TypeError` that names the working form (e.g. `cropCircle({ size: 'cover' })`), for the 3.x calls that are gone like `cropCircle(true)` or `Image.renderText(font, 32, 'Hi')` instead of ignoring it. Only the type of the argument is checked: a key that isn't an option is still ignored, so a typo like `{ maxWith: 300 }` isn't caught.
0 commit comments