PhantomKit 0.5.0 Release Notes
Content Retrieval
- Added support for fetching pages with
getPages()
method - Implemented tag retrieval functionality with
getTags()
method - Added author fetching capabilities with
getAuthors()
method
Improved Single Item Retrieval
- New methods for fetching specific posts by ID:
getPost(id:include:)
- Added functionality to fetch pages by slug:
getPageBySlug(slug:include:)
New Model Support
- Introduced
GhostContent
struct to represent both posts and pages - Added
GhostAuthor
andGhostTag
models - Implemented support for including related data (e.g., "authors,tags") in API calls
- Added pagination support across all list retrieval methods
Breaking Changes
- The
GhostPost
model has been replaced by theGhostContent
struct
Getting Started
Check out our updated README for installation instructions and new usage examples.
Upgrading from 0.1.0
To upgrade from the previous version:
- Update your package dependency to
"0.5.0"
- Replace any usage of
GhostPost
withGhostContent
- Explore the new methods for fetching pages, tags, and authors
Feedback
Please report any issues or feature requests on the GitHub issues page.
Thank you for using PhantomKit!