All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.31.4 - 2025-02-14
- Removes latency before displaying images and videos in React Native components on iOS/Android.
- Fixes React Native (120) causing
RangeError
when lazy loading a large number of images or videos.
0.31.3 - 2025-02-11
- Fixes import issue in SvelteKit projects causing
ts(2307)
errors. - Fixes typing issue in SvelteKit components.
0.31.2 - 2025-01-20
- Updates dependencies for sample and unit test projects.
- Fixes the issue where
class
was applied twice in Svelte components.
0.31.1 - 2024-11-10
- Fixes Hydration Warnings in Next.
0.31.0 - 2024-10-11
- Adds support for generic HTML attributes
aria-*
: Improves accessibility by allowing ARIA attributes.crossorigin
: Controls the resource fetch mode for images and videos.draggable
: Enables or disables dragging functionality.id
: Provides unique DOM identification.role
: Defines ARIA roles for better accessibility.style
: Allows inline CSS styling.tabindex
: Controls keyboard navigation for focusable elements.decoding
: Manages the image decoding strategy (only forTwicImg
andTwicPicture
).referrerpolicy
: Sets referrer policies when fetching images (only forTwicImg
andTwicPicture
).
-
Updates sample projects dependencies.
-
TwicImg and TwicPicture now have a default
role
ofimg
.
0.30.0 - 2024-07-26
- Enables the
preTransform
property for art direction inTwicPicture
.
- Fixes the issue that prevents resetting focus in
TwicPicture
when using art directives.
0.29.3 - 2024-07-12
- Adds support for Angular 18.
- Fixes
--twic-mode
not being taken into account.
0.29.2 - 2024-06-21
- Fixes lazy loading performance issue in React Native #103.
0.29.1 - 2024-05-02
- Updates sample projects dependencies.
- Fixes
Invalid Dom Property
warning for the ReactTwicPicture
.
0.29.0 - 2024-04-08
- Adds image caching support for React Native.
0.28.1 - 2024-03-26
- Fixes
domain
validation when usingTwicInstall
in production projects.
0.28.0 - 2024-03-04
- Adds support for Svelte5.
0.27.2 - 2024-02-05
-
Makes
debug
mode display the actual loaded URL in React Native. -
Updates React Native sample dependencies.
- Fixes
Invalid Dom Property
warning for the ReactTwicPicture
component under development environment.
0.27.1 - 2024-01-24
- TwicPics Components for React throws null ref error when using
Strict Mode
indevelopment
environment.
0.27.0 - 2024-01-22
- Adds new
<TwicPicture>
component, a drop-in replacement for thepicture
tag, compatible with all frameworks except Flutter and React Native.
- Updates samples dependencies.
- Hydration warning message when using Next in
dev
mode.
0.26.0 - 2023-11-21
- Adds support for Angular 17.
0.25.1 - 2023-11-10
-
Imports Nuxt composables from #imports.
-
Styles now persist throughout Astro3
View Transitions
.
- Updates dependencies.
0.25.0 - 2023-11-02
- Adds video support in React Native components.
- Updates Next samples dependencies up to Next14.
0.24.0 - 2023-10-25
- Removes dependency on
prop-types
library in React components.
0.23.2 - 2023-10-12
- Makes
alt
property default value an empty string in order to indicates AT that the image can be safely ignored.
0.23.1 - 2023-09-29
- Updates samples dependencies.
- Fixes excessive package size.
0.23.0 - 2023-09-26
- Migrates from TypeScript 4 to TypeScript 5.
- Updates samples dependencies.
- Now uses
Vite
to build theReact
sample project.
- Adds missing
Types
entries topackage.json
.
0.22.3 - 2023-09-19
- Updates brand: TwicPics becomes TwicPics by Frontify.
0.22.2 - 2023-09-11
- Fix issue with regeneration of Low-Quality Placeholder when property values are updated.
0.22.1 - 2023-09-04
- Export components property types in React.
- Export
Environment
type in Angular.
- Upgrade dependencies.
- Fix display issue of images on Android in React Native.
0.22.0 - 2023-08-03
- Adds lazy loading support in React Native components.
0.21.1 - 2023-07-27
- Fix typing issues in Svelte4 projects.
0.21.0 - 2023-07-25
- Adds support for Svelte4.
- Simplify LQIP data retrieval by using
inspect
route in React Native.
- Fix blinking issue in React Native.
0.20.0 - 2023-07-13
- Adds
refit
property toTwicImg
that allows to automatically reframe image to main object(s).
- Upgrade dependencies.
- Fix React Native sample project launch issue on macOS.
- Fix type definitions in React and Svelte.
0.19.0 - 2023-06-13
- Adds support for React Server Components and Next.js App Router.
0.18.0 - 2023-06-01
- Adds support for Angular 16+
- Make TwicPics Placeholders usable as
src
inTwicImg
.
- Rework SvelteKit components builder to align with @sveltejs/package 2.0.0.
- Upgrade dependencies.
- No longer generate
LQIP
whensrc
is not set.
0.17.3 - 2023-04-22
- No longer use direct access to the public runtime config in
Nuxt3
module.
0.17.2 - 2023-04-19
- Adds control over
domain
andpath
values when using the Next.js Image component.
- Fix placeholder display when a
path
value is provided during installation.
0.17.1 - 2023-04-14
- Improve magnifier UX on touch screens by allowing continuous movement even when the finger is no longer on the image container.
0.17.0 - 2023-04-12
- Adds
duration
,from
,posterFrom
andto
properties to TwicVideo component in order to manage video slicing. - Adds support for Angular 15+
- Reduce unpacked size by replacing superfluous versions of Angular with aliases to reference versions.
0.16.1 - 2023-03-27
- Fix zoom of translucent images.
- No longer activate the magnifier when
zoom
prop is not defined for the Vue.js components. - No longer generate the placeholder div when the
placeholder
property is set tonone
. - No longer take into account TouchEvents outside the image area while using the magnifier.
0.16.0 - 2023-03-21
- Adds new
TwicBackground
component that allows to display a background image in any HTML element. - Adds
title
property that allows to handle title global attribute. - Adds
zoom
property toTwicImg
that allows to display a lazy loaded and enlarged image onmouseover
event.
- Remove components factories and splits into several specialized ones (
TwicBackground
,TwicImg
andTwicVideo
). - Upgrade dependencies.
- Fix missing
twic-i
andtwic-d
classes in Web Components. - Fix
ratio
property typing in React components.
0.15.1 - 2023-02-01
- Make the configuration of components global so that components can be used in different frameworks simultaneously.
- Upgrade dependencies (Nuxt.js up to 3.1.1).
0.15.0 - 2023-01-20
- Adds support for SvelteKit.
- Simplify Svelte3 components generation using svelte:element. Requires Svelte3.47+.
- Update documentation with new online demos.
- Upgrade dependencies (Next.js up to 13.1).
- Upgrade dependencies (Svelte up to 3.55).
- Fix typing of Svelte components.
0.14.2 - 2022-12-21
- Adds
Anchor
type export to Angular components. - Adds
center
to the list of possible values for theanchor
property.
0.14.1 - 2022-12-08
- Fix the issue that prevents React + typescript projects from being compiled.
- Update Next.js documentation.
0.14.0 - 2022-11-29
- Adds a custom loader for Next.js Image
- Adds alias for installation function: both
installTwicpics
andinstallTwicPics
can be used
- Upgrade dependencies (Svelte up to 3.53.1)
0.13.1 - 2022-11-17
- Updates documentation and sample code following the release of Nuxt3.0.0
- Fixes React Native documentation
- Fixes the problem preventing the Nuxt3 module from working with Nuxt3.0.0-rc.14
0.13.0 - 2022-11-14
- Adds
TwicImg
support for React Native
- Eliminates excess slashes in the path and domain values configured when setting up components
- Upgrade dependencies (Gatsby.js up to 5.0.1)
- Upgrade dependencies (Next.js up to 13.0.0)
- Upgrade dependencies (Svelte up to 3.52.0)
- Fixes the issue preventing the use of twic-components within a shadow-dom.
0.12.0 - 2022-10-12
- Adds automatic poster generation for
<TwicVideo>
- Adds
eager
prop to disable lazy loading on<TwicImg>
and<TwicVideo>
- Adds new
<TwicView>
component that eager loads all its children in bulk as soon as the TwicView itself becomes visible
- Refactoring to remove shadow DOM generation for Web Components
- Upgrade dependencies
0.11.0 - 2022-09-29
- Adds API to listen to the loading state of images and videos.
- Adds some video samples.
- Upgrade dependencies.
- Fix transient image flickering on resize
0.10.0 - 2022-09-07
- Adds
intrinsic
attribute to prevent upscaling and limit number of variants.
- Preview
URL
no longer uses the alternative format for better cache invalidation efficiency.
- Fixes placeholder loading error when asset URL starts with more than one slash.
- Fixes the problem preventing the
Nuxt3
module from working with RC versions ofNuxt3
.
0.9.1 - 2022-08-23
- Fix broken regexp in Safari
0.9.0 - 2022-08-17
- Adds
anchor
attribute to position image in bothcontain
andcover
mode - Adds
bot
attribute to specify SEO-friendly transformations for search engine bots - Adds support for Angular 14+
ratio
can now be specified as<width>:<height>
in addition to<width>/<height>
- Breaking:
focus
is now applied afterpreTransform
- No longer removes Angular template dependencies after building components
- Upgrade dependencies and documentation
- Fix an issue that made the placeholder visible under some transparent images
- Fix subpixel bleed-through
0.8.2 - 2022-06-27
- Remove
console.log
on components initialization
0.8.1 - 2022-06-06
- Domain URL now allow trailing slash
- Component wrapper now behaves like a normal div in Angular
0.8.0 - 2022-05-12
- Aspect ratio can now be managed via the container dimensions
- Adds demo link to Svelte 3 documentation
- Improve configuration for
transition
attribute - Remove useless
div
in angular component - Upgrade dependencies version
- Fix issue when testing inside storybook
0.7.0 - 2022-05-06
- Adds support for Nuxt 3
- Adds
preTransform
attribute to configure a list of TwicPics API transformations - Allow runtime environment configuration (
offline
,debug
orproduction
by default)
src
attribute is now optional (a red placehold is displayed when missing)- Improve
transition
attribute configuration
- Fix potential undefined
class
in React and Svelte
0.6.6 - 2022-04-29
- Improve style isolation for components
- Fix a refresh issue with Angular
0.6.5 - 2022-04-28
- Adds demo link to the
Nuxt 2
documentation - Adds
path
to the initialization parameter list
0.6.4 - 2022-04-25
- Adds demo link to the Vue 2 documentation
- Fix
esm
version importation
0.6.3 - 2022-04-15
- Adds demo link to the Angular documentation
- Adds
Mode
andPlaceholder
types exports to Angular components - Adds
zoom
as atransition
value
0.6.2 - 2022-03-21
- New framework-specific documentation
- Adds support for Gatsby
- Upgrade dependencies version
0.6.1 - 2022-03-01
- Simplify integration with Nuxt 2
- Remove
className
attribute in Angular
className
attribute is now applied to wrapper div in React and Svelte 3- Fix type validation of transition attributes in React, Vue 2, and Vue 3
- Transitions can now properly be disabled
0.6.0 - 2022-02-04
- Support for Angular 11
- Drastically decrease the size of all Angular built files
- Fix aspect ratio not being respected in CSS grids
- No longer generating empty CSS property values in SRR
- No longer generating
background-image: undefined
when placeholder isnone
in Svelte
0.5.2 - 2022-01-27
- CSS property names are no longer camel-cased in Svelte 3
0.5.1 - 2022-01-20
- Adds warning message in the browser console when components not initialized
placeholder="none"
no longer corrupts background URLs that generated404
responses
0.5.0 - 2022-01-12
- Adds support for Angular 12+
- Allow to style components using pure CSS
- Allow passing
className
props to React (and Next) and Svelte 3 components
- Breaking: remove
width
andheight
attributes
- Fix server-side
install function already called
error that happened with Next - Using custom class with
installTwicPics
now work as intended
0.4.1 - 2021-10-09
- Breaking: remove
<noscript>
tags generation in SSR mode (Hydration is too heavy-handed in most frameworks)
0.4.0 - 2021-10-07
- Clarify the documentation regarding transition-related attributes
- Component names can now be changed in Vue
- Adds support for native Web Components
- Breaking: Per framework styles unified in a single style sheet (eg.
react/style.css
,vue2/style.css
etc. ->style.css
) - Decrease footprint of TypeScript definitions
- Fix
<noscript>
tag generation in Nuxt - Silence hydration warnings due to
<noscript>
tags in Next
0.3.1 - 2021-09-29
- Fix module resolution for Next
0.3.0 - 2021-09-27
- Adds example usages for all frameworks
- Adds TypeScript definitions for all frameworks
- Adds
<noscript>
tags generation in SSR mode
0.2.1 - 2021-07-28
- Fix default placeholder value for Svelte 3
0.2.0 - 2021-07-28
- Adds support for Svelte 3
- Decrease footprint of all components
0.1.0 - 2021-07-27
- Support for React, Next, Vue 2, Vue 3, and Nuxt 2