Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 2.15 KB

File metadata and controls

54 lines (40 loc) · 2.15 KB

Changelog

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

[2.0.9] - 2026-07-10

Documentation

  • Rebuilt the README from the website Express setup, Node API reference, Express CRUD guide, and migration guide.
  • Added complete Firebase Admin initialization, app-bound Fireclass setup, model/CRUD/query examples, AdminAdapter capabilities, and exact Express error middleware responses.
  • Documented direct SDK imports and removed npm, license, and type shield badges.

Changed

  • Expanded npm discovery metadata for Node.js, Express, Firebase Admin, Firestore ODM, serverless, typed CRUD, queries, and error middleware.
  • Linked the npm homepage directly to the Node/Express 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-admin runtime, replacing the deprecated @dharayush7/fireclass (v0.2.12). Depends on @dharayush7/fireclass-core ^2.0.8.

Added

  • createFireclass(firestore) — binds Fireclass to a firebase-admin Firestore and returns { BaseModel, adapter }.
  • AdminAdapter — implements the core FirestoreAdapter over firebase-admin, including batchDelete (500-write batches) and aggregate count.
  • fireclassErrorHandler() — Express error middleware mapping Fireclass errors to JSON responses (no express dependency).
  • getBaseModel(firestore) — drop-in alias for the deprecated package.
  • Re-exports the full @dharayush7/fireclass-core API (decorators, query types, errors, defineBaseModel).
  • examples/express-api — a runnable Express + Firestore CRUD API.
  • 19 tests, including an end-to-end suite that drives the core model API through the real AdminAdapter against an in-memory firebase-admin mock (no emulator).

Notes

  • Realtime subscriptions are intentionally not provided here; they belong to the client-SDK package (fireclass-react).
  • Query operator is equals (the deprecated docs incorrectly showed equal).