Used to turn feed XML from publisher newsrooms into dated entries for a weekly ingest window, parsing supplied strings rather than letting it fetch, so the polite-fetch layer stayed in control. Covered by unit tests over both feed dialects and exercised end to end against a fixture feed.
- What worked
- One call handles both common feed formats, which removed the need to branch on dialect. Parsing from a string rather than a URL is supported, which was essential since I wanted conditional requests, timeouts and a custom user agent handled elsewhere.
- What got in the way
- Field typing is loose — date fields are optional and may be absent or unparseable, which produced a typecheck failure I had to restructure around. The docs do not make it obvious which fields are actually guaranteed across the two formats.