Skip to content

Commit f647d76

Browse files
committed
fix package names
1 parent a8c2c5f commit f647d76

File tree

18 files changed

+46
-34
lines changed

18 files changed

+46
-34
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<a href="https://github.com/nodejs/node">
2222
<img
2323
alt="Node.js Version"
24-
src="https://img.shields.io/node/v/@algorithm.ts/knuth-shuffle"
24+
src="https://img.shields.io/node/v/@algorithm.ts/shuffle"
2525
/>
2626
</a>
2727
<a href="https://github.com/guanghechen/algorithm.ts/actions/workflows/ci.yml">

Diff for: packages/_constant/src/index.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export const BIGINT_ZERO = BigInt(0)
2+
export const BIGINT_ONE = BigInt(1)
3+
4+
export const CODEPOINT_DIGIT_0: number = '0'.codePointAt(0)!
5+
export const CODEPOINT_DIGIT_9: number = '9'.codePointAt(0)!
6+
export const CODEPOINT_UPPER_A: number = 'A'.codePointAt(0)!
7+
export const CODEPOINT_UPPER_Z: number = 'Z'.codePointAt(0)!
8+
export const CODEPOINT_LOWER_A: number = 'a'.codePointAt(0)!
9+
export const CODEPOINT_LOWER_Z: number = 'z'.codePointAt(0)!

Diff for: packages/bellman-ford/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"test": "cross-env TS_NODE_FILES=true jest --config ../../jest.config.js --rootDir ."
4343
},
4444
"dependencies": {
45-
"@algorithm.ts/circular-queue": "^2.0.14",
46-
"@algorithm.ts/graph": "^2.0.14"
45+
"@algorithm.ts/graph": "^2.0.14",
46+
"@algorithm.ts/queue": "^2.0.14"
4747
}
4848
}

Diff for: packages/binary-search/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@algorithm.ts/lower-bound",
2+
"name": "@algorithm.ts/binary-search",
33
"version": "2.0.14",
44
"description": "Find the index of first elements which greater or equals than the target element.",
55
"author": {
@@ -9,9 +9,9 @@
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x",
12-
"directory": "packages/lower-bound"
12+
"directory": "packages/binary-search"
1313
},
14-
"homepage": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x/packages/lower-bound#readme",
14+
"homepage": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x/packages/binary-search#readme",
1515
"keywords": [
1616
"algorithm",
1717
"lower bound"

Diff for: packages/bipartite-matching/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@algorithm.ts/bipartite-graph-matching",
2+
"name": "@algorithm.ts/bipartite-matching",
33
"version": "2.0.14",
44
"description": "The algorithm to find the maximum matching of the bipartite graph.",
55
"author": {
@@ -9,9 +9,9 @@
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x",
12-
"directory": "packages/bipartite-graph-matching"
12+
"directory": "packages/bipartite-matching"
1313
},
14-
"homepage": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x/packages/bipartite-graph-matching#readme",
14+
"homepage": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x/packages/bipartite-matching#readme",
1515
"keywords": [
1616
"algorithm",
1717
"bipartite graph matching"

Diff for: packages/calculator/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@algorithm.ts/calculate",
2+
"name": "@algorithm.ts/calculator",
33
"version": "2.0.14",
44
"description": "A tiny calculator for number arithmetics such as '+-*/()'",
55
"author": {
@@ -9,11 +9,11 @@
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x",
12-
"directory": "packages/calculate"
12+
"directory": "packages/calculator"
1313
},
14-
"homepage": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x/packages/calculate#readme",
14+
"homepage": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x/packages/calculator#readme",
1515
"keywords": [
16-
"calculate",
16+
"calculator",
1717
"calculator",
1818
"arithmetic",
1919
"bigint",

Diff for: packages/dijkstra/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@algorithm.ts/dijkstra",
33
"version": "2.0.14",
4-
"description": "Dijkstra algorithm optimized with @algorithm.ts/priority-queue.",
4+
"description": "Dijkstra algorithm optimized with priority queue.",
55
"author": {
66
"name": "guanghechen",
77
"url": "https://github.com/guanghechen/"
@@ -44,6 +44,6 @@
4444
},
4545
"dependencies": {
4646
"@algorithm.ts/graph": "^2.0.14",
47-
"@algorithm.ts/priority-queue": "^2.0.14"
47+
"@algorithm.ts/queue": "^2.0.14"
4848
}
4949
}

Diff for: packages/dinic/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
"test": "cross-env TS_NODE_FILES=true jest --config ../../jest.config.js --rootDir ."
4444
},
4545
"dependencies": {
46-
"@algorithm.ts/circular-queue": "^2.0.14"
46+
"@algorithm.ts/queue": "^2.0.14"
4747
}
4848
}

Diff for: packages/gomoku/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
"test": "cross-env TS_NODE_FILES=true jest --config ../../jest.config.js --rootDir ."
4343
},
4444
"dependencies": {
45-
"@algorithm.ts/priority-queue": "^2.0.14"
45+
"@algorithm.ts/queue": "^2.0.14"
4646
}
4747
}

Diff for: packages/graph/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@
4040
"test": "cross-env TS_NODE_FILES=true jest --config ../../jest.config.js --rootDir ."
4141
},
4242
"dependencies": {
43-
"@algorithm.ts/circular-queue": "^2.0.14"
43+
"@algorithm.ts/queue": "^2.0.14"
4444
}
4545
}

Diff for: packages/huffman/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@
4141
"test": "cross-env TS_NODE_FILES=true jest --config ../../jest.config.js --rootDir ."
4242
},
4343
"dependencies": {
44-
"@algorithm.ts/priority-queue": "^2.0.14"
44+
"@algorithm.ts/queue": "^2.0.14"
4545
}
4646
}

Diff for: packages/isap/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
"test": "cross-env TS_NODE_FILES=true jest --config ../../jest.config.js --rootDir ."
4444
},
4545
"dependencies": {
46-
"@algorithm.ts/circular-queue": "^2.0.14"
46+
"@algorithm.ts/queue": "^2.0.14"
4747
}
4848
}

Diff for: packages/mcmf/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
"test": "cross-env TS_NODE_FILES=true jest --config ../../jest.config.js --rootDir ."
4444
},
4545
"dependencies": {
46-
"@algorithm.ts/circular-queue": "^2.0.14"
46+
"@algorithm.ts/queue": "^2.0.14"
4747
}
4848
}

Diff for: packages/prime/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
{
2-
"name": "@algorithm.ts/sieve-prime",
2+
"name": "@algorithm.ts/prime",
33
"version": "2.0.14",
4-
"description": "A linear time algorithm to sieve prime numbers",
4+
"description": "A typescript implementation of the Linear-Sieve algorithm for prime numbers.",
55
"author": {
66
"name": "guanghechen",
77
"url": "https://github.com/guanghechen/"
88
},
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x",
12-
"directory": "packages/sieve-prime"
12+
"directory": "packages/prime"
1313
},
14-
"homepage": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x/packages/sieve-prime#readme",
14+
"homepage": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x/packages/prime#readme",
1515
"keywords": [
1616
"algorithm",
1717
"prime",
18+
"totient",
1819
"linear sieve"
1920
],
2021
"main": "lib/cjs/index.js",

Diff for: packages/queue/package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
{
2-
"name": "@algorithm.ts/priority-queue",
2+
"name": "@algorithm.ts/queue",
33
"version": "2.0.14",
4-
"description": "Priority queue.",
4+
"description": "Typescript implementation of queues, such as priority queue and circular queue.",
55
"author": {
66
"name": "guanghechen",
77
"url": "https://github.com/guanghechen/"
88
},
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x",
12-
"directory": "packages/priority-queue"
12+
"directory": "packages/queue"
1313
},
14-
"homepage": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x/packages/priority-queue#readme",
14+
"homepage": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x/packages/queue#readme",
1515
"keywords": [
1616
"algorithm",
1717
"data structure",
1818
"heap",
19-
"priority queue"
19+
"priority queue",
20+
"circular queue"
2021
],
2122
"main": "lib/cjs/index.js",
2223
"module": "lib/esm/index.js",

Diff for: packages/shuffle/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@algorithm.ts/knuth-shuffle",
2+
"name": "@algorithm.ts/shuffle",
33
"version": "2.0.14",
44
"description": "Knuth shuffle",
55
"author": {
@@ -9,9 +9,9 @@
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x",
12-
"directory": "packages/knuth-shuffle"
12+
"directory": "packages/shuffle"
1313
},
14-
"homepage": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x/packages/knuth-shuffle#readme",
14+
"homepage": "https://github.com/guanghechen/algorithm.ts/tree/release-3.x.x/packages/shuffle#readme",
1515
"keywords": [
1616
"algorithm",
1717
"shuffle",

Diff for: packages/sudoku/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
},
4343
"dependencies": {
4444
"@algorithm.ts/dlx": "^2.0.14",
45-
"@algorithm.ts/knuth-shuffle": "^2.0.14"
45+
"@algorithm.ts/shuffle": "^2.0.14"
4646
}
4747
}

Diff for: tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"module": "CommonJS",
66
"sourceMap": true,
77
"paths": {
8+
"@algorithm.ts/_constant": ["packages/_constant/src"],
89
"@algorithm.ts/base64": ["packages/base64/src"],
910
"@algorithm.ts/bellman-ford": ["packages/bellman-ford/src"],
1011
"@algorithm.ts/binary-index-tree": ["packages/binary-index-tree/src"],

0 commit comments

Comments
 (0)