Skip to content

Releases: matthewp/corset

v2.0.1

31 Jul 16:36
66708bf
Compare
Choose a tag to compare

Patch Changes

  • 23b5605: Fix to allow each to be used with attr

v2.0.0

24 Jul 14:40
ac2c5ff
Compare
Choose a tag to compare

Major Changes

  • 25e06c5: Multi-binding properties are now additive

    In Corset 2.0, multi-binding properties are now additive. That means if you use the class-toggle, each, prop, data, or attr properties, the values you set will be added to the element, but will not remove previous values added.

    In Corset 1.0 these multi-binding properties were destructive. This meant if you did:

    #app {
      class-toggle: one true;
    }
    
    #app {
      class-toggle: two true;
    }

    Only the two class would be on the element. In Corset 2.0 both one and two will be set.

    revert-sheet and all keywords

    To allow you to remove previous bindings, Corset 2.0 has new revert-sheet and all keywords. To remove previous bindings, as in above, you would now do:

    #app {
      class-toggle: one true;
    }
    
    #app {
      class-toggle: all revert-sheet, two true;
    }

    Using all selects all active bindings for that property.

    Keyed property access removed

    Due to the change in making multi-binding properties be additive, there is no longer a need for keyed property access, and it has thereby been removed. This aligns Corset syntax with CSS.

    In the future no new syntax not supported by CSS will be added to Corset.

  • 0e4c74b: Removes keyed properties and makes properties default additive

Minor Changes

  • 8abb1ee: Child behaviors now cause the parent to rebind
  • 06bd259: Allow the :root selector for targeting the root element

Patch Changes

  • 5d3b461: Fixes bugs based on vars not being resolvable
  • b76dfa5: On conflict between attach-template and text, former wins
  • 921c26e: Allows a ShadowRoot to be a root element of a sheet
  • 76b0c7a: Allow mount() to take a ShadowRoot
  • de0927e: Fix bug with attach-template and vars
  • 80fd8bf: When a data prop changes, rebind the sheet

v2.0.0-beta.7

15 Jul 12:14
a2487a5
Compare
Choose a tag to compare
v2.0.0-beta.7 Pre-release
Pre-release

Patch Changes

  • 5d3b461: Fixes bugs based on vars not being resolvable

v2.0.0-beta.6

12 Jul 13:00
9943dc1
Compare
Choose a tag to compare
v2.0.0-beta.6 Pre-release
Pre-release

Patch Changes

  • b76dfa5: On conflict between attach-template and text, former wins

v2.0.0-beta.5

10 Jul 14:10
da210c2
Compare
Choose a tag to compare
v2.0.0-beta.5 Pre-release
Pre-release

Minor Changes

  • 8abb1ee: Child behaviors now cause the parent to rebind

v2.0.0-beta.4

08 Jul 13:50
bfab4bf
Compare
Choose a tag to compare
v2.0.0-beta.4 Pre-release
Pre-release

Patch Changes

  • de0927e: Fix bug with attach-template and vars

v2.0.0-beta.3

08 Jul 12:30
3055dbe
Compare
Choose a tag to compare
v2.0.0-beta.3 Pre-release
Pre-release

Patch Changes

  • 80fd8bf: When a data prop changes, rebind the sheet

v2.0.0-beta.2

07 Jul 21:11
ced6274
Compare
Choose a tag to compare
v2.0.0-beta.2 Pre-release
Pre-release

Minor Changes

  • 06bd259: Allow the :root selector for targeting the root element

Patch Changes

  • 76b0c7a: Allow mount() to take a ShadowRoot

v2.0.0-beta.1

07 Jul 13:37
2fcac1d
Compare
Choose a tag to compare
v2.0.0-beta.1 Pre-release
Pre-release

Patch Changes

  • 921c26e: Allows a ShadowRoot to be a root element of a sheet

v2.0.0-beta.0

07 Jul 12:19
5da0085
Compare
Choose a tag to compare
v2.0.0-beta.0 Pre-release
Pre-release

Major Changes

  • 0e4c74b: Removes keyed properties and makes properties default additive