From 2e8c35eccc6e7688f815cbc70b4e1013cfd38c81 Mon Sep 17 00:00:00 2001 From: ilbertt Date: Wed, 20 Aug 2025 19:36:13 +0200 Subject: [PATCH 1/2] fix: add `bigint` to the `JsonValue` types --- packages/candid/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/candid/src/types.ts b/packages/candid/src/types.ts index 540032366..e8015690a 100644 --- a/packages/candid/src/types.ts +++ b/packages/candid/src/types.ts @@ -4,4 +4,4 @@ export interface JsonArray extends Array {} export interface JsonObject extends Record {} -export type JsonValue = boolean | string | number | JsonArray | JsonObject; +export type JsonValue = boolean | string | number | bigint | JsonArray | JsonObject; From 1d92abb4432bf112a82746a4ae149ee94beb81c2 Mon Sep 17 00:00:00 2001 From: ilbertt Date: Wed, 20 Aug 2025 19:40:07 +0200 Subject: [PATCH 2/2] chore: update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ffc664fce..75040a967 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +- fix: add `bigint` to the `JsonValue` types in `@dfinity/candid`. + ## [3.2.1] - 2025-08-12 - fix: export the `GenericIdlFuncArgs`, `GenericIdlFuncRets`, and `GenericIdlServiceFields` types from `@dfinity/candid`.