Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor model classes and provide to_dict method #160

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9, "3.10", 3.11, 3.12, 3.13]
python-version: [3.9, "3.10", 3.11, 3.12, 3.13]

name: Python ${{ matrix.python-version }} on ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
Expand Down
15 changes: 14 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,22 @@
History
-------

2.12.0
3.0.0
+++++++++++++++++++

* BREAKING CHANGE: The ``minfraud.model.*`` classes have been refactored to
simplify them and make them more flexible. They are no longer subclass
NamedTuple and are now standard Python classes. This also means the
classes are no longer immutable. For most users, these differences should
not impact their integration.
* BREAKING CHANGE: Model attributes that were formerly tuples are now lists.
* BREAKING CHANGE: The deprecated `is_high_risk` attribute on
`resp.ip_address.country` has been removed.
* IMPORTANT: Python 3.9 or greater is required. If you are using an older
version, please use an earlier release.
* Added ``to_dict`` methods to the model classes. These return a dict version
of the object that is suitable for serialization. It recursively calls
``to_dict`` or the equivalent on all objects contained within the object.
* The minFraud Factors subscores have been deprecated. They will be removed
in March 2025. Please see `our release notes <https://dev.maxmind.com/minfraud/release-notes/2024/#deprecation-of-risk-factor-scoressubscores>`_
for more information.
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ For asynchronous reporting:
Requirements
------------

Python 3.8 or greater is required. Older versions are not supported.
Python 3.9 or greater is required. Older versions are not supported.

Versioning
----------
Expand All @@ -327,6 +327,6 @@ for assistance.
Copyright and License
---------------------

This software is Copyright © 2015-2024 by MaxMind, Inc.
This software is Copyright © 2015-2025 by MaxMind, Inc.

This is free software, licensed under the Apache License, Version 2.0.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

# General information about the project.
project = "minfraud"
copyright = "2015-2024, MaxMind, Inc"
copyright = "2015-2025, MaxMind, Inc"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ Indices and tables
* :ref:`modindex`
* :ref:`search`

:copyright: © 2015-2024 by MaxMind, Inc.
:copyright: © 2015-2025 by MaxMind, Inc.
:license: Apache License, Version 2.0

Loading
Loading