Skip to content

Files

Latest commit

66a3433 · May 18, 2025

History

History
225 lines (175 loc) · 6.49 KB

Changelog.md

File metadata and controls

225 lines (175 loc) · 6.49 KB

Changelog

6.3.0

  • 13.7 KB
  • The values used for filling undefined properties and attributes are now null rather than "null"
  • Return early on hex colours to improve render performance
  • Stop adding spaces with inline text and accents
  • Allow non https:// URLs, like scriptable:///run/script-name
  • Allow no-css attribute to be camel case: noCss
  • Fix unknown attribute error
  • Maintain CSS order regardless of the child combiner (>)
    widget > text {
      text-color: red;
    }
    text {
      text-color: blue;
    }
    /* Previously, text-color would be red. */
    /* Now, text-color is blue */
  • Allow most text properties (not url) to be cascading. These properties work with date tags too.
    <!-- Previously, you often had to do a common pattern like this, which only works with direct children. -->
    <widget>
      <style>
       .pill {
          padding: 2, 5;
          corner-radius: 100;
        }
        .pill > text {
          line-limit: 1;
          font: regularSystemFont, 12;
        }
      </style>
      <stack class="pill">
        <text>The Text</text>
      </stack>
    </widget>
    <!-- Now, you can use cascading properties. -->
    <widget>
      <style>
       .pill {
          padding: 2, 5;
          corner-radius: 100;
          line-limit: 1;
          font: regularSystemFont, 12;
        }
      </style>
      <stack class="pill">
        <text>The Text</text>
      </stack>
    </widget>

6.21

  • 13.4 KB
  • Cache colours to majorly improve widget creation speed
  • Padding property can now be 3 characters
  • Improve gradients by expanding end and start points to the edges of the widget rather than in a circle
  • Reduce loops and traversals to improve widget creation speed

6.20

  • 14.3 KB
  • Add addAccessoryWidgetBackground bool property for widget elements
  • Outputs code on errors
  • Simplify add-ons by automatically calling validate and update methods. This is a breaking change. Please take a look at the docs for the updated basic add-on code.
  • Fix valid CSS selectors causing an invalid CSS rule error
  • Add an error message for if the HTML is formatted incorrectly by a missing closing tag
  • Reduces useless async checking code

6.11

  • 14.1 KB
  • Fixed an error where the program would try to add css properties that are not in the mapping object, practically rendering the * selector useless

6.10

  • 14.1 KB
  • Small improvements and refactoring
  • Allow for css properties and html attributes to be camelCase or kebab-case
  • Updated file structure by removing html-widget-extended and the module file

6.02

  • 14.4 KB
  • Fixed a bug for adding a url in css
  • Fixed gradient bugs
  • Simplified many "primitive types"

6.01

  • 15.3 KB
  • Fix global sym variable and global paddingArray variable
  • Improved performance and file size
  • Added more comments
  • When debug is true, in the logged code, tags are split by new lines

6.00

  • 20.4 KB
  • Changed the HTML parsing system to use the native XMLParser
    • Reduced the size and increased speed
    • Self-closing tags now need to end with a forward-slash (<img/>)
    • Templates do not need to specify if they are self-closing (all tags technically are)
    • Boolean attributes need to have a value attached to them (including children and no-css)
    • Parser will not bug out and infinity run with an invalid HTML

5.11

  • 22.7 KB
  • Fixed background on stack, now allowing the image type
  • Fixed > selector in template tags

5.10

  • 22.6 KB
  • Added support for multiple classes in css and tag.class
  • Added the > selector to css

5.03

  • 21.9 KB
  • Instead of throwing an error, it will be ignored when a property is attempted to be applied to a tag and not in the mapping. Previously an error was raised, but that makes the * selector useless. This also makes it possible to share classes through different tags
  • An error text was fixed

5.02

  • 21.9 KB
  • Fixed a bug with the children of stack elements being forced on the widget, not the stack
  • Added commas to css selectors
  • Added validation for the image type
  • Improved validation for padding and url type

5.01

  • 21.5 KB
  • Improved error messages
  • Logged code is now indented to show nestled tags
  • Fixed an issue where you would need the addons parameter to run the function
  • Fixed some error messages to work with template tags

5.00

  • 21.1 KB
  • Many improvements and bug fixes
  • Errors display more information
  • Users can make tag templates
  • Most tag boolean attributes change

4.1

  • 17.9 KB
  • Improvements for the possibility of adding more add-ons (mostly those that use a canvas/DrawContext)
  • Improvements to other aspects of add-ons
  • Fixed a bug that would create an impropor css/attribute order

4.0

  • 17.6 KB (html-widget.min.js file)
  • Removed symbol and hr tag from normal script
  • Now allows custom tags (also called add-ons)
  • symbol and hr custom tag syntax can be found in their separate modules. All base tags and add-ons combined in the same code can be found in the html-widget-expanded.js file.
  • symbol named attribute changes to inner text

3.10

  • 17.2 KB
  • Fixed error messages to encompass properties as well as the attributes
  • Fixed boolean attributes and css boolean properties
  • Comments are now parsed into the debug code
  • Added support for pre-set fonts based on its contents like caption1
  • Added support for the use-default-padding attribute
  • Added degree directions and colour locations to the background-gradient attribute

3.00

  • 16 KB
  • Fixed image opacity
  • Added the style tag which allows setting default styles for tags with css
  • Added the class attribute

2.10

  • 14.2 KB
  • Removed logging of text when setting a gradient
  • Colours have now changed to support all HTML colours including hsl, hsla, rgb, rgba, hex and css colour names like red
  • Light mode/ dark mode colours have changed to be separated by hyphens instead of commas and do not need to go in brackets when in a gradient

2.00

  • 14.7 KB
  • Fixed a bug preventing line breaks in the text tag
  • Removed logged text when making a gradient
  • Gradients now support css directions (to left)
  • Added a hr element
  • Added a date element

1.11

  • 11.3 KB
  • Fixed URL setting on text

1.10

  • 11.3 KB
  • Added in pre-set fonts such as lightRoundedSystemFont

1.02

  • 10.9 KB
  • Fixed issue with stacks nestled in stacks

1.01

  • 10.9 KB
  • Fixed alpha values when they were not specified in a hex

1.00

  • 10.9 KB
  • First release of HTML Widget