From eb8068d2840d95d3fbf847fd2ded73d1016dadbd Mon Sep 17 00:00:00 2001 From: Feihong Hsu Date: Fri, 7 Jun 2024 10:09:03 -0500 Subject: [PATCH] Upgrade to OCaml 5.2.0 --- .github/workflows/deploy.yml | 2 +- docs/sandwich-tests/index.md | 6 +++--- melange-for-react-devs.opam | 4 ++-- package.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4968fe38..2a5e649b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,7 +38,7 @@ jobs: cache: npm - uses: ocaml/setup-ocaml@v2 with: - ocaml-compiler: 5.1.1 + ocaml-compiler: 5.2.0 - name: Install all deps run: npm run install:npm-opam - name: Format check diff --git a/docs/sandwich-tests/index.md b/docs/sandwich-tests/index.md index 567932f8..530325ef 100644 --- a/docs/sandwich-tests/index.md +++ b/docs/sandwich-tests/index.md @@ -41,10 +41,10 @@ Open `melange-for-react-devs.opam` and add a corresponding entry in the ``` depends: [ - "ocaml" {>= "5.1.1"} + "ocaml" {>= "5.2.0"} "reason" {>= "3.10.0"} "dune" {>= "3.8"} - "melange" {>= "4.0.0-51"} + "melange" {>= "4.0.0-52"} "reason-react" {>= "0.14.0"} "reason-react-ppx" {>= "0.14.0"} "melange-fest" {>= "0.1.0"} // [!code ++] @@ -79,7 +79,7 @@ The output will look something like this: ``` # switch compiler description -→ ~/melange-for-react-devs ocaml-base-compiler.5.1.1 ~/melange-for-react-devs +→ ~/melange-for-react-devs ocaml-base-compiler.5.2.0 ~/melange-for-react-devs default ocaml.5.1.0 default [NOTE] Current switch has been selected based on the current directory. diff --git a/melange-for-react-devs.opam b/melange-for-react-devs.opam index f162590d..150163a6 100644 --- a/melange-for-react-devs.opam +++ b/melange-for-react-devs.opam @@ -7,10 +7,10 @@ license: "MIT" homepage: "https://github.com/melange-re/melange-for-react-devs" bug-reports: "https://github.com/melange-re/melange-for-react-devs" depends: [ - "ocaml" {>= "5.1.1"} + "ocaml" {>= "5.2.0"} "reason" {>= "3.10.0"} "dune" {>= "3.8"} - "melange" {>= "4.0.0-51"} + "melange" {>= "4.0.0-52"} "reason-react" {>= "0.14.0"} "reason-react-ppx" {>= "0.14.0"} "melange-fest" {>= "0.1.0"} diff --git a/package.json b/package.json index 041a45b8..eca913dc 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "preinstall:opam": "opam update", "install:opam": "opam install -y . --deps-only --with-test", "check-npm-deps": "opam exec opam-check-npm-deps", - "init": "opam switch create . 5.1.1 -y --deps-only && npm run install:npm-opam", + "init": "opam switch create . 5.2.0 -y --deps-only && npm run install:npm-opam", "install:npm-opam": "npm install && npm run install:opam && npm run check-npm-deps", "dune": "opam exec -- dune", "build": "npm run dune -- build",