Skip to content
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

RELEASE NOTES #99

Open
tabatkins opened this issue Feb 24, 2023 · 1 comment
Open

RELEASE NOTES #99

tabatkins opened this issue Feb 24, 2023 · 1 comment

Comments

@tabatkins
Copy link
Owner

Better late than never!

Version 3.0.0

Major version bump because I broke the Python API intentionally.

Some time ago the JS port made a distinction between outputting as standalone (XML SVG document) and "normal" (SVG in HTML). I never carried that over to the Python port, which meant that when I was using it in Bikeshed I was getting namespaces like an XML document injected into the HTML, which was causing validation failures.

Now the Python version carries the same distinction; see the README for details.

This also entailed changing the API around styling a little bit. Diagram() no longer takes a css argument, and when you output normally, it doesn't include any CSS in the output. But when you call writeStandalone(), which formats it as an independent XML document, you can pass some CSS to include with it; if you don't, it includes the default CSS.

If you're using the normal .write() to include a diagram in your HTML, you'll want to put the CSS into your document yourself now; you can get it from the DEFAULT_STYLE property on the module.

Version 3.0.1

  • Minor bump from the previous version because I'd spelled a method wrong.
@tabatkins tabatkins pinned this issue Feb 24, 2023
@tabatkins tabatkins mentioned this issue Feb 24, 2023
@kloczek
Copy link

kloczek commented Apr 1, 2023

Is it any chance to add at least git tag of the laatest released verion? 🤔
According to https://pypi.org/project/railroad-diagrams/ latest version ois 3.0.1 however in git repo there is no any version tags.
Please ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants