You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ This serves two purposes:
62
62
- Removed the deprecated `BaseUrlNotSetException` class, with the `Hyde::url()` helper now returning `null` if no base URL is set in https://github.com/hydephp/develop/pull/1760
63
63
- Removed: The deprecated `PostAuthor::getName()` method is now removed (use `$author->name`) in https://github.com/hydephp/develop/pull/1782
64
64
- Internal: Removed the internal `DocumentationSearchPage::generate()` method as it was unused in https://github.com/hydephp/develop/pull/1569
65
+
- Removed the deprecated `FeaturedImage::isRemote()` method in https://github.com/hydephp/develop/pull/1883. Use `Hyperlinks::isRemote()` instead.
65
66
66
67
### Fixed
67
68
- Added missing collection key types in Hyde facade method annotations in https://github.com/hydephp/develop/pull/1784
@@ -342,6 +343,26 @@ For example, an empty or malformed JSON file will now throw an exception like th
342
343
In order to normalize the thrown exceptions, we now rethrow the `ParseException` from `Symfony/Yaml` as our custom `ParseException` to match the JSON and Markdown validation.
343
344
Additionally, an exception will be thrown if a data file is empty, as this is unlikely to be intentional. Markdown files can have an empty body if front matter is present.
344
345
346
+
### Removal of `FeaturedImage::isRemote()` method
347
+
348
+
The `FeaturedImage::isRemote()` method has been removed in v2.0. This method was deprecated in v1.8.0 and has now been completely removed.
349
+
350
+
#### Upgrade guide
351
+
352
+
If you were using `FeaturedImage::isRemote()` in your code, you should replace it with `Hyperlinks::isRemote()`. Here's how to update your code:
353
+
354
+
```php
355
+
// Old code
356
+
FeaturedImage::isRemote($source);
357
+
358
+
// New code
359
+
use Hyde\Foundation\Kernel\Hyperlinks;
360
+
361
+
Hyperlinks::isRemote($source);
362
+
```
363
+
364
+
This change was implemented in https://github.com/hydephp/develop/pull/1883. Make sure to update any instances of `FeaturedImage::isRemote()` in your codebase to ensure compatibility with HydePHP v2.0.
365
+
345
366
## New features
346
367
347
368
<!-- Editors note: Todo: Maybe move to the relevant docs... -->
@@ -241,15 +240,4 @@ protected function getContentLengthForRemoteImage(): int
241
240
242
241
return0;
243
242
}
244
-
245
-
/**
246
-
* @codeCoverageIgnore Deprecated method.
247
-
*
248
-
* @deprecated This method will be removed in v2.0. Please use `Hyperlinks::isRemote` instead.
249
-
*/
250
-
#[Deprecated(reason: 'Replaced by the \Hyde\Foundation\Kernel\Hyperlinks::isRemote method', replacement: '\Hyde\Foundation\Kernel\Hyperlinks::isRemote(%parametersList%)', since: '1.8.0')]
0 commit comments