Skip to content

Commit

Permalink
v0.54.0-beta - 2022-08-01
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Aug 1, 2022
1 parent b4bd910 commit 07faf13
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 31 deletions.
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,49 @@ HydePHP consists of two primary components, Hyde/Hyde and Hyde/Framework. Develo

<!-- CHANGELOG_START -->

## [v0.54.0-beta](https://github.com/hydephp/develop/releases/tag/v0.54.0-beta) - 2022-08-01

### About

This release refactors and cleans up a large part of the internal code base. For most end users, this will not have any visible effect. If you have developed integrations that depend on methods you may want to take a closer look at the associated pull requests as it is not practical to list them all here.

#### Overview

Here is a short overview of the areas that are impacted. If you don't know what any of these mean, they don't affect you.

- HydeKernel has been internally separated into foundation classes
- DiscoveryService has been refactored
- Page compiling logic are now handled within the page models


### Added
- internal: Adds methods to the HydeKernelContract interface
- Added new filesystem helpers, `Hyde::touch()`, and `Hyde::unlink()`

### Changed
- internal: The HydeKernel has been refactored to move related logic to service classes. This does not change the end usage as the Hyde facade still works the same
- `DiscoveryService::getSourceFileListForModel()` now throws an exception instead of returning false when given an invalid model class
- `DiscoveryService::getFilePathForModelClassFiles` method was renamed to `DiscoveryService::getModelSourceDirectory`
- `DiscoveryService::getFileExtensionForModelFiles` method was renamed to `DiscoveryService::getModelFileExtension`
- The `Hyde::copy()` helper now always uses paths relative to the project
- The `Hyde::copy()` helper will always overwrite existing files
- Replaced `SitemapService::canGenerateSitemap()` with `Features::sitemap()`
- Replaced `RssFeedService::canGenerateFeed()` with `Features::rss()`
- RSS feed is now always present on all pages, see reasoning in [`a93e30020`](https://github.com/hydephp/develop/commit/a93e30020e2a791398d95afb5da493285541708a)

### Deprecated
- Deprecated trait `HasMarkdownFeatures.php`

### Removed
- Removed deprecated `Hyde::uriPath()` helper
- Removed deprecated `CollectionService::findModelFromFilePath()`


### Upgrade tips

When refactoring the Hyde::copy() helper change, you have two options (that you can combine). If one or more of your inputs are already qualified Hyde paths, use the native copy helper. If you don't want to overwrite existing files, make that check first.


## [v0.53.0-beta](https://github.com/hydephp/develop/releases/tag/v0.53.0-beta) - 2022-07-30

### About
Expand Down
35 changes: 8 additions & 27 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,27 @@

### About

This release refactors and cleans up a large part of the internal code base. For most end users, this will not have any visible effect. If you have developed integrations that depend on methods you may want to take a closer look at the associated pull requests as it is not practical to list them all here.
Keep an Unreleased section at the top to track upcoming changes.

#### Overview

Here is a short overview of the areas that are impacted. If you don't know what any of these mean, they don't affect you.

- HydeKernel has been internally separated into foundation classes
- DiscoveryService has been refactored
- Page compiling logic are now handled within the page models
This serves two purposes:

1. People can see what changes they might expect in upcoming releases
2. At release time, you can move the Unreleased section changes into a new release version section.

### Added
- internal: Adds methods to the HydeKernelContract interface
- Added new filesystem helpers, `Hyde::touch()`, and `Hyde::unlink()`
- for new features.

### Changed
- internal: The HydeKernel has been refactored to move related logic to service classes. This does not change the end usage as the Hyde facade still works the same
- `DiscoveryService::getSourceFileListForModel()` now throws an exception instead of returning false when given an invalid model class
- `DiscoveryService::getFilePathForModelClassFiles` method was renamed to `DiscoveryService::getModelSourceDirectory`
- `DiscoveryService::getFileExtensionForModelFiles` method was renamed to `DiscoveryService::getModelFileExtension`
- The `Hyde::copy()` helper now always uses paths relative to the project
- The `Hyde::copy()` helper will always overwrite existing files
- Replaced `SitemapService::canGenerateSitemap()` with `Features::sitemap()`
- Replaced `RssFeedService::canGenerateFeed()` with `Features::rss()`
- RSS feed is now always present on all pages, see reasoning in [`a93e30020`](https://github.com/hydephp/develop/commit/a93e30020e2a791398d95afb5da493285541708a)
- for changes in existing functionality.

### Deprecated
- Deprecated trait `HasMarkdownFeatures.php`
- for soon-to-be removed features.

### Removed
- Removed deprecated `Hyde::uriPath()` helper
- Removed deprecated `CollectionService::findModelFromFilePath()`
- for now removed features.

### Fixed
- for any bug fixes.

### Security
- in case of vulnerabilities.


### Upgrade tips

When refactoring the Hyde::copy() helper change, you have two options (that you can combine). If one or more of your inputs are already qualified Hyde paths, use the native copy helper. If you don't want to overwrite existing files, make that check first.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"name": "hyde",
"description": "Elegant and Powerful Static App Builder",
"version": "0.53.0",
"version": "0.54.0",
"main": "hyde",
"directories": {
"test": "tests"
Expand Down
2 changes: 1 addition & 1 deletion packages/hyde/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
"require": {
"php": "^8.0",
"hyde/framework": "^0.53",
"hyde/framework": "^0.54",
"laravel-zero/framework": "^9.1"
},
"require-dev": {
Expand Down

0 comments on commit 07faf13

Please sign in to comment.