Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 391e272

Browse files
committed
CHANGELOG and deprecation
1 parent 9622ecb commit 391e272

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

src/Symfony/Bridge/Twig/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
6.4
5+
---
6+
7+
* Allow an array to be passed as the first argument to the `importmap()` Twig function
8+
49
6.3
510
---
611

src/Symfony/Bridge/Twig/Extension/ImportMapRuntime.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ public function __construct(private readonly ImportMapRenderer $importMapRendere
2222
{
2323
}
2424

25-
public function importmap(string|array $entryPoint, array $attributes = []): string
25+
public function importmap(string|array|null $entryPoint = 'app', array $attributes = []): string
2626
{
27+
if (null === $entryPoint) {
28+
trigger_deprecation('symfony/twig-bridge', '6.4', 'Passing null as the first argument of the "importmap" Twig function is deprecated, pass an empty array if no entrypoints are desired.');
29+
}
30+
2731
return $this->importMapRenderer->render($entryPoint, $attributes);
2832
}
2933
}

src/Symfony/Component/AssetMapper/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ CHANGELOG
55
---
66

77
* Mark the component as non experimental
8+
* Add CSS support to the importmap
9+
* Add "entrypoints" concept to the importmap
10+
* Add `PreAssetsCompileEvent` event when running `asset-map:compile`
11+
* Add support for importmap paths to use the Asset component (for subdirectories)
12+
* Removed the `importmap:export` command
813
* Add a `importmap:install` command to download all missing downloaded packages
914
* Allow specifying packages to update for the `importmap:update` command
1015

0 commit comments

Comments
 (0)