Releases: patelka2211/dynamic-colors
1.1.5 (Aug 6, 2023)
Made some improvements in HEX color validation code.
Full Changelog: v1.1.4...v1.1.5
1.1.4 (July 8, 2023)
Update
- Two new APIs
getCurrentOSTheme()andgetCurrentUITheme()and two new typesUIThemeandOSThemeare now available.
Full Changelog: v1.1.3...v1.1.4
1.1.3 (July 5, 2023)
Update
- Provided new
getInstanceByName()API. - Also provided
DynamicColorsTypetype (only for TypeScript). - Made major changes in code structure.
Full Changelog: v1.1.2...v1.1.3
1.1.2 (June 29, 2023)
Updates
This update comes with huge changes. The Material Dynamic Colors, on which the Dynamic Colors is dependent, is not tree-shakeable and is only available in ES6.
In this update, the Dynamic Colors is 55.34% smaller compared to the previous version. I've removed all the useless code from a copy of the Material Dynamic Colors, which is used in the Dynamic Colors.
Full Changelog: v1.1.1...v1.1.2
1.1.1 (June 28, 2023)
Updates
setAutoTheme()function now returns'light'or'dark'based on system preference.setLightTheme()function now returns'light'.setDarkTheme()function now returns'dark'.
Full Changelog: v1.1.0...v1.1.1
1.1.0 (June 27, 2023)
Update
- Provided new
isInstance()function which determines whether the given object is an instance ofDynamicColors. Returnstrueif the object is an instance ofDynamicColors, otherwisefalse. - Made some minor changes in
DynamicColorsclass.
Full Changelog: v1.0.4...v1.1.0
1.0.4 (June 22, 2023)
Update
- Removed unused code from the mdc.js (from v1.0.3) helper module, resulting in a code reduction of approximately 4kb.
Full Changelog: v1.0.3...v1.0.4
1.0.3 (June 20, 2023)
Update
Made structural changes in the IIFE file and some minor changes in codebase.
Full Changelog: v1.0.2...v1.0.3
1.0.2 (June 19, 2023)
Update
-
Renamed the APIs for better compatibility with other libraries in the future. The
DynamicColors()API is nowcreate(), and thedeleteDynamicColors()API is nowremove(). -
Added a new removal locking mechanism to prevent the removal of a specific
DynamicColors instancewhen needed. -
Introduced two additional methods,
restrictRemove()andallowRemove(), in theDynamicColorsclass. These methods enable restricting and allowing the removal of aDynamicColors instancebased on specific requirements.
Full Changelog: v1.0.1...v1.0.2
1.0.1 (June 17, 2023)
Updates
-
Improved functionality of
deleteDynamicColors()function:- The
deleteDynamicColors()function now has the capability to remove theDynamic color tagfrom its name, providing more flexibility and convenience in managing dynamic colors.
- The
-
Enhanced color generation for
Dynamic Color tag:- The
Dynamic Color taghas been upgraded to generate not only HEX colors but also RGB colors. This expansion allows for a wider range of color options, accommodating different color models and increasing compatibility with various systems and applications.
- The
These updates aim to enhance the overall usability and versatility of the deleteDynamicColors() function and the Dynamic Color tag, providing users with more options for color manipulation and customization.
Full Changelog: v1.0.0...v1.0.1