From 28fafba8233c960e50acec0954b8ec890abb8c59 Mon Sep 17 00:00:00 2001 From: landabaso Date: Tue, 17 Feb 2026 10:08:10 +0100 Subject: [PATCH 1/2] fix: bump valibot to ^1.2.0 to address vulnerability --- package-lock.json | 9 +++++---- package.json | 2 +- src/cjs/types.d.ts | 16 ++++++++-------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index f84e6bb..099e133 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@noble/hashes": "^1.2.0", "@scure/base": "^1.1.1", "uint8array-tools": "^0.0.8", - "valibot": "^0.37.0", + "valibot": "^1.2.0", "wif": "^5.0.0" }, "devDependencies": { @@ -2569,9 +2569,10 @@ "dev": true }, "node_modules/valibot": { - "version": "0.37.0", - "resolved": "https://registry.npmjs.org/valibot/-/valibot-0.37.0.tgz", - "integrity": "sha512-FQz52I8RXgFgOHym3XHYSREbNtkgSjF9prvMFH1nBsRyfL6SfCzoT1GuSDTlbsuPubM7/6Kbw0ZMQb8A+V+VsQ==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.2.0.tgz", + "integrity": "sha512-mm1rxUsmOxzrwnX5arGS+U4T25RdvpPjPN4yR0u9pUBov9+zGVtO84tif1eY4r6zWxVxu3KzIyknJy3rxfRZZg==", + "license": "MIT", "peerDependencies": { "typescript": ">=5" }, diff --git a/package.json b/package.json index 0228d72..16bc1e5 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@noble/hashes": "^1.2.0", "@scure/base": "^1.1.1", "uint8array-tools": "^0.0.8", - "valibot": "^0.37.0", + "valibot": "^1.2.0", "wif": "^5.0.0" }, "devDependencies": { diff --git a/src/cjs/types.d.ts b/src/cjs/types.d.ts index 00de291..bade8b5 100644 --- a/src/cjs/types.d.ts +++ b/src/cjs/types.d.ts @@ -1,14 +1,14 @@ import * as v from 'valibot'; -export declare const Uint32Schema: v.SchemaWithPipe<[v.NumberSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; -export declare const Uint31Schema: v.SchemaWithPipe<[v.NumberSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; -export declare const Buffer256Bit: v.SchemaWithPipe<[v.InstanceSchema, v.LengthAction]>; -export declare const Buffer33Bytes: v.SchemaWithPipe<[v.InstanceSchema, v.LengthAction]>; +export declare const Uint32Schema: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; +export declare const Uint31Schema: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; +export declare const Buffer256Bit: v.SchemaWithPipe, v.LengthAction]>; +export declare const Buffer33Bytes: v.SchemaWithPipe, v.LengthAction]>; export declare const NetworkSchema: v.ObjectSchema<{ - readonly wif: v.SchemaWithPipe<[v.NumberSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; + readonly wif: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; readonly bip32: v.ObjectSchema<{ - readonly public: v.SchemaWithPipe<[v.NumberSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; - readonly private: v.SchemaWithPipe<[v.NumberSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; + readonly public: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; + readonly private: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; }, undefined>; }, undefined>; -export declare const Bip32PathSchema: v.SchemaWithPipe<[v.StringSchema, v.RegexAction]>; +export declare const Bip32PathSchema: v.SchemaWithPipe, v.RegexAction]>; export type Network = v.InferOutput; From 9e4471ddad38c2d344c1167048072f1c569a115e Mon Sep 17 00:00:00 2001 From: landabaso Date: Tue, 17 Feb 2026 10:09:10 +0100 Subject: [PATCH 2/2] 5.0.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 099e133..588a05a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bip32", - "version": "5.0.0", + "version": "5.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bip32", - "version": "5.0.0", + "version": "5.0.1", "license": "MIT", "dependencies": { "@noble/hashes": "^1.2.0", diff --git a/package.json b/package.json index 16bc1e5..c6417c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bip32", - "version": "5.0.0", + "version": "5.0.1", "type": "module", "description": "A BIP32 compatible library", "keywords": [