Skip to content

Releases: shopot/react-error-logger

Release list

v0.1.1

Choose a tag to compare

@shopot shopot released this 03 Dec 22:41

Release v0.1.1

Patch release with dependency updates.

Changes

  • Dependency fix: Moved react-error-boundary to peer dependencies to avoid duplicate installations and give users control over the version

v0.1.0

Choose a tag to compare

@shopot shopot released this 03 Dec 22:06

Release v0.1.0

Initial release of react-error-logger — a React component for catching, logging, and managing errors in React applications.

Features

  • Error catching: Automatically captures JavaScript errors, unhandled promise rejections, and React ErrorBoundary errors
  • Persistent storage: Errors are saved to localStorage and persist across page reloads
  • User-friendly UI: Floating button with error count badge and modal for viewing errors
  • Export functionality: Download error logs as a text file
  • Detailed information: Captures stack traces, component stacks, source locations, and timestamps
  • TypeScript support: Fully typed with TypeScript definitions included
  • Zero configuration: Works out of the box with minimal setup

Installation

npm install react-error-logger

Quick Start

import { ReactErrorLogger } from 'react-error-logger';

function App() {
  return (
    <div>
      <ReactErrorLogger />
    </div>
  );
}

Requirements

  • React 18.2.0 or higher