Skip to content

Commit a75bfa3

Browse files
committed
update stdlib dep
1 parent 44206aa commit a75bfa3

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
## v1.3.1 - 1 February 2024
6+
- Update to gleam_stdlib = "~> 0.34 or ~> 1.0" in preparation for 1.0
7+
58
## v1.2.1 - 5 January 2024
69
- Fix bug with double commas producing error, now produce empty string
710

gleam.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "gsv"
2-
version = "1.2.1"
2+
version = "1.3.1"
33
gleam = ">= 0.32.0"
44
description = "A simple csv parser and generator written in gleam "
55

@@ -12,7 +12,7 @@ internal_modules = [
1212
]
1313

1414
[dependencies]
15-
gleam_stdlib = "~> 0.28"
15+
gleam_stdlib = "~> 0.34 or ~> 1.0"
1616

1717
[dev-dependencies]
1818
gleeunit = "~> 1.0"

manifest.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ packages = [
77
]
88

99
[requirements]
10-
gleam_stdlib = { version = "~> 0.28" }
10+
gleam_stdlib = { version = "~> 0.34 or ~> 1.0" }
1111
gleeunit = { version = "~> 1.0" }

src/gsv/internal/ast.gleam

+5-8
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ fn parse_p(
6161
[#(tok, loc), ..], Beginning, _ ->
6262
Error(ParseError(
6363
loc,
64-
"Unexpected start to csv content: "
65-
<> token.to_lexeme(tok),
64+
"Unexpected start to csv content: " <> token.to_lexeme(tok),
6665
))
6766

6867
// If we just parsed a field, we're expecting either a comma or a CRLF
@@ -78,8 +77,7 @@ fn parse_p(
7877
[#(tok, loc), ..], JustParsedField, _ ->
7978
Error(ParseError(
8079
loc,
81-
"Expected comma or newline after field, found: "
82-
<> token.to_lexeme(tok),
80+
"Expected comma or newline after field, found: " <> token.to_lexeme(tok),
8381
))
8482

8583
// If we just parsed a CR, we're expecting an LF
@@ -89,8 +87,7 @@ fn parse_p(
8987
[#(tok, loc), ..], JustParsedCR, _ ->
9088
Error(ParseError(
9189
loc,
92-
"Expected \"\\n\" after \"\\r\", found: "
93-
<> token.to_lexeme(tok),
90+
"Expected \"\\n\" after \"\\r\", found: " <> token.to_lexeme(tok),
9491
))
9592

9693
// 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(
126123
Error(ParseError(
127124
loc,
128125
"Expected escaped or non-escaped string after comma, found: "
129-
<> token.to_lexeme(tok),
126+
<> token.to_lexeme(tok),
130127
))
131128

132129
// If we just parsed a new line, we're expecting an escaped or non-escaped string
@@ -146,7 +143,7 @@ fn parse_p(
146143
Error(ParseError(
147144
loc,
148145
"Expected escaped or non-escaped string after newline, found: "
149-
<> token.to_lexeme(tok),
146+
<> token.to_lexeme(tok),
150147
))
151148

152149
// If we're inside an escaped string, we can take anything until we get a double quote,

0 commit comments

Comments
 (0)