All notable changes to react-page-loading-v2 will be documented here.
This project adheres to Semantic Versioning.
- Complete rewrite in TypeScript with full type definitions (
.d.ts). - Support for React 19, while maintaining compatibility with React 16.14, 17, and 18.
- Sourcemaps for easier debugging.
- New props:
duration(time in ms to show loader).children(rendered after loading finishes).
- Build system migrated from webpack + babel → tsup + TypeScript (faster, smaller bundles).
- Distributed as ESM + CJS with modern
exportsfield inpackage.json. - Default styling improved for accessibility (
role="status", hidden label text).
- prop-types (replaced by TypeScript interfaces).
- Webpack UMD bundle (consumers’ bundlers handle builds now).
- Last release of the original JavaScript implementation.
- Provided spinner with
prop-typesvalidation. - Used webpack build pipeline with Babel transpilation.