Skip to content

0.5.0

Latest
Compare
Choose a tag to compare
@rudrankriyam rudrankriyam released this 17 Oct 08:24
· 9 commits to main since this release

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 and GhostTag 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 the GhostContent 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:

  1. Update your package dependency to "0.5.0"
  2. Replace any usage of GhostPost with GhostContent
  3. 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!