Skip to content

1.4.2 release - #1361

Merged
serhii73 merged 2 commits into
masterfrom
release-1.4.2
Aug 4, 2026
Merged

1.4.2 release#1361
serhii73 merged 2 commits into
masterfrom
release-1.4.2

Conversation

@serhii73

@serhii73 serhii73 commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Release notes and version bump for dateparser 1.4.2, following the same two-step approach used for 1.4.1 (#1337):

  1. 1.4.2 release notes — add the 1.4.2 section to HISTORY.rst, summarizing every PR merged since v1.4.1.
  2. Bump version: 1.4.1 → 1.4.2 — produced by bump-my-version bump patch, updating pyproject.toml, dateparser/__init__.py, and stamping the HISTORY.rst release date. SECURITY.md is unchanged because it tracks only major.minor (still 1.4.x).

Changelog

New features:

  • Add an IGNORE_SURROUNDING_TEXT setting that, when enabled, retries parsing after ignoring the leading and trailing words the language does not recognize, so a date wrapped in extra text such as Published on 16/04/2019 is parsed (Parse dates wrapped in harmless extra text (Close #518) #1356)
  • Add a strategy argument to search_dates() to choose the search strategy: the default "split" keeps the current behavior, while the new "ngram" strategy parses the longest sequences of tokens as dates for more predictable results on noisy text (Add "ngram" search strategy to search_dates #1351)

Fixes:

Improvements:

Validation

  • bump-my-version bump patch produced a clean two-commit diff touching only HISTORY.rst, pyproject.toml, and dateparser/__init__.py; version is consistent across all three.
  • python -m build + twine check pass for both the sdist and the wheel.
  • Test suite green over the areas changed this cycle (test_search, test_clean_api, test_date, test_date_parser, test_languages, test_timezone_parser).

After merge

The v1.4.2 git tag is intentionally not included in this branch (a tag on a pre-merge branch would point at the wrong commit). After merging, tag the merge commit on master:

git tag v1.4.2 && git push origin v1.4.2

All PRs merged since v1.4.1 are included in the changelog above; there were no internal-only changes to omit this cycle.

🤖 Generated with Claude Code

serhii73 and others added 2 commits August 4, 2026 13:19
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.10%. Comparing base (ff3dcb9) to head (14f6ac1).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1361   +/-   ##
=======================================
  Coverage   97.10%   97.10%           
=======================================
  Files         236      236           
  Lines        3008     3008           
=======================================
  Hits         2921     2921           
  Misses         87       87           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AdrianAtZyte AdrianAtZyte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@serhii73
serhii73 merged commit b1f603e into master Aug 4, 2026
18 checks passed
@serhii73
serhii73 deleted the release-1.4.2 branch August 4, 2026 12:05
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.

2 participants