Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.04 KB

CHANGELOG.md

File metadata and controls

50 lines (30 loc) · 1.04 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[0.3.0] - 2022-09-07

Added

  • New optional prop for MetricsLogger called logger to set a different logger.

    Usage:

    const metricsLogger = useMemo(
      () =>
        ({ metricName, value, tags }) => {
          console.debug('Custom log for prom-react!', metricName, value, tags);
        },
      [],
    );
    
    return <MetricsLogger logger={metricsLogger} />;

[0.2.1] - 2022-06-09

Fixed

  • peerDependencies for react and react DOM to allow versions up from 16.9.

[0.2.0] - 2022-04-21

  • Update to React 18.0.0

[0.1.3] - 2021-11-05

Changed

  • Update some inner dependencies.

[0.1.0] - 2021-11-05

Added

  • Initial version of the library. It includes both MetricsProvider and useMetrics. See README for more details.