Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to v0.12.0 (and fix smoketest app) #792

Merged
merged 2 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading