Skip to content

3.20.4

Latest

Choose a tag to compare

@matmen matmen released this 18 Nov 19:45
· 2 commits to master since this release
Immutable release. Only release title and notes can be modified.

3.20.4

Deprecated

The deprecation hints now lead to the names 4.0 uses, and 3.x takes those names already. 4.0 ignores an option it
doesn't know, so code that followed the earlier hints (cropCircle({ size: 'cover' })) would have changed its output
there without an error:

  • cropCircle({ fit }): the size option is deprecated, fit is its name in 4.0. The hint of cropCircle(max, feathering) and of the max option now names fit.
  • Image.renderSVG(svg, { width }), { height } and { scale }: the size and mode options (and SVGScaleMode, SVGScaleModes) are deprecated, these are their names in 4.0. Only one of the three can be given. { font } (one font or an array) is the 4.0 name of fonts, which is deprecated. RenderSVGOptions is the 4.0 name of SVGOptions.
  • new GainMap(image, { min, max }) and map.min, map.max: the 4.0 names of gainMapMin and gainMapMax, which are deprecated.
  • ResizeModes, FrameDisposalModes and the constants Image.RESIZE_*, Frame.DISPOSAL_* and Image.SVG_MODE_* point to the names 4.0 uses ('bicubic', 'background', { width }): 4.0 removes the classes too. FrameDisposalMode is the 4.0 name of FrameDisposalModeName.