4.1.1 (2022-08-15)
- replace
global
with browser env detection (4c39fa3)
4.1.0 (2022-07-25)
- get rid of prop-types and set peerDependency of react to >=16 (c3e50ae)
- Fixed focus loss on thumbnail click (#113);
- Fixed React error on native mode (#107)
- Fixed focus loss on thumbnail click (#113);
- Fixed React error on native mode (#107)
- Small code refactoring;
- Possible fix of #89;
- Fix of #57;
- Fixed cjs and esm builds;
- Improved typings of getInner* functions (no more @ts-ignore);
- The proper scrollbar width detection now it is float number so no more 1px scrollbar showing off (Complete fix: #57);
- Improved testbench;
- Fix: #98;
- Improved props typings;
- Reverted the dist ESM filenames from
.mjs
to.esm.js
due to lack of functionality of node modules system.
- A bit tweaked distribution strategy:
main
field ofpackage.json
is pointing to transpiled ES3-compatible version with CJS modules resolution;module
field is pointing to transpiled ES3-compatible version with ES modules resolution;esnext
field is pointing to the ES6+ version with ES modules resolution;
- Refusing
is-fun
due to too big performance impact - no sense to use it with hte prop-types =\ - Refusing
is-number
for almost the same reasons;
- ESM version now has ESNext lang level;
- CJS version now has ES3 lang level;
- Now using is-fun to detect callable props;
- Added
mobileNative
prop
- Fix: #71;
- Fixed and improved sizes translation;
- Added
disableTrack*MousewheelScrolling
props; - Prop
compensateScrollbarsWidth
inverted and renamed todisableTracksWidthCompensation
; - Added
disableTrackXWidthCompensation
anddisableTrackYWidthCompensation
props;
- Fix: #68;
- Sizes loosing optimisation;
- Content element now has the minHeight & minWidth styles if content sizes translation is off (Fix: #65 );
- Vertical scrollbar now has no hard stick to any side;
- Fix: #63
- Fix: #48
- Sizes translation fixes and improvements;
- Added
compensateScrollbarsWidth
prop to be able make an overflowing scrollbars if needed.
Also useful when sizes translation enabled;
- Due to some issues with content paddings added extra wrapper element;
- Little API changes;
- Classnames changes;
NOTE
Feel sorry fo breaking capability for the third time during the v4-alpha stage but i have to do it to name things properly.
Earlier some things been named not obvious and there was a little mess with classnames.
From now i can surely say that basic elements classnames are locked and API will be developed with maximum backward capability.
Sorry for any inconvenience. 🙏
- Component was fully reworked with power of TypeScript;
- Inner kitchen was optimised and now it is 1.5-2 times faster;
- A lot of API and semantics and classnames changes - better to treat it as a whole new component;