@thi.ng/heaps
Advanced tools
Comparing version 2.1.71 to 2.1.72
# Change Log | ||
- **Last updated**: 2024-04-11T12:32:44Z | ||
- **Last updated**: 2024-04-20T14:42:45Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -12,2 +12,8 @@ | ||
### [2.1.72](https://github.com/thi-ng/umbrella/tree/@thi.ng/heaps@2.1.72) (2024-04-20) | ||
#### ♻️ Refactoring | ||
- update type usage ([40fae54](https://github.com/thi-ng/umbrella/commit/40fae54)) | ||
### [2.1.43](https://github.com/thi-ng/umbrella/tree/@thi.ng/heaps@2.1.43) (2023-11-09) | ||
@@ -14,0 +20,0 @@ |
@@ -1,2 +0,2 @@ | ||
import type { Comparator, IClear, ICopy, IEmpty, IInto, ILength, IStack, Predicate, Predicate2 } from "@thi.ng/api"; | ||
import type { Comparator, IClear, ICopy, IEmpty, IInto, ILength, IStack, Maybe, Predicate, Predicate2 } from "@thi.ng/api"; | ||
import type { HeapOpts } from "./api.js"; | ||
@@ -41,6 +41,6 @@ /** | ||
empty(): Heap<T>; | ||
peek(): T | undefined; | ||
peek(): Maybe<T>; | ||
push(val: T): this; | ||
pop(): T | undefined; | ||
pushPop(val: T, vals?: T[]): T | undefined; | ||
pop(): Maybe<T>; | ||
pushPop(val: T, vals?: T[]): Maybe<T>; | ||
into(vals: Iterable<T>): this; | ||
@@ -54,3 +54,3 @@ /** | ||
*/ | ||
pushPopAll(vals: Iterable<T>): T | undefined; | ||
pushPopAll(vals: Iterable<T>): Maybe<T>; | ||
replaceHead(val: T): T; | ||
@@ -57,0 +57,0 @@ remove(val: T): boolean; |
{ | ||
"name": "@thi.ng/heaps", | ||
"version": "2.1.71", | ||
"version": "2.1.72", | ||
"description": "Various heap implementations for arbitrary values and with customizable ordering", | ||
@@ -40,5 +40,5 @@ "type": "module", | ||
"dependencies": { | ||
"@thi.ng/api": "^8.10.1", | ||
"@thi.ng/compare": "^2.3.2", | ||
"@thi.ng/equiv": "^2.1.55" | ||
"@thi.ng/api": "^8.11.0", | ||
"@thi.ng/compare": "^2.3.3", | ||
"@thi.ng/equiv": "^2.1.56" | ||
}, | ||
@@ -95,3 +95,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "18a0c063a7b33d790e5bc2486c106f45f663ac28\n" | ||
"gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n" | ||
} |
@@ -1,2 +0,2 @@ | ||
import type { Comparator, Fn, IClear, ICopy, IEmpty, ILength, IStack, Predicate, Predicate2 } from "@thi.ng/api"; | ||
import type { Comparator, Fn, IClear, ICopy, IEmpty, ILength, IStack, Maybe, Predicate, Predicate2 } from "@thi.ng/api"; | ||
import type { HeapOpts } from "./api.js"; | ||
@@ -25,4 +25,4 @@ export interface Node<T> { | ||
into(vals: Iterable<T>): this; | ||
find(val: T): T | undefined; | ||
findWith(fn: Predicate<T>): T | undefined; | ||
find(val: T): Maybe<T>; | ||
findWith(fn: Predicate<T>): Maybe<T>; | ||
has(val: T): boolean; | ||
@@ -29,0 +29,0 @@ /** |
@@ -29,3 +29,3 @@ import type { IClear, ICopy, IEmpty, IInto, ILength, Pair, Predicate, Predicate2 } from "@thi.ng/api"; | ||
push(val: T, priority: number): this; | ||
pushPop(val: T, priority: number): Pair<number, T> | undefined; | ||
pushPop(val: T, priority: number): import("@thi.ng/api").Maybe<Pair<number, T>>; | ||
pop(): T | undefined; | ||
@@ -32,0 +32,0 @@ peek(): T | undefined; |
@@ -60,6 +60,6 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
```html | ||
<script type="module" src="https://cdn.skypack.dev/@thi.ng/heaps"></script> | ||
<script type="module" src="https://esm.run/@thi.ng/heaps"></script> | ||
``` | ||
[Skypack documentation](https://docs.skypack.dev/) | ||
[JSDelivr documentation](https://www.jsdelivr.com/) | ||
@@ -66,0 +66,0 @@ For Node.js REPL: |
47798
Updated@thi.ng/api@^8.11.0
Updated@thi.ng/compare@^2.3.3
Updated@thi.ng/equiv@^2.1.56