Migrate from v1.x/v2.x to v3.x
developIf you are upgrading from an older version of simplyCountdown.js, note that jQuery support has been removed. To maintain compatibility in jQuery-based projects, switch from the jQuery plugin syntax to the vanilla JavaScript syntax.
Key changes in v3.x:
- No jQuery dependency: Use vanilla JS instead of
$(selector).simplyCountdown(). - TypeScript: The source is now written in TypeScript for better type safety.
- Module Formats: Distribution files now include ES, UMD, and CommonJS formats.
- Build Tooling: The project has migrated from Gulp to Vite.
// ❌ Old jQuery-compatible syntax (No longer supported)
$('.some-countdowns').simplyCountdown(options);
// ✅ New vanilla JavaScript syntax
simplyCountdown('.some-countdowns', options);