diff --git a/README.md b/README.md
index 3bf8013..d76f35a 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ To use the component just add this to the `dependencies` field of the projects
```
"mint-codemirror": {
"repository": "https://github.com/mint-lang/mint-codemirror",
- "constraint": "1.0.0 <= v < 2.0.0"
+ "constraint": "3.0.0 <= v < 4.0.0"
}
```
@@ -17,8 +17,8 @@ To get the basic component without any modes and the default theme, just add the
```
component Main {
- fun onChange (value : String) : Void {
- do {
+ fun onChange (value : String) : Promise(Never, Void) {
+ sequence {
Debug.log(value)
}
}
@@ -69,7 +69,7 @@ The following properties are available:
onChange
Function(String, Void)
+ Function(String, a)
loadingContent
Function(String, Void)
+ Html