Releases: dharayush7/fireclass
Releases · dharayush7/fireclass
Release list
v0.2.12
Release Notes
v0.2.12 (2025-12-03)
Summary
- Enhanced documentation with comprehensive examples showing proper class-validator decorator usage for all field types.
- Added required constructor pattern documentation for all extended classes.
- Improved developer experience with optional fields documentation and contact information.
What's New
- Complete Field Type Examples: Added comprehensive
TurfBookingexample demonstrating proper usage of:@IsDate()for Date fields@IsString()for string fields@IsArray()for array fields@IsObject()for object fields@IsBoolean()for boolean fields@IsOptional()for optional fields
- Constructor Pattern Documentation: All examples now clearly show the required constructor pattern:
constructor(data?: Partial<ClassName>) { super(data); Object.assign(this, data); }
- Optional Fields Guide: New section explaining how to properly mark and validate optional fields with
@IsOptional()decorator. - Contact & Support Section: Added developer contact information including portfolio, GitHub, and email.
Improvements
- Enhanced Code Examples: All code examples throughout the documentation now follow consistent patterns with proper decorators.
- Dependency Documentation: Clarified requirements for
class-validatorandclass-transformerwith detailed explanations. - Better Developer Onboarding: Improved documentation structure makes it easier for new users to understand proper usage patterns.
Breaking Changes
- None.
Upgrade Notes
- No code changes required. This is a documentation-only release.
- Ensure you're using the required constructor pattern in all your extended classes:
constructor(data?: Partial<YourClass>) { super(data); Object.assign(this, data); }
- Make sure all fields have appropriate
class-validatordecorators based on their types. - For optional fields, always use
@IsOptional()before other validation decorators.
Known Issues
- Complex
where + orderBycombos may require Firestore composite indexes.
v0.1.9
Release Notes
v0.1.9 (2025-11-30)
Summary
- Adds comprehensive documentation and examples to onboard users quickly.
- Confirms stable API for
getBaseModel,@Collectiondecorator, and typed queries.
What’s New
README.mdwith detailed integration forclass-validatorandclass-transformer.- API reference for
BaseModelmethods andQueryOptions<T>. - Practical examples (Express, Cloud Functions) and error handling strategies.
Improvements
- Clear validation flow using
validateOrRejectprior to writes. - Transformation pipeline with
plainToInstance,@Transform, and@Type. - Guidance for queries with
where,orderBy,limit, and index considerations.
Breaking Changes
- None.
Upgrade Notes
- No code changes required. Install the package and follow the
README.mdfor usage. - Ensure peer libraries align:
firebase-admin@^13.6.0class-validator@^0.14.3class-transformer@^0.5.1
Known Issues
- Complex
where + orderBycombos may require Firestore composite indexes.