Skip to content

Commit 2e3ff1f

Browse files
[new release] yojson and yojson-five (3.0.0)
CHANGES: *2025-05-39* ### Changed - Floats are now always output to JSON in a standard-conformant way or not at all (raising an exception). This makes the `std` variants of functions identical to the non-`std` variants and the `std` arguments have no effect. Users are encouraged to switch to the non-`std` affixed variants, the others will be deprecated in the future. (ocaml-community/yojson#184, @Leonidas-from-XIV) - Bumped the minimum required version of OCaml for the main package to 4.08 since the CI dropped the support. This however allows removing the dependency on the `seq` library, so the depencency cone becomes slightly smaller. (ocaml-community/yojson#194, @Leonidas-from-XIV) ### Fixed - Fixed handling of escape sequences in JSON5. Known escapes like \b will be properly unescaped and undefined escape sequences will unescape to the character itself as per spec (ocaml-community/yojson#187, @david-maison-TrustInSoft) - Fixed tests failing on Windows due to disagreements with the length of an input channel and the text mode conversion (ocaml-community/yojson#192, @Leonidas-from-XIV) ### Removed - Removed support for Tuple and Variant in JSON. It was a non-standard extension that was rarely used, so this simplifies the Yojson types and the parser more standard-conforming (ocaml-community/yojson#105, ocaml-community/yojson#158, ocaml-community/yojson#185 @Leonidas-from-XIV)
1 parent f7c62d8 commit 2e3ff1f

File tree

2 files changed

+92
-0
lines changed
  • packages
    • yojson-five/yojson-five.3.0.0
    • yojson/yojson.3.0.0

2 files changed

+92
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
opam-version: "2.0"
2+
synopsis:
3+
"Yojson-five is a parsing and printing library for the JSON5 format"
4+
description: """
5+
Yojson-five is a parsing and printing library for the JSON5 format.
6+
It supports parsing JSON5 to Yojson.Basic.t and Yojson.Safe.t types."""
7+
maintainer: [
8+
9+
]
10+
authors: ["Martin Jambon"]
11+
license: "BSD-3-Clause"
12+
homepage: "https://github.com/ocaml-community/yojson"
13+
doc: "https://ocaml.org/p/yojson-five/latest"
14+
bug-reports: "https://github.com/ocaml-community/yojson/issues"
15+
depends: [
16+
"dune" {>= "2.7"}
17+
"ocaml" {>= "4.08"}
18+
"sedlex" {>= "2.5"}
19+
"yojson" {= version}
20+
"alcotest" {with-test & >= "0.8.5"}
21+
"odoc" {with-doc}
22+
]
23+
build: [
24+
["dune" "subst"] {dev}
25+
[
26+
"dune"
27+
"build"
28+
"-p"
29+
name
30+
"-j"
31+
jobs
32+
"@install"
33+
"@runtest" {with-test}
34+
"@doc" {with-doc}
35+
]
36+
]
37+
dev-repo: "git+https://github.com/ocaml-community/yojson.git"
38+
url {
39+
src:
40+
"https://github.com/ocaml-community/yojson/releases/download/3.0.0/yojson-3.0.0.tbz"
41+
checksum: [
42+
"sha256=99414da7609b92a02474ef4b49ecda15edc8cbba5229341b124e7e4695c39610"
43+
"sha512=896d0ea829a36ccadba6628800369c1a3ab9e7c64dbda8b76331889c9db481cd64e137f467481ae80a8dd5fca45d748bfa71f58641806cc1bb1a007f8291789f"
44+
]
45+
}
46+
x-commit-hash: "b2193e8e0c88c6501710d08b836b3219673383f3"

packages/yojson/yojson.3.0.0/opam

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
opam-version: "2.0"
2+
synopsis:
3+
"Yojson is an optimized parsing and printing library for the JSON format"
4+
description: """
5+
Yojson is an optimized parsing and printing library for the JSON format.
6+
7+
ydump is a pretty-printing command-line program provided with the
8+
yojson package."""
9+
maintainer: [
10+
11+
]
12+
authors: ["Martin Jambon"]
13+
license: "BSD-3-Clause"
14+
homepage: "https://github.com/ocaml-community/yojson"
15+
doc: "https://ocaml.org/p/yojson/latest"
16+
bug-reports: "https://github.com/ocaml-community/yojson/issues"
17+
depends: [
18+
"dune" {>= "2.7"}
19+
"ocaml" {>= "4.08"}
20+
"alcotest" {with-test & >= "0.8.5"}
21+
"odoc" {with-doc}
22+
]
23+
build: [
24+
["dune" "subst"] {dev}
25+
[
26+
"dune"
27+
"build"
28+
"-p"
29+
name
30+
"-j"
31+
jobs
32+
"@install"
33+
"@runtest" {with-test}
34+
"@doc" {with-doc}
35+
]
36+
]
37+
dev-repo: "git+https://github.com/ocaml-community/yojson.git"
38+
url {
39+
src:
40+
"https://github.com/ocaml-community/yojson/releases/download/3.0.0/yojson-3.0.0.tbz"
41+
checksum: [
42+
"sha256=99414da7609b92a02474ef4b49ecda15edc8cbba5229341b124e7e4695c39610"
43+
"sha512=896d0ea829a36ccadba6628800369c1a3ab9e7c64dbda8b76331889c9db481cd64e137f467481ae80a8dd5fca45d748bfa71f58641806cc1bb1a007f8291789f"
44+
]
45+
}
46+
x-commit-hash: "b2193e8e0c88c6501710d08b836b3219673383f3"

0 commit comments

Comments
 (0)