Skip to content

Commit bdf4ae5

Browse files
authored
Merge pull request #235 from maxmind/greg/eng-3328
Release 3.4.0
2 parents f894b64 + becb791 commit bdf4ae5

5 files changed

Lines changed: 39 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
CHANGELOG
22
=========
33

4-
3.4.0
4+
3.5.0 (2025-11-20)
55
------------------
66

7-
* Added `securepay` to the payment processor validation.
8-
* Added `credit_application`, `fund_transfer`, and `sim_swap` to event type
9-
validation.
10-
* Added the input `/event/party`. This is the party submitting the
11-
transaction.
12-
* Added the input `/payment/method`. This is the payment method associated
13-
with the transaction.
147
* Added support for new `/email/domain/` outputs in minFraud Insights and
158
Factors responses:
169
* `/email/domain/classification` - categorizes the email domain type
@@ -23,6 +16,19 @@ CHANGELOG
2316
* `/email/domain/visit/status` - domain status (`live`, `dns_error`,
2417
`network_error`, `http_error`, `parked`, `pre_development`)
2518

19+
3.4.0 (2025-11-20)
20+
------------------
21+
22+
* Added `securepay` to the payment processor validation.
23+
* Added `credit_application`, `fund_transfer`, and `sim_swap` to event type
24+
validation.
25+
* Added the input `/event/party`. This is the party submitting the
26+
transaction.
27+
* Added the input `/payment/method`. This is the payment method associated
28+
with the transaction.
29+
* Updated `geoip2/geoip2` to 3.3.0, which includes new anonymizer and IP risk
30+
outputs.
31+
2632
3.3.0 (2025-05-23)
2733
------------------
2834

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You should now have the file `composer.phar` in your project directory.
2424
Run in your project root:
2525

2626
```
27-
php composer.phar require maxmind/minfraud:^3.3.0
27+
php composer.phar require maxmind/minfraud:^3.5.0
2828
```
2929

3030
You should now have the files `composer.json` and `composer.lock` as well as

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"require": {
2020
"php": ">=8.1",
2121
"ext-json": "*",
22-
"geoip2/geoip2": "^v3.2.0"
22+
"geoip2/geoip2": "^v3.3.0"
2323
},
2424
"require-dev": {
2525
"friendsofphp/php-cs-fixer": "3.*",

dev-bin/release.sh

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
set -eu -o pipefail
44

5+
# Check that we're not on the main branch
6+
current_branch=$(git branch --show-current)
7+
if [ "$current_branch" = "main" ]; then
8+
echo "Error: Releases should not be done directly on the main branch."
9+
echo "Please create a release branch and run this script from there."
10+
exit 1
11+
fi
12+
13+
# Fetch latest changes and check that we're not behind origin/main
14+
echo "Fetching from origin..."
15+
git fetch origin
16+
17+
if ! git merge-base --is-ancestor origin/main HEAD; then
18+
echo "Error: Current branch is behind origin/main."
19+
echo "Please merge or rebase with origin/main before releasing."
20+
exit 1
21+
fi
22+
523
phar='minfraud.phar'
624

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

50-
box_phar_hash='aa0966319f709e74bf2bf1d58ddb987903ae4f6d0a9d335ec2261813c189f7fc box.phar'
68+
box_phar_hash='f98cf885a7c07c84df66e33888f1d93f063298598e0a5f41ca322aeb9683179b box.phar'
5169

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

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

97115
# Using Composer is possible, but they don't recommend it.
98-
phpdocumentor_phar_hash='5223cc8455d53c51fcd5a3d4ac7817acdbec3f3e325981688d345f2468097230 phpDocumentor.phar'
116+
phpdocumentor_phar_hash='aa00973d88b278fe59fd8dce826d8d5419df589cb7563ac379856ec305d6b938 phpDocumentor.phar'
99117

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

104122
echo "$phpdocumentor_phar_hash" | sha256sum -c

src/MinFraud/ServiceClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
abstract class ServiceClient
1111
{
12-
public const VERSION = 'v3.3.0';
12+
public const VERSION = 'v3.5.0';
1313

1414
/**
1515
* @var Client

0 commit comments

Comments
 (0)