Skip to content

Commit

Permalink
feat: drop default exports
Browse files Browse the repository at this point in the history
BREAKING CHANGE: use named imports instead of default exports
  • Loading branch information
christophehurpeau committed Dec 11, 2021
1 parent 2715620 commit 8878e49
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 29 deletions.
3 changes: 0 additions & 3 deletions packages/nightingale-browser-console-formatter/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,3 @@ export function createBrowserConsoleFormatter(
return [string, ...args];
};
}

/** @deprecated use createBrowserConsoleFormatter */
export default createBrowserConsoleFormatter('light');
3 changes: 0 additions & 3 deletions packages/nightingale-browser-console/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,3 @@ export class BrowserConsoleHandler implements Handler {
this.handle = createHandler(options.theme);
}
}

/** @deprecated use named export instead */
export default BrowserConsoleHandler;
3 changes: 0 additions & 3 deletions packages/nightingale-console/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,3 @@ export class ConsoleHandler implements Handler {
this.handle = createHandle(options.formatter, options.output);
}
}

/** @deprecated use named export instead */
export default ConsoleHandler;
3 changes: 0 additions & 3 deletions packages/nightingale-debug/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,3 @@ export function createFindDebugLevel(
return minLevel;
};
}

/** @deprecated use named export instead */
export default createFindDebugLevel;
3 changes: 0 additions & 3 deletions packages/nightingale-logger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,3 @@ export class Logger {
this.exit(fn);
}
}

/** @deprecated use named export instead */
export default Logger;
3 changes: 0 additions & 3 deletions packages/nightingale-slack/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,3 @@ export class SlackHandler implements Handler {
this.handle = createHandler(slackConfig);
}
}

/** @deprecated use named export instead */
export default SlackHandler;
3 changes: 0 additions & 3 deletions packages/nightingale-string/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ export class StringHandler implements Handler {
this._buffer += formatterRaw(record) + '\n';
}
}

/** @deprecated use named export instead */
export default StringHandler;
3 changes: 0 additions & 3 deletions packages/nightingale-winston-adapter/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,3 @@ export class WinstonAdapterHandler implements Handler {
};
}
}

/** @deprecated use named export instead */
export default WinstonAdapterHandler;
6 changes: 1 addition & 5 deletions packages/nightingale/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { Logger } from 'nightingale-logger';

export {
/** @deprecated use named export instead */
Logger as default,
Logger,
} from 'nightingale-logger';
export { Logger } from 'nightingale-logger';
export { Level, Level as levels } from 'nightingale-levels';
export { configure, addConfig } from './config';

Expand Down

0 comments on commit 8878e49

Please sign in to comment.