Releases: dominikbulaj/react-scroll-into-view
Releases · dominikbulaj/react-scroll-into-view
Patch security vulnerability in 3rd party libraries
Adjustments to to exported files
- Changed library type to module
- Adjustments to exported files incl. proper types
- Renamed exported files to
.mjs
&.cjs
- Included
npx publint
after build
TypeScript rewrite
So finally it happened. Complete TS rewrite.
No breaking changes for end users but since it's big change - version has been bumped to 2.0.0
Fix: peer dependency blocked React v17
Generating both ESM and CJS modules
react-scroll-into-view
now includes both ESM (ES Modules) and CJS (CommonJS) modules
Dependencies upgrade & ESM module by default
In this release:
- output module is ESM instead of CJS
- dependencies upgrade (fix security vulnerabilities)
- bump Rollup major version (v2)
- used Rollup v2 plugins instead of deprecated once
- added
react
andreact-dom
as peer dependencies
TypeScript typings
Added new scrollOptions
property to TypeScript typings
Added scroll options
Added new property scrollOptions
that accepts the same properties as scrollIntoViewOptions
passed to element.scrollIntoView()
That was requested in #21
Dependencies upgrade
Updated dependencies as it was required for CI Travis to properly test code.
No changes to API