From a75bfa3a9a7930dddda7c7180d0e6801fddee6b1 Mon Sep 17 00:00:00 2001 From: BENJAMIN PEINHARDT Date: Thu, 1 Feb 2024 11:43:52 -0600 Subject: [PATCH] update stdlib dep --- CHANGELOG.md | 3 +++ gleam.toml | 4 ++-- manifest.toml | 2 +- src/gsv/internal/ast.gleam | 13 +++++-------- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97dfe27..e408d4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +## v1.3.1 - 1 February 2024 +- Update to gleam_stdlib = "~> 0.34 or ~> 1.0" in preparation for 1.0 + ## v1.2.1 - 5 January 2024 - Fix bug with double commas producing error, now produce empty string diff --git a/gleam.toml b/gleam.toml index 267793a..a73f87d 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,5 +1,5 @@ name = "gsv" -version = "1.2.1" +version = "1.3.1" gleam = ">= 0.32.0" description = "A simple csv parser and generator written in gleam " @@ -12,7 +12,7 @@ internal_modules = [ ] [dependencies] -gleam_stdlib = "~> 0.28" +gleam_stdlib = "~> 0.34 or ~> 1.0" [dev-dependencies] gleeunit = "~> 1.0" diff --git a/manifest.toml b/manifest.toml index 274bd87..7762492 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,5 +7,5 @@ packages = [ ] [requirements] -gleam_stdlib = { version = "~> 0.28" } +gleam_stdlib = { version = "~> 0.34 or ~> 1.0" } gleeunit = { version = "~> 1.0" } diff --git a/src/gsv/internal/ast.gleam b/src/gsv/internal/ast.gleam index 2f2408c..7a526a6 100644 --- a/src/gsv/internal/ast.gleam +++ b/src/gsv/internal/ast.gleam @@ -61,8 +61,7 @@ fn parse_p( [#(tok, loc), ..], Beginning, _ -> Error(ParseError( loc, - "Unexpected start to csv content: " - <> token.to_lexeme(tok), + "Unexpected start to csv content: " <> token.to_lexeme(tok), )) // If we just parsed a field, we're expecting either a comma or a CRLF @@ -78,8 +77,7 @@ fn parse_p( [#(tok, loc), ..], JustParsedField, _ -> Error(ParseError( loc, - "Expected comma or newline after field, found: " - <> token.to_lexeme(tok), + "Expected comma or newline after field, found: " <> token.to_lexeme(tok), )) // If we just parsed a CR, we're expecting an LF @@ -89,8 +87,7 @@ fn parse_p( [#(tok, loc), ..], JustParsedCR, _ -> Error(ParseError( loc, - "Expected \"\\n\" after \"\\r\", found: " - <> token.to_lexeme(tok), + "Expected \"\\n\" after \"\\r\", found: " <> token.to_lexeme(tok), )) // If we just parsed a comma, we're expecting an Escaped or Non-Escaped string, or another comma @@ -126,7 +123,7 @@ fn parse_p( Error(ParseError( loc, "Expected escaped or non-escaped string after comma, found: " - <> token.to_lexeme(tok), + <> token.to_lexeme(tok), )) // If we just parsed a new line, we're expecting an escaped or non-escaped string @@ -146,7 +143,7 @@ fn parse_p( Error(ParseError( loc, "Expected escaped or non-escaped string after newline, found: " - <> token.to_lexeme(tok), + <> token.to_lexeme(tok), )) // If we're inside an escaped string, we can take anything until we get a double quote,