Skip to content

Releases: DesignLiquido/xslt-processor

3.3.1

08 Nov 17:50
Compare
Choose a tag to compare

v3.3.0

08 Nov 02:24
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.2.3...v3.3.0

3.2.3

06 Nov 01:52
Compare
Choose a tag to compare
  • Getting rid of bublé plugin for rollup, which breaks the build. (d5d7c9f)
  • Downgrading whatwg-url requirement to version 13. (ecd3540)
  • Forcing a more updated version of whatwg-url to avoid the message reported at #104. (b3786c0)

3.2.2

02 Nov 20:03
Compare
Choose a tag to compare

3.2.1

05 Oct 17:46
Compare
Choose a tag to compare

3.2.0

21 Sep 17:45
Compare
Choose a tag to compare
  • Partially implementing <xsl:import>. (#102) (12e3609)

3.1.0

19 Sep 23:55
Compare
Choose a tag to compare
  • <xsl:key> (#101) (6245c11)
  • Throwing errors for xsl:when and xsl:otherwise used outside xsl:choose. (3916d7e)
  • Adding unit test for #92. (3369ca3)

3.0.2

09 Sep 21:11
Compare
Choose a tag to compare
  • Package updates and test build. (97a0162)
  • Resolving CDATA issue reported in #95: (814995d)
  • Bump axios from 1.6.1 to 1.7.7 (#99) (a74ec4b)
  • Bump micromatch from 4.0.5 to 4.0.8 (#98) (6367b9b)

3.0.1

04 Jul 23:35
Compare
Choose a tag to compare

v3.0.0

07 May 20:03
Compare
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