diff --git a/packages/koa-metrics/CHANGELOG.md b/packages/koa-metrics/CHANGELOG.md index 9d47fa2d2f..3895c730a1 100644 --- a/packages/koa-metrics/CHANGELOG.md +++ b/packages/koa-metrics/CHANGELOG.md @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). +## 0.3.6 - 2019-11-20 + +- Fix broken default export from 0.3.0 ([#1187](https://github.com/Shopify/quilt/pull/1187)) + ## 0.3.0 - 2019-10-07 - Use `@shopify/statd` instead of Metrics implementation. The log using logger in distribution was removed. ([#1074](https://github.com/Shopify/quilt/pull/1074)) diff --git a/packages/koa-metrics/src/index.ts b/packages/koa-metrics/src/index.ts index 3aa8549181..af8fad7c3c 100644 --- a/packages/koa-metrics/src/index.ts +++ b/packages/koa-metrics/src/index.ts @@ -1,2 +1,2 @@ export {Tag} from './tags'; -export * from './middleware'; +export {CustomMetric, Options, metrics as default} from './middleware'; diff --git a/packages/koa-metrics/src/middleware.ts b/packages/koa-metrics/src/middleware.ts index 513a564532..cf347cebdf 100644 --- a/packages/koa-metrics/src/middleware.ts +++ b/packages/koa-metrics/src/middleware.ts @@ -19,7 +19,7 @@ export interface Options { logger?: Logger; } -export default function metrics({ +export function metrics({ prefix, host, skipInstrumentation = false, diff --git a/packages/koa-metrics/src/test/middleware.test.ts b/packages/koa-metrics/src/test/middleware.test.ts index 39a9b23c5b..cbeea7037d 100644 --- a/packages/koa-metrics/src/test/middleware.test.ts +++ b/packages/koa-metrics/src/test/middleware.test.ts @@ -2,7 +2,7 @@ import {createMockContext} from '@shopify/jest-koa-mocks'; import {StatsDClient} from '@shopify/statsd'; import {Tag} from '../tags'; -import metrics, {CustomMetric} from '../middleware'; +import {metrics, CustomMetric} from '../middleware'; jest.mock('@shopify/statsd'); const MetricsMock = StatsDClient as jest.Mock;