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

Release 5.0 #495

Merged
merged 14 commits into from
Sep 17, 2023
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: composer
directory: /
schedule:
interval: weekly
26 changes: 20 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,35 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0']
php-versions:
- "8.1"
- "8.2"
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install packages
run: sudo apt-get install -y jsonlint

- name: Lint JSON files
run: find . -type f -name "*.json" | xargs jsonlint-php

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: dom, gettext

- name: Install NPM dependencies
run: yarn add jsonlint
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Lint JSON files
run: bash ./ci/test.sh
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Composer dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
Expand Down
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Editors
.idea
.vscode

# Composer
composer.phar
vendor/

# Bower
bower_components
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [5.0.0] - 2023-09-17
### Breaking changes
- drop support for old versions of PHP and Symfony
- the minimum version of PHP is 8.1
- the supported Symfony versions are 5.4 and 6.3
- remove Bower integration

### Changed
- update official name of Turkey (#458)
- update flags for Afghanistan, France, Honduras and Mauritania (#455)
- remove empty strings (#488)
- fix polish translation of United Kingdom (#453)
- refactor build script
- add Dependabot integration

## [v4.1.1] - 2023-09-17
### Fixed
- adjust package.json for ES6 and CommonJS support (#486)
Expand Down
16 changes: 0 additions & 16 deletions bower.json

This file was deleted.

14 changes: 0 additions & 14 deletions ci/test.sh

This file was deleted.

16 changes: 10 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "mledoze/countries",
"version": "4.1.1",
"description": "List of world countries in JSON, CSV, XML and Yaml",
"keywords": [
"world",
Expand All @@ -24,12 +23,14 @@
}
],
"require": {
"php": ">=7.3",
"symfony/console": "4.4.x|~5.3|^6.0",
"symfony/yaml": "4.4.x|~5.3"
"ext-dom": "*",
"ext-gettext": "*",
"php": ">=8.1",
"symfony/console": "~5.4|~6.3",
"symfony/yaml": "~5.4|~6.3"
},
"require-dev": {
"roave/security-advisories": "dev-master"
"roave/security-advisories": "dev-latest"
},
"autoload": {
"psr-4": {
Expand All @@ -38,5 +39,8 @@
},
"bin": [
"countries.php"
]
],
"scripts": {
"convert": "@php countries.php convert"
}
}
Loading