diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 2d35ae03874..546f3b40aa8 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -24,6 +24,7 @@ This release is the first since the official release of HydePHP 1.0.0. It contai - Fixed https://github.com/hydephp/develop/issues/1316 in https://github.com/hydephp/develop/pull/1317 - Fixed https://github.com/hydephp/develop/issues/1318 in https://github.com/hydephp/develop/pull/1319 - Fixed https://github.com/hydephp/develop/issues/1320 in https://github.com/hydephp/develop/pull/1321 +- Fixed https://github.com/hydephp/develop/issues/1322 in https://github.com/hydephp/develop/issues/1323 - Added missing function imports in https://github.com/hydephp/develop/pull/1309 ### Security diff --git a/packages/framework/src/Framework/Services/AssetService.php b/packages/framework/src/Framework/Services/AssetService.php index 1ca3fb17529..61d84caa87b 100644 --- a/packages/framework/src/Framework/Services/AssetService.php +++ b/packages/framework/src/Framework/Services/AssetService.php @@ -31,7 +31,7 @@ class AssetService { /** @var string The default HydeFront SemVer tag to load. This constant is set to match the styles used for the installed framework version. */ - final public const HYDEFRONT_VERSION = 'v2.0'; + final public const HYDEFRONT_VERSION = 'v3.0'; /** @var string The default HydeFront CDN path pattern. The Blade-style placeholders are replaced with the proper values. */ final public const HYDEFRONT_CDN_URL = 'https://cdn.jsdelivr.net/npm/hydefront@{{ $version }}/dist/{{ $file }}'; diff --git a/packages/framework/tests/Unit/AssetServiceUnitTest.php b/packages/framework/tests/Unit/AssetServiceUnitTest.php index 4ab275e48dc..a5c9d768b71 100644 --- a/packages/framework/tests/Unit/AssetServiceUnitTest.php +++ b/packages/framework/tests/Unit/AssetServiceUnitTest.php @@ -22,7 +22,7 @@ protected function setUp(): void public function testVersionStringConstant() { - $this->assertSame('v2.0', AssetService::HYDEFRONT_VERSION); + $this->assertSame('v3.0', AssetService::HYDEFRONT_VERSION); } public function testServiceHasVersionString() @@ -55,7 +55,7 @@ public function testCanSetCustomCdnUrlInConfig() public function testCanUseCustomCdnUrlWithVersion() { self::mockConfig(['hyde.hydefront_url' => '{{ $version }}']); - $this->assertSame('v2.0', (new AssetService())->cdnLink('')); + $this->assertSame('v3.0', (new AssetService())->cdnLink('')); } public function testCanUseCustomCdnUrlWithFile() @@ -67,7 +67,7 @@ public function testCanUseCustomCdnUrlWithFile() public function testCanUseCustomCdnUrlWithVersionAndFile() { self::mockConfig(['hyde.hydefront_url' => '{{ $version }}/{{ $file }}']); - $this->assertSame('v2.0/styles.css', (new AssetService())->cdnLink('styles.css')); + $this->assertSame('v3.0/styles.css', (new AssetService())->cdnLink('styles.css')); } public function testCanUseCustomCdnUrlWithCustomVersion() @@ -82,7 +82,7 @@ public function testCanUseCustomCdnUrlWithCustomVersion() public function testCdnLinkHelper() { $this->assertSame( - 'https://cdn.jsdelivr.net/npm/hydefront@v2.0/dist/styles.css', + 'https://cdn.jsdelivr.net/npm/hydefront@v3.0/dist/styles.css', (new AssetService())->cdnLink('styles.css') ); }