diff --git a/elm-package.json b/elm-package.json index 3007761..64e438c 100644 --- a/elm-package.json +++ b/elm-package.json @@ -10,8 +10,8 @@ "Table" ], "dependencies": { - "elm-lang/core": "4.0.0 <= v < 5.0.0", - "elm-lang/html": "1.1.0 <= v < 2.0.0" + "elm-lang/core": "5.0.0 <= v < 6.0.0", + "elm-lang/html": "2.0.0 <= v < 3.0.0" }, - "elm-version": "0.17.0 <= v < 0.18.0" + "elm-version": "0.18.0 <= v < 0.19.0" } diff --git a/src/Table.elm b/src/Table.elm index 76b9fdb..7851935 100644 --- a/src/Table.elm +++ b/src/Table.elm @@ -476,7 +476,7 @@ toHeaderInfo (State sortName isReversed) toMsg { name, sorter } = onClick : String -> Bool -> (State -> msg) -> Attribute msg onClick name isReversed toMsg = E.on "click" <| Json.map toMsg <| - Json.object2 State (Json.succeed name) (Json.succeed isReversed) + Json.map2 State (Json.succeed name) (Json.succeed isReversed) viewRow : (data -> String) -> List (ColumnData data msg) -> (data -> List (Attribute msg)) -> data -> ( String, Html msg )