svgdotjs / svg.js

The lightweight library for manipulating and animating SVG
https://svgjs.dev
Other
11.04k stars 1.08k forks source link

New release? #1152

Closed mroloux closed 2 years ago

mroloux commented 3 years ago

Hi,

I noticed the latest release is about one year old. Are there any plans to release a new version?

I'm hoping to take advantage of bug fixes and performance enhancements that happened the last couple of months ;-)

Thanks

Bernix01 commented 3 years ago

Hoping to see a new release too!

mroloux commented 3 years ago

Any news on this?

UnvirtualHH commented 3 years ago

New release would be great, in cause of some resolved bugfixes.

BrianHanechak commented 3 years ago

I am hitting a bug with the existing release in importing SVG. When I call:

const otherSvg = SVG().svg(svgString);

I get a null reference exception in the parent function:

  parent (type) {
    if (this.isRoot()) {
      return this.node.parentNode.nodeName === '#document'
        ? null
        : adopt(this.node.parentNode)
    }

This function is called from the svg function which imports the svg data from a string.

I tested building my own and it appears this issue has already been fixed (and the relevant functions are fairly different.). Can anyone suggest a workaround to this in the meantime? Am I creating the SVG object incorrectly?

mkatanski commented 3 years ago

I also want to ask when we can expect new release? There are still missing some TS definitions in latest build which were already added to the project.

jdelaune commented 3 years ago

Would be nice to see a new release

jnt0r commented 3 years ago

I would also like to see a new release. I think bugfixes should be released as soon as possible.

BrianHanechak commented 3 years ago

I am hitting a bug with the existing release in importing SVG. When I call:

const otherSvg = SVG().svg(svgString);

I get a null reference exception in the parent function:

  parent (type) {
    if (this.isRoot()) {
      return this.node.parentNode.nodeName === '#document'
        ? null
        : adopt(this.node.parentNode)
    }

This function is called from the svg function which imports the svg data from a string.

I tested building my own and it appears this issue has already been fixed (and the relevant functions are fairly different.). Can anyone suggest a workaround to this in the meantime? Am I creating the SVG object incorrectly?

By the way, I eventually figured out that the solution is to use:

const otherSvg = SVG(svgString);