Skip to content

Version 0.3

Compare
Choose a tag to compare
@carlosame carlosame released this 20 Apr 16:35
· 348 commits to master since this release
v0.3

Highlights

Configure the encoding in TranscoderInput

One annoyance of TranscoderInput was that you could not set a specific encoding (even the tests relied on the JVM's default encoding), but in EchoSVG it has gained get/setEncoding methods. See #72 and #73 for more details.


XPath support now comes from JDK

This allowed the removal of the EchoXSL Xalan fork. Patches from the Apache Batik project written by S. Steiner were used.


Security improvements

The security model was improved, this was point 3) of issue #41. Work based on patches from the Apache Batik project.

If the security restrictions have become too strict for your use case, please open an issue or a discussion.

Also, a SECURITY.md file was created (point 4 of #41).


Module dependency cleanup

A few modules were being carried transitively when there was no need for that.


Detail of changes

  • Improve the security model
  • dom,anim: add InputStream+encoding method variant to DocumentFactory.
  • transcoder,anim,dom: add encoding support to TranscoderInput.
  • anim: throw an IllegalArgumentException on root mismatch in SAXSVGDocumentFactory.
  • bridge: avoid NPE when using non-PX units in an element.
  • Use default implementations for the deprecated getPixelToMM() method (#59)
  • Use JDK's XPath support #76 (ported from: BATIK-1329: Remove xalan)
  • Module dependency cleanup
  • Do not assume that GRADLE_USER_HOME is inside user.home in policy files.
  • Tests: convert tests to JUnit 5.
  • Tests: fix a few null-empty string inconsistencies in OnLoad tests.
  • Upgrade to css4j 4.0.1 and xml-dtd 4.2.
  • Upgrade to JMH 1.36
  • Upgrade Gradle wrapper to 8.1.
  • Upgrade to extra-java-module-info 1.3
  • .gitattributes: set Unix line endings
  • Ignore the jar directory in git