Skip to content

Bump com.github.weisj:jsvg from 1.4.0 to 2.0.0 #5384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 24, 2025

Bumps com.github.weisj:jsvg from 1.4.0 to 2.0.0.

Release notes

Sourced from com.github.weisj:jsvg's releases.

v2.0.0

[!IMPORTANT] This release breaks the current API in a major way. This is done in order to provide a stable public facing API. This first version is deliberately very restrictive. Please file issues with your use-case if you need now hidden functionality publicly exposed.

Many classes have been moved in this release. Some have been renamed and others have been deleted entirely. The new set of public API packages are

com.github.weisj.jsvg
	com.github.weisj.jsvg.paint
	com.github.weisj.jsvg.parser
		com.github.weisj.jsvg.parser.css
		com.github.weisj.jsvg.parser.resources
	com.github.weisj.jsvg.provider
	com.github.weisj.jsvg.renderer
		com.github.weisj.jsvg.renderer.animation
		com.github.weisj.jsvg.renderer.awt
		com.github.weisj.jsvg.renderer.output
	com.github.weisj.jsvg.ui
	com.github.weisj.jsvg.view

If your use-case is simple rendering then a few changes to your imports should be enough to migrate to this versions.

Changes

  • Errors during parsing are now logged with WARNING as their log level instead of SEVERE.
  • ParsedElement and ParsedDocument have been removed from the public API. They have been replaced with DomDocument and DomElement. The DOMProcessor, ResourceLoader, StyleSheet etc. interfaces have been adjusted accordingly.
  • AttributeNode and AttributeParser have been removed from the public facing API e.g. they are no longer arguments to the methods in PaintParser. Attributes can now only be accessed by their raw string value through DomElement#attribute(String). The PaintParser can be obtained through the DomDocument associated to the DomElement.
  • the functionality of ParserProvider has been moved into LoaderContext. This unifies the places of customisation points during parsing.
  • SVGNode including all implementations have been removed from the public API. Use DomElement#tagName() to determine the type of an element instead.
  • The exposed API of RenderContext has been reduced to transform related functions, colors and opacity.
  • Graphics2DOutput has been removed from the public API. Use Output#createForGraphics(Graphics2D) to obtain a ready to be used configured instance.

New API:

  • LoaderContext has been extended to support the customisation previously available through ParserProvider.
  • SVGDocument#load(XMLInput, URI, LoaderContext) has been added to support loading from non InputStream/URL based sources. The XMLInput input classes has the method XMLInput#createReader returning an XMLEventReader.

The following classes have been renamed:

  • UIFuture has been renamed to ResourceSupplier.
  • AnimationPeriod has been renamed to Animation.
  • All occurrences of Provider<T> have been replaced with Supplier<T> from the JDK.

The following API has been removed:

  • The asynchronous implementation of UIFuture.
  • ParserProvider#createPostProcessor() has been removed.
  • ParserProvider has been removed. Its functionality has been merged into LoaderContext.

The following deprecated methods have been removed:

  • SVGDocument#render(JComponent, Graphics2D, ViewBox).

    • Use render(Component, Graphics2D, ViewBox) instead.
  • SVGLoader#SVGDocument load(InputStream), SVGLoader#load(InputStream, ParserProvider), SVGLoader#load(InputStream, ParserProvider, ResourceLoader)

... (truncated)

Commits

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
com.github.weisj:jsvg [< 1.4, > 1.3.0]

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

This change is Reviewable

@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Apr 24, 2025
Bumps [com.github.weisj:jsvg](https://github.com/weisJ/jsvg) from 1.4.0 to 2.0.0.
- [Release notes](https://github.com/weisJ/jsvg/releases)
- [Commits](https://github.com/weisJ/jsvg/commits)

---
updated-dependencies:
- dependency-name: com.github.weisj:jsvg
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/gradle/develop/com.github.weisj-jsvg-2.0.0 branch from f1fe7ef to ea156f6 Compare May 6, 2025 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file java Pull requests that update java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants