UNPKG

tiny-essentials

Version:

Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.

24 lines (19 loc) 1.67 kB
## ✨ New Classes Added - `TinyRadioFm` 📻: A deterministic, seed-based radio management system that handles complex, reproducible playback sequences for both music and voice streams. - `TinyMediaPlayer` 🎵: A universal media player manager that uses the Adapter Pattern to orchestrate playback across various providers (such as YouTube or Spotify) through a single interface. - `TinyPluginInliner` 🔌: A build-time utility that inlines plugins into a single, self-contained bundle, automatically rewriting import paths and hoisting dependencies for easier deployment. ## 🛠️ Core Updates - `TinyClassManager` has been updated. ⚙️ ## ⚠️ Important: Breaking Changes & Type Enhancements We have implemented the `@template` annotation in jsDoc for the following classes. This allows for much better type safety and support for generic types (for example, using `Example<string>`). Due to this improvement, some constructors have been modified. **Please review these changes carefully:** - `TinySmartScroller`: The `target` property has been renamed to `targetElement`. 🎯 - `TinyElementObserver`: You must now define the element within the constructor. 👁️ - `TinyDragger`: The constructor now accepts `HTMLElement` only. 🖱️ - `TinyDragDropDetector`: `isFullScreen` has been removed, and `target` is now handled as a separate value. 🖱️ - `TinyAfterScrollWatcher`: No changes. ✅ - `TinyArrayPaginator`: No changes. ✅ - `TinyArrayComparator`: No changes. ✅ ## 📝 TinyHtml Updates - `autoStartElemObserver` has been removed. 🗑️ - `#tinyObserver` will now only be instantiated if the environment is detected as a browser. 🌐