Skip to content

fix(deps): update module github.com/dimchansky/utfbom to v1.2.0 - #482

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-dimchansky-utfbom-1.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-dimchansky-utfbom-1.x

Conversation

@renovate

@renovate renovate Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/dimchansky/utfbom v1.1.1 → v1.2.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

dimchansky/utfbom (github.com/dimchansky/utfbom)

v1.2.0

Compare Source

Requirements

This release requires Go 1.19 or later (go.mod now declares go 1.19). It is tested on Go 1.19 and the two current Go releases.

Fixes

  • Skip on an existing *utfbom.Reader now returns the encoding detected originally instead of Unknown (PR #​9, fixes #​12).
  • An error returned by the source after many empty reads is no longer replaced with io.ErrNoProgress. Previously, 99 consecutive (0, nil) reads followed by (0, io.EOF) made io.ReadAll fail. When this happened after reading a 2–3 byte UTF-16 prefix, its BOM was also left unrecognized.
  • A UTF-16 BOM is detected when the source returns the first 4 bytes together with a non-EOF error. Previously detection depended on whether the error came with the data or on the next Read.

Unchanged on purpose: if probing stops with a non-EOF error before 4 bytes are read, a UTF-16 BOM (FE FF / FF FE) is still not recognized and the bytes are passed through, as in earlier releases.

Compatibility

  • Exported API signatures are unchanged.
  • Encoding constant values and Encoding.String() results are unchanged.

Documentation and maintenance

  • README rewritten: package boundaries, BOM table and a Behavior section. Go doc comments expanded, including runnable examples.
  • More tests, a fuzz target and benchmarks for small streams with and without a BOM and a larger stream.
  • CI moved from Travis CI to GitHub Actions; io/ioutil is no longer used.

Full changelog: dimchansky/utfbom@v1.1.1...v1.2.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants