Skip to content
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
22 changes: 14 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
CHANGELOG
=========

3.4.0
3.5.0 (2025-11-20)
------------------

* Added `securepay` to the payment processor validation.
* Added `credit_application`, `fund_transfer`, and `sim_swap` to event type
validation.
* Added the input `/event/party`. This is the party submitting the
transaction.
* Added the input `/payment/method`. This is the payment method associated
with the transaction.
* Added support for new `/email/domain/` outputs in minFraud Insights and
Factors responses:
* `/email/domain/classification` - categorizes the email domain type
Expand All @@ -23,6 +16,19 @@ CHANGELOG
* `/email/domain/visit/status` - domain status (`live`, `dns_error`,
`network_error`, `http_error`, `parked`, `pre_development`)

3.4.0 (2025-11-20)
------------------

* Added `securepay` to the payment processor validation.
* Added `credit_application`, `fund_transfer`, and `sim_swap` to event type
validation.
* Added the input `/event/party`. This is the party submitting the
transaction.
* Added the input `/payment/method`. This is the payment method associated
with the transaction.
* Updated `geoip2/geoip2` to 3.3.0, which includes new anonymizer and IP risk
outputs.

3.3.0 (2025-05-23)
------------------

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ You should now have the file `composer.phar` in your project directory.
Run in your project root:

```
php composer.phar require maxmind/minfraud:^3.3.0
php composer.phar require maxmind/minfraud:^3.5.0
```

You should now have the files `composer.json` and `composer.lock` as well as
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"require": {
"php": ">=8.1",
"ext-json": "*",
"geoip2/geoip2": "^v3.2.0"
"geoip2/geoip2": "^v3.3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "3.*",
Expand Down
26 changes: 22 additions & 4 deletions dev-bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

set -eu -o pipefail

# Check that we're not on the main branch
current_branch=$(git branch --show-current)
if [ "$current_branch" = "main" ]; then
echo "Error: Releases should not be done directly on the main branch."
echo "Please create a release branch and run this script from there."
exit 1
fi

# Fetch latest changes and check that we're not behind origin/main
echo "Fetching from origin..."
git fetch origin

if ! git merge-base --is-ancestor origin/main HEAD; then
echo "Error: Current branch is behind origin/main."
echo "Please merge or rebase with origin/main before releasing."
exit 1
fi

phar='minfraud.phar'

changelog=$(cat CHANGELOG.md)
Expand Down Expand Up @@ -47,10 +65,10 @@ php composer.phar update --no-dev
perl -pi -e "s/(?<=const VERSION = ').+?(?=';)/$tag/g" src/MinFraud/ServiceClient.php
perl -pi -e "s{(?<=php composer\.phar require maxmind\/minfraud:).+}{^$version}g" README.md

box_phar_hash='aa0966319f709e74bf2bf1d58ddb987903ae4f6d0a9d335ec2261813c189f7fc box.phar'
box_phar_hash='f98cf885a7c07c84df66e33888f1d93f063298598e0a5f41ca322aeb9683179b box.phar'

if ! echo "$box_phar_hash" | sha256sum -c; then
wget -O box.phar "https://github.com/box-project/box/releases/download/4.6.6/box.phar"
wget -O box.phar "https://github.com/box-project/box/releases/download/4.6.10/box.phar"
fi

echo "$box_phar_hash" | sha256sum -c
Expand Down Expand Up @@ -95,10 +113,10 @@ if [ -n "$(git status --porcelain)" ]; then
fi

# Using Composer is possible, but they don't recommend it.
phpdocumentor_phar_hash='5223cc8455d53c51fcd5a3d4ac7817acdbec3f3e325981688d345f2468097230 phpDocumentor.phar'
phpdocumentor_phar_hash='aa00973d88b278fe59fd8dce826d8d5419df589cb7563ac379856ec305d6b938 phpDocumentor.phar'

if ! echo "$phpdocumentor_phar_hash" | sha256sum -c; then
wget -O phpDocumentor.phar https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.7.1/phpDocumentor.phar
wget -O phpDocumentor.phar https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.8.1/phpDocumentor.phar
fi

echo "$phpdocumentor_phar_hash" | sha256sum -c
Expand Down
2 changes: 1 addition & 1 deletion src/MinFraud/ServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

abstract class ServiceClient
{
public const VERSION = 'v3.3.0';
public const VERSION = 'v3.5.0';

/**
* @var Client
Expand Down