head 1.2; access; symbols pkgsrc-2025Q4:1.1.0.12 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.10 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.8 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.6 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.4 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.2 pkgsrc-2024Q3-base:1.1; locks; strict; comment @# @; 1.2 date 2026.02.07.00.40.22; author gdt; state dead; branches; next 1.1; commitid RTWD77QAAs6gzntG; 1.1 date 2024.08.21.15.00.33; author adam; state Exp; branches; next ; commitid zrp3r5PBi4lzwHmF; desc @@ 1.2 log @security/erlang-jose: Update to 1.11.12 # Changelog ## 1.11.12 (2025-11-20) * Fixes * Properly handle `nil` from Elixir maps when encoding with the builtin `json` Erlang/OTP module; see [#184](https://github.com/potatosalad/erlang-jose/issues/184) * Drop required Elixir version back from 1.16 -> 1.13; see [#185](https://github.com/potatosalad/erlang-jose/issues/185) ## 1.11.11 (2025-11-17) * Fixes * EC key decode/encode issues in OTP 28; see [#180](https://github.com/potatosalad/erlang-jose/pull/180), [#181](https://github.com/potatosalad/erlang-jose/pull/181), [#182](https://github.com/potatosalad/erlang-jose/pull/182), [#179](https://github.com/potatosalad/erlang-jose/pull/179) * EdDSA key issues with OTP 27.1.3+; see [#177](https://github.com/potatosalad/erlang-jose/pull/177) * Notes * This will hopefully be one of the last 1.x releases, next release will be [2.x](https://github.com/potatosalad/erlang-jose/tree/2.x) @ text @$NetBSD: patch-test_jose__test.exs,v 1.1 2024/08/21 15:00:33 adam Exp $ Support OTP json module https://github.com/potatosalad/erlang-jose/pull/176 --- test/jose_test.exs.orig 2024-08-21 12:51:06.402878295 +0000 +++ test/jose_test.exs @@@@ -116,6 +116,18 @@@@ defmodule JOSETest do assert binary == :erlang.element(2, JOSE.JWE.to_binary(jwe)) assert jwe == JOSE.JWE.from_binary(binary) assert jwe == JOSE.JWE.from(jwe) + + if System.otp_release() >= "27" do + # OTP json + JOSE.json_module(:json) + assert :jose_json_otp == JOSE.json_module() + assert map == :erlang.element(2, JOSE.JWE.to_map(jwe)) + assert binary == :erlang.element(2, JOSE.JWE.to_binary(jwe)) + assert jwe == JOSE.JWE.from_binary(binary) + assert jwe == JOSE.JWE.from(jwe) + end + + # jsx # # jiffy # JOSE.json_module(:jiffy) # assert :jose_json_jiffy == JOSE.json_module() @ 1.1 log @erlang-jose: updated to 1.11.10 1.11.10 Fixes Various type spec fixes @ text @d1 1 a1 1 $NetBSD$ @