Skip to content

Version 3.0.0

Compare
Choose a tag to compare
@KaiVolland KaiVolland released this 04 Oct 10:29

Breaking

Migration-Guide:
The output of the readStyle and writeStyle methods has changed from the pure style to the ReadStyleResult/WriteStyleResult.

Version <3:

// read
const geostylerStyle = await sldParser.readStyle(someSld);
// write
const sldStyle = await sldParser.writeStyle(geostylerStyle);

Version >=3:

// read
const { output: geostylerStyle } = await sldParser.readStyle(someSld);
// write
const { output: sldStyle }  = await sldParser.writeStyle(geostylerStyle);

v2.5.0...v3.0.0