Skip to content

Commit d63aced

Browse files
committed
Fix wrong HydeFront version constant
1 parent 481eda1 commit d63aced

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/framework/src/Framework/Services/AssetService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
class AssetService
3232
{
3333
/** @var string The default HydeFront SemVer tag to load. This constant is set to match the styles used for the installed framework version. */
34-
final public const HYDEFRONT_VERSION = 'v2.0';
34+
final public const HYDEFRONT_VERSION = 'v3.0';
3535

3636
/** @var string The default HydeFront CDN path pattern. The Blade-style placeholders are replaced with the proper values. */
3737
final public const HYDEFRONT_CDN_URL = 'https://cdn.jsdelivr.net/npm/hydefront@{{ $version }}/dist/{{ $file }}';

packages/framework/tests/Unit/AssetServiceUnitTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected function setUp(): void
2222

2323
public function testVersionStringConstant()
2424
{
25-
$this->assertSame('v2.0', AssetService::HYDEFRONT_VERSION);
25+
$this->assertSame('v3.0', AssetService::HYDEFRONT_VERSION);
2626
}
2727

2828
public function testServiceHasVersionString()
@@ -55,7 +55,7 @@ public function testCanSetCustomCdnUrlInConfig()
5555
public function testCanUseCustomCdnUrlWithVersion()
5656
{
5757
self::mockConfig(['hyde.hydefront_url' => '{{ $version }}']);
58-
$this->assertSame('v2.0', (new AssetService())->cdnLink(''));
58+
$this->assertSame('v3.0', (new AssetService())->cdnLink(''));
5959
}
6060

6161
public function testCanUseCustomCdnUrlWithFile()
@@ -67,7 +67,7 @@ public function testCanUseCustomCdnUrlWithFile()
6767
public function testCanUseCustomCdnUrlWithVersionAndFile()
6868
{
6969
self::mockConfig(['hyde.hydefront_url' => '{{ $version }}/{{ $file }}']);
70-
$this->assertSame('v2.0/styles.css', (new AssetService())->cdnLink('styles.css'));
70+
$this->assertSame('v3.0/styles.css', (new AssetService())->cdnLink('styles.css'));
7171
}
7272

7373
public function testCanUseCustomCdnUrlWithCustomVersion()
@@ -82,7 +82,7 @@ public function testCanUseCustomCdnUrlWithCustomVersion()
8282
public function testCdnLinkHelper()
8383
{
8484
$this->assertSame(
85-
'https://cdn.jsdelivr.net/npm/hydefront@v2.0/dist/styles.css',
85+
'https://cdn.jsdelivr.net/npm/hydefront@v3.0/dist/styles.css',
8686
(new AssetService())->cdnLink('styles.css')
8787
);
8888
}

0 commit comments

Comments
 (0)