Skip to content

Commit 4e22998

Browse files
💥 refactor!: Remove default export.
BREAKING CHANGE: This breaks any dependent relying on the default export.
1 parent 82590ff commit 4e22998

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

doc/manual/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'regenerator-runtime/runtime.js' ;
1010

1111
Then
1212
```js
13-
const mincut = require( '@aureooms/js-mincut' ) ;
13+
const {mincut} = require( '@aureooms/js-mincut' ) ;
1414
// or
15-
import * as mincut from '@aureooms/js-mincut' ;
15+
import {mincut} from '@aureooms/js-mincut' ;
1616
```

src/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ import adj from './adj.js';
22
import maxback from './maxback/index.js';
33
import mincut from './mincut.js';
44

5-
export default mincut;
6-
75
export {adj, maxback, mincut};

test/src/mincut.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import test from 'ava';
22
import {map, sorted} from '@aureooms/js-itertools';
33
import {increasing, fixedlexicographical} from '@aureooms/js-compare';
4-
import mincut from '../../src/index.js';
4+
import {mincut} from '../../src/index.js';
55

66
function order(edge) {
77
return sorted(increasing, edge);

0 commit comments

Comments
 (0)