Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

fix export 🐛 #1187

Merged
merged 1 commit into from
Nov 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/koa-metrics/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

<!-- ## [Unreleased] -->

## 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))
Expand Down
2 changes: 1 addition & 1 deletion packages/koa-metrics/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export {Tag} from './tags';
export * from './middleware';
export {CustomMetric, Options, metrics as default} from './middleware';
2 changes: 1 addition & 1 deletion packages/koa-metrics/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface Options {
logger?: Logger;
}

export default function metrics({
export function metrics({
prefix,
host,
skipInstrumentation = false,
Expand Down
2 changes: 1 addition & 1 deletion packages/koa-metrics/src/test/middleware.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<StatsDClient>;
Expand Down