Introducing Wagtail TypeScript Client
Pre-release
Pre-release
Release Description:
We are excited to introduce version 1.0.0 of the wagtail-js
package! This release brings you a powerful TypeScript client that simplifies the process of fetching content from Wagtail-based Content Management Systems (CMS). With the wagtail-js
package, you can easily retrieve pages, images, and documents from your Wagtail CMS and handle responses and errors seamlessly.
Key Features:
- CMSClient Class: Create an instance of the
CMSClient
class to fetch content from your Wagtail CMS with ease. This class provides methods for fetching pages, images, documents, and more. - Content Fetching: Fetch various types of content, including pages, images, and documents, using intuitive method calls. The package handles response and error cases, making your development process smoother.
- Utility Functions: Use the provided utility functions for fetching content and constructing URLs for media items. These functions help streamline your requests and data handling.
- Types and Interfaces: The package offers a range of types and interfaces to enhance your interaction with CMS content and requests. Work with CMS data in a more structured and efficient manner.