scttcper/tinycolor

Backwards compatibility broken in 2.5.0

zawias-pro opened this issue ยท 3 comments

I used to import interfaces in my typescript app like this:

import { RGBA } from '@ctrl/tinycolor/interfaces';

but after upgrade to 2.5.0 I get an error:

TS2307: Cannot find module '@ctrl/tinycolor/interfaces'.

Imports must be changed manually:

import { RGBA } from '@ctrl/tinycolor/dist/interfaces';

I found this issue critical, because it can unexpectedly affect each TS app that have tinycolor as a dependency in following manner:

"@ctrl/tinycolor": "^2.2.1",

Like I used to have above entry in my package.json.

@zawias-pro okay that looks like it was a bug to begin with. All imports should be "@ctrl/tinycolor" fixed in latest soon

๐ŸŽ‰ This issue has been resolved in version 2.5.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€