Skip to content

Releases: brunosabot/streamline-card

v0.2.0

25 Oct 12:56
b1115bd

Choose a tag to compare

Streamline Card v0.2.0

Hello there!

It's been a while since the last update - I've been quite busy, but I'm back with some improvements!

What's Changed for You

🚀 Faster & Smoother

The card now loads faster and uses less resources. You'll notice smoother updates, especially if you have many cards on your dashboard.

🔧 More Reliable

Templates now load more consistently, even when using external template files
Fixed an issue where variables with numbers weren't replaced correctly when used multiple times
The editor now always shows at least one example template to help you get started

✅ Better Quality

Added tests to make sure bugs that were fixed stay fixed. This means fewer surprises in future updates!

Technical Changes

  • Implemented DOM caching for Lovelace instances
  • Switched to RAF-based update batching
  • Added 91+ test cases for deepEqual edge cases
  • Created centralized template loader module
  • Fixed variable replacement for primitives with .replaceAll()
  • Added regression test for issue #2 (visibility settings) - I'll add tests over time to ensure the less regression possible.

Full Changelog: v0.1.0...v0.2.0

Let me know if you encounter any issue!

-- Bruno

v0.1.0

24 Apr 20:59
c91676c

Choose a tag to compare

Streamline Card v0.1.0

Hello there!

Caution

This release includes a breaking change with the usage of the _javascript suffix

This release aimed to fix several bugs with the version 0.0.23, with one breaking change, for the best.

Now, you must add the return keyword to actually return the value... which makes way more sense if you know JavaScript: it does now look like an actual function content.
Before:

name_javascript: "`javascript string`"

After:

name_javascript: "return `javascript string`"

Before:

name_javascript: |
  const rand = Math.random();
  `random ${rand}`

After:

name_javascript: |
  const rand = Math.random();
  return `random ${rand}`

Here is the bugs fixed with this new version:

  • Batching updates was a bit too intense for some cards. Fixes #58
  • The _javascript method was broken. Fixes #60
  • The variables cache was a bit too aggressive. Fixes #63
  • Few documentation updates. Fixes #57

Full Changelog: v0.0.23...v0.1.0

Let me know if you encounter any issue!

-- Bruno

v0.0.23

21 Apr 18:08
37a66d0

Choose a tag to compare

Streamline Card v0.0.23

Hello there!

Fans of "The Number 23" or Michael Jordan might expect big things from version 0.0.23, and I'm excited to say this release delivers!

First off, a huge thank you to @hco for his contribution! Thanks to him, you can now access areas directly within your JavaScript templates, opening up new possibilities for customization.

We've also continued to focus on performance. This version includes another round of optimizations for some heavy operations, which should make Streamline Card feel even snappier.

Most importantly, version 0.0.23 introduces the ability to define your templates in a separate YAML file! This is a major improvement that means you no longer need to copy the full YAML configuration into all your different views. Get ready for much cleaner view files!

Regarding the new template file, keep these points in mind:

  • There might be a slight delay the very first time you load a page with the card, as the template file needs to be loaded.
  • All templates need to be in this single file (you can't split it up), but it will still significantly tidy up your view YAML.
  • To get started, look for the streamline_templates.example.yaml file where it needs to be placed. Just rename it by removing the .example suffix, and you're ready to go!

We hope you enjoy these enhancements!

Full Changelog: v0.0.22...v0.0.23

Let me know if you encounter any issue!

-- Bruno

v0.0.22

02 Feb 11:34
7b52f89

Choose a tag to compare

Streamline Card v0.0.22

Hello there!

This release includes a fix forthe editor that wasn't able to copy grid_options and visibility configuration.

Full Changelog: v0.0.21...v0.0.22

Let me know if you encounter any issue!

-- Bruno

v0.0.21

28 Jan 20:04
b93e185

Choose a tag to compare

Streamline Card v0.0.21

Hello there!

This release includes a fix where the variables are not correctly passed to deep objects

Full Changelog: v0.0.20...v0.0.21

Let me know if you encounter any issue!

-- Bruno

v0.0.20

21 Jan 19:54
fcae151

Choose a tag to compare

Streamline Card v0.0.20

Hello there!

This release includes a fix where, on some cards, the hass variable is not set fast enough.

Full Changelog: v0.0.19...v0.0.20

Let me know if you encounter any issue!

-- Bruno

v0.0.19

27 Nov 19:19
6a7acfa

Choose a tag to compare

Streamline Card v0.0.19

Hello there!

This release handle a better way the deprecation for getLayoutOptions.
Now cards with only a getLayoutOptions method with no getGridOptions method are correctly supported back

Full Changelog: v0.0.18...v0.0.19

Let me know if you encounter any issue!

-- Bruno

v0.0.18

23 Nov 18:20
0aff838

Choose a tag to compare

Streamline Card v0.0.18

Hello there!

🔴 This release is a breaking change for UI users. yaml users won't be impacted.

The editor wasn't handling rightfully empty states over states with an empty string, making the usage of default values impossible.

This is caused by how Home Assistant editor works: empty string and non existant keys are the same, while it's not the case for Streamline card: empty string is an actual possible value (that will often fallback to internal cards behavior, such as using the friend_name if name is empty) while non existant means that you should use the default.

If you still want to be able to have empty string, you should use it in the default field

Before:

streamline_cards:
  my_template:
    card:
      # ...
      name: ''

After:

streamline_cards:
  my_template:
    default:
      name: ''
    card:
      # ...

Full Changelog: v0.0.17...v0.0.18

Let me know if you encounter any issue!

-- Bruno

v0.0.17

23 Nov 16:59
d3a7db1

Choose a tag to compare

Streamline Card v0.0.17

Hello there!

This release supports the new getGridOptions that replaces the previous getLayoutOptions.

Full Changelog: v0.0.16...v0.0.17

Let me know if you encounter any issue!

-- Bruno

v0.0.16

23 Nov 16:31
5aca2d4

Choose a tag to compare

Streamline Card v0.0.16

Hello there!

This release fixes an latency issue with some cards such as mini-graph-card

Full Changelog: v0.0.15...v0.0.16

Let me know if you encounter any issue!

-- Bruno