Skip to content

v1.0.0

Choose a tag to compare

@yuuues yuuues released this 12 Mar 09:47
· 11 commits to main since this release

Added

  • AdClient — framework-agnostic HTTP client for the Ad Server API.
  • AdProvider / useAdClient / useAdContext — React context for configuration.
  • useAd hook — fetch and manage ad data with loading/error states.
  • usePrefetchAd hook — warm cache without rendering.
  • AdUnit component — display ads with automatic impression and click tracking.
  • IntersectionObserver-based impression tracking.
  • sendBeacon with fetch fallback for reliable tracking.
  • Support for uploaded images and external image URLs.
  • Separate @yuuues/myadserver-sdk-react/core entry point for non-React usage.
  • ESM and CommonJS builds with TypeScript declarations.