Skip to content

cool_sanderson

Choose a tag to compare

released this 22 Feb 07:21
· 3 commits to refs/heads/master since this release

Release Notes for Dinaank - Version 2.0.5 🎉

Release Name: cool_sanderson
Repository: theboringhumane/dinaank
Version: 2.0.5


🚀 New Features

Enhanced Date/Time Selection 🌟

  • TypeScript Support: Updated TypeScript definitions to improve type safety and developer experience when using the date picker.
  • Rollup Configuration: Optimized Rollup configuration for better build performance and smaller bundle size.

Calendar Functionality Improvements 📅

  • Custom Date Formats: Users can now specify custom date formats in the date picker, enhancing flexibility for various use cases.
  • Time Picker Integration: Introduced a time picker component that allows users to select both date and time seamlessly.
import { DatePicker } from 'dinaank';

const datePicker = new DatePicker({
  format: 'MM/DD/YYYY',
  showTime: true,
  onChange: (date) => {
    console.log('Selected date and time:', date);
  }
});

🐛 Bug Fixes

  • Date Parsing Issues: Resolved issues with date parsing that could lead to incorrect date selections.
  • Time Zone Handling: Fixed bugs related to time zone discrepancies when selecting dates across different locales.

⚡ Improvements

  • Performance Optimization: The library size is now only 4.9kb gzipped, ensuring fast load times and better performance in applications.
  • User Interface Enhancements: Improved the visual design of the calendar and time picker for a more engaging user experience.

🔄 Breaking Changes

  • DateSelectorOptions Interface: The DateSelectorOptions interface has been updated to include new properties for custom date formats and time picker options. Ensure to update your implementations accordingly.
interface DateSelectorOptions {
  format?: string; // Custom date format
  showTime?: boolean; // Enable time selection
}

📦 Installation Instructions

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

NPM

npm install dinaank

Yarn

yarn add dinaank

CDN

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

🔒 Security Notes

  • Ensure that any date handling in your application accounts for potential security vulnerabilities, such as date manipulation attacks. Always validate and sanitize user inputs.

🤝 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

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

📈 Visualizing Date/Time Selection Flow

graph TD;
    A[User Interaction] --> B[Open Date Picker];
    B --> C[Select Date];
    C --> D[Open Time Picker];
    D --> E[Select Time];
    E --> F[Confirm Selection];
    F --> G[Display Selected Date/Time];

Thank you for using Dinaank! We hope you enjoy the new features and improvements. Happy coding! 🎨⏰