Forem

Cover image for Monster 1.30 released
Volker Schukai for schukai GmbH

Posted on

3 3

Monster 1.30 released

Today we released the latest edition of our Monster project. Monster is a collection of javascript classes that we need for daily work in our web projects.

Besides small helper functions and classes, it also provides useful functions to enable reactive programming.

Monster is available via jsdelivr and npm.

Only the highlights are described here. The full functionality can be found in the documentation.

Configuration via script tag

Besides the possibility to specify configurations of CustomElements by attribute, the configuration can now also be specified by script tag.

<script id="config1" 
        type="application/json">
{
   "key": "value"
}
</script>

<monster-tag 
   data-monster-options-selector="#config1">
</monster-tag>

Enter fullscreen mode Exit fullscreen mode

hope you enjoy it!

References

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

11 Tips That Make You a Better Typescript Programmer

typescript

1 Think in {Set}

Type is an everyday concept to programmers, but it’s surprisingly difficult to define it succinctly. I find it helpful to use Set as a conceptual model instead.

#2 Understand declared type and narrowed type

One extremely powerful typescript feature is automatic type narrowing based on control flow. This means a variable has two types associated with it at any specific point of code location: a declaration type and a narrowed type.

#3 Use discriminated union instead of optional fields

...

Read the whole post now!

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay