fix(deps): update module github.com/mmcdole/gofeed to v1.4.0 #126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/github.com-mmcdole-gofeed-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
v1.3.0→v1.4.0Release Notes
mmcdole/gofeed (github.com/mmcdole/gofeed)
v1.4.0Compare Source
This release focuses on bug fixes for malformed and off-spec feeds. Illegal XML control characters, unusual date formats, incorrectly typed JSON Feed fields, and unescaped ampersands in URLs could previously break a parse or silently drop content. The parser now handles these cases without failing the feed or losing the affected content.
It also fixes a lazy-initialization data race when a default-configured
Parseris reused across goroutines (#278). Three new options give callers more control over resource use: an HTTP response-size limit, optional retention of the original source feed, and a switch to disable RSS content-image scanning.For RSS and Atom, the universal
Parser.Parsemethod no longer holds two complete copies of the raw feed in memory during format detection. It examines the first 4 KiB, detects the format, and then parses directly from the reader. The returnedFeedis still fully materialized, so this is not a streaming API. JSON Feed decoding still buffers the complete document.Compatibility
golang.org/x/netfrom v0.4.0 to v0.56.0 to resolve 22 reachable vulnerabilities reported bygovulncheck; that release and itsgolang.org/x/textdependency require Go 1.25.ParseURLnow applies a 30-second request timeout.ParseURLWithContextcontinues to use the caller's context.Parsenow examines only the first 4 KiB to detect the feed type. RSS and Atom roots must begin within that window. In v1.4.0, a JSON Feed whose complete document does not fit within the window is not detected by the universalParserand returnsErrFeedTypeNotDetected.ErrFeedTypeNotDetected.Error()now begins with lowercasefailed.Feednow has private storage for the original source feed, so external positionalFeed{...}literals no longer compile; keyed literals are unaffected.Added
Parser.MaxByteSizeandErrResponseTooLargeto limit response bodies fetched byParseURLandParseURLWithContext. (#286)Parser.KeepOriginalFeedandFeed.OriginalFeed()for access to the parsed*rss.Feed,*atom.Feed, or*json.Feed. (#289)DefaultRSSTranslator.DisableContentImageScanto skip the HTML image fallback on large feeds while preserving existing behavior by default. (#330)Parsing and translation fixes
Parseris reused across goroutines. (#278)xml:basevalues without mutating sibling scope. (#240, #283, #290)guidisPermaLinkhandling and replace the invaliditunes:subtitlefeed-link fallback withatom:link. (#283, #322)<cloud>children, and non-content<encoded>elements without losing the feed. (#284, #295, #317, #318, #325)Enclosure.Length; and reject out-of-range numeric sizes safely. (#279, #326)Dependencies and maintenance
jsoniterwithencoding/json. (#280)github.com/mmcdole/goxpp/v2v2.0.0. (#329)goqueryandcascadiawith directx/net/htmltraversal. (#330)golang.org/x/netandgolang.org/x/textfor security, and upgradetestifyandurfave/cli.Contributors
Contributions in this release came from @mmcdole, @TypicalAM, @oprudkyi, and @akfaew.
Full changelog: https://github.com/mmcdole/gofeed/compare/v1.3.0...v1.4.0
Configuration
📅 Schedule: (in timezone Europe/Berlin)
🚦 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.
This PR has been generated by Mend Renovate.
ℹ️ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the
go getcommand, which resulted in the following additional change(s):Details:
golang.org/x/netv0.55.0->v0.56.0golang.org/x/syncv0.20.0->v0.21.0golang.org/x/sysv0.45.0->v0.46.0golang.org/x/textv0.37.0->v0.38.0View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.