diff --git a/.taprc b/.taprc index 343ddd5..eb6eb3e 100644 --- a/.taprc +++ b/.taprc @@ -1,3 +1,2 @@ -disable-coverage: true files: - test/**/*.test.js diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..355c21d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +version: "3.9" +services: + zookeeper: + image: confluentinc/cp-zookeeper + ports: + - "2181:2181" + environment: + ZOOKEEPER_CLIENT_PORT: 2181 + ZOOKEEPER_TICK_TIME: 2000 + kafka: + image: confluentinc/cp-kafka + links: + - zookeeper + ports: + - "9092:9092" + environment: + KAFKA_BROKER_ID: 1 + KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181' + KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://localhost:9092' + KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 + KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0 diff --git a/package.json b/package.json index e3b674d..806e24d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fastify/kafka", - "version": "3.0.0-pre.fv5.2", + "version": "3.0.0", "description": "Fastify plugin to interact with Apache Kafka.", "main": "index.js", "type": "commonjs", @@ -38,7 +38,7 @@ "@fastify/pre-commit": "^2.1.0", "@types/node": "^22.0.0", "abstract-logging": "2.0.1", - "fastify": "^5.0.0-alpha.3", + "fastify": "^5.0.0-alpha.4", "standard": "^17.1.0", "tap": "^20.0.3", "tsd": "^0.31.1"