All notable changes to this project will be documented in this file. This change log follows the conventions of keepachangelog.com.
common-clj.component.kafka.consumer/consumed-messages
).http
component responsible for service authentication, so we can expect authenticated http requests between
microservices.common-clj.io.interceptors.auth/recaptcha-validation-interceptor
to the list of interceptors while handling
requests for http endpoints and add the :recaptcha-secret-token
to the config file. Tested
with reCAPTCHA v3.::http/allowed-origins
from the system map
as (constantly true)
like "*"
.X-Correlation-Id
header for tracking http requests made between microservices. To use it
wrap the http-handler function with common-clj.traceability/with-correlation-id
.:dead-letter-queue-service-integration-enabled
(true
|false
) config option to toggle the integration
with a DLQ service (aka Wraith-King).MockKafkaConsumer
component throws an exception if not set up correctly. Make debug process easier while testing.common-clj.time.parser.core/date->wire
function to convert Date object to ISO-8601 string.common-clj.time.parser.core/wire->date
function to convert ISO-8601 string into Date object.common-clj.test.helper.time/valid-iso-8601?
function to validate iso-8601 strings.detail
expected param type for common-clj.error.core/http-friendly-exception
function.common-clj.money.converter/->cents
function expected output type from BigInteger to BigInt.common-clj.io.interceptors.datomic/resource-existence-check-interceptor
Datomic interceptor.common-clj.kafka.consumer/kafka-record->clj-message
to support more flexible Kafka message content in the
future.common-clj.auth.core/->token
function that we can use to convert Clojure maps containing authentication
related information to a JWToken.common-clj.test.helper/uuid
function was moved to another place due to better code organization, instead use the
one from common-clj.test.helper.core/uuid
.schema-body-in-interceptor
that make so much simpler to set up schema validation for the json
body content entering the service endpoint.http-friendly-exception
to easily throw exceptions that are compatible with the global error
catcher exception, returning a http response that follows best practices for REST API error handling.ProducerRecord
the same way as in production
environment.now-datetime
that enables us to mock the usage of the java.util.Date class. Make
integration tests more easy to write.stop-and-reset-pool!
instead of shutdown-pool-gracefully!
(this is a private function).consumer
component.producer
component to service
component, so you can access producer
component inside endpoint controllers.:current-env
from the config component, case other components need this information.datomic
entity instead of a more generic database
.mocked-datomic
function so you can do unit test for datomic queries and insertions.uuid
test helper function to generate random Uuids to be use for mocked values in tests.routes
and service
components.local-date->str
function was not returning the date in the chosen string format.Added support to multiples environments on config component.
Added a datomic component that we can use to transact on datomic databases. Compatible with Component framework by Stuart Sierra.
Added get-component-content
a component helper function used to get component core content. To be able to use this
function you must follow some conventions, like assoc in the component map with the core content using the same
component name as key. Compatible with Component framework by Stuart Sierra.
Added str->keyword-kebab-case
that we can use to convert json encoded camelCased keys to clojure kebab case.
Added a config component that we can use to load settings on our system map. Compatible with Component framework by Stuart Sierra.
->cents
function were you can use to convert money amounts to cents.Added str->local-date
function were you can use to convert String
to LocalDate
.
Added local-date->str
function were you can use to convert LocalDate
to String
.
loose-schema
function to a schema with inner schemas, also make theirs inner schemas loose.loose-schema
function.Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close