mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
[PR #938] [MERGED] Fix API break: public API must not expose JsonElement objects #1370
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ElectronNET/Electron.NET/pull/938
Author: @softworkz
Created: 11/17/2025
Status: ✅ Merged
Merged: 11/17/2025
Merged by: @FlorianRappl
Base:
develop← Head:submit_ipc_types📝 Commits (3)
8ff8754Fix API break: public API must not expose JsonElement objectsb89c08eIpcMainTests: Properly test for the types of values (must not be JsonElement)be518a7IpcMain: Properly handle Ipc message params (always 2-elem array)📊 Changes
4 files changed (+183 additions, -46 deletions)
View changed files
📝
src/ElectronNET.API/API/IpcMain.cs(+37 -43)➕
src/ElectronNET.API/Serialization/JsonToBoxedPrimitivesConverter.cs(+126 -0)📝
src/ElectronNET.IntegrationTests/ElectronNET.IntegrationTests.csproj(+1 -1)📝
src/ElectronNET.IntegrationTests/Tests/IpcMainTests.cs(+19 -2)📄 Description
This changes deserialization to the way how it was with
Json.Net: Only .net primitive types are exposed publicly
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.