Skip to content

Latest commit

Β 

History

History
342 lines (178 loc) Β· 19.1 KB

CHANGELOG.md

File metadata and controls

342 lines (178 loc) Β· 19.1 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

3.0.2 (2024-07-19)

Docs

  • docs: add more obvious info about photoswipe and react-photoswipe-gallery versions compatibility (9e73348)

3.0.1 (2023-12-20)

Bug Fixes

  • prevent unnecessary removal of ref in strict mode (32f446b)

3.0.0 (2023-12-05)

Features

  • item: move set call from effect to ref callback (a5f7aa2). This feature improves performance and stops creating warnings since there is no more useLayoutEffect. Also improves typings, so you no longer need to manually cast ref type. This is small breaking change, but not hard to deal with.

  • make Item ref always required (64464e7). In previous version you could omit setting ref from Item to node if there was only one Item to render. This realease drops this possibility, so you no longer need to think if you should or should not set ref to node.

3.0.0-alpha.0 (2023-11-22)

Features

  • item: move set call from effect to ref callback (63c78de)
  • make Item ref always required (72a1ecc)

2.2.7 (2023-04-03)

Bug Fixes

  • change useEffect to useLayoutEffect in Item component (ed17490)

2.2.6 (2023-02-12)

Chore

  • remove useless null checks (af4ce1e)

2.2.5 (2023-02-09)

Bug Fixes

  • remove null from ItemRef type (fc40996)

2.2.4 (2023-02-09)

Bug Fixes

  • fix ts errors based on null checks (bdf6012)

Chore

  • enable strictNullChecks in tsconfig (b537d9a)

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)

Chore

  • changelog: remove redundant entries (e65c384)

2.2.2 (2022-09-26)

Bug Fixes

  • package: Add exports to package.json (#928) (000c936)
  • test: resolve act warning (ffd7e1a)

Chore

  • check: add type-check script (878e051)
  • ci: remove build-storybook from build workflow (95c1ed3)

2.2.1 (2022-05-14)

Bug Fixes

  • custom-content: reset portal if slideData has no content, and on close (#837) (031dfcf)
  • storybook: adjust color scheme (68ab0ac)

2.2.0 (2022-05-10)

Features

  • types: use vendor photoswipe types (6faed81)

Bug Fixes

  • prop-types: add missing prop (6af1e8c)

2.1.0 (2022-04-26)

Features

  • add content prop for the Item component (docs)
  • add uiElements prop for the Gallery component (docs)

Chore

  • yarn: remove redundant packageExtensions (818b0a3)

2.0.4 (2022-04-16)

Bug Fixes

  • esm: patch import statements in tsc output (067a032)

2.0.3 (2022-04-16)

Bug Fixes

  • package: set type: 'module' (7f74c25)

Chore

  • ci: set node version to v16 for workflows (b50be06)

2.0.2 (2022-04-16)

Bug Fixes

  • build: set TSC target to ES6 to match PhotoSwipe v5 (30909b7)

2.0.1 (2022-04-15)

Bug Fixes

  • package: exclude src/storybook from build (0a3068e)

2.0.0 (2022-04-15)

⚠ BREAKING CHANGES

  • drop PhotoSwipe v4 support (#592)
  • remove prop title (Item component) (#592)
  • remove BaseGallery, CustomGallery, DefaultLayout (#592)

Features

  • add PhotoSwipe v5 support (#592)
  • add new props for Item component: originalSrcset, alt, caption, cropped (#592)
  • add new props for Gallery component: onBeforeOpen, withCaption, withDownloadButton, plugins (#592)
  • add PhotoSwipe plugins support (#592)
  • implement hash navigation (there is no built-in hash navigation in photoswipe v5) (#592)

Bug Fixes

  • types: declare gallery's children explicitly; add type for ref; add event type (cc940bb)

1.3.10 (2022-04-01)

Bug Fixes

  • package: pack source files for sourcemaps support (9fc3c9f), closes #758

1.3.9 (2022-04-01)

Bug Fixes

  • package: fix range for the photoswipe peer dependency (2f2de65)
  • changelog: fix changelog format (4911eae)

1.3.8 (2022-03-07)

Bug Fixes

  • package: change repository field format (e1efbbf)

1.3.7 (2022-03-06)

Bug Fixes

  • perf: wrap context value with useMemo (25b6504)
  • weird bold emojis in chrome (440beaf)

Chore

  • husky: migrate husky configuration (0be4a3f)
  • ci: env vars for publish script (8dbce8b)
  • test: update ts-jest, add env docblock (ad120c1)
  • ci: add gh deployment (31b7b76)
  • ci: use destination_dir on deploy (34b127b)
  • cs: fix prettier issues (dc9f4e4)
  • lint-config: disable react/function-component-definition rule (c14e15e)
  • yarn: set defaultSemverRangePrefix to respect dependencies pinning (821dfd9)

1.3.6 (2021-04-12)

Bug Fixes

  • ci: explicitly run pre/post publish scripts in ci (4bf7f0b), closes #472

1.3.5 (2021-04-10)

Chore

  • Bump dependencies (1e39524)
  • bump storybook; use builder: webpack5 (f127302)
  • update lockfile, gitignore (4cd6b45)

1.3.4 (2020-12-25)

1.3.3 (2020-12-24)

Chore

1.3.2 (2020-12-24)

Bug Fixes

  • hash navigation if items added in different render (84cebdc)
  • test: define photoswipeArgsMock return type (b0cc02b)

Chore

  • ci: upgrade actions/setup-node (3b36743)
  • ci: upgrade codecov/codecov-action (f03d274)

1.3.1 (2020-10-06)

Bug Fixes

  • add some missing hooks dependencies (839c5e5)

1.3.0 (2020-07-21)

Features

  • core: added useGallery hook (f82f77a), closes #22

Chore

  • configure types for standard-version (c607941)
  • migrate from conventional-changelog-cli to standard-version (7b90786)
  • upgrade storybook (da580de)

1.2.0 (2020-04-26)

  • feat: expose photoswipe API (c1542f3), closes #20

1.1.0 (2020-04-25)

  • chore: stop using angular preset for conventional-changelog (dc51c55)
  • docs(readme): fix missing empty cell (21206fd)
  • improvement: implement hash navigation (bde7d7e), closes #19

1.0.1 (2020-04-25)

Bug Fixes

  • allow override all photoswipe options (0a21905)
  • remove check for current ref type in getThumbBoundsFn (66165ef)

1.0.0 (2020-04-25)

  • improvement: separate Gallery and CustomGallery (edd4bed), closes #16
  • improvement: throw if no ref, allow single-item without ref (6dd48e9), closes #13 #12
  • improvement(stories): add story without images (1025158), closes #14
  • improvement(storybook): add story with example from photoswipe.com (3111463)
  • docs: add inline comments (c0ff9e9)
  • docs(readme): add codecov badge (40eb561)
  • docs(readme): add npmjs badge (04c12e2)
  • docs(readme): update readme (3a9441a), closes #8
  • ci: deploy storybook to gh-pages (036fa4e)
  • ci: publish based on new release (462c9aa)
  • ci: run tests on push, upload coverage report to codecov (cb6eb7c)
  • fix: change approach to determine the order of items (5acf951)
  • fix: remove unneeded git add from lint-staged config (8914f38)
  • fix(item-api): add missing html prop for Item from PhotoswipeItem (59522c6), closes #17
  • test: add test case with stateful item (69a7ff6)
  • test: configure Jest, write some test cases (a989e7f), closes #7
  • refactor: slightly change API, disable strictNullChecks (554ea30)
  • chore: add commitlint, commitizen (e2d4741)
  • chore: add conventional-changelog (770e713), closes #11
  • chore: move readme (ebc40f4)
  • chore: move readme (133a51e)
  • chore: rewrite with TypeScript, remove babel (52432b9)
  • feat: add ability to reuse existing layout (closes #9) (e20240d), closes #9
  • feat(dx): add Storybook (48590b7)
  • initial implementation (e756c21)
  • root (3bc6218)
  • Update package.json (6f8e9d9)