Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .ddev/commands/web/next
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ fi

# Update files with the new version
sed -i "s/'version' => '[0-9]\+\.[0-9]\+\.[0-9]\+'/'version' => '$NEXT_TAG'/g" ./ext_emconf.php
sed -i -E "s/(\"version\": \")[0-9]+\.[0-9]+\.[0-9]+(\")/\1$NEXT_TAG\2/" ./composer.json
sed -i "s/release=\"[0-9]\+\.[0-9]\+\.[0-9]\+\"/release=\"$NEXT_TAG\"/g" ./Documentation/guides.xml
sed -i'' -E "s/(<project[^>]* version=\")[^\"]+(\")/\1$NEXT_TAG\2/" ./Documentation/guides.xml

# Prepare command to tag the new version
echo "Copy the command below and run it to tag the new version:"
echo "zsh -e -c \"git add Documentation/guides.xml ext_emconf.php; git commit -m 'Tag version $NEXT_TAG'; git tag -a '$NEXT_TAG' -m 'Version $NEXT_TAG' -s; git push origin $DEFAULT_BRANCH '$NEXT_TAG'\""
echo "zsh -e -c \"git add Documentation/guides.xml ext_emconf.php composer.json; git commit -m 'Tag version $NEXT_TAG'; git tag -a '$NEXT_TAG' -m 'Version $NEXT_TAG' -s; git push origin $DEFAULT_BRANCH '$NEXT_TAG'\""
3 changes: 3 additions & 0 deletions .ddev/test/files/src/site/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"conflict": {},
"extra": {
"typo3/cms": {
"Package": {
"providesPackages": {}
},
"extension-key": "site"
}
},
Expand Down
6 changes: 5 additions & 1 deletion .ddev/test/files/src/t3apinews/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@
},
"extra": {
"typo3/cms": {
"Package": {
"providesPackages": {}
},
"extension-key": "t3apinews",
"app-dir": ".Build",
"web-dir": ".Build/public"
"web-dir": ".Build/public",
"version": "1.0.0"
}
},
"version": "1.0.0"
Expand Down
3 changes: 2 additions & 1 deletion Build/postman/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ while [[ $# -gt 0 ]]; do
done

if [ -z "$TYPO3" ]; then
TYPO3=$("../../.Build/bin/typo3" | grep -oP 'TYPO3 CMS \K[0-9]+')
# Read version without bootstrapping TYPO3 - running .Build/bin/typo3 creates var/ in the project root
TYPO3=$(php -d error_reporting=0 -d display_errors=0 -r 'require "../../.Build/vendor/autoload.php"; echo (new \TYPO3\CMS\Core\Information\Typo3Version())->getMajorVersion();')
fi

if ! check_typo3_version "$TYPO3"; then
Expand Down
7 changes: 6 additions & 1 deletion Documentation/Miscellaneous/Changelog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ Changelog
5.0.0
=====
- [!!!] Embed ``goldspecdigital/oooas`` library (PHP 8.5 compatibility). The package is no longer a dependency, namespace ``GoldSpecDigital\ObjectOrientedOAS`` is renamed to ``SourceBroker\T3api\OpenApi``. Update imports in custom filters implementing ``OpenApiSupportingFilterInterface`` and custom :ref:`collection response classes <customization_collection-response-schema>`. [`commit <https://github.com/sourcebroker/t3api/commit/9d63ab0>`__]
- [!!!] ``@T3api\Serializer\Type\PasswordHash`` returns ``null`` on serialization instead of the stored password hash. Use ``@T3api\Serializer\Type\PasswordHash(serialize=true)`` to return the hash as before, see :ref:`serialization_handlers_password-hash`.
- [!!!] ``@T3api\Serializer\Type\PasswordHash`` returns ``null`` on serialization instead of the stored password hash. Use ``@T3api\Serializer\Type\PasswordHash(serialize=true)`` to return the hash as before, see :ref:`serialization_handlers_password-hash`. [`commit <https://github.com/sourcebroker/t3api/commit/b08a512>`__]
- [!!!] Refactor expression evaluation in access checkers. Protected method ``AbstractAccessChecker::getExpressionLanguageResolver()`` is removed, use ``evaluateExpression()`` instead. [`commit <https://github.com/sourcebroker/t3api/commit/77e4c0e>`__]
- Skip cHash validation for API query arguments (filters, pagination, ordering) when ``cacheHash.enforceValidation`` is enabled. [`commit <https://github.com/sourcebroker/t3api/commit/6ad426e>`__]
- Validate pagination parameters like API Platform: invalid ``page`` / ``itemsPerPage`` returns ``400 Bad Request``, ``itemsPerPage=0`` returns only ``hydra:totalItems``, empty collection has one page in ``hydra:view``. See :ref:`pagination`. [`commit <https://github.com/sourcebroker/t3api/commit/50d1b28>`__]
- Add ``@id`` to related objects when their API resource class is set as ``type`` in YAML metadata. See :ref:`integration`. [`commit <https://github.com/sourcebroker/t3api/commit/fbd795a>`__]
- Add ``version`` and ``providesPackages`` to ``composer.json`` (TYPO3 14.3 classic mode metadata).
- Add TYPO3 14 support. [`commit <https://github.com/sourcebroker/t3api/commit/5de5826>`__]
- Add PHP 8.5 support. [`commit <https://github.com/sourcebroker/t3api/commit/81878f4>`__]
- Add tag-based :ref:`response cache <response-cache>` for GET endpoints. [`commit <https://github.com/sourcebroker/t3api/commit/c35a0ab>`__]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
},
"extra": {
"typo3/cms": {
"extension-key": "t3api_functional_test"
"Package": {
"providesPackages": {}
},
"extension-key": "t3api_functional_test",
"version": "1.0.0"
}
}
}
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@
},
"extra": {
"typo3/cms": {
"Package": {
"providesPackages": {}
},
"extension-key": "t3api",
"version": "5.0.0",
"web-dir": ".Build/public"
}
},
Expand Down Expand Up @@ -109,10 +113,10 @@
"@fix:composer:normalize"
],
"fix:composer:normalize": "@composer normalize",
"fix:php:cs-fixer": "PHP_CS_FIXER_IGNORE_ENV=1 .Build/bin/php-cs-fixer fix --config .php-cs-fixer.php",
"fix:php:rector": [
"@composer install --working-dir=Build/rector --no-progress --no-interaction --quiet",
"Build/rector/vendor/bin/rector process --config Build/rector/rector.php --no-progress-bar"
],
"fix:php:cs-fixer": "PHP_CS_FIXER_IGNORE_ENV=1 .Build/bin/php-cs-fixer fix --config .php-cs-fixer.php"
]
}
}
Loading