Skip to content

Releases: aantron/dream

Dream 1.0.0~alpha7

02 Sep 11:47
Compare
Choose a tag to compare
  • Add JSX example (#326, David Sancho).
  • Adapt to mirage-crypto 1.0.0 (#334).
  • Warn upon re-entrant calls to Dream.sql (#332, reported Adrien Guatto).
  • Disable Dream's ~adjust_terminal behavior, so that it does not clip log lines (#336, Max Große).

Dream 1.0.0~alpha6

27 May 22:03
Compare
Choose a tag to compare

Additions

Removals

  • Remove previously deprecated values Dream.with_client, Dream.with_method, Dream.with_header, Dream.with_body, Dream.with_stream, Dream.write_buffer, Dream.form_tag, Dream.session, Dream.put_session, Dream.all_session_values, Dream.put_flash, Dream.local, Dream.new_local, Dream.with_local, Dream.first, Dream.last, and deprecated type Dream.local (e14bd91).

Fixes

  • Respect log levels of custom sub-logs (#299, reported by Flemming Madsen).
  • dream-eml should not emit references to internal module Dream_pure (#291, reported by Glenn Slotte).
  • Docs: replace inria.fr URLs with ocaml.org URLs (#309, @denver-s).
  • Fix code and commands in examples (#311, #312, #315, @renatillas, Valentin Gatien-Baron).

Miscellaneous

  • Convert example w-watch to use the new dune exec -w instead of fswatch (#266, Dennis Dang).
  • Rename dream.log log tag to dream.logger (d135ba6).
  • Deprecate Dream.not_found (23b7406).
  • Update Alpine Linux version in example (#300, Pedro Dias).
  • Document significance of trailing slashes in the router (#265, @rawleyfowler).
  • Adapt example e-json to ppx_yojson_conv 0.16.0 (#287, Benjamin Thomas).
  • Convert examples to use opam.

Dream 1.0.0~alpha5

28 Mar 10:28
Compare
Choose a tag to compare

Additions

  • Compatibility with OCaml 5 and latest versions of upstream packages mirage-crypto, gluten, http/af, h2, websocket/af, Caqti, graphql-server.
  • Internal renaming of all vendored libraries (gluten, http/af, h2, websocket/af, paf) to avoid conflicts with their instances installed by opam (#250).

Miscellaneous

  • Fixes to the examples (#213, #223, #232, #239, Alexander Skvorstov, Patrick Kilgore, Davi William Moraes Suga, @laaksonel).
  • Duplicate rows in .ocamlformat (#225, Thomas Coopman).

Dream 1.0.0~alpha4

08 Mar 14:55
Compare
Choose a tag to compare

Additions

Bugs fixed

  • Dream.form should accept all Content-Types that have the right prefix (#203, Yawar Amin).
  • Dream.set_cookie should use SameSite=Lax by default (#190, reported by Chas Emerick, Andrey Popp).
  • Depend on camlp-streams for OCaml 5.00.0 compatibility (#210, Patrick Ferris).

Changes

  • Improve Content-Length and Transfer-Encoding handling (2621045).

Removals

  • Dream.content_length middleware (2621045).
  • Dream.lowercase_headers middleware (5f50acf).
  • Dream.version accessor (2162ec7).

Docs

  • Catch up routers in some of the examples with Dream alpha3 (#205, Thomas Haessle).
  • Update docs for Dream.form_result constructor `Expired (#206, Yawar Amin).
  • Fix remaining mentions of ~secret (#207, reported by Tuomas Lukka).

Dream 1.0.0~alpha3

11 Feb 19:10
Compare
Choose a tag to compare

Major

  • Complete rework of the internal I/O model, now supporting flow control, pipe-like programming, stream transformers, low-level WebSocket events, efficient WebSocket I/O, exception passing, trivial composition with client library (2075347 to ed1c949, 5cd57e1, others).
  • Convert from immutable to mutable requests and conversion of the API to t-first style (#21).
  • Factor out Dream core into opam package dream-pure, to also be used in the client (2f40d67 to e106e6e, 037645f to 8652178, dd41df9, others).
  • Factor out the http/af stack and helpers directly tied to it that need to be shared with the client into opam package dream-httpaf (110575d, acc2efc).
  • Remove "global" (per-server) variables (d81b198).
  • Rename "local" (per-message) variables to "fields" (5a54d5c).
  • Use a middleware to set secrets (2529b9a).
  • Use a middleware to set site prefix (3da5e23).
  • Replace ?debug by just using a different error handler (640a1b2).
  • Rename ?https to ?tls (7320f87).
  • Miscellaneous renamings. Most old values are still temporarily present with attached deprecation attributes to help migrate.

Additions

Bugs fixed

  • Dream.static was setting Content-Type: headers for non-existent files (#88, reported by Khoa Nguyen).
  • Use bigstringaf instead of Lwt_bytes to minimize Unix dependencies (#107, Calascibetta Romain).
  • Limit Dream.redirect ~status to only redirections (#130, Khoa Nguyen).
  • Dream.redirect: don't write Location to the response body (b0f64df).
  • Restore terminal settings upon exit by SIGINT (#151, Anton Outkine).
  • Don't try to ignore SIGPIPE on Windows (#158, Manas Jayanth).

Examples

Documentation

  • Fix sqlite3 URI in SQL snippet (#80, Khoa Nguyen).

Dream 1.0.0~alpha2

15 May 12:14
Compare
Choose a tag to compare

Changes

Additions

Fixes

Dream 1.0.0~alpha1

20 Apr 11:25
Compare
Choose a tag to compare
Dream 1.0.0~alpha1 Pre-release
Pre-release

Initial release.