Liking cljdoc? Tell your friends :D

Change Log

All notable changes to this project will be documented in this file. This change log follows the conventions of keepachangelog.com.

Unreleased

26.52.53 - 2024-08-02

Added

  • Implemented Containers component. Now you can use it to start and stop docker containers in your integration tests.

25.52.53 - 2024-07-28

Added

  • Just some housekeeping adding support to component dependency for prometheus and http-client.

25.52.52 - 2024-07-25

Added

  • Add LocalDateWire schema extension.

25.52.51 - 2024-07-25

Added

  • Add misc function to remove namespace from keywords in a map.

25.52.50 - 2024-07-21

Added

  • Add CronJob component.

25.51.50 - 2024-07-21

Changed

25.51.49 - 2024-07-12

Changed

  • Updating project dependencies.

25.51.48 - 2024-06-06

Added

  • Add support to user data from Telegram consumer component updates.

25.50.48 - 2024-06-05

Added

  • Add support to Datalevin on Telegram consumer component.

25.49.48 - 2024-02-18

Changed

  • Changed implementation of PostgreSQL component to use connection pooling.

24.49.48 - 2023-11-30

Fixed

  • Fixed bug on TelegramConsumer component.

24.49.47 - 2023-11-28

Added

  • Add schema model for TelegramProducer component.

24.48.47 - 2023-11-27

Added

  • Add TelegramProducer component as dependency for TelegramConsumer component.

24.47.47 - 2023-11-26

Added

  • Add Telegram producer component in order to make easier to write integration tests for telegram bots.

24.46.47 - 2023-11-25

Changed

  • Refactors to TelegramConsumer in order to define command interceptors in a way that allows a more reusable and extendable code.

23.46.47 - 2023-11-24

Added

  • Add handler for Telegram bot callback queries. Now the data from the callback query is treated as a bot command.

23.45.47 - 2023-11-20

Fixed

  • Fixed logs not showing up on terminal

23.45.46 - 2023-11-18

Added

  • Add RateLimiter component, and now you can use it with interceptors in oder to apply rate limit on service endpoints.

23.44.46 - 2023-11-14

Added

  • Add Prometheus component to TelegramConsumer possible dependencies.

23.43.46 - 2023-11-14

Added

  • Add Prometheus component in order to expose metrics to agentless monitoring for Prometheus in Grafana Cloud.

23.42.46 - 2023-11-12

Fixed

  • Fixed problem with DatomicLocal component while running integration tests, the database was not being cleaned after each test execution.

23.42.45 - 2023-11-11

Fixed

  • Removed call to #p. This should be used only on debugging process.

23.42.44 - 2023-11-11

Added

  • Add common-clj.keyword.core/un-namespaced function in oder to be able to convert namespaced keywords.
  • Add common-clj.schema.core/un-namespaced function in oder to be able to convert namespaced schemas.

23.41.44 - 2023-11-10

Added

  • Add common-clj.time.core/date->local-date function in oder to be able to convert Date to LocalDate

23.40.43 - 2023-11-07

Fixed

  • Fixed TelegramConsumer to stop sending Telegram Bot messages for not found commands if the message received was not a command.

23.40.42 - 2023-11-06

Added

  • Add support to Telegram channels for TelegramConsumer component.

23.40.41 - 2023-11-06

Fixed

  • Fixed TelegramConsumer component bug while inferring message type

Added

  • Add http-client functions in order to fetch files sent via Telegram bot command messages.

23.40.40 - 2023-11-05

Removed

  • Removed TelegramWebhookConsumer component, now you should use TelegramConsumer.

Changed

  • Refactors to TelegramConsumer in order to be able to scale new features more easily.

22.40.40 - 2023-11-03

Added

  • Added DatomicLocal component.

22.39.40 - 2023-10-29

Added

  • Add :jobs component placeholder for telegram component. Now you can depend on the jobs component from telegram.

22.38.40 - 2023-09-16

Added

  • Add functions to common-clj.time.core in order to deal with LocalDateTime.

22.35.40 - 2023-09-04

Added

  • Add a lower threshold for Google's Recaptcha V3 interceptor, also log the result of the validations.

22.35.38 - 2023-09-03

Added

  • Add a get-connection function for PostgreSQL component.

21.34.38 - 2023-09-02

Added

  • Split PostgreSQL component into PostgreSQL and MockPostgreSQL in order make easier to write integration tests.

20.33.38 - 2023-09-02

Added

  • Implemented PostgreSQL utilities for writing tests.

20.32.37 - 2023-08-27

Added

  • Implemented integration of PostgreSQL component with RabbitMQ consumer and Service component.

20.31.36 - 2023-08-22

Added

  • Implemented PostgreSQL component.

20.30.36 - 2023-08-12

Added

  • Implemented integration of RabbitMQ consumer component with Dead Letter Queue service Wraith King.
  • Added schema validation for message payloads for RabbitMQ consumer component.

19.30.36 - 2023-08-01

Added

  • Added schema validation for consumers config map for RabbitMQ consumer component.

19.29.36 - 2023-07-30

Added

  • Added RabbitMQ producer and consumer components.

19.28.36 - 2023-07-27

Fixed

  • Fixed Datalevin component. There was a problem with the way that we fetch the database-uri configuration.

Added

  • Added configuration assert checks for Datalevin component, check if the database-uri config is properly provided.

19.28.35 - 2023-07-27

Added

  • Added Datalevin component along with interceptors.

19.27.35 - 2023-07-02

Fixed

  • Upgrade org.apache.kafka/kafka-clients dependency version from 2.8.0 to 3.4.0.
  • Upgrade nubank/state-flow dependency version from 5.14.3 to 5.14.4.
  • Upgrade telegrambot-lib dependency version from 1.4.0 to 2.5.0.
  • Upgrade prismatic/schema-generators dependency version from 0.1.4 to 0.1.5.
  • Fix some problems with datalevin and had to set some jvm options.

19.27.34 - 2023-06-28

Fixed

  • Upgrade datalevin dependency version from 0.6.22 to 0.8.16.

19.27.33 - 2022-12-18

Added

  • Added integration test for Telegram Bot update consumption via web hook endpoint.
  • Added component.telegram.consumer/consume-update-via-webhook function, so you can easily mock Telegram Bot command messages update consumption via webhook http endpoint.
  • Added a function to generate telegram bot handler http request hooker endpoint fn component.telegram.consumer/telegram-bot-webhook-endpoint-handler-fn.

19.27.32 - 2022-12-07

Added

  • Added TelegramWebhookConsumer to have one more way of integrating with telegram bot api.

19.26.32 - 2022-11-29

Fixed

  • Fixed Telegram consumer for callback query update consumption. Before the fix the consumer wasn't able to retrieve the chat-id from the update.

19.26.30 - 2022-11-26

Fixed

  • TelegramConsumer was breaking while consuming updates for edited messages. Now it's fixed.

19.25.22 - 2022-11-22

Added

  • Now Telegram Consumer component logs the exception when it faces errors while consuming a command.
  • Added Http Client to list of components that we can use on Telegram command handlers (consumers).

Removed

  • Removed Telegram Producer component, now you should use (morse-api/send-text token chat-id message-text) to send telegram messages.

18.24.21 - 2022-10-27

Fixed

  • Now TelegramConsumer is more resilient to errors wire consuming updates from Telegram API. Before that the Thread was dying when facing a error, but now the Thread is treating and logging the error.

Added

  • Added MockTelegramConsumer component along with some helpers functions so you can easily write integration tests for telegram bots.

[18.23.20] - 2022-10-16

Added

  • Added :http-client component, so we can have more flexibility on integration tests assertions. Like having the possibility of assert that an HTTP request was made to a service/URI.

18.22.19 - 2022-09-23

Fixed

  • Adapt from Kafka records to clj message for consumed messages kafka consumer helper function (common-clj.component.kafka.consumer/consumed-messages).

17.22.19 - 2022-09-21

Added

  • Added http component responsible for service authentication, so we can expect authenticated http requests between microservices.

17.21.19 - 2022-09-18

Fixed

  • Just cleaning and refactoring code. Also finishing some unfinished work.

17.21.18 - 2022-09-17

Added

  • Google reCAPTCHA v3 interceptor. Now you can easily add server side Google reCAPTCHA v3 validations, just add the 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.

17.20.18 - 2022-09-14

Changed

  • Now we have the API as public by default by setting the ::http/allowed-origins from the system map as (constantly true) like "*".

16.20.18 - 2022-08-25

Added

  • Added implementation of correlation-id metadata for tracking Kafka message production and consumption through microservices.

16.19.18 - 2022-08-14

Added

  • Added implementation of 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.

16.18.18 - 2022-08-03

Added

  • Added the :dead-letter-queue-service-integration-enabled (true|false) config option to toggle the integration with a DLQ service (aka Wraith-King).

15.18.18 - 2022-07-23

Fixed

  • MockKafkaConsumer component throws an exception if not set up correctly. Make debug process easier while testing.

15.18.17 - 2022-07-22

Added

  • Added common-clj.time.parser.core/date->wire function to convert Date object to ISO-8601 string.
  • Added common-clj.time.parser.core/wire->date function to convert ISO-8601 string into Date object.
  • Added common-clj.test.helper.time/valid-iso-8601? function to validate iso-8601 strings.

Fixed

  • Fixed detail expected param type for common-clj.error.core/http-friendly-exception function.

15.17.16 - 2022-07-21

Fixed

  • Fixed common-clj.money.converter/->cents function expected output type from BigInteger to BigInt.

15.17.15 - 2022-07-16

Changed

  • Added integration with DLQ service.
  • Now MockConsumer component depends on MockProducer, to fetch produced messages in the test environment.
  • Now MockProducer component doesn't depend on MockConsumer anymore.

Fixed

  • Fixed infinite loop for Kafka messages that throws exceptions while being consumed (Mocked components).

14.17.14 - 2022-07-16

Added

  • Added common-clj.io.interceptors.datomic/resource-existence-check-interceptor Datomic interceptor.

14.16.14 - 2022-07-15

Fixed

  • The mock consumer only tries to consume specified topics defined by the config file. That is the expected behavior.

14.16.13 - 2022-07-14

Added

  • Added prismatic schemas for Kafka message producer input and consumer output (when we internalize Kafka consumer message).

Changed

  • Kafka consumer now pass only message content to topic handler instead of entire Kafka record with topic and message.
  • Changed common-clj.kafka.consumer/kafka-record->clj-message to support more flexible Kafka message content in the future.
  • Add schema validation for Kafka message payload while consuming messages.

13.16.12 - 2022-07-09

Added

  • Added common-clj.auth.core/->token function that we can use to convert Clojure maps containing authentication related information to a JWToken.

Changed

  • The 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.

12.15.12 - 2022-03-01

Fixed

  • Fixed response schema inconsistency for error handler interceptor response (for 500 status code errors)

11.15.12 - 2022-02-28

Added

  • Added the interceptor schema-body-in-interceptor that make so much simpler to set up schema validation for the json body content entering the service endpoint.
  • Added a function 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.

10.15.12 - 2022-02-26

Added

  • Add support to EDN files for Config component.

9.14.12 - 2022-02-26

Fixed

  • Now Kafka mocked producer and consumer encodes messages using ProducerRecord the same way as in production environment.

9.14.10 - 2022-02-23

Added

  • Added time util function now-datetime that enables us to mock the usage of the java.util.Date class. Make integration tests easier to write.

9.13.10 - 2022-02-09

Fixed

  • Using stop-and-reset-pool! instead of shutdown-pool-gracefully! (this is a private function).

9.13.9 - 2022-02-05

Fixed

  • Fixed KafkaProducer for production environments.

8.13.8 - 2022-02-05

Added

  • Added TelegramConsumer component.

8.12.8 - 2022-02-05

Added

  • Added Telegram producer messages component.

Removed

  • Removed Telegram component

7.12.8 - 2022-02-04

Fixed

  • Fixed integration between mocked consumer and producer (Kafka) for better integration tests.

Changed

  • Now we have separated components for Kafka Consumer and MockKafkaConsumer.

Added

  • Added helper functions to do integration tests with Kafka
    • Helper function to fetch produced messages.
    • Helper function to fetch successfully consumed and processed messages (the ones that their handler function didn't raise exceptions)

6.12.7 - 2022-02-03

Changed

  • Now Kafka mocked client and kafka consumer are integrated this will make more ease to do integration tests.
  • Now we have separated components for Kafka Producer and MockKafkaProducer.

5.12.7 - 2022-01-30

Added

  • Added Kafka consumer component.

5.11.7 - 2022-01-28

Added

  • Added producer component to service component, so you can access producer component inside endpoint controllers.

5.11.5 - 2022-01-25

Added

  • Now you can access the :current-env from the config component, case other components need this information.
  • Producer component for Kafka messages.

5.10.4 - 2022-01-22

Change

  • Now telegram component expect a datomic entity instead of a more generic database.

4.10.4 - 2022-01-19

Added

  • Added mocked-datomic function so you can do unit test for datomic queries and insertions.

4.9.4 - 2021-12-28

Fixed

  • Fix Interceptor importing problem. Not finding the class.

4.9.3 - 2021-12-28

Added

  • Added callback query handler support to telegram bot component.

3.9.3 - 2021-12-27

Added

  • Added Datalevin database component. Compatible with Component framework by Stuart Sierra.

3.8.3 - 2021-12-27

Fixed

  • Remove dead code that was throwing exceptions, causing some false positives when consuming message commands.

Change

  • Decouple template message dir value from component code, now you can use the config.json file to define the value used by the component.

2.8.2 - 2021-12-27

Changed

  • More flexibility for telegram bot consumer command functions definitions.
  • Use interceptor when handling telegram bot command messages.

1.8.2 - 2021-12-27

Added

  • Added Telegram Bot component. Compatible with Component framework by Stuart Sierra.

1.7.2 - 2021-12-04

Added

  • Added uuid test helper function to generate random Uuids to be use for mocked values in tests.

1.6.2 - 2021-10-24

Added

  • Added routes and service components.

Fixed

  • local-date->str function was not returning the date in the chosen string format.

1.5.1 - 2021-10-24

Added

  • 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.

0.5.1 - 2021-10-23

Added

  • 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.

0.4.1 - 2021-10-23

Added

  • Added ->cents function were you can use to convert money amounts to cents.

0.3.1 - 2021-10-22

Added

  • 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.

0.2.1 - 2021-09-06

Added

  • Applying loose-schema function to a schema with inner schemas, also make theirs inner schemas loose.

0.1.1 - 2021-09-05

Fixed

  • Properly update the change log doc.

0.1.0 - 2021-09-05

Added

  • Add loose-schema function.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close