Releases: dromru/react-photoswipe-gallery
Releases Β· dromru/react-photoswipe-gallery
v3.0.2
Docs
- docs: add more obvious info about photoswipe and react-photoswipe-gallery versions compatibility (9e73348)
v1.3.11
Chore
- docs: fix react-photoswipe-gallery version in readme (c8939b7)
v3.0.1
- prevent unnecessary removal of ref in strict mode (#1317)
v3.0.0
This release mostly focused on refactoring and improvement to Item
component.
ref
type changed from ref object
to ref callback
. For most users there is nothing to do with passing ref to node, it works the same way (ref={ref}
). But now you no longer need to cast ref manually, so you will have to remove manual casting if you have such.
- Removed possibility to omit passing
ref
to node if there is only one Item
. Now you always have to pass it.
Refactoring led to removing useLayoutEffect
, so there is no more warning introduced in 2.2.7
v3.0.0-alpha.0
chore(release): 3.0.0-alpha.0
v2.2.7
2.2.7 (2023-04-03)
Bug Fixes
- change useEffect to useLayoutEffect in Item component (ed17490)
v2.2.6
2.2.6 (2023-02-12)
Chore
- remove useless null checks (af4ce1e)
v2.2.5
2.2.5 (2023-02-09)
Bug Fixes
- remove null from ItemRef type (fc40996)
v2.2.4
2.2.4 (2023-02-09)
Bug Fixes
- fix ts errors based on null checks (bdf6012)
Chore
- enable strictNullChecks in tsconfig (b537d9a)
v2.2.3
2.2.3 (2023-01-31)
Bug Fixes
- fix browser back/forward navigation with enabled hash navigation (31d815b)
- ci: fix various GH Actions issues (047b3fb)
- test: add jest-environment-jsdom; fix config (3404d90)