Repository navigation
boring_lichterman
# Release Notes for Dinaank - Version 2.0.3 🎉
**Release Name:** boring_lichterman
**Repository:** [theboringhumane/dinaank](https://github.com/theboringhumane/dinaank)
**Date:** October 2023
---
## 🚀 New Features
### Enhanced Date/Time Selection 🌟
- **Time Picker Integration**: Introduced a new time picker component that allows users to select hours and minutes seamlessly. This feature enhances the overall user experience when selecting date and time together.
```javascript
import { DatePicker, TimePicker } from 'dinaank';
const App = () => (
<div>
<DatePicker />
<TimePicker />
</div>
);Improved Calendar Navigation 📅
- Keyboard Navigation: Users can now navigate through the calendar using keyboard arrows, making it more accessible and user-friendly.
Customizable Date Formats 🎨
- Date Format Options: Added options to customize the date format displayed in the picker, allowing for better localization and user preferences.
🐛 Bug Fixes
- Fixed Date Overflow: Resolved an issue where selecting dates beyond the current month would cause unexpected behavior in the calendar view.
- Time Picker Bug: Addressed a bug where the time picker would not reset correctly when switching between AM/PM.
⚡ Improvements
- Performance Optimization: Reduced the overall size of the library to 4.9kb gzipped, ensuring faster load times and better performance in applications.
- Refined Date Handling: Improved internal date handling logic to ensure more accurate date calculations and selections.
🔄 Breaking Changes
-
DateSelectorOptions Interface Update: The
DateSelectorOptionsinterface has been modified to include new properties for time selection. Ensure to update your implementations accordingly.interface DateSelectorOptions { dateFormat?: string; showTimePicker?: boolean; // New property timeFormat?: string; // New property }
📦 Installation Instructions
To install Dinaank, you can use npm, yarn, or include it via CDN:
Using npm:
npm install dinaankUsing yarn:
yarn add dinaankUsing CDN:
<script src="https://cdn.jsdelivr.net/npm/dinaank/dist/dinaank.min.js"></script>📈 Performance Metrics
- Library Size: 4.9kb gzipped
- Zero Dependencies: Dinaank remains a lightweight library with no external dependencies, ensuring easy integration into your projects.
🔒 Security Notes
- Date Handling: Ensure that any user input for dates is validated to prevent potential security issues related to date manipulation.
🙌 Contributors
A big thank you to all contributors for their efforts in enhancing the date/time selection features! Special thanks to those who submitted feature requests that inspired these updates.
📊 Calendar/Time Selection Flow
graph TD;
A[User opens Date Picker] --> B{Select Date};
B -->|Valid Date| C[Display Time Picker];
B -->|Invalid Date| D[Show Error Message];
C --> E[User selects Time];
E --> F[Confirm Selection];
F --> G[Display Selected Date and Time];Happy picking! 🎉 If you have any questions or feedback, feel free to reach out!