diff --git a/CHANGES.md b/CHANGES.md new file mode 100644 index 00000000..989bb10c --- /dev/null +++ b/CHANGES.md @@ -0,0 +1,18 @@ +# 1.0.0 + +This release brings support for OCaml 5.5 and marks the completed transition to the camlworks organization and, with it, more active maintenance. 1.0.0 does not mean that Dream is feature complete or bug free, only that we use semantic versioning from now on. Stay tuned for more regular releases in the future! + +Additions and improvements: +- Require an initialization call for `Dream.memory_sessions`. Fix `Dream.memory_sessions` when combined with `Dream.scope` (@boechat107, #385) +- Shut down server on SIGTERM/SIGINT even when running in docker (@yawaramin, #406) +- Clean up socket file before binding to it if started as Unix socket server (@yawaramin, #407) +- Add `post_connect` option to `sql_pool` (@gahr, #422) +- Suppress EML template detection inside OCaml comments (@MavenRain, #431) + +Miscellaneous: +- Move project to new camlworks organization (#417) +- Update dependencies and support OCaml 5.5 (@lthms, @bensmrs, #381, #415, #434, #439) +- Support latest Mirage version (@boechat107, @hannesm, #383, #393, #395) +- Improve documentation (@aantron, @sabine, @yawaramin, @funwithcthulhu, @blendux, #372, #391, #403, #404, #423, #433) +- Improve examples (@asymmetric, @mostafatouny, @yotamN, @yawaramin, #366, #370, #379, #380, #386, #405) +- CI fixes (#416, #418, #435) diff --git a/LICENSE.md b/LICENSE.md index c90d556c..e9cded04 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2021-2024, Anton Bachin +Copyright (c) 2021-2026, Anton Bachin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/web/postprocess/index.ml b/docs/web/postprocess/index.ml index 35e901e4..232d47d4 100644 --- a/docs/web/postprocess/index.ml +++ b/docs/web/postprocess/index.ml @@ -1906,7 +1906,7 @@ let invalidate_session_expected = {|
val memory_sessions : ?lifetime:float -> middleware
+ val memory_sessions : ?lifetime:float -> unit -> middleware
val sql_pool : ?size:int ->
-?post_connect:((module Caqti_lwt.CONNECTION) -> (unit, Caqti_error.t) Stdlib.result promise) -> string -> middleware
+ val sql_pool : ?size:int -> ?post_connect:(Caqti_lwt.connection -> unit promise) -> string -> middleware
1.0.0~alpha71.0.0opam install dream{
"dependencies": {
- "@opam/dream": "1.0.0~alpha4",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^2.0",
"@opam/reason": "^3.8.0",
"@opam/html_of_jsx": "*",
diff --git a/example/r-html_of_jsx/esy.json b/example/r-html_of_jsx/esy.json
index 89c700aa..6ae78b11 100644
--- a/example/r-html_of_jsx/esy.json
+++ b/example/r-html_of_jsx/esy.json
@@ -1,7 +1,7 @@
{
"dependencies": {
"@opam/conf-libssl": "3",
- "@opam/dream": "1.0.0~alpha5",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^3.0",
"@opam/reason": "^3.8.0",
"@opam/html_of_jsx": "0.0.4",
diff --git a/example/r-template-files/esy.json b/example/r-template-files/esy.json
index 62d26806..3d21e0c2 100644
--- a/example/r-template-files/esy.json
+++ b/example/r-template-files/esy.json
@@ -1,7 +1,7 @@
{
"dependencies": {
"@opam/conf-libssl": "3",
- "@opam/dream": "1.0.0~alpha5",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^3.0",
"ocaml": "^4.14.0"
},
diff --git a/example/r-template-logic/esy.json b/example/r-template-logic/esy.json
index e29ae7c3..1e30e8e6 100644
--- a/example/r-template-logic/esy.json
+++ b/example/r-template-logic/esy.json
@@ -1,7 +1,7 @@
{
"dependencies": {
"@opam/conf-libssl": "3",
- "@opam/dream": "1.0.0~alpha5",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^3.0",
"@opam/reason": "^3.8.0",
"ocaml": "^4.14.0"
diff --git a/example/r-template-stream/esy.json b/example/r-template-stream/esy.json
index 3ef68400..d2ab7d59 100644
--- a/example/r-template-stream/esy.json
+++ b/example/r-template-stream/esy.json
@@ -1,7 +1,7 @@
{
"dependencies": {
"@opam/conf-libssl": "3",
- "@opam/dream": "1.0.0~alpha5",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^3.0",
"@opam/reason": "^3.8.0",
"ocaml": "^4.14.0"
diff --git a/example/r-template/esy.json b/example/r-template/esy.json
index e29ae7c3..1e30e8e6 100644
--- a/example/r-template/esy.json
+++ b/example/r-template/esy.json
@@ -1,7 +1,7 @@
{
"dependencies": {
"@opam/conf-libssl": "3",
- "@opam/dream": "1.0.0~alpha5",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^3.0",
"@opam/reason": "^3.8.0",
"ocaml": "^4.14.0"
diff --git a/example/r-tyxml/README.md b/example/r-tyxml/README.md
index ab74097b..9af0f67b 100644
--- a/example/r-tyxml/README.md
+++ b/example/r-tyxml/README.md
@@ -41,7 +41,7 @@ To get this, we depend on package `tyxml-jsx` in
{
"dependencies": {
- "@opam/dream": "1.0.0~alpha4",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^2.0",
"@opam/reason": "^3.8.0",
"@opam/tyxml": "*",
diff --git a/example/r-tyxml/esy.json b/example/r-tyxml/esy.json
index 3010d31e..7ada98f2 100644
--- a/example/r-tyxml/esy.json
+++ b/example/r-tyxml/esy.json
@@ -1,7 +1,7 @@
{
"dependencies": {
"@opam/conf-libssl": "3",
- "@opam/dream": "1.0.0~alpha5",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^3.0",
"@opam/reason": "^3.8.0",
"@opam/tyxml": "*",
diff --git a/example/w-esy/README.md b/example/w-esy/README.md
index ce14f999..3d5121ba 100644
--- a/example/w-esy/README.md
+++ b/example/w-esy/README.md
@@ -10,7 +10,7 @@ and looks like this:
```json
{
"dependencies": {
- "@opam/dream": "1.0.0~alpha4",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^2.0",
"ocaml": "4.12.x"
},
diff --git a/example/w-esy/esy.json b/example/w-esy/esy.json
index 3dc785b3..d18edfb9 100644
--- a/example/w-esy/esy.json
+++ b/example/w-esy/esy.json
@@ -1,7 +1,7 @@
{
"dependencies": {
"@opam/conf-libssl": "3",
- "@opam/dream": "1.0.0~alpha5",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^3.0",
"ocaml": "^4.14.0"
},
diff --git a/example/w-fullstack-rescript/esy.json b/example/w-fullstack-rescript/esy.json
index 8d952651..f17507d1 100644
--- a/example/w-fullstack-rescript/esy.json
+++ b/example/w-fullstack-rescript/esy.json
@@ -1,7 +1,7 @@
{
"dependencies": {
"@opam/conf-libssl": "3",
- "@opam/dream": "1.0.0~alpha5",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^3.0",
"ocaml": "^4.14.0"
},
diff --git a/example/z-docker-esy/esy.json b/example/z-docker-esy/esy.json
index 486351a1..50e733bf 100644
--- a/example/z-docker-esy/esy.json
+++ b/example/z-docker-esy/esy.json
@@ -1,7 +1,7 @@
{
"dependencies": {
"@opam/conf-libssl": "3",
- "@opam/dream": "1.0.0~alpha5",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^3.0",
"ocaml": "^4.14.0"
},
diff --git a/example/z-fly/esy.json b/example/z-fly/esy.json
index f4022d8c..3d5b4c38 100644
--- a/example/z-fly/esy.json
+++ b/example/z-fly/esy.json
@@ -5,7 +5,7 @@
},
"dependencies": {
"@opam/conf-libssl": "3",
- "@opam/dream": "1.0.0~alpha5",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^3.0",
"ocaml": "^4.14.0"
},
diff --git a/example/z-heroku/esy.json b/example/z-heroku/esy.json
index 7020dae3..bcc60f99 100644
--- a/example/z-heroku/esy.json
+++ b/example/z-heroku/esy.json
@@ -1,7 +1,7 @@
{
"dependencies": {
"@opam/conf-libssl": "3",
- "@opam/dream": "1.0.0~alpha5",
+ "@opam/dream": "1.0.0",
"@opam/dune": "^3.0",
"ocaml": "^4.14.x"
},