Skip to content

Commit 0c153e2

Browse files
authored
Merge pull request #275 from maxmind/greg/stf-1074
Release 3.7.0
2 parents b2f4a88 + 89bb16b commit 0c153e2

7 files changed

Lines changed: 156 additions & 30 deletions

File tree

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ docs/public/
77
.php-cs-fixer.cache
88
.phpunit.cache/
99
.phpunit.result.cache
10-
box.phar
1110
build
1211
composer.lock
13-
composer.phar
1412
minfraud.phar
15-
/phpDocumentor.phar
1613
phpunit.xml
1714
t.php
1815
vendor/

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
CHANGELOG
22
=========
33

4-
3.7.0
4+
3.7.0 (2026-07-21)
55
------------------
66

77
* Added the `residential` property to the `anonymizer` object on
88
`MaxMind\MinFraud\Model\IpAddress`. This is a `GeoIp2\Record\AnonymizerFeed`
99
object providing residential proxy data for the network: `confidence`,
1010
`networkLastSeen`, and `providerName`. It may be populated even when no
1111
other anonymizer properties are set. This data is available from the
12-
minFraud Insights and Factors web services.
12+
minFraud Insights and Factors web services. `geoip2/geoip2` 3.4.0 is now
13+
required for this data.
1314
* Added `tracking_token` to the `/device` request object. This is the
1415
token generated by the
1516
[Device Tracking Add-on](https://dev.maxmind.com/minfraud/track-devices)

README.md

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

2727
```
28-
php composer.phar require maxmind/minfraud:^3.6.0
28+
php composer.phar require maxmind/minfraud:^3.7.0
2929
```
3030

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

dev-bin/release.sh

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ fi
3232

3333
check_command perl
3434
check_command php
35-
check_command wget
35+
36+
# box.phar, composer.phar, and phpDocumentor.phar are managed by mise (see
37+
# mise.toml)
38+
check_command box.phar
39+
check_command composer.phar
40+
check_command phpDocumentor.phar
3641

3742
# Check that we're not on the main branch
3843
current_branch=$(git branch --show-current)
@@ -91,21 +96,12 @@ if [ -d vendor ]; then
9196
rm -fr vendor
9297
fi
9398

94-
php composer.phar self-update
95-
php composer.phar update --no-dev
99+
composer.phar update --no-dev
96100

97101
perl -pi -e "s/(?<=const VERSION = ').+?(?=';)/$tag/g" src/MinFraud/ServiceClient.php
98102
perl -pi -e "s{(?<=php composer\.phar require maxmind\/minfraud:).+}{^$version}g" README.md
99103

100-
box_phar_hash='f98cf885a7c07c84df66e33888f1d93f063298598e0a5f41ca322aeb9683179b box.phar'
101-
102-
if ! echo "$box_phar_hash" | sha256sum -c; then
103-
wget -O box.phar "https://github.com/box-project/box/releases/download/4.6.10/box.phar"
104-
fi
105-
106-
echo "$box_phar_hash" | sha256sum -c
107-
108-
php box.phar compile
104+
box.phar compile
109105

110106
phar_test=$(./dev-bin/phar-test.php)
111107
if [[ -n $phar_test ]]; then
@@ -114,7 +110,7 @@ if [[ -n $phar_test ]]; then
114110
fi
115111

116112
# Download test deps
117-
php composer.phar update
113+
composer.phar update
118114

119115
./vendor/bin/phpunit
120116

@@ -143,20 +139,11 @@ if [ -n "$(git status --porcelain)" ]; then
143139
exit 1
144140
fi
145141

146-
# Using Composer is possible, but they don't recommend it.
147-
phpdocumentor_phar_hash='aa00973d88b278fe59fd8dce826d8d5419df589cb7563ac379856ec305d6b938 phpDocumentor.phar'
148-
149-
if ! echo "$phpdocumentor_phar_hash" | sha256sum -c; then
150-
wget -O phpDocumentor.phar https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.8.1/phpDocumentor.phar
151-
fi
152-
153-
echo "$phpdocumentor_phar_hash" | sha256sum -c
154-
155142
# Use cache dir in /tmp as otherwise cache files get into the output directory.
156143
cachedir="/tmp/phpdoc-$$-$RANDOM"
157144
rm -rf "$cachedir"
158145

159-
php phpDocumentor.phar \
146+
phpDocumentor.phar \
160147
--visibility=public \
161148
--cache-folder="$cachedir" \
162149
--title="minFraud PHP API $tag" \

mise.lock

Lines changed: 138 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mise.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ disable_backends = [
88
[tools]
99
hugo = "latest"
1010
lychee = "latest"
11+
"github:box-project/box" = "latest"
12+
"github:composer/composer" = "latest"
13+
"github:phpDocumentor/phpDocumentor" = "latest"
1114

1215
[hooks]
1316
enter = "mise install --quiet"

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.6.0';
12+
public const VERSION = 'v3.7.0';
1313

1414
/**
1515
* @var Client

0 commit comments

Comments
 (0)