Skip to content

Commit

Permalink
release: Autumn Evolution 🍂
Browse files Browse the repository at this point in the history
This version is the deep refactoring of how the Application/Config and other global Laravel things are injected into classes (no implicit dependencies, see #151), how the package configs looks (no more untyped arrays, see #152), how the `Formatter` works internally (simplification and more extendabilities). And, probably the most interesting part, is improvements of the `Documentator` - the `Processor` is used for all tasks, the links will be correctly updated when one document is included into another; code links support, etc. Please follow [Upgrade Guide](https://github.com/LastDragon-ru/lara-asp/blob/main/UPGRADE.md) to migrate 🤗. You can ask a question and/or discuss in [release disscussion](#201).
  • Loading branch information
LastDragon-ru committed Nov 17, 2024
1 parent bc41eeb commit af69ffa
Show file tree
Hide file tree
Showing 41 changed files with 174 additions and 49 deletions.
12 changes: 11 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.4.0",
"version": "7.0.0",
"require": [],
"merge": null,
"requirements": {
Expand All @@ -13,6 +13,16 @@
"^8.2"
]
},
"7.0.0": {
"laravel/framework": [
"^11.0.0",
"^10.34.0"
],
"php": [
"^8.3",
"^8.2"
]
},
"6.4.2": {
"laravel/framework": [
"^11.0.0",
Expand Down
12 changes: 11 additions & 1 deletion packages/core/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.4.0",
"version": "7.0.0",
"require": [],
"merge": null,
"requirements": {
Expand All @@ -13,6 +13,16 @@
"^8.2"
]
},
"7.0.0": {
"laravel/framework": [
"^11.0.0",
"^10.34.0"
],
"php": [
"^8.3",
"^8.2"
]
},
"6.4.2": {
"laravel/framework": [
"^11.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/Application/Configuration/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function offsetUnset(mixed $offset): void {
}

/**
* @deprecated %{VERSION} Array-based config is deprecated. Please migrate to object-based config.
* @deprecated 7.0.0 Array-based config is deprecated. Please migrate to object-based config.
*
* @param array<array-key, mixed> $array
*/
Expand All @@ -68,7 +68,7 @@ public static function fromArray(array $array): static {
}

/**
* @deprecated %{VERSION}
* @deprecated 7.0.0
*/
protected static function fromArrayGetPropertyName(int|string $property): string {
if (!is_string($property)) {
Expand All @@ -89,7 +89,7 @@ protected static function fromArrayGetPropertyName(int|string $property): string
}

/**
* @deprecated %{VERSION}
* @deprecated 7.0.0
*/
protected static function fromArrayGetPropertyValue(string $property, mixed $value): mixed {
if (is_array($value) && (!array_is_list($value) || $value === [])) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace LastDragon_ru\LaraASP\Core;

/**
* @deprecated %{VERSION} The {@see PackageProvider} should be used instead.
* @deprecated 7.0.0 The {@see PackageProvider} should be used instead.
*/
class Provider extends PackageProvider {
// empty
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/Provider/WithConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ trait WithConfig {
use Helper;

/**
* @deprecated %{VERSION} Please migrate to {@see self::registerConfig()} and object-based config.
* @deprecated 7.0.0 Please migrate to {@see self::registerConfig()} and object-based config.
*/
protected function bootConfig(): void {
trigger_deprecation(
Package::Name,
'%{VERSION}',
'7.0.0',
'Please migrate to `self::registerConfig()` and object-based config.',
);

Expand Down Expand Up @@ -86,7 +86,7 @@ private function loadPackageConfig(string $resolver): void {
// todo(core): Remove somewhere in v9 or later.
trigger_deprecation(
Package::Name,
'%{VERSION}',
'7.0.0',
'Array-based config is deprecated. Please migrate to object-based config.',
);

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/Utils/ConfigMerger.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

// phpcs:disable PSR1.Files.SideEffects

trigger_deprecation(Package::Name, '%{VERSION}', 'Please migrate to object-based config.');
trigger_deprecation(Package::Name, '7.0.0', 'Please migrate to object-based config.');

/**
* The merger for array-based configs.
*
* @deprecated %{VERSION} Please migrate to object-based config.
* @deprecated 7.0.0 Please migrate to object-based config.
*/
class ConfigMerger {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/Utils/ConfigMergerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

/**
* @internal
* @deprecated %{VERSION}
* @deprecated 7.0.0
*/
#[CoversClass(ConfigMerger::class)]
final class ConfigMergerTest extends TestCase {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/Utils/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

// phpcs:disable PSR1.Files.SideEffects

trigger_deprecation(Package::Name, '%{VERSION}', 'Please use `%s`/`%s` instead.', FilePath::class, DirectoryPath::class);
trigger_deprecation(Package::Name, '7.0.0', 'Please use `%s`/`%s` instead.', FilePath::class, DirectoryPath::class);

/**
* @deprecated %{VERSION} Please use {@see FilePath}/{@see DirectoryPath} instead.
* @deprecated 7.0.0 Please use {@see FilePath}/{@see DirectoryPath} instead.
*/
class Path {
public static function getPath(string $root, string $path): string {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/Utils/PathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

/**
* @internal
* @deprecated %{VERSION}
* @deprecated 7.0.0
*/
#[CoversClass(Path::class)]
final class PathTest extends TestCase {
Expand Down
11 changes: 10 additions & 1 deletion packages/dev/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.4.0",
"version": "7.0.0",
"require": {
"php": "PHP",
"phpstan/phpstan": "PHPStan"
Expand All @@ -15,6 +15,15 @@
"^1.10"
]
},
"7.0.0": {
"php": [
"^8.3",
"^8.2"
],
"phpstan/phpstan": [
"^1.10"
]
},
"6.4.2": {
"php": [
"^8.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace LastDragon_ru\LaraASP\Dev;

/**
* @deprecated %{VERSION} The {@see PackageProvider} should be used instead.
* @deprecated 7.0.0 The {@see PackageProvider} should be used instead.
*/
class Provider extends PackageProvider {
// empty
Expand Down
12 changes: 11 additions & 1 deletion packages/documentator/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.4.0",
"version": "7.0.0",
"require": [],
"merge": null,
"requirements": {
Expand All @@ -13,6 +13,16 @@
"^8.2"
]
},
"7.0.0": {
"laravel/framework": [
"^11.0.0",
"^10.34.0"
],
"php": [
"^8.3",
"^8.2"
]
},
"6.4.2": {
"laravel/framework": [
"^11.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/documentator/src/Processor/Metadata/PhpDocBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

// phpcs:disable PSR1.Files.SideEffects

trigger_deprecation(Package::Name, '%{VERSION}', 'Please use `%s` instead.', PhpClassComment::class);
trigger_deprecation(Package::Name, '7.0.0', 'Please use `%s` instead.', PhpClassComment::class);

/**
* @deprecated %{VERSION} Please use {@see PhpClassComment} instead.
* @deprecated 7.0.0 Please use {@see PhpClassComment} instead.
*
* @implements Metadata<?Document>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use PHPUnit\Framework\Attributes\CoversClass;

/**
* @deprecated %{VERSION}
* @deprecated 7.0.0
* @internal
*/
#[CoversClass(PhpDocBlock::class)]
Expand Down
2 changes: 1 addition & 1 deletion packages/documentator/src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace LastDragon_ru\LaraASP\Documentator;

/**
* @deprecated %{VERSION} The {@see PackageProvider} should be used instead.
* @deprecated 7.0.0 The {@see PackageProvider} should be used instead.
*/
class Provider extends PackageProvider {
// empty
Expand Down
4 changes: 2 additions & 2 deletions packages/documentator/src/Utils/Markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@

// phpcs:disable PSR1.Files.SideEffects

trigger_deprecation(Package::Name, '%{VERSION}', 'Please use %s/%s instead.', MarkdownDocument::class, Text::class);
trigger_deprecation(Package::Name, '7.0.0', 'Please use %s/%s instead.', MarkdownDocument::class, Text::class);

/**
* @deprecated %{VERSION} Please use {@see MarkdownDocument}/{@see Text} instead.
* @deprecated 7.0.0 Please use {@see MarkdownDocument}/{@see Text} instead.
*/
class Markdown {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/documentator/src/Utils/MarkdownTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

/**
* @internal
* @deprecated %{VERSION}
* @deprecated 7.0.0
*/
#[CoversClass(Markdown::class)]
final class MarkdownTest extends TestCase {
Expand Down
12 changes: 11 additions & 1 deletion packages/eloquent/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.4.0",
"version": "7.0.0",
"require": [],
"merge": null,
"requirements": {
Expand All @@ -13,6 +13,16 @@
"^8.2"
]
},
"7.0.0": {
"laravel/framework": [
"^11.0.0",
"^10.34.0"
],
"php": [
"^8.3",
"^8.2"
]
},
"6.4.2": {
"laravel/framework": [
"^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/eloquent/src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace LastDragon_ru\LaraASP\Eloquent;

/**
* @deprecated %{VERSION} The {@see PackageProvider} should be used instead.
* @deprecated 7.0.0 The {@see PackageProvider} should be used instead.
*/
class Provider extends PackageProvider {
// empty
Expand Down
12 changes: 11 additions & 1 deletion packages/formatter/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.4.0",
"version": "7.0.0",
"require": [],
"merge": null,
"requirements": {
Expand All @@ -13,6 +13,16 @@
"^8.2"
]
},
"7.0.0": {
"laravel/framework": [
"^11.0.0",
"^10.34.0"
],
"php": [
"^8.3",
"^8.2"
]
},
"6.4.2": {
"laravel/framework": [
"^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/formatter/src/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function __construct(
}

/**
* @deprecated %{VERSION} Array-based config is deprecated. Please migrate to object-based config.
* @deprecated 7.0.0 Array-based config is deprecated. Please migrate to object-based config.
* @inheritDoc
*/
#[Override]
Expand Down
2 changes: 1 addition & 1 deletion packages/formatter/src/PackageProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function testConfig(): void {
}

/**
* @deprecated %{VERSION} Array-base config is deprecated.
* @deprecated 7.0.0 Array-base config is deprecated.
*/
public function testLegacyConfig(): void {
// Prepare
Expand Down
2 changes: 1 addition & 1 deletion packages/formatter/src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace LastDragon_ru\LaraASP\Formatter;

/**
* @deprecated %{VERSION} The {@see PackageProvider} should be used instead.
* @deprecated 7.0.0 The {@see PackageProvider} should be used instead.
*/
class Provider extends PackageProvider {
// empty
Expand Down
11 changes: 10 additions & 1 deletion packages/graphql-printer/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.4.0",
"version": "7.0.0",
"require": {
"php": "PHP",
"webonyx/graphql-php": "`webonyx/graphql-php`"
Expand All @@ -15,6 +15,15 @@
"^15.4.0"
]
},
"7.0.0": {
"php": [
"^8.3",
"^8.2"
],
"webonyx/graphql-php": [
"^15.4.0"
]
},
"6.4.2": {
"php": [
"^8.3",
Expand Down
15 changes: 14 additions & 1 deletion packages/graphql/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.4.0",
"version": "7.0.0",
"require": {
"php": "PHP",
"laravel/framework": "Laravel",
Expand All @@ -20,6 +20,19 @@
"^8.2"
]
},
"7.0.0": {
"laravel/framework": [
"^11.0.0",
"^10.34.0"
],
"nuwave/lighthouse": [
"^6.5.0"
],
"php": [
"^8.3",
"^8.2"
]
},
"6.4.2": {
"laravel/framework": [
"^11.0.0",
Expand Down
Loading

0 comments on commit af69ffa

Please sign in to comment.