From 7d2bb05359882fdee828ceb61d11cec9b7a70e63 Mon Sep 17 00:00:00 2001 From: Britt Cyr Date: Wed, 30 Oct 2024 16:50:34 -0400 Subject: [PATCH 1/2] remove todo in lib that arent worth doing (#244) --- lib/src/red_black_tree.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/src/red_black_tree.rs b/lib/src/red_black_tree.rs index bb3148edd..e93aa902c 100644 --- a/lib/src/red_black_tree.rs +++ b/lib/src/red_black_tree.rs @@ -198,8 +198,6 @@ impl<'a, T> RedBlackTreeReadOperationsHelpers<'a> for T where T: GetRedBlackTreeReadOnlyData<'a>, { - // TODO: Make unchecked versions of these to avoid unnecessary NIL checks - // when we already know the index is not NIL. fn get_value(&'a self, index: DataIndex) -> &'a V { debug_assert_ne!(index, NIL); let node: &RBNode = get_helper::>(self.data(), index); @@ -245,8 +243,6 @@ where } fn is_left_child(&self, index: DataIndex) -> bool { - // TODO: Explore if we can store is_left_child and is_right_child in the - // empty bits after color to avoid the compute of checking the parent. if index == self.root_index() { return false; } From 1b15ffac25bd6a1ec0544a78b95effe947deee38 Mon Sep 17 00:00:00 2001 From: Maximilian Schneider Date: Thu, 31 Oct 2024 14:07:05 +0000 Subject: [PATCH 2/2] convert bignum to number even if its outside limits (#248) * convert bignum to number even if its outside limits * release 1.0.63 --- client/ts/src/utils/numbers.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ts/src/utils/numbers.ts b/client/ts/src/utils/numbers.ts index cfeaaa523..40fca33d9 100644 --- a/client/ts/src/utils/numbers.ts +++ b/client/ts/src/utils/numbers.ts @@ -11,7 +11,7 @@ export function toNum(n: bignum): number { if (typeof n === 'number') { target = n; } else { - target = n.toNumber(); + target = n.toString() as any as number; } return target; } diff --git a/package.json b/package.json index bb22bfce7..cc3db4dd5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cks-systems/manifest-sdk", - "version": "0.1.62", + "version": "0.1.63", "files": [ "dist/", "README.md",