odoc doesn't currently have an upper-bound constraint on its dependency towards OCaml. However it's a near certainty that it will be broken by the next version of the compiler.
To avoid myself and others having to do double the work in opam-repository (e.g. https://github.com/ocaml/opam-repository/pull/26640) I would encourage you to add the upper-bound constraints on your packages in both master and 2.4 branch
odoc doesn't currently have an upper-bound constraint on its dependency towards OCaml. However it's a near certainty that it will be broken by the next version of the compiler.
To avoid myself and others having to do double the work in opam-repository (e.g. https://github.com/ocaml/opam-repository/pull/26640) I would encourage you to add the upper-bound constraints on your packages in both master and 2.4 branch