Skip to content

Commit

Permalink
Develop (#65)
Browse files Browse the repository at this point in the history
* [FIX] Add correct return type to compress command
* [FIX] Remove deprecated replace and add extension key in composer json
* [CHANGE] Raise minor version to 1.5.3
  • Loading branch information
schmitzal authored Apr 28, 2021
1 parent 28a13c6 commit 594516b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 1.5.3
* **[FIX]** Add correct return type to compress command
* **[FIX]** Remove deprecated replace and add extension key in composer json

### 1.5.2
* **[FIX]** Clear file information cache before calculating saved percentage after compression
* **[CHANGE]** Set typo3/cms-core dependency to security fixed versions
Expand Down
4 changes: 3 additions & 1 deletion Classes/Command/CompressImagesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function initializeDependencies(): void
* @param InputInterface $input
* @param OutputInterface $output
*/
protected function execute(InputInterface $input, OutputInterface $output): void
protected function execute(InputInterface $input, OutputInterface $output): int
{
$limit = (int)$input->getArgument('limit');
$this->initializeDependencies();
Expand All @@ -99,6 +99,8 @@ protected function execute(InputInterface $input, OutputInterface $output): void
$this->compressImages($files);
$this->clearPageCache();
}

return Command::SUCCESS;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
}
},
"replace": {
"tinyimg": "self.version",
"typo3-ter/tinyimg": "self.version"
},
"extra": {
"typo3/cms": {
"cms-package-dir": ".Build/typo3/cms",
"extension-key": "tinyimg",
"web-dir": ".Build/Web",
"Package": {
"partOfMinimalUsableSystem": true
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'author' => 'Alessandro Schmitz',
'author_email' => '[email protected]',
'author_company' => 'Interlutions GmbH',
'version' => '1.5.2',
'version' => '1.5.3',
'state' => 'beta',
'clearCacheOnLoad' => true,
'constraints' => [
Expand Down

0 comments on commit 594516b

Please sign in to comment.