Debian Codegraph @

HISTORY.rst

raw
1 .. :changelog:
2
3 History
4 =======
5
6 1.2.2 (2025-06-26)
7 ------------------
8
9 Fixes:
10
11 - Handle the Russian preposition “с” (#1261)
12 - Fix weekday search (#1274)
13
14 Improvements:
15
16 - Add Python 3.14 support (#1273)
17 - Cache timezone offsets to improve import time (#1250)
18
19 1.2.1 (2025-02-05)
20 ------------------
21
22 Fixes:
23
24 - Fix PytzUsageWarning (#1109)
25 - Fix date_parser with prefer_month_of_year wrong results (#1224)
26 - Fix skipped day when UTC and tz are different days (#1183)
27
28 Improvements:
29
30 - Avoid repeated loop over timezones (#1238)
31 - Proofread README.rst (#1234)
32 - Check for derived types for configuration (#1223)
33 - Parse some abbreviated strings as relative dates (#1219)
34 - Migrate from hijri-converter to hijridate (#1211)
35 - Fixed ClusterFuzz build error by adding dateparser.data as a binary (#1208)
36 - Fix an issue detected by OSSFuzz (#1203)
37 - Support two-digit years in non-Gregorian calendars (#1187)
38 - Refactored CI to run extras separately and test minimum versions of dependencies, replaced flake8 with ruff, fixed tests (#1248)
39 - Set minimum versions for dependencies (#1248)
40 - Limited ``numpy`` to 1.x when installing ``dateparser[fasttext]`` (#1248)
41
42
43 1.2.0 (2023-11-17)
44 ------------------
45
46 New features:
47
48 - New ``PREFER_MONTH_OF_YEAR`` setting (#1146)
49
50 Fixes:
51
52 - Absolute years in Russian are no longer being treated as a number of years in
53 the past (#1129)
54
55 Cleanups and internal improvements:
56
57 - Removed the use of ``datetime.utcnow``, deprecated on Python 3.12 (#1179)
58 - Applied Black formatting to the code base (#1158)
59 - Initial integration with OSSFuzz (#1198)
60 - Extended test cases (#1191)
61
62
63 1.1.8 (2023-03-22)
64 ------------------
65
66 Improvements:
67
68 - Improved date parsing for Chinese (#1148)
69 - Improved date parsing for Czech (#1151)
70 - Reorder language by popularity (#1152)
71 - Fix leak of memory in cache (#1140)
72 - Add support for "\d units later" (#1154)
73 - Move modification in CLDR data to yaml (#1153)
74 - Add support to use timezone via settings to get PREFER_DATES_FROM result (#1155)
75
76
77 1.1.7 (2023-02-02)
78 ------------------
79
80 Improvements:
81
82 - Add an “ago” synonym for Arabic (#1128)
83 - Improved date parsing for Czech (#1131)
84 - Improved date parsing for Indonesian (#1134)
85
86
87 1.1.6 (2023-01-12)
88 ------------------
89
90 Improvements:
91
92 - Fix the bug where Monday is parsed as a month (#1121)
93 - Prevent ReDoS in Spanish sentence splitting regex (#1084)
94
95
96 1.1.5 (2022-12-29)
97 ------------------
98
99 Improvements:
100
101 - Parse short versions of day, month, and year (#1103)
102 - Add a test for “in 1d” (#1104)
103 - Update languages_info (#1107)
104 - Add a workaround for zipimporter not having exec_module before Python 3.10 (#1069)
105 - Stabilize tests at midnight (#1111)
106 - Add a test case for French (#1110)
107
108 Cleanups:
109
110 - Remove the requirements-build file (#1113)
111
112
113 1.1.4 (2022-11-21)
114 ------------------
115
116 Improvements:
117
118 - Improved support for languages such as Slovak, Indonesian, Hindi, German and Japanese (#1064, #1094, #986, #1071, #1068)
119 - Recursively create a model home (#996)
120 - Replace regex sub with simple string replace (#1095)
121 - Add Python 3.10, 3.11 support (#1096)
122 - Drop support for Python 3.5, 3.6 versions (#1097)
123
124
125 1.1.3 (2022-11-03)
126 ------------------
127
128 New features:
129
130 - Add support for fractional units (#876)
131
132 Improvements:
133
134 - Fix the returned datetime skipping a day with time+timezone input and PREFER_DATES_FROM = 'future' (#1002)
135 - Fix input translatation breaking keep_formatting (#720)
136 - English: support "till date" (#1005)
137 - English: support “after” and “before” in relative dates (#1008)
138
139 Cleanups:
140
141 - Reorganize internal data (#1090)
142 - CI updates (#1088)
143
144
145 1.1.2 (2022-10-20)
146 ------------------
147
148 Improvements:
149
150 - Added support for negative timestamp (#1060)
151 - Fixed PytzUsageWarning for Python versions >= 3.6 (#1062)
152 - Added support for dates with dots and spaces (#1028)
153 - Improved support for Ukrainian, Croatian and Russian (#1072, #1074, #1079, #1082, #1073, #1083)
154 - Added support for parsing Unix timestamps consistently regardless of timezones (#954)
155 - Improved tests (#1086)
156
157
158 1.1.1 (2022-03-17)
159 ------------------
160
161 Improvements:
162
163 - Fixed issue with regex library by pinning dependencies to an earlier version (< 2022.3.15, #1046).
164 - Extended support for Russian language dates starting with lowercase (#999).
165 - Allowed to use_given_order for languages too (#997).
166 - Fixed link to settings section (#1018).
167 - Defined UTF-8 encoding for Windows (#998).
168 - Fixed directories creation error in CLI utils (#1022).
169
170
171 1.1.0 (2021-10-04)
172 ------------------
173
174 New features:
175
176 * Support language detection based on ``langdetect``, ``fastText``, or a
177 custom implementation (see #932)
178 * Add support for 'by <time>' (see #839)
179 * Sort default language list by internet usage (see #805)
180
181 Improvements:
182
183 * Improved support of Chinese (#910), Czech (#977)
184 * Improvements in ``search_dates`` (see #953)
185 * Make order of previous locales deterministic (see #851)
186 * Fix parsing with trailing space (see #841)
187 * Consider ``RETURN_TIME_AS_PERIOD`` for timestamp times (see #922)
188 * Exclude failing regex version (see #974)
189 * Ongoing work multithreading support (see #881, #885)
190 * Add demo URL (see #883)
191
192 QA:
193
194 * Migrate pipelines from Travis CI to Github Actions (see #859, #879, #884,
195 #886, #911, #966)
196 * Use versioned CLDR data (see #825)
197 * Add a script to update table of supported languages and locales (see #601)
198 * Sort 'skip' keys in yaml files (see #844)
199 * Improve test coverage (see #827)
200 * Code cleanup (see #888, #907, #951, #958, #957)
201
202
203 1.0.0 (2020-10-29)
204 ------------------
205
206 Breaking changes:
207
208 * Drop support for Python 2.7 and pypy (see #727, #744, #748, #749, #754, #755, #758, #761, #763, #764, #777 and #783)
209 * Now ``DateDataParser.get_date_data()`` returns a ``DateData`` object instead of a ``dict`` (see #778).
210 * From now wrong ``settings`` are not silenced and raise ``SettingValidationError`` (see #797)
211 * Now ``dateparser.parse()`` is deterministic and doesn't try previous locales. Also, ``DateDataParser.get_date_data()`` doesn't try the previous locales by default (see #781)
212 * Remove the ``'base-formats'`` parser (see #721)
213 * Extract the ``'no-spaces-time'`` parser from the ``'absolute-time'`` parser and make it an optional parser (see #786)
214 * Remove ``numeral_translation_data`` (see #782)
215 * Remove the undocumented ``SKIP_TOKENS_PARSER`` and ``FUZZY`` settings (see #728, #794)
216 * Remove support for using strings in ``date_formats`` (see #726)
217 * The undocumented ``ExactLanguageSearch`` class has been moved to the private scope and some internal methods have changed (see #778)
218 * Changes in ``dateparser.utils``: ``normalize_unicode()`` doesn't accept ``bytes`` as input and ``convert_to_unicode`` has been deprecated (see #749)
219
220 New features:
221
222 * Add Python 3.9 support (see #732, #823)
223 * Detect hours separated with a period/dot (see #741)
224 * Add support for "decade" (see #762)
225 * Add support for the hijri calendar in Python ≥ 3.6 (see #718)
226
227 Improvements:
228
229 * New logo! (see #719)
230 * Improve the README and docs (see #779, #722)
231 * Fix the "calendars" extra (see #740)
232 * Fix leap years when ``PREFER_DATES_FROM`` is set (see #738)
233 * Fix ``STRICT_PARSING`` setting in ``no-spaces-time`` parser (see #715)
234 * Consider ``RETURN_AS_TIME_PERIOD`` setting for ``relative-time`` parser (see #807)
235 * Parse the 24hr time format with meridian info (see #634)
236 * Other small improvements (see #698, #709, #710, #712, #730, #731, #735, #739, #784, #788, #795 and #801)
237
238
239 0.7.6 (2020-06-12)
240 ------------------
241
242 Improvements:
243
244 * Rename ``scripts`` to ``dateparser_scripts`` to avoid name collisions with modules from other packages or projects (see #707)
245
246
247 0.7.5 (2020-06-10)
248 ------------------
249
250 New features:
251
252 * Add Python 3.8 support (see #664)
253 * Implement a ``REQUIRE_PARTS`` setting (see #703)
254 * Add support for subscript and superscript numbers (see #684)
255 * Extended French support (see #672)
256 * Extended German support (see #673)
257
258
259 Improvements:
260
261 * Migrate test suite to Pytest (see #662)
262 * Add test to check the `yaml` and `json` files content (see #663 and #692)
263 * Add flake8 pipeline with pytest-flake8 (see #665)
264 * Add partial support for 8-digit dates without separators (see #639)
265 * Fix possible ``OverflowError`` errors and explicitly avoid to raise ``ValueError`` when parsing relative dates (see #686)
266 * Fix double-digit GMT and UTC parsing (see #632)
267 * Fix bug when using ``DATE_ORDER`` (see #628)
268 * Fix bug when parsing relative time with timezone (see #503)
269 * Fix milliseconds parsing (see #572 and #661)
270 * Fix wrong values to be interpreted as ``'future'`` in ``PREFER_DATES_FROM`` (see #629)
271 * Other small improvements (see #667, #675, #511, #626, #512, #509, #696, #702 and #699)
272
273
274 0.7.4 (2020-03-06)
275 ------------------
276 New features:
277
278 * Extended Norwegian support (see #598)
279 * Implement a ``PARSERS`` setting (see #603)
280
281 Improvements:
282
283 * Add support for ``PREFER_DATES_FROM`` in relative/freshness parser (see #414)
284 * Add support for ``PREFER_DAY_OF_MONTH`` in base-formats parser (see #611)
285 * Added UTC -00:00 as a valid offset (see #574)
286 * Fix support for “one” (see #593)
287 * Fix TypeError when parsing some invalid dates (see #536)
288 * Fix tokenizer for non recognized characters (see #622)
289 * Prevent installing regex 2019.02.19 (see #600)
290 * Resolve DeprecationWarning related to raw string escape sequences (see #596)
291 * Implement a tox environment to build the documentation (see #604)
292 * Improve tests stability (see #591, #605)
293 * Documentation improvements (see #510, #578, #619, #614, #620)
294 * Performance improvements (see #570, #569, #625)
295
296
297 0.7.3 (2020-03-06)
298 ------------------
299 * Broken version
300
301
302 0.7.2 (2019-09-17)
303 ------------------
304
305 Features:
306
307 * Extended Czech support
308 * Added ``time`` to valid periods
309 * Added timezone information to dates found with ``search_dates()``
310 * Support strings as date formats
311
312
313 Improvements:
314
315 * Fixed Collections ABCs depreciation warning
316 * Fixed dates with trailing colons not being parsed
317 * Fixed date format override on any settings change
318 * Fixed parsing current weekday as past date, regardless of settings
319 * Added UTC -2:30 as a valid offset
320 * Added Python 3.7 to supported versions, dropped support for Python 3.3 and 3.4
321 * Moved to importlib from imp where possible
322 * Improved support for Catalan
323 * Documentation improvements
324
325
326 0.7.1 (2019-02-12)
327 ------------------
328
329 Features/news:
330
331 * Added detected language to return value of ``search_dates()``
332 * Performance improvements
333 * Refreshed versions of dependencies
334
335 Improvements:
336
337 * Fixed unpickleable ``DateTime`` objects with timezones
338 * Fixed regex pattern to avoid new behaviour of re.split in Python 3.7
339 * Fixed an exception thrown when parsing colons
340 * Fixed tests failing on days with number greater than 30
341 * Fixed ``ZeroDivisionError`` exceptions
342
343
344
345 0.7.0 (2018-02-08)
346 ------------------
347
348 Features added during Google Summer of Code 2017:
349
350 * Harvesting language data from Unicode CLDR database (https://github.com/unicode-cldr/cldr-json), which includes over 200 locales (#321) - authored by Sarthak Maddan.
351 See full currently supported locale list in README.
352 * Extracting dates from longer strings of text (#324) - authored by Elena Zakharova.
353 Special thanks for their awesome contributions!
354
355
356 New features:
357
358 * Added (independently from CLDR) Georgian (#308) and Swedish (#305)
359
360 Improvements:
361
362 * Improved support of Chinese (#359), Thai (#345), French (#301, #304), Russian (#302)
363 * Removed ruamel.yaml from dependencies (#374). This should reduce the number of installation issues and improve performance as the result of moving away from YAML as basic data storage format.
364 Note that YAML is still used as format for support language files.
365 * Improved performance through using pre-compiling frequent regexes and lazy loading of data (#293, #294, #295, #315)
366 * Extended tests (#316, #317, #318, #323)
367 * Updated nose_parameterized to its current package, parameterized (#381)
368
369
370 Planned for next release:
371
372 * Full language and locale names
373 * Performance and stability improvements
374 * Documentation improvements
375
376
377 0.6.0 (2017-03-13)
378 ------------------
379
380 New features:
381
382 * Consistent parsing in terms of true python representation of date string. See #281
383 * Added support for Bangla, Bulgarian and Hindi languages.
384
385 Improvements:
386
387 * Major bug fixes related to parser and system's locale. See #277, #282
388 * Type check for timezone arguments in settings. see #267
389 * Pinned dependencies' versions in requirements. See #265
390 * Improved support for cn, es, dutch languages. See #274, #272, #285
391
392 Packaging:
393
394 * Make calendars extras to be used at the time of installation if need to use calendars feature.
395
396
397 0.5.1 (2016-12-18)
398 ------------------
399
400 New features:
401
402 * Added support for Hebrew
403
404 Improvements:
405
406 * Safer loading of YAML. See #251
407 * Better timezone parsing for freshness dates. See #256
408 * Pinned dependencies' versions in requirements. See #265
409 * Improved support for zh, fi languages. See #249, #250, #248, #244
410
411
412 0.5.0 (2016-09-26)
413 ------------------
414
415 New features:
416
417 * ``DateDataParser`` now also returns detected language in the result dictionary.
418 * Explicit and lucid timezone conversion for a given datestring using ``TIMEZONE``, ``TO_TIMEZONE`` settings.
419 * Added Hungarian language.
420 * Added setting, ``STRICT_PARSING`` to ignore incomplete dates.
421
422 Improvements:
423
424 * Fixed quite a few parser bugs reported in issues #219, #222, #207, #224.
425 * Improved support for chinese language.
426 * Consistent interface for both Jalali and Hijri parsers.
427
428
429 0.4.0 (2016-06-17)
430 ------------------
431
432 New features:
433
434 * Support for Language based date order preference while parsing ambiguous dates.
435 * Support for parsing dates with no spaces in between components.
436 * Support for custom date order preference using ``settings``.
437 * Support for parsing generic relative dates in future.e.g. "tomorrow", "in two weeks", etc.
438 * Added ``RELATIVE_BASE`` settings to set date context to any datetime in past or future.
439 * Replaced ``dateutil.parser.parse`` with dateparser's own parser.
440
441 Improvements:
442
443 * Added simplifications for "12 noon" and "12 midnight".
444 * Fixed several bugs
445 * Replaced PyYAML library by its active fork `ruamel.yaml` which also fixed the issues with installation on windows using python35.
446 * More predictable ``date_formats`` handling.
447
448
449 0.3.5 (2016-04-27)
450 ------------------
451
452 New features:
453
454 * Danish language support.
455 * Japanese language support.
456 * Support for parsing date strings with accents.
457
458 Improvements:
459
460 * Transformed languages.yaml into base file and separate files for each language.
461 * Fixed vietnamese language simplifications.
462 * No more version restrictions for python-dateutil.
463 * Timezone parsing improvements.
464 * Fixed test environments.
465 * Cleaned language codes. Now we strictly follow codes as in ISO 639-1.
466 * Improved chinese dates parsing.
467
468
469 0.3.4 (2016-03-03)
470 ------------------
471
472 Improvements:
473
474 * Fixed broken version 0.3.3 by excluding latest python-dateutil version.
475
476 0.3.3 (2016-02-29)
477 ------------------
478
479 New features:
480
481 * Finnish language support.
482
483 Improvements:
484
485 * Faster parsing with switching to regex module.
486 * ``RETURN_AS_TIMEZONE_AWARE`` setting to return tz aware date object.
487 * Fixed conflicts with month/weekday names similarity across languages.
488
489 0.3.2 (2016-01-25)
490 ------------------
491
492 New features:
493
494 * Added Hijri Calendar support.
495 * Added settings for better control over parsing dates.
496 * Support to convert parsed time to the given timezone for both complete and relative dates.
497
498 Improvements:
499
500 * Fixed problem with caching :func:`datetime.now` in :class:`FreshnessDateDataParser`.
501 * Added month names and week day names abbreviations to several languages.
502 * More simplifications for Russian and Ukrainian languages.
503 * Fixed problem with parsing time component of date strings with several kinds of apostrophes.
504
505
506 0.3.1 (2015-10-28)
507 ------------------
508
509 New features:
510
511 * Support for Jalali Calendar.
512 * Belarusian language support.
513 * Indonesian language support.
514
515
516 Improvements:
517
518 * Extended support for Russian and Polish.
519 * Fixed bug with time zone recognition.
520 * Fixed bug with incorrect translation of "second" for Portuguese.
521
522
523 0.3.0 (2015-07-29)
524 ------------------
525
526 New features:
527
528 * Compatibility with Python 3 and PyPy.
529
530 Improvements:
531
532 * `languages.yaml` data cleaned up to make it human-readable.
533 * Improved Spanish date parsing.
534
535
536 0.2.1 (2015-07-13)
537 ------------------
538
539 * Support for generic parsing of dates with UTC offset.
540 * Support for Tagalog/Filipino dates.
541 * Improved support for French and Spanish dates.
542
543
544 0.2.0 (2015-06-17)
545 ------------------
546
547 * Easy to use ``parse`` function
548 * Languages definitions using YAML.
549 * Using translation based approach for parsing non-english languages. Previously, :mod:`dateutil.parserinfo` was used for language definitions.
550 * Better period extraction.
551 * Improved tests.
552 * Added a number of new simplifications for more comprehensive generic parsing.
553 * Improved validation for dates.
554 * Support for Polish, Thai and Arabic dates.
555 * Support for :mod:`pytz` timezones.
556 * Fixed building and packaging issues.
557
558
559 0.1.0 (2014-11-24)
560 ------------------
561
562 * First release on PyPI.