Skip to content

build(deps): bump csv from 2.4.1 to 3.0.5#261

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/hex/csv-3.0.5
Closed

build(deps): bump csv from 2.4.1 to 3.0.5#261
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/hex/csv-3.0.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 16, 2022

Copy link
Copy Markdown
Contributor

Bumps csv from 2.4.1 to 3.0.5.

Changelog

Sourced from csv's changelog.

3.0.5 (2022-12-03)

  • Exclude dialyzer files from library package [contributed in #121 by @​milmazz

3.0.4 (2022-11-19)

3.0.3 (2022-11-04)

3.0.2 (2022-11-03)

3.0.1 (2022-10-25)

  • Ensure that stray escape quotes and unterminated escape sequences on a last line without a newline produce errors

3.0.0 (2022-10-25)

  • The parallel parser/lexer with a binary matching parser with better performance.
  • A new :field_transform option allows specifying functionality applied when decoding any field through a function
  • Escape characters can now be specified using the :escape_character option, this [Closes #59](beatrichartz/csv#59)
  • The library will now reparse lines that follow e.g. an unterminated escape sequence. This ensures that all possible valid rows will be returned in normal mode
  • Encoding checks have been removed because they can either be done using :field_transform or outside the library
  • Better docs

Upgrading from 2.x

  • Parallelism has been removed, alongside its options :num_workers and :worker_work_ratio. You can safely remove them.
  • StrayQuoteError is now StrayEscapeCharacterError. If you catch this error in your code, you need to rename it.
  • The :strip_fields option needs to be replaced with the :field_transform option:
    File.stream!("data.csv") |> CSV.decode(field_transform: &String.trim/1)
  • :validate_row_length now defaults to false. This option produces an error for rows with different length. Set it to true to get the same behaviour as in 2.x
  • :escape_formulas is now :unescape_formulas for decode and decode!. It is still :escape_formulas for encode. Change :escape_formulas to :unescape_formulas in decode calls to get the same behaviour as in 2.x
  • :escape_max_lines now defaults to 10 instead of 1000. To get the same behaviour as in 2.x, use:
    File.stream!("data.csv") |> CSV.decode(escape_max_lines: 1000)
  • :replace has been removed. CSV will now return fields with incorrect encoding as-is. You can use the new :field_transform option to provide a function transforming fields while they are being parsed. This allows to e.g. replace incorrect encoding:
    defp replace_bad_encoding(field) do
      if String.valid?(field) do
        field
      else
        field

... (truncated)

Commits
  • b01baa4 Version bump
  • 92d47e8 Exclude priv directory from Hex package
  • 75103e2 Rename build
  • 4daf103 Update README.md
  • 501fd3d Improve documentation on encoding headers
  • 6496d62 Fix map definition in encode typespec
  • 5844b0f Improve documentation and typespec on decoding and encoding
  • e734618 Update README
  • 94e391c Add type spec tests for parser
  • 9fa4c3f Clean up encoding protocol tests
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Dec 16, 2022
Bumps [csv](https://github.com/beatrichartz/csv) from 2.4.1 to 3.0.5.
- [Release notes](https://github.com/beatrichartz/csv/releases)
- [Changelog](https://github.com/beatrichartz/csv/blob/main/CHANGELOG.md)
- [Commits](beatrichartz/csv@v2.4.1...v3.0.5)

---
updated-dependencies:
- dependency-name: csv
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/hex/csv-3.0.5 branch from 9f44576 to 0d33062 Compare March 21, 2023 16:20
@dependabot @github

dependabot Bot commented on behalf of github Oct 11, 2023

Copy link
Copy Markdown
Contributor Author

Superseded by #312.

@dependabot dependabot Bot closed this Oct 11, 2023
@dependabot dependabot Bot deleted the dependabot/hex/csv-3.0.5 branch October 11, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants