Skip to content

Releases: wanner-work/components

@wanner.work/box-2.0.0

25 May 01:34

Choose a tag to compare

[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, and content-large.
  • Added the new align prop 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

13 May 10:24

Choose a tag to compare

[2.0.0] - 2024-05-13

Breaking

  • The cache configuration has moved from useCache and cacheMaxAge={...} on the ImageProvider component to the
    cache prop. The cache prop 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 useImage hook which handles all of the caching and loading if more flexibility is needed.
  • Exported useful methods getImageDataURL and preloadImage

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

10 May 13:07

Choose a tag to compare

[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

10 May 02:21

Choose a tag to compare

[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

04 May 01:10

Choose a tag to compare

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

04 May 00:59

Choose a tag to compare

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

04 May 00:13

Choose a tag to compare

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-light from 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

@wanner.work/image-1.0.0

03 May 12:56

Choose a tag to compare