Skip to content

Commit

Permalink
💥 refactor!: Remove default export.
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This breaks any dependent relying on the default export.
  • Loading branch information
make-github-pseudonymous-again committed Mar 26, 2021
1 parent 82590ff commit 4e22998
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doc/manual/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'regenerator-runtime/runtime.js' ;

Then
```js
const mincut = require( '@aureooms/js-mincut' ) ;
const {mincut} = require( '@aureooms/js-mincut' ) ;
// or
import * as mincut from '@aureooms/js-mincut' ;
import {mincut} from '@aureooms/js-mincut' ;
```
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ import adj from './adj.js';
import maxback from './maxback/index.js';
import mincut from './mincut.js';

export default mincut;

export {adj, maxback, mincut};
2 changes: 1 addition & 1 deletion test/src/mincut.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import test from 'ava';
import {map, sorted} from '@aureooms/js-itertools';
import {increasing, fixedlexicographical} from '@aureooms/js-compare';
import mincut from '../../src/index.js';
import {mincut} from '../../src/index.js';

function order(edge) {
return sorted(increasing, edge);
Expand Down

0 comments on commit 4e22998

Please sign in to comment.