Skip to content

Releases: DesignLiquido/xslt-processor

v3.0.0

07 May 20:03

Choose a tag to compare

Breaking Changes

Please note that the xsltProcess method now is asynchronous (returns Promise<string>):

import { Xslt, XmlParser } from 'xslt-processor';

// xmlString: string of xml file contents
// xsltString: string of xslt file contents
// outXmlString: output xml string.
const xsltClass = new Xslt();
const xmlParser = new XmlParser();
// Either
const outXmlString = xsltClass.xsltProcess(
	xmlParser.xmlParse(xmlString),
	xmlParser.xmlParse(xsltString)
);
// Or
xslt.xsltProcess(
	xmlParser.xmlParse(xmlString),
	xmlParser.xmlParse(xsltString)
).then(output => {
  // `output` is equivalent to `outXmlString` (a string with XML).
});

Version 3 received <xsl:include> tag, which relies on Fetch API, which is asynchronous. Version 2 doesn't support <xsl:include>.

If you're planning to update your project with this version, adjust your code as needed.

What's Changed

Full Changelog: v2.3.1...v3.0.0

v2.3.1

23 Mar 17:13

Choose a tag to compare

What's Changed

Full Changelog: v2.3.0...v2.3.1

v2.3.0

08 Mar 05:29

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.2.0...v2.3.0

v2.2.0

29 Jan 06:57

Choose a tag to compare

What's Changed

Full Changelog: v2.1.4...v2.2.0

v2.1.4

28 Jan 18:47

Choose a tag to compare

What's Changed

Full Changelog: v2.1.3...v2.1.4

v2.1.3

24 Jan 01:22

Choose a tag to compare

What's Changed

  • Removing logic that was replacing child nodes by attribute nodes. Totally weird. (cee123a)
  • Bump follow-redirects from 1.15.2 to 1.15.4 (#82) (b742613)

Full Changelog: v2.1.2...v2.1.3

v2.1.2

24 Nov 13:27

Choose a tag to compare

What's Changed

Full Changelog: v2.1.1...v2.1.2

v2.1.1

07 Nov 17:04

Choose a tag to compare

What's Changed

Full Changelog: v2.1.0...v2.1.1

v2.1.0

04 Nov 18:48

Choose a tag to compare

What's Changed

Full Changelog: v2.0.1...v2.1.0

v2.0.1

19 Oct 20:28

Choose a tag to compare

What's Changed

Full Changelog: v2.0.0...v2.0.1