Skip to content

Commit 292bf06

Browse files
committed
5.1.10
1 parent fb7d17a commit 292bf06

File tree

9 files changed

+40
-38
lines changed

9 files changed

+40
-38
lines changed

bun.lockb

3.26 KB
Binary file not shown.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,5 @@
162162
},
163163
"minimum-stability": "dev",
164164
"prefer-stable": true,
165-
"version": "5.1.9"
165+
"version": "5.1.10"
166166
}

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
"test": "./node_modules/.bin/jest"
1313
},
1414
"devDependencies": {
15-
"@babel/preset-env": "^7.25.4",
15+
"@babel/preset-env": "^7.26.7",
1616
"@tailwindcss/container-queries": "^0.1.1",
17-
"@tailwindcss/typography": "^0.5.15",
18-
"@types/lodash": "^4.17.7",
19-
"@vue/babel-plugin-jsx": "^1.2.2",
17+
"@tailwindcss/typography": "^0.5.16",
18+
"@types/lodash": "^4.17.15",
19+
"@vue/babel-plugin-jsx": "^1.2.5",
2020
"@vue/babel-preset-jsx": "^1.4.0",
21-
"@vue/compiler-sfc": "^3.5.0",
21+
"@vue/compiler-sfc": "^3.5.13",
2222
"@vue/test-utils": "^2.4.6",
2323
"@vue/vue3-jest": "^27.0.0",
24-
"axios": "^1.7.4",
24+
"axios": "^1.7.9",
2525
"babel-jest": "^27.5.1",
2626
"babel-plugin-syntax-dynamic-import": "^6.18.0",
2727
"babel-plugin-syntax-jsx": "^6.18.0",
@@ -30,38 +30,38 @@
3030
"laravel-mix": "^6.0.49",
3131
"lodash": "^4.17.21",
3232
"nprogress": "^0.2.0",
33-
"postcss": "^8.5.0",
33+
"postcss": "^8.5.1",
3434
"postcss-import": "^14.1.0",
3535
"postcss-rtlcss": "^3.7.2",
36-
"prettier": "^3.3.3",
36+
"prettier": "^3.4.2",
3737
"prettier-plugin-organize-imports": "^3.2.4",
3838
"prettier-plugin-tailwindcss": "^0.5.14",
39-
"tailwindcss": "^3.4.10",
40-
"ts-loader": "^9.5.1",
41-
"typescript": "^5.5.4",
42-
"vue-loader": "^17.4.0"
39+
"tailwindcss": "^3.4.17",
40+
"ts-loader": "^9.5.2",
41+
"typescript": "^5.7.3",
42+
"vue-loader": "^17.4.2"
4343
},
4444
"dependencies": {
45-
"@floating-ui/vue": "^1.1.4",
46-
"@headlessui/vue": "^1.7.22",
47-
"@heroicons/vue": "^2.1.5",
48-
"@inertiajs/vue3": "^2.0.2",
45+
"@floating-ui/vue": "^1.1.6",
46+
"@headlessui/vue": "^1.7.23",
47+
"@heroicons/vue": "^2.2.0",
48+
"@inertiajs/vue3": "^2.0.3",
4949
"@popperjs/core": "^2.11.8",
50-
"@vue/compat": "^3.5.0",
50+
"@vue/compat": "^3.5.13",
5151
"@vueuse/core": "^10.11.1",
5252
"@vueuse/integrations": "^10.11.1",
5353
"autosize": "^4.0.4",
54-
"browser-sync": "^3.0.2",
54+
"browser-sync": "^3.0.3",
5555
"browser-sync-v3-webpack-plugin": "^0.1.0",
5656
"chartist": "^1.3.0",
5757
"chartist-plugin-tooltips-updated": "^1.0.0",
58-
"codemirror": "^5.65.17",
58+
"codemirror": "^5.65.18",
5959
"colortranslator": "^1.10.2",
6060
"floating-vue": "^2.0.0",
61-
"focus-trap": "^7.5.4",
61+
"focus-trap": "^7.6.4",
6262
"inflector-js": "^1.0.1",
6363
"js-cookie": "^2.2.1",
64-
"laravel-echo": "^1.16.1",
64+
"laravel-echo": "^1.19.0",
6565
"laravel-vapor": "^0.7.1",
6666
"luxon": "^1.28.1",
6767
"mousetrap": "^1.6.5",
@@ -72,7 +72,7 @@
7272
"toastedjs": "0.0.2",
7373
"trix": "^2.1.12",
7474
"uid": "^2.0.2",
75-
"vue": "^3.5.0",
75+
"vue": "^3.5.13",
7676
"vuex": "^4.1.0"
7777
}
7878
}

public/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"/app.js": "/app.js?id=0ebc84751434d26f74064de407093b72",
2+
"/app.js": "/app.js?id=99b12bb9abfb364d448985b5a096b42d",
33
"/ui.js": "/ui.js?id=592866a715b1c20b43fff6ca7980b279",
44
"/manifest.js": "/manifest.js?id=3267e5c99fd7b729e2f38ec55b50397d",
55
"/app.css": "/app.css?id=0864a7b81f5021e62095c1bd570dedb5",
6-
"/vendor.js": "/vendor.js?id=7ea02f3d5fdd3c4b567217ae68db7376",
6+
"/vendor.js": "/vendor.js?id=52fdb487e0f8031eddd0c42322c8ee13",
77
"/fonts/snunitosansv11pe01mimslybiv1o4x1m8cce4g1pty10iurt9w6fk2a.woff2": "/fonts/snunitosansv11pe01mimslybiv1o4x1m8cce4g1pty10iurt9w6fk2a.woff2?id=c8390e146be0a3c8a5498355dec892ae",
88
"/fonts/snunitosansv11pe01mimslybiv1o4x1m8cce4g1pty14iurt9w6fk2a.woff2": "/fonts/snunitosansv11pe01mimslybiv1o4x1m8cce4g1pty14iurt9w6fk2a.woff2?id=b0735c7dd6126471acbaf9d6e9f5e41a",
99
"/fonts/snunitosansv11pe01mimslybiv1o4x1m8cce4g1pty1ciurt9w6fk2a.woff2": "/fonts/snunitosansv11pe01mimslybiv1o4x1m8cce4g1pty1ciurt9w6fk2a.woff2?id=7c1fb232e3050e36dcc1aee61f1d0c06",

public/vendor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Fields/DependentFields.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ public function syncDependsOn(NovaRequest $request)
7777
public function applyDependsOn(NovaRequest $request)
7878
{
7979
$this->fieldDependencies = collect($this->fieldDependencies ?? [])
80-
->map(function (Dependent $dependent) use ($request) {
81-
return $dependent->handle($this, $request);
82-
})->all();
80+
->map(fn (Dependent $dependent) => $dependent->handle($this, $request))
81+
->all();
8382

8483
return $this;
8584
}
@@ -92,9 +91,9 @@ public function applyDependsOn(NovaRequest $request)
9291
protected function getDependentsAttributes(NovaRequest $request): ?array
9392
{
9493
/** @var \Illuminate\Support\Collection<string, mixed> $attributes */
95-
$attributes = collect($this->fieldDependencies ?? [])->map(function (Dependent $dependent) {
96-
return $dependent->getAttributes();
97-
})->collapse();
94+
$attributes = collect($this->fieldDependencies ?? [])
95+
->map(static fn (Dependent $dependent) => $dependent->getAttributes())
96+
->collapse();
9897

9998
if ($attributes->isNotEmpty()) {
10099
return $attributes->all();

src/Fields/FieldCollection.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ public function withOnlyFilterableFields()
300300
*/
301301
public function applyDependsOn(NovaRequest $request)
302302
{
303-
$this->each->applyDependsOn($request);
303+
$this->each(static function ($field) use ($request) {
304+
$field->applyDependsOn($request);
305+
});
304306

305307
return $this;
306308
}
@@ -324,9 +326,9 @@ public function applyDependsOnWithDefaultValues(NovaRequest $request)
324326
}
325327
});
326328

327-
$this->each->applyDependsOn(
328-
NovaRequest::createFrom($request)->mergeIfMissing($payloads->all())
329-
);
329+
$this->each(static function ($field) use ($request, $payloads) {
330+
$field->applyDependsOn(NovaRequest::createFrom($request)->mergeIfMissing($payloads->all()));
331+
});
330332

331333
return $this;
332334
}

src/Http/Controllers/FieldDownloadController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Laravel\Nova\Http\Controllers;
44

5+
use Illuminate\Http\RedirectResponse;
56
use Illuminate\Http\Response;
67
use Illuminate\Routing\Controller;
78
use Laravel\Nova\Http\Requests\NovaRequest;
@@ -12,7 +13,7 @@ class FieldDownloadController extends Controller
1213
/**
1314
* Download the given field's contents.
1415
*/
15-
public function __invoke(NovaRequest $request): Response|StreamedResponse
16+
public function __invoke(NovaRequest $request): Response|RedirectResponse|StreamedResponse
1617
{
1718
$resource = $request->findResourceOrFail();
1819

0 commit comments

Comments
 (0)