Skip to content

Commit 5b29714

Browse files
authored
Merge pull request #280 from maxmind/greg/eng-3323
Release 3.3.0
2 parents 02a79e7 + fe22ee6 commit 5b29714

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CHANGELOG
22
=========
33

4-
3.3.0 (unreleased)
4+
3.3.0 (2025-11-20)
55
------------------
66

77
* A new `anonymizer` property has been added to `GeoIp2\Model\Insights`.

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
```sh
28-
php composer.phar require geoip2/geoip2:^3.2.0
28+
php composer.phar require geoip2/geoip2:^3.3.0
2929
```
3030

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

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
}
1414
],
1515
"require": {
16-
"maxmind-db/reader": "^1.12.1",
17-
"maxmind/web-service-common": "~0.10",
16+
"maxmind-db/reader": "^1.13.0",
17+
"maxmind/web-service-common": "~0.11",
1818
"php": ">=8.1",
1919
"ext-json": "*"
2020
},

dev-bin/release.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
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+
513
phar='geoip2.phar'
614

715
changelog=$(cat CHANGELOG.md)
@@ -46,10 +54,10 @@ perl -pi -e "s/(?<=const VERSION = ').+?(?=';)/$tag/g" src/WebService/Client.php
4654
perl -pi -e "s{(?<=php composer\.phar require geoip2/geoip2:).+}{^$version}g" README.md
4755

4856

49-
box_phar_hash='aa0966319f709e74bf2bf1d58ddb987903ae4f6d0a9d335ec2261813c189f7fc box.phar'
57+
box_phar_hash='f98cf885a7c07c84df66e33888f1d93f063298598e0a5f41ca322aeb9683179b box.phar'
5058

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

5563
echo "$box_phar_hash" | sha256sum -c
@@ -94,10 +102,10 @@ if [ -n "$(git status --porcelain)" ]; then
94102
fi
95103

96104
# Using Composer is possible, but they don't recommend it.
97-
phpdocumentor_phar_hash='5223cc8455d53c51fcd5a3d4ac7817acdbec3f3e325981688d345f2468097230 phpDocumentor.phar'
105+
phpdocumentor_phar_hash='aa00973d88b278fe59fd8dce826d8d5419df589cb7563ac379856ec305d6b938 phpDocumentor.phar'
98106

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

103111
echo "$phpdocumentor_phar_hash" | sha256sum -c

src/WebService/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Client implements ProviderInterface
5454
private readonly WsClient $client;
5555
private static string $basePath = '/geoip/v2.1';
5656

57-
public const VERSION = 'v3.2.0';
57+
public const VERSION = 'v3.3.0';
5858

5959
/**
6060
* Constructor.

0 commit comments

Comments
 (0)