Skip to content

busy_thompson

Choose a tag to compare

released this 19 Feb 07:16
· 4 commits to refs/heads/master since this release
08744a2

Release Notes for Dinaank - Version 2.0.4 🎉

Release Name: busy_thompson
Repository: theboringhumane/dinaank
Version: 2.0.4


🚀 New Features

Enhanced Date/Time Selection 🌟

  • Calendar View Improvements: The calendar view has been revamped for better usability, allowing users to navigate through months and years more intuitively.
  • Time Picker Integration: A new time picker component has been added, enabling users to select both date and time seamlessly. This feature supports 12-hour and 24-hour formats.
import { DatePicker } from 'dinaank';

const datePicker = new DatePicker({
  enableTime: true,
  timeFormat: '24', // Options: '12' or '24'
});

Date Handling Enhancements 📅

  • Timezone Support: The date picker now supports timezone selection, allowing users to pick dates and times in their local timezone.
  • Custom Date Formats: Users can now specify custom date formats for display, enhancing flexibility in date representation.
const datePicker = new DatePicker({
  dateFormat: 'MM/DD/YYYY', // Custom format
});

🐛 Bug Fixes

  • Fixed Calendar Navigation: Resolved an issue where navigating between months would sometimes display incorrect dates.
  • Time Picker Bug: Addressed a bug that caused the time picker to not display the correct AM/PM designation in certain locales.

⚡ Improvements

  • Performance Optimization: Reduced the library size to 4.9kb gzipped, ensuring faster load times and better performance.
  • Accessibility Enhancements: Improved keyboard navigation and screen reader support for better accessibility compliance.

🔄 Breaking Changes

  • DateSelectorOptions Interface Update: The DateSelectorOptions interface has been modified to include new properties for timezone and custom date formats. Ensure to update your implementations accordingly.
interface DateSelectorOptions {
  enableTime?: boolean;
  timeFormat?: '12' | '24';
  timezone?: string; // New property
  dateFormat?: string; // New property
}

📦 Installation Instructions

You can install Dinaank via npm, yarn, or CDN:

Using npm:

npm install dinaank

Using yarn:

yarn add dinaank

Using CDN:

<script src="https://cdn.jsdelivr.net/npm/dinaank/dist/dinaank.min.js"></script>

🔒 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 features! Special thanks to those who submitted feature requests that inspired these updates.


📊 Performance Metrics

  • Library Size: 4.9kb gzipped
  • Zero Dependencies: Dinaank remains a lightweight library with no external dependencies, ensuring a smooth integration into your projects.

📈 Visualizing Date/Time Selection Flow

graph TD;
    A[User opens Date Picker] --> B{Select Date};
    B -->|Click on Calendar| C[Choose Date];
    B -->|Click on Time| D[Choose Time];
    C --> E[Confirm Selection];
    D --> E;
    E --> F[Display Selected Date/Time];

Enjoy using Dinaank for all your date and time selection needs! 🎨✨