Skip to content

Commit

Permalink
Bump to v0.12.0 (and fix smoketest app) (#792)
Browse files Browse the repository at this point in the history
* Bump to 0.12.0rc0
* Bump to 0.12.0 & fix smoketest_app
  • Loading branch information
wwwillchen committed Aug 13, 2024
1 parent 5b4407a commit 0413fc5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion mesop/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Contains the version string."""

VERSION = "0.11.1"
VERSION = "0.12.0"

if __name__ == "__main__":
print(VERSION)
6 changes: 3 additions & 3 deletions scripts/smoketest_app/inner_component.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import {
class InnerComponent extends LitElement {
static properties = {
value: {type: Number},
decrementEventHandlerId: {attribute: 'decrement-event', type: String},
decrementEvent: {type: String},
};

constructor() {
super();
this.value = 0;
this.decrementEventHandlerId = '';
this.decrementEvent = '';
}

render() {
Expand All @@ -29,7 +29,7 @@ class InnerComponent extends LitElement {

_onDecrement() {
this.dispatchEvent(
new MesopEvent(this.decrementEventHandlerId, {
new MesopEvent(this.decrementEvent, {
value: this.value - 1,
}),
);
Expand Down
2 changes: 1 addition & 1 deletion scripts/smoketest_app/inner_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def inner_component(
name="inner-component",
key=key,
events={
"decrement-event": on_decrement,
"decrementEvent": on_decrement,
},
properties={
"value": value,
Expand Down
6 changes: 3 additions & 3 deletions scripts/smoketest_app/outer_component.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import {
class OuterComponent extends LitElement {
static properties = {
value: {type: Number},
incrementEventHandlerId: {attribute: 'increment-event', type: String},
incrementEvent: {type: String},
};

constructor() {
super();
this.value = 0;
this.incrementEventHandlerId = '';
this.incrementEvent = '';
}

render() {
Expand All @@ -32,7 +32,7 @@ class OuterComponent extends LitElement {

_onIncrement() {
this.dispatchEvent(
new MesopEvent(this.incrementEventHandlerId, {
new MesopEvent(this.incrementEvent, {
value: this.value + 1,
}),
);
Expand Down
2 changes: 1 addition & 1 deletion scripts/smoketest_app/outer_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def outer_component(
name="outer-component",
key=key,
events={
"increment-event": on_increment,
"incrementEvent": on_increment,
},
properties={
"value": value,
Expand Down

0 comments on commit 0413fc5

Please sign in to comment.