Releases: wanner-work/components
@wanner.work/box-2.0.0
[2.0.0] - 2024-05-25
Breaking
- Changed the width's values of all sizes to be more useful and visually pleasing.
- Changed the padding's values of all sizes to be more useful and visually pleasing.
Added
- Adding new width sizes:
content-small,content, andcontent-large. - Added the new
alignprop to align the box either to the left, center, or right.
Full Changelog: https://github.com/wanner-work/components/compare/@wanner.work/image-2.0.0...@wanner.work/box-2.0.0
@wanner.work/image-2.0.0
[2.0.0] - 2024-05-13
Breaking
- The cache configuration has moved from
useCacheandcacheMaxAge={...}on theImageProvidercomponent to the
cacheprop. Thecacheprop is an object with the following properties:enabled(boolean),maxAge(number), and
some new ones. (see below)
Added
- Added the option to set your own cache key per image. This makes sure, e.g. notion images can be cached as well, even
if the url, which is returned by the api, changes every single time even tho the image itself is the same. - Created a
useImagehook which handles all of the caching and loading if more flexibility is needed. - Exported useful methods
getImageDataURLandpreloadImage
Full Changelog: https://github.com/wanner-work/components/compare/@wanner.work/image-1.2.0...@wanner.work/image-2.0.0
@wanner.work/image-1.2.0
[1.2.0] - 2024-05-10
Added
- Added a new caching mechanism to the image component. The image will be cached in the browser after the first load and
displayed almost immediately. The cache will be cleared after a defined time.
Full Changelog: https://github.com/wanner-work/components/compare/@wanner.work/box-1.0.0...@wanner.work/image-1.2.0
@wanner.work/box-1.0.0
[1.0.0] - 2024-05-10
Added
- Initial release of the box component.
Full Changelog: https://github.com/wanner-work/components/compare/@wanner.work/image-1.1.2...@wanner.work/box-1.0.0
@wanner.work/image-1.1.2
Fixed
- Fixing infinite loop bug by adding useMemo in front of atom creation.
- Adding the loading state as dependency of the useEffect hook.
Full Changelog: https://github.com/wanner-work/components/compare/@wanner.work/image-1.1.1...@wanner.work/image-1.1.2
@wanner.work/image-1.1.1
Fixed
- Fixed bug where 'use client' would not be transpiled correctly by removing the terser plugin.
Documentation
- Added a note to the README.md that the package is a client component on Next.js.
- Added the issues and homepage url to the package.json.
Full Changelog: https://github.com/wanner-work/components/compare/@wanner.work/image-1.1.0...@wanner.work/image-1.1.1
@wanner.work/image-1.1.0
Added
- Added typescript transpilation to the build process with rollup but usage stays the same.
- Small change of project structure to make it more readable.
Removed
- Removed
bg-lightfrom code as it is not a default tailwind class.
Full Changelog: https://github.com/wanner-work/components/compare/@wanner.work/image-1.0.0...@wanner.work/image-1.1.0