From 82935681af124848f46a3e0ca430121ed90c335d Mon Sep 17 00:00:00 2001 From: "Angel D. Munoz" Date: Fri, 22 Nov 2024 00:19:33 -0600 Subject: [PATCH] feat: adds null value encoder chore: bump version --- Directory.Build.props | 2 +- JDeck/Encoding.fs | 1 + JDeck/Encoding.fsi | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index d2762ae..18c4e5f 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -11,7 +11,7 @@ 3390;$(WarnOn) preview true - 1.0.0-beta-005 + 1.0.0-beta-006 diff --git a/JDeck/Encoding.fs b/JDeck/Encoding.fs index 9b9ca14..8949312 100644 --- a/JDeck/Encoding.fs +++ b/JDeck/Encoding.fs @@ -10,6 +10,7 @@ type Encoder<'T> = 'T -> JsonNode module Encoding = module Encode = + let inline Null(): JsonNode = null let inline string (value: string) = JsonValue.Create(value) :> JsonNode diff --git a/JDeck/Encoding.fsi b/JDeck/Encoding.fsi index 002ae42..388f523 100644 --- a/JDeck/Encoding.fsi +++ b/JDeck/Encoding.fsi @@ -10,6 +10,7 @@ type Encoder<'T> = 'T -> JsonNode module Encoding = /// Provides functions for encoding values to JSON nodes. module Encode = + val inline Null: unit -> JsonNode val inline string: value: string -> JsonNode val inline boolean: value: bool -> JsonNode val inline char: value: char -> JsonNode