diff --git a/package-lock.json b/package-lock.json index e8eda4bdc..41395b195 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bitcoinjs-lib", - "version": "7.0.0", + "version": "7.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bitcoinjs-lib", - "version": "7.0.0", + "version": "7.0.1", "license": "MIT", "dependencies": { "@noble/hashes": "^1.2.0", @@ -14,7 +14,7 @@ "bip174": "^3.0.0", "bs58check": "^4.0.0", "uint8array-tools": "^0.0.9", - "valibot": "^0.38.0", + "valibot": "^1.2.0", "varuint-bitcoin": "^2.0.0" }, "devDependencies": { @@ -3873,9 +3873,10 @@ } }, "node_modules/valibot": { - "version": "0.38.0", - "resolved": "https://registry.npmjs.org/valibot/-/valibot-0.38.0.tgz", - "integrity": "sha512-RCJa0fetnzp+h+KN9BdgYOgtsMAG9bfoJ9JSjIhFHobKWVWyzM3jjaeNTdpFK9tQtf3q1sguXeERJ/LcmdFE7w==", + "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 a2149f76c..544f42689 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitcoinjs-lib", - "version": "7.0.0", + "version": "7.0.1", "description": "Client-side Bitcoin JavaScript library", "type": "module", "main": "./src/cjs/index.cjs", @@ -68,7 +68,7 @@ "bip174": "^3.0.0", "bs58check": "^4.0.0", "uint8array-tools": "^0.0.9", - "valibot": "^0.38.0", + "valibot": "^1.2.0", "varuint-bitcoin": "^2.0.0" }, "devDependencies": { diff --git a/src/cjs/types.d.ts b/src/cjs/types.d.ts index 7abcd67bb..6123a3bf4 100644 --- a/src/cjs/types.d.ts +++ b/src/cjs/types.d.ts @@ -1,5 +1,5 @@ import * as v from 'valibot'; -export declare const NBufferSchemaFactory: (size: number) => v.SchemaWithPipe<[v.InstanceSchema, v.LengthAction]>; +export declare const NBufferSchemaFactory: (size: number) => v.SchemaWithPipe, v.LengthAction]>; /** * Checks if two arrays of Buffers are equal. * @param a - The first array of Buffers. @@ -34,12 +34,12 @@ export interface TinySecp256k1Interface { isXOnlyPoint(p: Uint8Array): boolean; xOnlyPointAddTweak(p: Uint8Array, tweak: Uint8Array): XOnlyPointAddTweakResult | null; } -export declare const Buffer256bitSchema: v.SchemaWithPipe<[v.InstanceSchema, v.LengthAction]>; -export declare const Hash160bitSchema: v.SchemaWithPipe<[v.InstanceSchema, v.LengthAction]>; -export declare const Hash256bitSchema: v.SchemaWithPipe<[v.InstanceSchema, v.LengthAction]>; +export declare const Buffer256bitSchema: v.SchemaWithPipe, v.LengthAction]>; +export declare const Hash160bitSchema: v.SchemaWithPipe, v.LengthAction]>; +export declare const Hash256bitSchema: v.SchemaWithPipe, v.LengthAction]>; export declare const BufferSchema: v.InstanceSchema; -export declare const HexSchema: v.SchemaWithPipe<[v.StringSchema, v.RegexAction]>; -export declare const UInt8Schema: v.SchemaWithPipe<[v.NumberSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; -export declare const UInt32Schema: v.SchemaWithPipe<[v.NumberSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; -export declare const SatoshiSchema: v.SchemaWithPipe<[v.BigintSchema, v.MinValueAction, v.MaxValueAction]>; +export declare const HexSchema: v.SchemaWithPipe, v.RegexAction]>; +export declare const UInt8Schema: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; +export declare const UInt32Schema: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; +export declare const SatoshiSchema: v.SchemaWithPipe, v.MinValueAction, v.MaxValueAction]>; export declare const NullablePartial: (a: Record) => v.ObjectSchema<{}, undefined>;