1.4.2 release - #1361
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release notes and version bump for dateparser 1.4.2, following the same two-step approach used for 1.4.1 (#1337):
1.4.2 release notes— add the1.4.2section toHISTORY.rst, summarizing every PR merged sincev1.4.1.Bump version: 1.4.1 → 1.4.2— produced bybump-my-version bump patch, updatingpyproject.toml,dateparser/__init__.py, and stamping theHISTORY.rstrelease date.SECURITY.mdis unchanged because it tracks onlymajor.minor(still1.4.x).Changelog
New features:
IGNORE_SURROUNDING_TEXTsetting 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 asPublished on 16/04/2019is parsed (Parse dates wrapped in harmless extra text (Close #518) #1356)strategyargument tosearch_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:
4月20日is no longer consumed as the year (Do not read the day as a two-digit year after the year position #1358)itorfris given, without needing to setPREFER_LOCALE_DATE_ORDERtoFalse(Fix ISO8601 parsing with explicit languages #1352)PREFER_DATES_FROMandRELATIVE_BASEwhen parsing with customdate_formatsthat use a two-digit year (%y) (fix: Apply PREFER_DATES_FROM logic to custom date formats (Fixes #445) #1342)%j(day of year) directive indate_formatsinstead of overwriting the parsed month and day with the current date (fix: %j (day of year) format directive overwrote parsed month/day #1345)Improvements:
2 hores), while keeping previously supported forms parseable (Update CLDR data to 44.1.0 and add hour/duration support #1343)un ora faandun'ora fa, and skipalleso phrases likeoggi alle 11:00parse (italian: support 'un ora fa', 'un'ora fa', 'oggi alle 11:00'. #1049)v lednu 2023), the July abbreviationčrv, and relative expressions such asza týden,za měsícandza rok(Updated Czech localization #1172)Validation
bump-my-version bump patchproduced a clean two-commit diff touching onlyHISTORY.rst,pyproject.toml, anddateparser/__init__.py; version is consistent across all three.python -m build+twine checkpass for both the sdist and the wheel.test_search,test_clean_api,test_date,test_date_parser,test_languages,test_timezone_parser).After merge
The
v1.4.2git 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 onmaster:All PRs merged since
v1.4.1are included in the changelog above; there were no internal-only changes to omit this cycle.🤖 Generated with Claude Code