Sihl Versions Save

A modular functional web framework

3.0.5

1 year ago

[3.0.5] - 2022-11-24

Updated

  • Make id generating function for id middleware configurable
  • Make password of Sihl_user.t [@opaque]

3.0.4

1 year ago

Updated

  • Make SMTP credentials optional

3.0.3

2 years ago

[3.0.3] - 2022-04-01

Updated

  • Update SQL queries to use caqti infix notation

3.0.2

2 years ago

[3.0.2] - 2022-02-28

Added

  • Expos all log sources

3.0.1

2 years ago

Fixed

  • Fixed a bug in the CSRF middleware where the current session cookie was overriden with an empty session
  • Fixed an issue where Sihl.Database.Migration.execute_steps ignored the provided database pool in ?ctx and instead creating its own pool

3.0.0

2 years ago

Fixed

  • CSRF tokens are now valid per session, not per request. This allows the user to open a form, use various parts of the website in another tab and then come back to the form and submit it.

Changed

  • Enforce OCaml 4.12.0, which doesn't allow named arguments after optional arguments

Added

  • Provide optional ?id parameter whenever an entity is created, to override the generated it

2.0.1

2 years ago

Added

  • Expose service context on user_from_session

2.0.0

2 years ago

1.0.1

2 years ago

Added

  • Support multipart/form-data in CSRF middleware

1.0.0

2 years ago

Fixed

  • It is now possible to register multiple instances of the same service type simultaneously
  • Rename page title of queue dashboard
  • Document EMAIL_BYPASS_INTERCEPT and QUEUE_FORCE_ASYNC
  • Accept true, True and 1 for truthy boolean env vars
  • Document global middlewares
  • Fix issue where the default smtp certs path is an empty string
  • Fix trailing slash middleware to work with PREFIX_PATH

Changed

  • The search_query for Sihl.Database.prepare_search_request has to return the total amount of rows for that query without limit. On PostgreSQL and MariaDB this can be done with COUNT(*) OVER() as total. No count_queryis needed anymore.

User service

  • Add optional given_name and name
  • Deprecate update_details in favor of update
  • Consistent use of named arguments in service API

Added

  • Optional argument format_filter for formatting the search keyword when filtering in Sihl.Database.prepare_search_request