Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Minor/1.1.0 (#4)
Browse files Browse the repository at this point in the history
* Rewritten the parsing logic

Marked static methods as deprecated;
Added Datify.parse factory;
Added Datify.complete property;

* Updated the README

* Created example

* Unit tests for Datify

* Created 1.1.0 changelog

* 1.1.0 publishing

Removed Python 3.4 and 3.5 from the supported version list;
Added Python 3.11
  • Loading branch information
mitryp authored Jul 30, 2022
1 parent 5aec52d commit c6f9ac6
Showing 7 changed files with 1,101 additions and 470 deletions.
23 changes: 18 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,11 +3,21 @@ _The changelog started at ver. 1.1.0_
# 1.1.0

- Major RegExps fix.
- Marked the unnecessary methods as deprecated. The 1.1.0 update will rebuild the logic of the Datify without breaking the
existing functionality, but the **2.0.0 version will be breaking the old code**.
- Started working on the major reconsidering the logic of Datify based on the [Dart implementation](https://github.com/mitryp/datifyDart).
- Marked a bunch of methods as deprecated. The 1.1.0 update rebuilds the logic of Datify without breaking the
existing functionality, but the **2.0.0 version will break the old code**. From this version, the usage of the code
marked as deprecated will raise DeprecationWarnings. Consider removing the deprecated functionality usage.
- Major reconsidering of the logic of Datify based on the [Dart implementation](https://github.com/mitryp/datifyDart).
- Completely rewritten the parsing logic.
- Now the class doesn't raise exceptions when the date is not found.
- Now the methods are null-safe.
- Replaced the old configuration dictionary with the `DatifyConfig` class **(no backwards compatibility)**.
See the documentation for more information.
- Added unit tests.
- Updated the README.
- Removed the russian README file.
- Added `example/example.py`.

The list of deprecated methods:
The list of the deprecated methods:
- is_date_part
- is_date
- find_date
@@ -20,4 +30,7 @@ The list of deprecated methods:
- is_year
- set_year
- date_or_tuple
- setup_variables
- setup_variables

**These methods will be removed in the 2.0.0 release.** Until then, the usage of these methods will produce
DeprecationWarnings.
Loading

0 comments on commit c6f9ac6

Please sign in to comment.