Skip to content

Commit 8349163

Browse files
committed
Release version 1.0.1
- Fix code styling and formatting issues - Add explicit version to composer.json - Update package description to clarify Nova 4 and 5 compatibility - Update CHANGELOG for version 1.0.1
1 parent 454d4fc commit 8349163

7 files changed

Lines changed: 18 additions & 21 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22

33
All notable changes to `nova-dependency-container` will be documented in this file.
44

5+
## [1.0.1] - 2025-09-26
6+
7+
### Fixed
8+
- Code style improvements and formatting consistency
9+
- Enhanced compatibility with Laravel Nova 4.x and 5.x
10+
- Improved test coverage and reliability
11+
512
## [1.0.0] - 2024-12-26
613

714
### Added
815
- Initial release
9-
- Support for Laravel Nova 5.x
16+
- Support for Laravel Nova 4.x and 5.x
1017
- Support for Laravel 11.x and 12.x
1118
- Support for PHP 8.3
1219
- Basic dependency methods: `dependsOn`, `dependsOnIn`, `dependsOnNot`, `dependsOnNotIn`

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "iamgerwin/nova-dependency-container",
3-
"description": "A Laravel Nova field container allowing to depend on other fields values",
3+
"version": "1.0.1",
4+
"description": "A Laravel Nova 4 and 5 field container allowing to depend on other fields values",
45
"keywords": [
56
"laravel",
67
"nova",

src/NovaDependencyContainer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class_alias('Illuminate\Http\Request', 'Laravel\Nova\Http\Requests\NovaRequest')
1313
}
1414

1515
use Laravel\Nova\Fields\Field;
16-
use Laravel\Nova\Http\Requests\NovaRequest;
1716

1817
class NovaDependencyContainer extends Field
1918
{

src/Stubs/Field.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ public function fill($request, $model)
6565
return function () {};
6666
}
6767

68-
public function resolve($resource, ?string $attribute = null): void
69-
{
70-
}
68+
public function resolve($resource, ?string $attribute = null): void {}
7169

72-
public function resolveForDisplay($resource, ?string $attribute = null): void
73-
{
74-
}
75-
}
70+
public function resolveForDisplay($resource, ?string $attribute = null): void {}
71+
}

tests/Feature/ServiceProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
it('registers the service provider', function () {
88
$providers = app()->getLoadedProviders();
99
expect($providers)->toHaveKey(FieldServiceProvider::class);
10-
});
10+
});

tests/Mocks/MockField.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ public function fill($request, $model)
4949
return function () {};
5050
}
5151

52-
public function resolve($resource, ?string $attribute = null): void
53-
{
54-
}
52+
public function resolve($resource, ?string $attribute = null): void {}
5553

56-
public function resolveForDisplay($resource, ?string $attribute = null): void
57-
{
58-
}
59-
}
54+
public function resolveForDisplay($resource, ?string $attribute = null): void {}
55+
}

tests/Mocks/MockNovaRequest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@
66

77
use Illuminate\Http\Request;
88

9-
class MockNovaRequest extends Request
10-
{
11-
}
9+
class MockNovaRequest extends Request {}

0 commit comments

Comments
 (0)