Releases: DesignLiquido/xslt-processor
Releases · DesignLiquido/xslt-processor
3.3.1
v3.3.0
What's Changed
- Removing
node-fetch
as a dependency. Adding disclaimer at README. by @leonelsanchesdasilva in #114
Full Changelog: v3.2.3...v3.3.0
3.2.3
3.2.2
- Resolving #111; (#112) (a9fdabe)
- Adding unit test for #110. (aa9a2a3)
- Updating unit test on #109. (ea811e9, 56b0b7b, 8b3c4dc)
- Adding unit test for #109. (3b8a216)
- Just adding the namespace to test in other stricter XSLT transformers. (1892a34)
- Adding unit test reported in #108. (a64644e)
- Adding unit test for #107. (e051c7c)
3.2.1
3.2.0
3.1.0
3.0.2
3.0.1
- Refactoring while testing a bug with
UnionExpr
. (1cc8d7b) - Bug fixes reported in DesignLiquido/lmht-js#2 and DesignLiquido/lmht-js#3. (386a869)
- Adding unit test from issue. Unable to debug now in VSCode. (aecf8b2)
- Fixing
<xsl:include>
test. (b4dc330) - Bump braces from 3.0.2 to 3.0.3 (#97) (288c76d)
- Updating LMHT tests. (a0f91a6)
- Update README.md (763d6df)
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