
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@schorts/firestore-dao
Advanced tools
This module provides a type-safe, domain-driven abstraction over Firestore persistence. It integrates tightly with the `Model`, `Entity`, `Criteria` and `UnitOfWork` constructs from the [Shared Kernel](https://www.npmjs.com/package/@schorts/shared-kernel)
This module provides a type-safe, domain-driven abstraction over Firestore persistence. It integrates tightly with the Model, Entity, Criteria and UnitOfWork constructs from the Shared Kernel, enabling expressive, consistent, and testable data access across bounded contexts.
npm install --save @schorts/firestore-dao
Firestore DAOs encapsulate all persistence logic for domain entities, including:
FirestoreUnitOfWork for atomicity.They are not responsible for business logic, validation, or orchestration — only persistence.
Each DAO implements the following shared kernel interfaces:
Model<Entity> - defines the contract for persistence operations.Entity - domain object with identity and behavior.UnitOfWork - optional batching mechanism for transactional consistency.import { initializeApp, getFirestore, EntityRegistry } from "@schorts/firestore-dao";
// You need to use the internal firebase/firestore packages and register you entity via EntityRegistry
EntityRegistry.register("users", User);
const user = new User({ id: "abc123", name: "Alice" });
await userDAO.create(user); // direct write
const uow = new FirestoreUnitOfWork(firestore);
await userDAO.create(user, uow); // batched write
await uow.commit();
const found = await userDAO.findByID("abc123");
const results = await userDAO.search(Criteria.where("status", "EQUAL", "active"));
EQUAL, IN, GREATER_THAN, etc.)distanceBetween.startAfter).status: "deleted".This layer reflects a commitment to:
FAQs
This module provides a type-safe, domain-driven abstraction over Firestore persistence. It integrates tightly with the `Model`, `Entity`, `Criteria` and `UnitOfWork` constructs from the [Shared Kernel](https://www.npmjs.com/package/@schorts/shared-kernel)
We found that @schorts/firestore-dao demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.