Releases: ericsizemore/mimey
Releases · ericsizemore/mimey
v1.2.1
1.2.1 - 2024-11-15
Small maintenance release, no major changes.
Added
- Added dev-dependencies:
- phpstan/extension-installer
- phpstan/phpstan-deprecation-rules
Changed
- Updated dev-dependencies:
- friendsofphp/php-cs-fixer
- phpstan/phpstan
- phpstan/phpstan-phpunit
- phpstan/phpstan-strict-rules
- phpunit/phpunit
- Updated 'scripts' within composer.json
- Updated PHP-CS-Fixer configuration within .php-cs-fixer.dist.php
- Several source files update based on PHP-CS-Fixer configuration change.
Fixed
- Fix MimeMappingGenerator::generateMapping()'s use of array_filter to not rely on loose comparison.
Removed
- Removed jetbrains/phpstorm-attributes dependency
- Removed Rector as a dev-dependency.
Full Changelog: v1.2.0...v1.2.1
v2.1.0
[2.1.0] - 2024-04-29
Tagging as non-patch release due to a change in the interfaces namespace. See UPGRADING.
Added
- New dev dependencies:
phpstan/extension-installer
phpstan/phpstan-deprecation-rules
.psalm/plugin-phpunit
vimeo/psalm
- Added issue templates and a pull request template.
- Added
CONTRIBUTING.md
for additional contributing information. - Added
backward-compatibility.md
for my backward compatibility promise. - Added
CODE_OF_CONDUCT.md
for a Contributor Code of Conduct.
Changed
- Updated dev dependencies.
Generator::generatePhpEnum()
can now throw aRuntimeException
ifgenerateMapping
returns an empty array.- Refactored
Generator::generateMapping()
make use of a helper function to reduce function complexity. - Renamed
Esi\Mimey\Interface
namespace toEsi\Mimey\Interfaces
Fixed
- Implemented fixes throughout based on Psalm.
From GitHub
What's Changed
- Update dependency friendsofphp/php-cs-fixer to v3.53.0 by @renovate in #39
- Update dependency phpunit/phpunit to v11.1.2 by @renovate in #41
- Update dependency friendsofphp/php-cs-fixer to v3.54.0 by @renovate in #42
- chore(deps) Lock file maintenance by @renovate in #46
Full Changelog: v2.0.0...v2.1.0
v2.0.0
2.0.0 - 2024-04-07
Mostly a 'restructuring' release, to set the foundation going forward. See UPGRADING.md for upgrade instructions/overview.
Added
- Added a new interface for
Mapping\Builder
->Interface\BuilderInterface
. - Added the
Override
attribute. to theMimeType
enum functionsgetExtension
andgetValue
.- Not importing the attribute, as
#[\Override]
should not cause issues in PHP < 8.3
- Not importing the attribute, as
Changed
MimeMappingBuilder
andMimeMappingGenerator
are nowMapping\Builder
andMapping\Generator
.MimeTypeInterface
andMimeTypesInterface
are nowInterface\MimeTypeInterface
andInterface\MimeTypesInterface
.- Updated PHPUnit to 11.1 along with unit tests as a result.
- Set PHP-CS-Fixer dev dependency to
^3.52
. - Updated the
psalm
workflow to use the latestpsalm/psalm-github-security-scan
andgithub/codeql-action/upload-sarif
. - Changed the header of all PHP files to be more compact.
- Updated CHANGELOG.md to be more in line with the
Keep a Changelog
format.
Fixed
- Fix
Mapping\Generator::generateMapping()
's use ofarray_filter
to not rely on loose comparison.
Removed
- Removed
jetbrains/phpstorm-attributes
as a dependency. - Removed Rector from dev-dependencies.
GitHub log
What's Changed
- Configure Renovate by @renovate in #29
- Update dependency phpunit/phpunit to v11.0.5 by @renovate in #31
- Update dependency phpunit/phpunit to v11.0.6 by @renovate in #33
- Bump phpunit/phpunit from 11.0.6 to 11.0.8 by @dependabot in #35
- Update dependency phpunit/phpunit to v11.0.9 by @renovate in #34
- Update dependency phpunit/phpunit to v11.1.1 by @renovate in #37
New Contributors
Full Changelog: v1.2.0...v2.0.0
v1.2.0
1.2.0 (2024-01-30)
- Added PHP-CS-Fixer to dev dependencies.
- Fixes throughout per PHPCS (PER, PSR-2, PSR-12).
- Added RectorPHP/Rector to dev dependencies.
- Changes throughout based on Rector fixes/suggestions.
- Updated copyright/license docblocks to reduce their size, and reduce to only one.
- Normalized composer.json and added .gitattributes.
- Updated Mime Types.
- Bumped minimum PHP version to 8.2.
Full Changelog: v1.1.1...v1.2.0
v1.1.1
1.1.1 (2023-12-20)
- Added Scrutinizer to workflow
- Updating codebase based on PHPStan level 9, strict w/bleeding edge. A work in progress
- Updated docs throughout
- First pass and attempt at adhering to PSR-12, PSR-5, and PSR-19
- Updated tests to use the PHPUnit CoversClass and DataProvider attributes.
- Update composer.json and github workflows to allow PHP 8.4 into the mix.
- Updated unit tests to use
self::
instead of$this->
when calling PHPUnit methods - Pass through to add function, exception, and constant imports
v1.1.0
1.1.0 (2023-11-27)
- Updated composer.json to remove the restriction on PHP 8.3
- Still a minimum of PHP 8.1
- composer.lock updated
- data/mime.types and dist/* data updated with latest mime type data
- Updated all calls to global PHP functions and classes, that aren't imported, with the \ prefix
- Updated tests/src/MimeTypesTest.php to use ReflectionClass instead of ReflectionProperty to resolve a deprecation issue introduced in PHP 8.3
v1.0.0
1.0.0 (2023-07-08)
- Initial fork from elephox-dev/mimey
- Updated/changed project Namespace
- Updated tests and workflows to use PHPUnit 10.2
- Updated workflows to use newer GitHub actions (cachev3, checkoutv3, EndBug/add-and-commit@v9)
- Small updates here and there to code/documentation formatting/etc.
- So essentially, this is not a new feature/update release. More of just bringing it inline with my preferences.