Skip to content

Latest commit

 

History

History
408 lines (245 loc) · 25.6 KB

CHANGELOG.md

File metadata and controls

408 lines (245 loc) · 25.6 KB

Changelog

Improvements

  • chore: updated dev and example packages (b534f4f).
  • chore: removed husky, added lefthook (f6d0745).
  • chore: prettified, linted and a-b sorted some props (708340d).
  • chore: renamed animated style variables for better readability (3b7486b).
  • chore: updated CHANGELOG.md (2c019c1).
  • chore: added 408, 500 & 503 error codes in the retry function (e823000).
  • chore: use root on lefthook for example run (66e04eb).
  • chore: use forEach instead of map in prefetch function (9ab5e91).
  • chore: yarn prettier now runs first on lefthook example run to avoid eslint issues afterwards (5169b0e).

Documentations

  • docs: added imageStyle prop and info about supporting local images (23e2a70).

v2.9.0 - 2023-08-10

Improvements

  • chore: updated dev and example packages (eba84f1).

Documentations

  • docs: added supports new Arch in Features (bd859ef).

v2.8.0 - 2023-08-07

Improvements

  • chore: updated dev and example packages (8633bbb).
  • chore: import useRef instead of React.useRef (d02ea03).

v2.7.0 - 2023-07-31

Improvements

  • chore: updated CHANGELOG.md (4b01561).

Fixes

  • fix: allow 0 as an animation duration on both source and thumbnail (071941c).

v2.6.0 - 2023-07-31

Improvements

v2.5.0 - 2023-06-12

Improvements

  • chore: updated dev end example packages (d2359c1).

v2.4.0 - 2023-05-12

Improvements

  • chore: updated example to [email protected] and dev packages (c512549).
  • chore: prettified files (3288507).
  • chore: added nullish check on sourceAnimationDuration from global config (f75ce87).
  • chore: added tintColor prop on source image (8c91921).
  • chore: added missing / on bugs.url on package.json (52cd27e).
  • chore: added missing comma on package.json (457fcff).
  • chore: updated eslint rules (232564d).

Fixes

  • fix: move reanimated to dev dependencies (4066952).

  • fix: use options for thumbnails & support token refresh

  • Use options for thumbnails as well: Options property are used only for source image. So, if you have any required header or option to get thumbnail images from whatever backend you're using, it'll silently fail.

  • Support refresh on token update Cache Manager is being instanced once and only registering uris and options by source URL. So, if you have the same URL being called from different places across the app, you may face at some point that your images won't load since they have been stored by URL (which is the same) and with the first option that Cache Manager received; so you may already got the idea but to summarize you're not getting your images because the token that Cache Manager is using has expired and it's not being updated. (6c21996).

Documentations

  • docs: update README.md

added buy me a coffee link (2982b22).

v2.3.0 - 2022-08-09

Features

  • feat: Prefetch image and return the base64/blob string (47d537a).

Improvements

  • chore: updated dev and example packages (2f23710).
  • chore: updated dev and example packages (6f90b01).
  • chore: updated dev and example packages (4257f05).
  • chore: updated CHANGELOG.md to include getCustomCacheKey new config (977ddd6).

v2.2.0 - 2022-06-20

Improvements

  • chore: updated dev packages (0e87709).
  • chore: updated example packages, added routes.tsx on .eslintignore (859a880).
  • chore: linted example and fixed a typo in a comment (f2237a6).
  • chore: a-b sorted types.d.ts (3698869).

Documentations

  • docs: added testID prop and new getCustomCacheKey config option (c1dfdf0).
  • docs: mark prefetch options as optional on parameters (3db99cf).

v2.1.0 - 2022-05-05

v2.0.1 - 2022-04-05

v2.0.0 - 2022-04-03

Improvements

  • chore: use reanimated 2 instead of react-native Animated (8b92afc).
  • chore: remove reanimated from peer deps (d477f57).
  • chore: conflicts (472fe71).

Fixes

  • fix: example for reanimated 2 (19b1f81).
  • fix: image size in example (a962ffa).
  • fix: reanimated bug with types (fa0cbff).

Documentations

  • docs: highlight reanimated warning (42e0c23).
  • docs: added Caution for users not using react-native-reanimated version 2.x.x (66b16a7).

v1.6.0 - 2022-04-03

Features

  • feat: maxAge in hours to keep the image on cache (375bbc4).
  • feat: do not cache the image prop (1ede802).

Improvements

  • chore: updated react-native-file-access, fixes double / of file path on iOS (3a590aa).
  • chore: remove .replace on file.path during cache prune unlink (fb274d8).

Fixes

  • fix: Android example now builds correctly & fixed button colors (aa1a3d9).

Documentations

v1.5.0 - 2022-04-01

Features

  • feat: cacheLimit configuration for cache auto pruning (f81983a).

Improvements

  • chore: updated example to use react-native 0.67.4 (eba5049).
  • chore: bumped react-native to 0.67.4 on working dir (74409fa).

Documentations

  • docs: improved cache pruning flow (493ad52).
  • docs: better cacheLimit config header (5594b84).
  • docs: added an extra step on cache pruning flow (a044978).
  • docs: update README

added download per month (5366c33).

v1.4.0 - 2022-03-12

Features

  • feat: add onLoad and and onLoadEnd props (85885d8).

Improvements

  • chore: updated example to react-native 0.66.3 (c32f5e7).
  • chore: align project with eslint 8.x.x requirements (5bb5b2f).
  • chore: updated dev packages (c2e64d0).
  • chore: removed test from example, fixed some typings (783fada).
  • chore: rename uri to image (0b5efe8).

Documentations

  • docs: added checkboxes on Todo (eda10bd).
  • docs: add onLoad and onLoadEnd props (2885ab9).
  • docs: added missing @ on image-library link (7b9b252).

v1.3.0 - 2021-10-31

Features

  • feat: Add method to check if image is cached or not (84e1464).
  • feat: Add method to check if image is cached or not (6072a23).

Improvements

  • chore: rename method to check if image is cached (d767aae).
  • chore: change file to image on error message (dcc8928).

Fixes

  • fix: Better error message while checking if file exists (ca6840d).

Documentations

  • docs: add react-native file access version for rn 0.65 (e38bf3b).
  • docs: add new method to check if image is cached (3070564).
  • docs: typo in docs (197fa77).
  • docs: typo in note for rn 0.65 (833ed36).

v1.2.8 - 2021-08-27

Improvements

  • chore: updated packages (5e18298).
  • chore: updated example packages (88b190a).

Fixes

  • fix: thumbnail image should now show up, was missing style (8358a6d).

v1.2.7 - 2021-07-16

Documentations

  • docs: added accessibility props (b3ef531).
  • docs: made remote bold (0527a47).

v1.2.6 - 2021-07-12

Improvements

  • chore: added useStateIfMounted hook to prevent Can't perform a React state update on an unmounted component. warning (833b331).

v1.2.5 - 2021-07-11

Improvements

  • chore: added example with loadingImageComponent (5396857).
  • chore: updated npm packages (f63d354).
  • chore: updated example npm packages
  • prettier add bracket spacing (9a7bb68).
  • chore: added native modules linking instructions on README (f20b3cc).

Fixes

  • fix: infinite callback chore: improved loadingImageComponent behavior (5fc9cbd).
  • fix: fix blacklist module not found error (aff0b65).

v1.2.4 - 2021-07-06

Improvements

  • chore: resolve conflicts (3d254a0).
  • chore: bump react-native-file-access (e3d8165).

Fixes

  • fix: example on android (1e50e8b).

v1.2.3 - 2021-06-05

v1.2.2 - 2021-06-05

Improvements

  • chore: react-native-file-access now installs patch version instead of latest minor (2d0c7a7).

v1.2.1 - 2021-05-18

Improvements

  • chore: added blurRadius as a prop BREAKING: please add blurRadius in CacheManager config docs: improved docs badges and added blurRadius prop info chore: sorted alphabetically some objects (942a588).

v1.2.0 - 2021-05-15

Features

  • feat: remove single cache entry (1796ec1).

Improvements

  • refactor: base dir in camel case (38536ef).

Documentations

v1.1.2 - 2021-05-11

Improvements

  • chore: removed some peerDependencies

chore: removed @react-native-community/bob and added react-native-builder-bob

fix: fixed useEffect props to only check for props.source instead of full props object, it was causing a loop if there was an error loading the image from cache (d5f85c8).

v1.1.1 - 2021-05-11

Fixes

  • fix: fixed a typo on onImageLoad animation prop docs: added new TODO docs: added react-native-file-access docs link about Dirs (cce01dc).

v1.1.0 - 2021-05-11

Features

  • feat: BREAKING CHANGE: added Global Config docs: updated README.md chore: updated dependencies (b7cb4be).

v1.0.9 - 2021-05-10

Fixes

  • fix: finally fixed defaultProps typings fix: fixed a typo on thumbnailSource url in example (a87e8b7).

v1.0.8 - 2021-05-10

Fixes

  • fix: fixed defaultProps typings (1cd94be).

Documentations

v1.0.7 - 2021-05-08

Improvements

  • refactor: delete console logs and unused files (5180849).
  • refactor: refactor code (d6b5405).

Fixes

  • fix: rewrite cached image as hook (9dc89fa).
  • fix: import only iniqueId from lodash (0feb013).

Documentations

  • docs: hooks todo and options prop correction (5d9b983).
  • docs: fixed preview os headers (7e762f9).
  • docs: finally fixed Android demo gif (f070a2a).

v1.0.6 - 2021-05-07

Documentations

  • docs: fix Android demo gif (68a212f).

v1.0.5 - 2021-05-07

Improvements

  • refactor: alphanum sorted some objects and props docs: sorted props on props table refactor: removed unused code refactor: BREAKING CHANGE: renamed imageAnimationDuration to sourceAnimationDuration prop for convention docs: removed iOS video demo and added GIF docs: added Android demo (e36e5b2).

v1.0.4 - 2021-05-07

Fixes

  • fix: Remove cache key from props (b9e9dc1).

Documentations

  • docs: Update props, Add cache manager methods (6743975).

v1.0.3 - 2021-05-07

Improvements

  • chore: added LICENSE (12e667f).
  • refactor: source is now a string instead of object for convenience refactor: removed useNativeDriver prop, now it's always true refactor: types cleanup (149426f).
  • chore: version bump (bfcface).

v1.0.2 - 2021-05-07

Documentations