Skip to content

0.9.0

Compare
Choose a tag to compare
@fpapado fpapado released this 20 Apr 07:43
· 10 commits to master since this release

Features:

  • The src and srcSet props given at the top-level component (LazyImage and LazyImageFull) now pass those props back in their render callbacks. The reasoning is to encourage consistency (if there is a mismatch, you can lose the benefits of the preloading).
  • The alt attribute for the final image is now accepted at the top-level. It is passed down to the render callbacks alongside src and srcSet.

None of those should be breaking, but it is recommended to change your components to use them, as they can prevent accidental errors.

Breaking Changes:

  • The Typescript types are correctly referenced in package.json. If you were using the library as described in the docs, you should be ok. But given that this wasn't enforced, I cannot safely describe this as non-breaking.

Docs/Infrastructure:

  • Our storybook setup also uses Typescript now.