Releases: xpodev/pydom
Releases · xpodev/pydom
v0.4.2
v0.4.1
v0.4.0
Breaking changes
- All types related to transformers are moved from the
pydom.contextmodule topydom.rendering - The
selectedattribute inHTMLOptionElementis now boolean
Fixed
- Minor fix in tailwind tutorial by @elazarcoh in #28
Full Changelog: 0.3.1...0.4.0
v0.3.1
🎉 New documentation at pydom.dev 🎉
Added
- Future dependencies
- Documentation 🎉
- HTMX tests
Fixed
- FalsyTransformer issue
- Typing issues
Removed
- Features from context
New Contributors
- @binyamin555 made their first contribution in #22
Full Changelog: 0.3.0...0.3.1
v0.3.0
Breaking changes
StyleObjectfrompydom.stylingis renamed toStyleSheetclass_nameis replaced withclassesto be the default property for theclassattribute in html.- Package is now
pydomon pypi! (Huge thanks to Jos Handriks for giving us the name)
Class name migration guide
You can use the following code to the context to keep using class_name instead of classes
from pydom import get_context
from pydom.context.standard.transformers.class_transformer import ClassTransformer
class_transformer = next(t for t in get_context().prop_transformers if isinstance(t, ClassTransformer))
if class_transformer:
class_transformer.prop_name = "class_name"Added
beforeandafterwhen adding post render transformersPageis now exported from the root module
Full Changelog: 0.2.3...0.3.0
v0.2.5
v0.2.3
v0.2.2
What's Changed
- Add support for lists as children of components and elements
- Add trailing slash to self-closing elements (
<br />instead of<br>etc.)
Full Changelog: 0.2.1...0.2.2
v0.2.1
What's Changed
- Fix typing by @elazarcoh in #13
- Add option to disable escaping in render tree
Full Changelog: 0.2.0...0.2.1
v0.2.0
What's Changed
- Add transformer classes
- Add after/before option in add transformers
- Add SVG elements (Currently without typing)
Notes
The default transformers are now classes so this might break your app if you created your own context and used some of the default transformers.
Full Changelog: 0.1.3...0.2.0