Skip to content

Releases: xpodev/pydom

v0.4.2

20 Jan 07:38
9155f94

Choose a tag to compare

What's Changed

  • Add Unicode character support for non-breaking and space characters by @neriyaco in #47
  • Update HTMLElement TypedDict to allow extra items by @neriyaco in #48

Full Changelog: 0.4.1...0.4.2

v0.4.1

27 May 09:55
c1dccfc

Choose a tag to compare

What's Changed

Full Changelog: 0.4.0...0.4.1

v0.4.0

29 Mar 22:15
51b4a26

Choose a tag to compare

Breaking changes

  • All types related to transformers are moved from the pydom.context module to pydom.rendering
  • The selected attribute in HTMLOptionElement is now boolean

Fixed

Full Changelog: 0.3.1...0.4.0

v0.3.1

03 Mar 02:06
5243cec

Choose a tag to compare

🎉 New documentation at pydom.dev 🎉

Added

  • Future dependencies
  • Documentation 🎉
  • HTMX tests

Fixed

  • FalsyTransformer issue
  • Typing issues

Removed

  • Features from context

New Contributors

Full Changelog: 0.3.0...0.3.1

v0.3.0

26 Feb 14:09
ea6eb26

Choose a tag to compare

Breaking changes

  • StyleObject from pydom.styling is renamed to StyleSheet
  • class_name is replaced with classes to be the default property for the class attribute in html.
  • Package is now pydom on 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

  • before and after when adding post render transformers
  • Page is now exported from the root module

Full Changelog: 0.2.3...0.3.0

v0.2.5

26 Feb 14:46
bbcedb9

Choose a tag to compare

Deprecate python-dom

v0.2.3

13 Feb 12:59
f672da2

Choose a tag to compare

What's Changed

  • Add py.typed file to the package (Fixes #6)

Full Changelog: 0.2.2...0.2.3

v0.2.2

13 Dec 13:06
0912560

Choose a tag to compare

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

19 Nov 16:55
1d34d65

Choose a tag to compare

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

17 Nov 14:13
c7cd293

Choose a tag to compare

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