Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.93 KB

File metadata and controls

46 lines (34 loc) · 1.93 KB

Changelog

All notable changes to @dharayush7/fireclass-react. Adheres to Keep a Changelog and Semantic Versioning.

[2.0.9] - 2026-07-10

Documentation

  • Rebuilt the README from the website React setup, realtime API, and complete realtime Todo guide.
  • Added Firebase Web app initialization, app-bound Fireclass setup, validated models, query/document hook state transitions, cleanup behavior, adapter capabilities, query serialization limits, and Security Rules guidance.
  • Removed npm, license, and type shield badges.

Changed

  • Expanded npm discovery metadata for React hooks, Firebase client Firestore, realtime subscriptions, typed models, Firestore ODM, validation, and queries.
  • Linked the npm homepage directly to the React API and included release documentation in the package contents.

Compatibility

  • No runtime API or behavior changed in this release.

[2.0.8] - 2026-07-09

First public release of the Fireclass suite's firebase client-SDK runtime with realtime React hooks. Depends on @dharayush7/fireclass-core ^2.0.8.

Added

  • createFireclass(firestore) — binds Fireclass to a client-SDK Firestore and returns { BaseModel, adapter, useQuery, useDoc }.
  • ClientAdapter — implements the core FirestoreAdapter over the firebase client SDK, including batchDelete (via writeBatch), aggregate count, and realtime subscribe / subscribeDoc (via onSnapshot).
  • useQuery(Model, options?) — live query hook returning hydrated instances, re-subscribing on change and cleaning up on unmount.
  • useDoc(Model, id) — live single-document hook.
  • Re-exports the full @dharayush7/fireclass-core API.
  • examples/vite-realtime — a runnable Vite + React realtime Todo app.
  • 19 tests: client-adapter translation (mocked firebase/firestore) and hook behavior (jsdom + Testing Library) including realtime updates and cleanup.