Compare commits

...

2 commits
v1.0.0 ... main

Author SHA1 Message Date
118067adb2 Bump version to v1.0.1
Some checks failed
test / test (push) Has been cancelled
2025-07-26 01:26:04 +10:00
3f04932c2f Fix width and height order for size token
Some checks are pending
test / test (push) Waiting to run
2025-07-26 01:25:46 +10:00
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
name = "kicad_sexpr" name = "kicad_sexpr"
version = "1.0.0" version = "1.0.1"
description = "A gleam library for parsing kicad footprint files and symbol libraries" description = "A gleam library for parsing kicad footprint files and symbol libraries"
licences = ["MIT"] licences = ["MIT"]
repository = { type = "forgejo", host = "git.7cs.dev", user = "lily", repo = "gleam-kicad-sexpr" } repository = { type = "forgejo", host = "git.7cs.dev", user = "lily", repo = "gleam-kicad-sexpr" }

View file

@ -302,14 +302,14 @@ pub fn fill(then next: NextFn(Fill, a)) -> Decoder(a) {
} }
pub type Size { pub type Size {
Size(height: Float, width: Float) Size(width: Float, height: Float)
} }
pub fn size(then next: NextFn(Size, a)) -> Decoder(a) { pub fn size(then next: NextFn(Size, a)) -> Decoder(a) {
decode.token(named: "size", then: next, with: { decode.token(named: "size", then: next, with: {
use height <- decode.float()
use width <- decode.float() use width <- decode.float()
decode.success(Size(height:, width:)) use height <- decode.float()
decode.success(Size(width:, height:))
}) })
} }