Skip to content

Commit

Permalink
💥 refactor!: Use flat export style.
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The default export is no more.
  • Loading branch information
make-github-pseudonymous-again committed Apr 15, 2021
1 parent 1de8e16 commit 1c8a64b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import Node from './Node.js';
import PairingHeap from './PairingHeap.js';
import prepend from './prepend.js';
import decreasekey from './decreasekey.js';
import merge from './merge.js';
import mergepairs from './mergepairs.js';

export default PairingHeap;

export {Node, PairingHeap, prepend, decreasekey, merge, mergepairs};
export {default as Node} from './Node.js';
export {default as PairingHeap} from './PairingHeap.js';
export {default as decreasekey} from './decreasekey.js';
export {default as merge} from './merge.js';
export {default as mergepairs} from './mergepairs.js';
export {default as prepend} from './prepend.js';
2 changes: 1 addition & 1 deletion test/src/PairingHeap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ava from 'ava';

import * as spec from '@aureooms/js-heap-spec';

import PairingHeap from '../../src/index.js';
import {PairingHeap} from '../../src/index.js';

const heaps = [['PairingHeap', (compare) => new PairingHeap(compare)]];

Expand Down

0 comments on commit 1c8a64b

Please sign in to comment.