Incompatible patch versions
pavlikm opened this issue · 1 comments
pavlikm commented
Describe the bug
version 2.1.17 use in ILinkPreviewOptions attribute followRedirects as boolean, but in 2.1.19 is it declared as followRedirects?: 'follow' | 'error' | 'manual';
wich causing error Type 'true' is not assignable to type '"follow" | "error" | "manual"'
To Reproduce
Steps to reproduce the behavior:
await getLinkPreview(url, {timeout: 3000, followRedirects: 'follow'});
on version 2.1.17 worksawait getLinkPreview(url, {timeout: 3000, followRedirects: 'follow'});
on version 2.1.19 throws error
Expected behavior
Despite this version 2.1.19 is versioned as patch version, it must be backward compatible with older version 2.1.17. Otherwise please publish version 3.0.0
Additional context
semver.
ospfranco commented
Fine, I'll publish a new version