Skip to content

Commit 17a4ae5

Browse files
😒 chore: Rename package.
1 parent dd79a87 commit 17a4ae5

File tree

9 files changed

+1248
-1537
lines changed

9 files changed

+1248
-1537
lines changed

.esdoc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"autoPrivate": true
1414
},
1515
"brand": {
16-
"title": "aureooms/js-binomial-heap"
16+
"title": "heap-data-structure/binomial-heap"
1717
},
1818
"test": {
1919
"type": "ava",

README.md

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
[@aureooms/js-binomial-heap](http://make-github-pseudonymous-again.github.io/js-binomial-heap)
1+
:cherries:
2+
[@heap-data-structure/binomial-heap](https://heap-data-structure.github.io/binomial-heap)
23
==
3-
4-
<img src="https://cdn.rawgit.com/make-github-pseudonymous-again/js-binomial-heap/main/media/sketch.svg" width="864">
4+
<p align="center">
5+
<img src="https://raw.githubusercontent.com/heap-data-structure/binomial-heap/main/media/sketch.svg" width="600">
6+
</p>
57

68
Binomial heap data structures for JavaScript.
7-
See [docs](https://make-github-pseudonymous-again.github.io/js-binomial-heap/index.html).
8-
Parent is [@aureooms/js-heap](https://github.com/make-github-pseudonymous-again/js-heap).
9+
See [docs](https://heap-data-structure.github.io/binomial-heap/index.html).
10+
Parent is [@heap-data-structure](https://github.com/heap-data-structure/about).
911

1012
```js
1113
//
@@ -17,25 +19,35 @@ Parent is [@aureooms/js-heap](https://github.com/make-github-pseudonymous-again/
1719
// | |
1820
// o o
1921
//
22+
23+
import {
24+
BinomialHeap,
25+
LazyBinomialHeap,
26+
BinomialTree,
27+
BinomialTreeWithParent,
28+
} from '@heap-data-structure/binomial-heap';
29+
30+
import {increasing} from '@total-order/primitive';
31+
2032
let heaps = [
21-
new ( BinomialHeap( BinomialTreeWithParent ) )( compare.increasing ) ,
22-
new ( BinomialHeap( BinomialTree ) )( compare.increasing ) ,
23-
new ( LazyBinomialHeap( BinomialTree ) )( compare.increasing ) ,
24-
new ( LazyBinomialHeap( BinomialTreeWithParent ) )( compare.increasing ) ,
33+
new ( BinomialHeap( BinomialTreeWithParent ) )( increasing ) ,
34+
new ( BinomialHeap( BinomialTree ) )( increasing ) ,
35+
new ( LazyBinomialHeap( BinomialTree ) )( increasing ) ,
36+
new ( LazyBinomialHeap( BinomialTreeWithParent ) )( increasing ) ,
2537
] ;
2638
```
2739

28-
[![License](https://img.shields.io/github/license/make-github-pseudonymous-again/js-binomial-heap.svg?style=flat)](https://raw.githubusercontent.com/make-github-pseudonymous-again/js-binomial-heap/main/LICENSE)
29-
[![NPM version](https://img.shields.io/npm/v/@aureooms/js-binomial-heap.svg?style=flat)](https://www.npmjs.org/package/@aureooms/js-binomial-heap)
30-
[![Build Status](https://img.shields.io/travis/make-github-pseudonymous-again/js-binomial-heap.svg?style=flat)](https://travis-ci.org/make-github-pseudonymous-again/js-binomial-heap)
31-
[![Coverage Status](https://img.shields.io/coveralls/make-github-pseudonymous-again/js-binomial-heap.svg?style=flat)](https://coveralls.io/r/make-github-pseudonymous-again/js-binomial-heap)
32-
[![Dependencies Status](https://img.shields.io/david/make-github-pseudonymous-again/js-binomial-heap.svg?style=flat)](https://david-dm.org/make-github-pseudonymous-again/js-binomial-heap#info=dependencies)
33-
[![devDependencies Status](https://img.shields.io/david/dev/make-github-pseudonymous-again/js-binomial-heap.svg?style=flat)](https://david-dm.org/make-github-pseudonymous-again/js-binomial-heap#info=devDependencies)
34-
[![Code Climate](https://img.shields.io/codeclimate/github/make-github-pseudonymous-again/js-binomial-heap.svg?style=flat)](https://codeclimate.com/github/make-github-pseudonymous-again/js-binomial-heap)
35-
[![NPM downloads per month](https://img.shields.io/npm/dm/@aureooms/js-binomial-heap.svg?style=flat)](https://www.npmjs.org/package/@aureooms/js-binomial-heap)
36-
[![GitHub issues](https://img.shields.io/github/issues/make-github-pseudonymous-again/js-binomial-heap.svg?style=flat)](https://github.com/make-github-pseudonymous-again/js-binomial-heap/issues)
37-
[![Documentation](https://make-github-pseudonymous-again.github.io/js-binomial-heap/badge.svg)](https://make-github-pseudonymous-again.github.io/js-binomial-heap/source.html)
38-
39-
## Reference
40+
[![License](https://img.shields.io/github/license/heap-data-structure/binomial-heap.svg?style=flat)](https://raw.githubusercontent.com/heap-data-structure/binomial-heap/main/LICENSE)
41+
[![NPM version](https://img.shields.io/npm/v/@heap-data-structure/binomial-heap.svg?style=flat)](https://www.npmjs.org/package/@heap-data-structure/binomial-heap)
42+
[![Build Status](https://img.shields.io/travis/heap-data-structure/binomial-heap.svg?style=flat)](https://travis-ci.org/heap-data-structure/binomial-heap)
43+
[![Coverage Status](https://img.shields.io/coveralls/heap-data-structure/binomial-heap.svg?style=flat)](https://coveralls.io/r/heap-data-structure/binomial-heap)
44+
[![Dependencies Status](https://img.shields.io/david/heap-data-structure/binomial-heap.svg?style=flat)](https://david-dm.org/heap-data-structure/binomial-heap#info=dependencies)
45+
[![devDependencies Status](https://img.shields.io/david/dev/heap-data-structure/binomial-heap.svg?style=flat)](https://david-dm.org/heap-data-structure/binomial-heap#info=devDependencies)
46+
[![Code Climate](https://img.shields.io/codeclimate/github/heap-data-structure/binomial-heap.svg?style=flat)](https://codeclimate.com/github/heap-data-structure/binomial-heap)
47+
[![NPM downloads per month](https://img.shields.io/npm/dm/@heap-data-structure/binomial-heap.svg?style=flat)](https://www.npmjs.org/package/@heap-data-structure/binomial-heap)
48+
[![GitHub issues](https://img.shields.io/github/issues/heap-data-structure/binomial-heap.svg?style=flat)](https://github.com/heap-data-structure/binomial-heap/issues)
49+
[![Documentation](https://heap-data-structure.github.io/binomial-heapbadge.svg)](https://heap-data-structure.github.io/binomial-heapsource.html)
50+
51+
## :scroll: Reference
4052

4153
- http://www.cs.princeton.edu/~wayne/cs423/lectures/heaps-4up.pdf

doc/manual/example.md

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,39 @@
2727
// # push( value )
2828
// # merge( other )
2929

30-
let compare = require( "@aureooms/js-compare" ) ;
30+
import {
31+
BinomialHeap,
32+
LazyBinomialHeap,
33+
BinomialTree,
34+
BinomialTreeWithParent,
35+
} from '@heap-data-structure/binomial-heap';
3136

32-
let Heap = binomialheap. ... ( binomialheap. ... ) ;
37+
import {increasing} from '@total-order/primitive';
3338

34-
let a = new Heap( compare.increasing ) ;
35-
let b = new Heap( compare.increasing ) ;
39+
let Heap = LazyBinomialHeap(BinomialTree);
3640

37-
a.push( 5 ) ;
38-
a.push( 1 ) ;
39-
a.push( 4 ) ;
40-
b.push( 3 ) ;
41-
b.push( 2 ) ;
41+
let a = new Heap(increasing) ;
42+
let b = new Heap(increasing) ;
4243

43-
a.length ; // 3
44-
b.length ; // 2
44+
a.push(5);
45+
a.push(1);
46+
a.push(4);
47+
b.push(3);
48+
b.push(2);
4549

46-
a.merge( b ) ;
47-
delete b ;
50+
a.length; // 3
51+
b.length; // 2
4852

49-
a.length ; // 5
53+
a.merge(b);
54+
delete b;
5055

51-
a.pop( ) ; // 1
52-
a.pop( ) ; // 2
53-
a.pop( ) ; // 3
54-
a.pop( ) ; // 4
55-
a.pop( ) ; // 5
56+
a.length; // 5
5657

57-
a.length ; // 0
58+
a.pop(); // 1
59+
a.pop(); // 2
60+
a.pop(); // 3
61+
a.pop(); // 4
62+
a.pop(); // 5
63+
64+
a.length; // 0
5865
```

doc/manual/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ or [npm](https://github.com/npm/npm).
66

77
### jspm
88
```terminal
9-
jspm install npm:@aureooms/js-binomial-heap
9+
jspm install npm:@heap-data-structure/binomial-heap
1010
```
1111

1212
### npm
1313
```terminal
14-
npm install @aureooms/js-binomial-heap --save
14+
npm install @heap-data-structure/binomial-heap --save
1515
```

doc/manual/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'babel-polyfill' ;
1010

1111
Then
1212
```js
13-
const binomialheap = require( '@aureooms/js-binomial-heap' ) ;
13+
const binomialheap = require( '@heap-data-structure/binomial-heap' ) ;
1414
// or
15-
import binomialheap from '@aureooms/js-binomial-heap' ;
15+
import binomialheap from '@heap-data-structure/binomial-heap' ;
1616
```

doc/scripts/header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ domReady(function(){
1313

1414
var projectname = document.createElement('a');
1515
projectname.classList.add('project-name');
16-
projectname.text = 'aureooms/js-binomial-heap';
16+
projectname.text = 'heap-data-structure/binomial-heap';
1717
projectname.href = './index.html' ;
1818

1919
var header = document.getElementsByTagName('header')[0] ;
2020
header.insertBefore(projectname,header.firstChild);
2121

2222
var testlink = document.querySelector('header > a[data-ice="testLink"]') ;
23-
testlink.href = 'https://coveralls.io/github/make-github-pseudonymous-again/js-binomial-heap' ;
23+
testlink.href = 'https://coveralls.io/github/heap-data-structure/binomial-heap' ;
2424
testlink.target = '_BLANK' ;
2525

2626
var searchBox = document.querySelector('.search-box');

package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "@aureooms/js-binomial-heap",
2+
"name": "@heap-data-structure/binomial-heap",
33
"description": "Binomial heap data structures for JavaScript",
44
"version": "11.0.0",
5-
"author": "Aurélien Ooms <[email protected]>",
5+
"author": "make-github-pseudonymous-again",
66
"ava": {
77
"files": [
88
"test/src/**/*"
@@ -25,14 +25,11 @@
2525
}
2626
},
2727
"bugs": {
28-
"url": "https://github.com/make-github-pseudonymous-again/js-binomial-heap/issues"
28+
"url": "https://github.com/heap-data-structure/binomial-heap/issues"
2929
},
3030
"dependencies": {},
3131
"devDependencies": {
32-
"@aureooms/js-array": "4.0.0",
33-
"@aureooms/js-functools": "2.0.3",
34-
"@aureooms/js-heap-spec": "15.0.3",
35-
"@aureooms/js-itertools": "4.1.0",
32+
"@heap-data-structure/specification": "16.0.0",
3633
"@babel/cli": "7.13.10",
3734
"@babel/core": "7.13.10",
3835
"@babel/polyfill": "7.12.1",
@@ -51,7 +48,7 @@
5148
"files": [
5249
"lib"
5350
],
54-
"homepage": "http://make-github-pseudonymous-again.github.io/js-binomial-heap/",
51+
"homepage": "http://heap-data-structure.github.io/binomial-heap",
5552
"keywords": [
5653
"binomial",
5754
"data",
@@ -63,7 +60,7 @@
6360
"license": "AGPL-3.0",
6461
"main": "lib/index.js",
6562
"repository": {
66-
"url": "https://github.com/make-github-pseudonymous-again/js-binomial-heap.git",
63+
"url": "https://github.com/heap-data-structure/binomial-heap.git",
6764
"type": "git"
6865
},
6966
"scripts": {

test/src/spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ava from 'ava' ;
22

3-
import * as spec from '@aureooms/js-heap-spec' ;
3+
import * as spec from '@heap-data-structure/specification' ;
44

55
import {
66
BinomialHeap,

0 commit comments

Comments
 (0)