Skip to content

Releases: COMP1010UNSW/pyhtml-enhanced

v2.1.0 - Improvements and features

03 May 07:26
Compare
Choose a tag to compare

✨ NEW ✨

  • Default attributes have been added for many elements including pre, div, textarea, span, and more elements
  • Add support for whitespace-sensitive tags

✏️ CHANGED ✏️

  • Document rendering control methods
  • Refactor rendering to add indentation during rendering, rather than at end

🔧 FIXED 🔧

  • Fix rendering of <pre> and <textarea> tags
  • Include a <!DOCTYPE html> to prevent web browsers from rendering in quirks mode

v2.0.3 - Fix `<style>` tags and link rendering

15 Apr 11:35
Compare
Choose a tag to compare

🔧 FIXED 🔧

  • <style> tags no-longer escape their contents, meaning including inline CSS is far more reliable.
  • Fixed link rendering for HTML tag xrefs, so documentation should no-longer look broken in VS Code

v2.0.2 - Type safety fixes

13 Apr 06:38
Compare
Choose a tag to compare

🔧 FIXED 🔧

  • Passing a list[SomeElement] to a pyhtml element resulted in errors from Pylance.

v2.0.1 - Add escape hatch

03 Apr 02:28
Compare
Choose a tag to compare

✨ NEW ✨

  • DangerousRawHtml tag class to use as an escape hatch from PyHTML's string escapes

🔧 FIXED 🔧

  • Contents of <script> tags were escaped, causing syntax errors in inline JS Code

v2.0 - Typing improvements and usability enhancements

10 Feb 07:30
Compare
Choose a tag to compare

✨ NEW ✨

  • PyHTML now accepts generators as children to elements
  • Type constraints have been added to arguments for tags, preventing common mistakes (breaking change)
  • The input tag has been modified to make editor suggestions more intelligent

✏️ CHANGES ✏️

  • The formmethod attribute is specified for all input(type='submit') elements where formaction is also specified (breaking change)

v1.1.0 - Support for Python 3.9

25 Nov 09:11
Compare
Choose a tag to compare

✨ NEW ✨

  • Python 3.9 is now supported, so UNSW's CSE systems should no-longer freak out when installing the library
  • PyHTML now gives a hint in the error message when users forget to stringify it before returning it to Flask

✏️ CHANGES ✏️

  • Some dead code has been removed
  • The module documentation is now significantly more helpful
  • The library now uses a more markdown-friendly copy of the CC-BY-SA-2.5 license

⚙️ UNDER THE HOOD ⚙️

  • The library now uses doctests to ensure that the examples in the README are correct
  • It also has some end-to-end tests for Flask, since that is the primary use case in COMP1010

v1.0.4 - Improved documentation

06 Nov 04:50
Compare
Choose a tag to compare

✏️ CHANGED ✏️

  • Suggestions are now included for more form, input, and button attributes
  • Attribute suggestions have been added for td, and th elements

v1.0.3 - More refinements

03 Oct 13:09
Compare
Choose a tag to compare

🔧 FIXED 🔧

  • Fix the same issue as before, it didn't work for self-closing tags
  • This is why I need to remember to check coverage before publishing releases

v1.0.2 - Refinements

03 Oct 12:59
Compare
Choose a tag to compare

✏️ CHANGED ✏️

  • Default values for attributes are documented

🔧 FIXED 🔧

  • Overrides of attributes with default values in secondary calls didn't work

v1.0.1 - Bug fix

03 Oct 08:34
Compare
Choose a tag to compare

🔧 FIXED 🔧

  • Fixed an issue where attributes could be overwritten by default properties