zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

commit 23a9fc500ec008a9287f1ba1387a5629cfd8fae7
parent 2ae71d47531f78c243e8be3bbf5c94064bd1cc70
Author: srfsh <dev@srf.sh>
Date:   Thu, 20 Oct 2022 20:13:06 +0300

dep: update jason v1.4.0

Diffstat:
M.deps/jason/.hex | 0
M.deps/jason/CHANGELOG.md | 10+++++++++-
M.deps/jason/README.md | 2+-
M.deps/jason/hex_metadata.config | 2+-
M.deps/jason/lib/encode.ex | 18++++++++++++++++--
M.deps/jason/mix.exs | 2+-
Mmix.exs | 2+-
Mmix.lock | 2+-
8 files changed, 30 insertions(+), 8 deletions(-)

diff --git a/.deps/jason/.hex b/.deps/jason/.hex Binary files differ. diff --git a/.deps/jason/CHANGELOG.md b/.deps/jason/CHANGELOG.md @@ -1,6 +1,14 @@ # Changelog -## 1.3.0 (21.12.2020) +## 1.4.0 (12.09.2022) + +### Enhancements + +* Use the `:erlang.float_to_binary(_, [:short])` function, instead of `io_lib_format.fwrite_g/1` + where available (OTP 24.1+). This provides equivalent output with much less memory used + and significantly improved performance. + +## 1.3.0 (21.12.2021) ### Enhancements diff --git a/.deps/jason/README.md b/.deps/jason/README.md @@ -19,7 +19,7 @@ in `mix.exs`: ```elixir def deps do - [{:jason, "~> 1.2"}] + [{:jason, "~> 1.3"}] end ``` diff --git a/.deps/jason/hex_metadata.config b/.deps/jason/hex_metadata.config @@ -18,4 +18,4 @@ {<<"optional">>,true}, {<<"repository">>,<<"hexpm">>}, {<<"requirement">>,<<"~> 1.0 or ~> 2.0">>}]]}. -{<<"version">>,<<"1.3.0">>}. +{<<"version">>,<<"1.4.0">>}. diff --git a/.deps/jason/lib/encode.ex b/.deps/jason/lib/encode.ex @@ -127,9 +127,23 @@ defmodule Jason.Encode do Integer.to_string(integer) end + has_short_format = try do + :erlang.float_to_binary(1.0, [:short]) + catch + _, _ -> false + else + _ -> true + end + @spec float(float) :: iodata - def float(float) do - :io_lib_format.fwrite_g(float) + if has_short_format do + def float(float) do + :erlang.float_to_binary(float, [:short]) + end + else + def float(float) do + :io_lib_format.fwrite_g(float) + end end @spec list(list, opts) :: iodata diff --git a/.deps/jason/mix.exs b/.deps/jason/mix.exs @@ -2,7 +2,7 @@ defmodule Jason.Mixfile do use Mix.Project @source_url "https://github.com/michalmuskala/jason" - @version "1.3.0" + @version "1.4.0" def project() do [ diff --git a/mix.exs b/mix.exs @@ -69,7 +69,7 @@ defp deps() do # graphql {:absinthe, "~> 1.7"}, {:absinthe_plug, "~> 1.5"}, - {:jason, "~> 1.3"}, + {:jason, "~> 1.4"}, # live reload {:exsync, "~> 0.2", only: :dev}, diff --git a/mix.lock b/mix.lock @@ -19,7 +19,7 @@ "exsync": {:hex, :exsync, "0.2.4", "5cdc824553e0f4c4bf60018a9a6bbd5d3b51f93ef8401a0d8545f93127281d03", [:mix], [{:file_system, "~> 0.2", [hex: :file_system, repo: "hexpm", optional: false]}], "hexpm", "f7622d8bb98abbe473aa066ae46f91afdf7a5346b8b89728404f7189d2e80896"}, "file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"}, "hpax": {:hex, :hpax, "0.1.2", "09a75600d9d8bbd064cdd741f21fc06fc1f4cf3d0fcc335e5aa19be1a7235c84", [:mix], [], "hexpm", "2c87843d5a23f5f16748ebe77969880e29809580efdaccd615cd3bed628a8c13"}, - "jason": {:hex, :jason, "1.3.0", "fa6b82a934feb176263ad2df0dbd91bf633d4a46ebfdffea0c8ae82953714946", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "53fc1f51255390e0ec7e50f9cb41e751c260d065dcba2bf0d08dc51a4002c2ac"}, + "jason": {:hex, :jason, "1.4.0", "e855647bc964a44e2f67df589ccf49105ae039d4179db7f6271dfd3843dc27e6", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "79a3791085b2a0f743ca04cec0f7be26443738779d09302e01318f97bdb82121"}, "makeup": {:hex, :makeup, "1.1.0", "6b67c8bc2882a6b6a445859952a602afc1a41c2e08379ca057c0f525366fc3ca", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "0a45ed501f4a8897f580eabf99a2e5234ea3e75a4373c8a52824f6e873be57a6"}, "makeup_elixir": {:hex, :makeup_elixir, "0.16.0", "f8c570a0d33f8039513fbccaf7108c5d750f47d8defd44088371191b76492b0b", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "28b2cbdc13960a46ae9a8858c4bebdec3c9a6d7b4b9e7f4ed1502f8159f338e7"}, "makeup_erlang": {:hex, :makeup_erlang, "0.1.1", "3fcb7f09eb9d98dc4d208f49cc955a34218fc41ff6b84df7c75b3e6e533cc65f", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "174d0809e98a4ef0b3309256cbf97101c6ec01c4ab0b23e926a9e17df2077cbb"},