Skip to content

Releases: patelka2211/dynamic-colors

1.1.5 (Aug 6, 2023)

06 Aug 14:17
Compare
Choose a tag to compare

Made some improvements in HEX color validation code.

Full Changelog: v1.1.4...v1.1.5

1.1.4 (July 8, 2023)

07 Jul 20:58
Compare
Choose a tag to compare

Update

  • Two new APIs getCurrentOSTheme() and getCurrentUITheme() and two new types UITheme and OSTheme are now available.

Full Changelog: v1.1.3...v1.1.4

1.1.3 (July 5, 2023)

04 Jul 20:05
Compare
Choose a tag to compare

Update

  • Provided new getInstanceByName() API.
  • Also provided DynamicColorsType type (only for TypeScript).
  • Made major changes in code structure.

Full Changelog: v1.1.2...v1.1.3

1.1.2 (June 29, 2023)

29 Jun 09:51
Compare
Choose a tag to compare

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)

28 Jun 06:57
Compare
Choose a tag to compare

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)

27 Jun 09:55
Compare
Choose a tag to compare

Update

  • Provided new isInstance() function which determines whether the given object is an instance of DynamicColors. Returns true if the object is an instance of DynamicColors, otherwise false.
  • Made some minor changes in DynamicColors class.

Full Changelog: v1.0.4...v1.1.0

1.0.4 (June 22, 2023)

22 Jun 05:53
Compare
Choose a tag to compare

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)

19 Jun 19:05
Compare
Choose a tag to compare

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)

18 Jun 19:58
Compare
Choose a tag to compare

Update

  1. Renamed the APIs for better compatibility with other libraries in the future. The DynamicColors() API is now create(), and the deleteDynamicColors() API is now remove().

  2. Added a new removal locking mechanism to prevent the removal of a specific DynamicColors instance when needed.

  3. Introduced two additional methods, restrictRemove() and allowRemove(), in the DynamicColors class. These methods enable restricting and allowing the removal of a DynamicColors instance based on specific requirements.

Full Changelog: v1.0.1...v1.0.2

1.0.1 (June 17, 2023)

17 Jun 16:12
Compare
Choose a tag to compare

Updates

  1. Improved functionality of deleteDynamicColors() function:

    • The deleteDynamicColors() function now has the capability to remove the Dynamic color tag from its name, providing more flexibility and convenience in managing dynamic colors.
  2. Enhanced color generation for Dynamic Color tag:

    • The Dynamic Color tag has 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.

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