Skip to content

Commit 77376e0

Browse files
authored
Update remaining npm packages + webpack update + tools directory (#1312)
1 parent fdde441 commit 77376e0

File tree

325 files changed

+1376
-4635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

325 files changed

+1376
-4635
lines changed

.env.dev

Whitespace-only changes.

package-lock.json

+818-4,078
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
"@symfony/stimulus-bundle": "file:vendor/symfony/stimulus-bundle/assets",
1111
"@symfony/ux-autocomplete": "file:vendor/symfony/ux-autocomplete/assets",
1212
"@symfony/ux-chartjs": "file:vendor/symfony/ux-chartjs/assets",
13-
"@symfony/webpack-encore": "^4.5.0",
13+
"@symfony/webpack-encore": "^5.0.0",
1414
"chart.js": "^3.8.0 <3.9",
15-
"core-js": "^3.34.0",
15+
"core-js": "^3.38.0",
1616
"eslint": "^8.57.0",
1717
"file-loader": "^6.2.0",
1818
"glightbox": "^3.2.0",
1919
"regenerator-runtime": "^0.14.0",
2020
"sass": "^1.69.5",
21-
"sass-loader": "^14.2.1",
22-
"simple-icons-font": "^11.12.0",
21+
"sass-loader": "^16.0.0",
22+
"simple-icons-font": "^13.21.0",
2323
"stimulus-textarea-autogrow": "^4.1.0",
2424
"stimulus-use": "^0.52.1",
2525
"timeago.js": "^4.0.2",

src/Command/ActorUpdateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ActorUpdateCommand extends Command
2525
public function __construct(
2626
private readonly UserRepository $repository,
2727
private readonly MagazineRepository $magazineRepository,
28-
private readonly MessageBusInterface $bus
28+
private readonly MessageBusInterface $bus,
2929
) {
3030
parent::__construct();
3131
}

src/Command/AdminCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AdminCommand extends Command
2222
{
2323
public function __construct(
2424
private readonly EntityManagerInterface $entityManager,
25-
private readonly UserRepository $repository
25+
private readonly UserRepository $repository,
2626
) {
2727
parent::__construct();
2828
}

src/Command/ApImportObject.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ApImportObject extends Command
2121
{
2222
public function __construct(
2323
private readonly MessageBusInterface $bus,
24-
private readonly ApHttpClient $client
24+
private readonly ApHttpClient $client,
2525
) {
2626
parent::__construct();
2727
}

src/Command/AwesomeBot/AwesomeBotEntries.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(
3131
private readonly EntryManager $entryManager,
3232
private readonly UserRepository $userRepository,
3333
private readonly MagazineRepository $magazineRepository,
34-
private readonly EntryRepository $entryRepository
34+
private readonly EntryRepository $entryRepository,
3535
) {
3636
parent::__construct();
3737
}

src/Command/AwesomeBot/AwesomeBotMagazine.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AwesomeBotMagazine extends Command
2828
public function __construct(
2929
private readonly UserRepository $repository,
3030
private readonly MagazineManager $magazineManager,
31-
private readonly BadgeManager $badgeManager
31+
private readonly BadgeManager $badgeManager,
3232
) {
3333
parent::__construct();
3434
}

src/Command/DeleteUserCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DeleteUserCommand extends Command
2222
{
2323
public function __construct(
2424
private readonly UserRepository $repository,
25-
private readonly MessageBusInterface $bus
25+
private readonly MessageBusInterface $bus,
2626
) {
2727
parent::__construct();
2828
}

src/Command/MagazineUnsubCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MagazineUnsubCommand extends Command
2121
{
2222
public function __construct(
2323
private readonly MagazineRepository $repository,
24-
private readonly MagazineManager $manager
24+
private readonly MagazineManager $manager,
2525
) {
2626
parent::__construct();
2727
}

src/Command/ModeratorCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ModeratorCommand extends Command
2222
{
2323
public function __construct(
2424
private readonly EntityManagerInterface $entityManager,
25-
private readonly UserRepository $repository
25+
private readonly UserRepository $repository,
2626
) {
2727
parent::__construct();
2828
}

src/Command/MoveEntriesByTagCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MoveEntriesByTagCommand extends Command
3030
public function __construct(
3131
private readonly EntityManagerInterface $entityManager,
3232
private readonly MagazineRepository $magazineRepository,
33-
private readonly EntryRepository $entryRepository
33+
private readonly EntryRepository $entryRepository,
3434
) {
3535
parent::__construct();
3636
}

src/Command/MovePostsByTagCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(
2828
private readonly PostManager $postManager,
2929
private readonly EntityManagerInterface $entityManager,
3030
private readonly MagazineRepository $magazineRepository,
31-
private readonly PostRepository $postRepository
31+
private readonly PostRepository $postRepository,
3232
) {
3333
parent::__construct();
3434
}

src/Command/PostMagazinesUpdateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(
2424
private readonly PostRepository $postRepository,
2525
private readonly PostManager $postManager,
2626
private readonly TagLinkRepository $tagLinkRepository,
27-
private readonly MagazineRepository $magazineRepository
27+
private readonly MagazineRepository $magazineRepository,
2828
) {
2929
parent::__construct();
3030
}

src/Command/SubMagazineCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SubMagazineCommand extends Command
2424
public function __construct(
2525
private readonly MagazineManager $manager,
2626
private readonly MagazineRepository $magazineRepository,
27-
private readonly UserRepository $userRepository
27+
private readonly UserRepository $userRepository,
2828
) {
2929
parent::__construct();
3030
}

src/Command/Update/ApKeysUpdateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(
2727
private readonly UserRepository $userRepository,
2828
private readonly MagazineRepository $magazineRepository,
2929
private readonly SiteRepository $siteRepository,
30-
private readonly EntityManagerInterface $entityManager
30+
private readonly EntityManagerInterface $entityManager,
3131
) {
3232
parent::__construct();
3333
}

src/Command/Update/Async/ImageBlurhashHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ImageBlurhashHandler
1414
{
1515
public function __construct(
1616
private readonly EntityManagerInterface $entityManager,
17-
private readonly ImageManager $manager
17+
private readonly ImageManager $manager,
1818
) {
1919
}
2020

src/Command/Update/ImageBlurhashUpdateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ImageBlurhashUpdateCommand extends Command
2020
{
2121
public function __construct(
2222
private readonly ImageRepository $repository,
23-
private readonly MessageBusInterface $bus
23+
private readonly MessageBusInterface $bus,
2424
) {
2525
parent::__construct();
2626
}

src/Command/Update/LocalMagazineApProfile.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class LocalMagazineApProfile extends Command
2020
{
2121
public function __construct(
2222
private readonly MagazineRepository $repository,
23-
private readonly UrlGeneratorInterface $urlGenerator
23+
private readonly UrlGeneratorInterface $urlGenerator,
2424
) {
2525
parent::__construct();
2626
}

src/Command/Update/NoteVisibilityUpdateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class NoteVisibilityUpdateCommand extends Command
2020
{
2121
public function __construct(
2222
private readonly UserRepository $repository,
23-
private readonly MessageBusInterface $bus
23+
private readonly MessageBusInterface $bus,
2424
) {
2525
parent::__construct();
2626
}

src/Command/Update/PostCommentRootUpdateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class PostCommentRootUpdateCommand extends Command
2020
{
2121
public function __construct(
2222
private readonly PostCommentRepository $repository,
23-
private readonly EntityManagerInterface $entityManager
23+
private readonly EntityManagerInterface $entityManager,
2424
) {
2525
parent::__construct();
2626
}

src/Command/Update/PushKeysUpdateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class PushKeysUpdateCommand extends Command
2121
{
2222
public function __construct(
2323
private readonly SiteRepository $siteRepository,
24-
private readonly EntityManagerInterface $entityManager
24+
private readonly EntityManagerInterface $entityManager,
2525
) {
2626
parent::__construct();
2727
}

src/Command/Update/RemoveMagazineNameFromTagsCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class RemoveMagazineNameFromTagsCommand extends Command
1919
{
2020
public function __construct(
2121
private readonly MagazineRepository $magazineRepository,
22-
private readonly EntityManagerInterface $entityManager
22+
private readonly EntityManagerInterface $entityManager,
2323
) {
2424
parent::__construct();
2525
}

src/Command/Update/SlugUpdateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class SlugUpdateCommand extends Command
2121
{
2222
public function __construct(
2323
private readonly Slugger $slugger,
24-
private readonly EntityManagerInterface $entityManager
24+
private readonly EntityManagerInterface $entityManager,
2525
) {
2626
parent::__construct();
2727
}

src/Command/Update/TagsUpdateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TagsUpdateCommand extends Command
2222
{
2323
public function __construct(
2424
private readonly TagExtractor $tagExtractor,
25-
private readonly EntityManagerInterface $entityManager
25+
private readonly EntityManagerInterface $entityManager,
2626
) {
2727
parent::__construct();
2828
}

src/Command/UserCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class UserCommand extends Command
2525
public function __construct(
2626
private readonly EntityManagerInterface $entityManager,
2727
private readonly UserRepository $repository,
28-
private readonly UserManager $manager
28+
private readonly UserManager $manager,
2929
) {
3030
parent::__construct();
3131
}

src/Command/UserPasswordCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(
2525
private readonly EntityManagerInterface $entityManager,
2626
private readonly UserPasswordHasherInterface $userPasswordHasher,
2727
private readonly UserRepository $repository,
28-
private readonly UserManager $manager
28+
private readonly UserManager $manager,
2929
) {
3030
parent::__construct();
3131
}

src/Command/UserUnsubCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class UserUnsubCommand extends Command
2121
{
2222
public function __construct(
2323
private readonly UserRepository $repository,
24-
private readonly UserManager $manager
24+
private readonly UserManager $manager,
2525
) {
2626
parent::__construct();
2727
}

src/Command/VerifyCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class VerifyCommand extends Command
2424
public function __construct(
2525
private readonly EntityManagerInterface $entityManager,
2626
private readonly UserRepository $repository,
27-
private readonly UserManager $manager
27+
private readonly UserManager $manager,
2828
) {
2929
parent::__construct();
3030
}

src/Controller/AbstractController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected function getJsonSuccessResponse(): JsonResponse
6262
protected function getJsonFormResponse(
6363
FormInterface $form,
6464
string $template,
65-
?array $variables = null
65+
?array $variables = null,
6666
): JsonResponse {
6767
return new JsonResponse(
6868
[

src/Controller/ActivityPub/EntryCommentController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __invoke(
3333
Entry $entry,
3434
#[MapEntity(id: 'comment_id')]
3535
EntryComment $comment,
36-
Request $request
36+
Request $request,
3737
): Response {
3838
if ($comment->apId) {
3939
return $this->redirect($comment->apId);

src/Controller/ActivityPub/EntryController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __invoke(
2727
Magazine $magazine,
2828
#[MapEntity(id: 'entry_id')]
2929
Entry $entry,
30-
Request $request
30+
Request $request,
3131
): Response {
3232
if ($entry->apId) {
3333
return $this->redirect($entry->apId);

src/Controller/ActivityPub/Magazine/MagazineFollowersController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(
2020
private readonly ActivityPubManager $manager,
2121
private readonly CollectionInfoWrapper $collectionInfoWrapper,
2222
private readonly CollectionItemsWrapper $collectionItemsWrapper,
23-
private readonly MagazineSubscriptionRepository $magazineSubscriptionRepository
23+
private readonly MagazineSubscriptionRepository $magazineSubscriptionRepository,
2424
) {
2525
}
2626

src/Controller/ActivityPub/Magazine/MagazineModeratorsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MagazineModeratorsController
1919
public function __construct(
2020
private readonly ActivityPubManager $manager,
2121
private readonly MagazineRepository $magazineRepository,
22-
private readonly UrlGeneratorInterface $urlGenerator
22+
private readonly UrlGeneratorInterface $urlGenerator,
2323
) {
2424
}
2525

src/Controller/ActivityPub/NodeInfoController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class NodeInfoController
1515

1616
public function __construct(
1717
private readonly NodeInfoFactory $nodeInfoFactory,
18-
private readonly UrlGeneratorInterface $urlGenerator
18+
private readonly UrlGeneratorInterface $urlGenerator,
1919
) {
2020
}
2121

src/Controller/ActivityPub/PostCommentController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __invoke(
3333
Post $post,
3434
#[MapEntity(id: 'comment_id')]
3535
PostComment $comment,
36-
Request $request
36+
Request $request,
3737
): Response {
3838
if ($comment->apId) {
3939
return $this->redirect($comment->apId);

src/Controller/ActivityPub/PostController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __invoke(
2727
Magazine $magazine,
2828
#[MapEntity(id: 'post_id')]
2929
Post $post,
30-
Request $request
30+
Request $request,
3131
): Response {
3232
if ($post->apId) {
3333
return $this->redirect($post->apId);

src/Controller/ActivityPub/SharedInboxController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class SharedInboxController
1414
{
1515
public function __construct(
1616
private readonly MessageBusInterface $bus,
17-
private readonly LoggerInterface $logger
17+
private readonly LoggerInterface $logger,
1818
) {
1919
}
2020

src/Controller/ActivityPub/User/UserController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class UserController extends AbstractController
1515
{
1616
public function __construct(
1717
private readonly TombstoneFactory $tombstoneFactory,
18-
private readonly PersonFactory $personFactory
18+
private readonly PersonFactory $personFactory,
1919
) {
2020
}
2121

src/Controller/ActivityPub/User/UserFollowersController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(
2020
private readonly UserRepository $userRepository,
2121
private readonly ActivityPubManager $manager,
2222
private readonly CollectionInfoWrapper $collectionInfoWrapper,
23-
private readonly CollectionItemsWrapper $collectionItemsWrapper
23+
private readonly CollectionItemsWrapper $collectionItemsWrapper,
2424
) {
2525
}
2626

src/Controller/ActivityPub/User/UserOutboxController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private function getCollectionInfo(User $user): array
7171
])]
7272
private function getCollectionItems(
7373
User $user,
74-
int $page
74+
int $page,
7575
): array {
7676
$hideAdult = false;
7777
$activity = $this->userRepository->findPublicActivity($page, $user, $hideAdult);

src/Controller/Admin/AdminMagazineOwnershipRequestController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class AdminMagazineOwnershipRequestController extends AbstractController
1717
{
1818
public function __construct(
1919
private readonly MagazineOwnershipRequestRepository $repository,
20-
private readonly MagazineManager $manager
20+
private readonly MagazineManager $manager,
2121
) {
2222
}
2323

src/Controller/Admin/AdminPagesController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AdminPagesController extends AbstractController
1818
{
1919
public function __construct(
2020
private readonly EntityManagerInterface $entityManager,
21-
private readonly SiteRepository $repository
21+
private readonly SiteRepository $repository,
2222
) {
2323
}
2424

src/Controller/AjaxController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function fetchOnline(
195195
string $mercurePublicUrl,
196196
string $mercureSubscriptionsToken,
197197
HttpClientInterface $httpClient,
198-
CacheInterface $cache
198+
CacheInterface $cache,
199199
): JsonResponse {
200200
$resp = $httpClient->request('GET', $mercurePublicUrl.'/subscriptions/'.$topic, [
201201
'auth_bearer' => $mercureSubscriptionsToken,

src/Controller/Api/BaseApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function __construct(
104104
*/
105105
protected function rateLimit(
106106
?RateLimiterFactory $limiterFactory = null,
107-
?RateLimiterFactory $anonLimiterFactory = null
107+
?RateLimiterFactory $anonLimiterFactory = null,
108108
): array {
109109
$this->logAccess();
110110
if (null === $limiterFactory && null === $anonLimiterFactory) {

0 commit comments

Comments
 (0)