Skip to content

Commit

Permalink
Merge pull request #35 from Guria/depr
Browse files Browse the repository at this point in the history
fix deprecation warnings
  • Loading branch information
ghivert authored Nov 28, 2024
2 parents a11610e + f08c972 commit 29eec79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions sketch/manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# You typically do not need to edit this file

packages = [
{ name = "gleam_erlang", version = "0.25.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "054D571A7092D2A9727B3E5D183B7507DAB0DA41556EC9133606F09C15497373" },
{ name = "gleam_otp", version = "0.10.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_stdlib"], otp_app = "gleam_otp", source = "hex", outer_checksum = "0B04FE915ACECE539B317F9652CAADBBC0F000184D586AAAF2D94C100945D72B" },
{ name = "gleam_stdlib", version = "0.39.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "2D7DE885A6EA7F1D5015D1698920C9BAF7241102836CE0C3837A4F160128A9C4" },
{ name = "gleam_erlang", version = "0.28.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "BE551521F708DCE5CB954AFBBDF08519C1C44986521FD40753608825F48FFA9E" },
{ name = "gleam_otp", version = "0.13.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_stdlib"], otp_app = "gleam_otp", source = "hex", outer_checksum = "F7EA44C81679B2A6032FF1B3851F0EFB43F4F1F1CAC616CB7F4A18497F39FAB9" },
{ name = "gleam_stdlib", version = "0.41.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "1B2F80CB1B66B027E3198A2FF71EF3F2F31DF89ED97AD606F25FD387A4C3C1EF" },
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
]

Expand Down
2 changes: 1 addition & 1 deletion sketch/src/sketch/internals/class.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn rules(class: Content) {
pub fn definitions(class: Content) {
let Definitions(medias, selectors, class) = class.definitions
[[class], selectors, medias]
|> list.concat()
|> list.flatten()
}

pub fn set_rules(class: Content, rules: List(Int)) {
Expand Down
2 changes: 1 addition & 1 deletion sketch/src/sketch/internals/style.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ pub fn compute_classes(
let selectors_def = wrap_pseudo_selectors(class_name, 2, pseudo_selectors)
[query <> " {", sketch_string.wrap_class(class_name, properties, 2, None)]
|> list.prepend([selectors_def, ["}"]], _)
|> list.concat()
|> list.flatten()
|> string.join("\n")
}
let selectors_def = wrap_pseudo_selectors(class_name, 0, pseudo_selectors)
Expand Down

0 comments on commit 29eec79

Please sign in to comment.