Releases: DesignLiquido/xslt-processor
Releases · DesignLiquido/xslt-processor
v3.0.0
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
- Bump tar from 6.1.15 to 6.2.1 by @dependabot in #91
<xsl:include>by @leonelsanchesdasilva in #94
Full Changelog: v2.3.1...v3.0.0
v2.3.1
What's Changed
- Bump follow-redirects from 1.15.4 to 1.15.6 by @dependabot in #89
- Fixes in
xsl:chooseandxsl:copy-of+ better docs by @leonelsanchesdasilva in #90
Full Changelog: v2.3.0...v2.3.1
v2.3.0
What's Changed
- Bump ip from 1.1.8 to 1.1.9 by @dependabot in #86
- implement replace function by @jasonliao-cb in #87
New Contributors
- @jasonliao-cb made their first contribution in #87
Full Changelog: v2.2.0...v2.3.0
v2.2.0
What's Changed
- Unifying attributes with other child nodes. by @leonelsanchesdasilva in #84
- Fixing a bug with
xsl:attribute+xsl:call-templateby @leonelsanchesdasilva in #85
Full Changelog: v2.1.4...v2.2.0
v2.1.4
What's Changed
- Using variables set in the context to resolve values for
call-template. by @leonelsanchesdasilva in #83
Full Changelog: v2.1.3...v2.1.4
v2.1.3
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
What's Changed
- Bump axios from 1.4.0 to 1.6.1 by @dependabot in #79
- Not applying
for-eachif XPath doesn't find nodes. by @leonelsanchesdasilva in #81
Full Changelog: v2.1.1...v2.1.2
v2.1.1
v2.1.0
What's Changed
upper-caseandlower-case(XSLT 2.0) by @leonelsanchesdasilva in #77
Full Changelog: v2.0.1...v2.1.0
v2.0.1
What's Changed
- Bump @babel/traverse from 7.22.5 to 7.23.2 by @dependabot in #75
- Fixing behavior reported in #74. by @leonelsanchesdasilva in #76
Full Changelog: v2.0.0...v2.0.1