From 3acebfd5cec4c6b406345886698e6daf3da9bc55 Mon Sep 17 00:00:00 2001 From: akumar Date: Sun, 26 Nov 2023 08:29:14 +0100 Subject: [PATCH] chore: Release v1.3.3 - See CHANGELOG --- CHANGELOG.md | 5 +++++ package-lock.json | 36 ++++++++++++++++++------------------ package.json | 6 +++--- src/worker.ts | 9 ++++++++- 4 files changed, 34 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0c0124..0b99ceb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 1.3.3 (November 26th, 2023) + +- removed deprecated method in chassis-srv (collection.load) +- fixed logger transformer + ## 1.3.2 (November 25th, 2023) - up deps diff --git a/package-lock.json b/package-lock.json index 65123fd..4b17987 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,20 +1,20 @@ { "name": "@restorecommerce/catalog-srv", - "version": "1.3.2", + "version": "1.3.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@restorecommerce/catalog-srv", - "version": "1.3.2", + "version": "1.3.3", "license": "MIT", "dependencies": { - "@restorecommerce/chassis-srv": "^1.4.3", + "@restorecommerce/chassis-srv": "^1.4.4", "@restorecommerce/cluster-service": "^1.0.2", "@restorecommerce/kafka-client": "^1.1.12", "@restorecommerce/logger": "^1.2.8", "@restorecommerce/rc-grpc-clients": "^5.1.12", - "@restorecommerce/resource-base-interface": "^1.4.3", + "@restorecommerce/resource-base-interface": "^1.4.4", "@restorecommerce/service-config": "^1.0.10", "elasticsearch": "^16.7.3", "lodash": "^4.17.21", @@ -2370,9 +2370,9 @@ } }, "node_modules/@restorecommerce/chassis-srv": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@restorecommerce/chassis-srv/-/chassis-srv-1.4.3.tgz", - "integrity": "sha512-oiQIqD+KqAUUpat/uBSbZ0EhAdMoCGJId6MB3p+8wUvaNUhn4NIX5RJPVKyrel3j9sbBTGJZ+vnyVJbadI7qfg==", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/@restorecommerce/chassis-srv/-/chassis-srv-1.4.4.tgz", + "integrity": "sha512-nNSyon6a6xKJX/sUhOK4vaSYKICJHyiHogue8DSKIj6XWCQdSkbo4zohj0VayLYkeV3XM4dUbEjCtYr4MX1L+Q==", "dependencies": { "@grpc/grpc-js": "^1.9.11", "@restorecommerce/grpc-client": "^2.0.8", @@ -2496,11 +2496,11 @@ } }, "node_modules/@restorecommerce/resource-base-interface": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@restorecommerce/resource-base-interface/-/resource-base-interface-1.4.3.tgz", - "integrity": "sha512-mb5KmjMKRDgbauCGRAJD6T752wyewqgmfMHpctiw15T5GqwfadoeRw90VcR204meNcbZLfRa2yHy96EKGlDXaA==", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/@restorecommerce/resource-base-interface/-/resource-base-interface-1.4.4.tgz", + "integrity": "sha512-bZcM5DFtHsMTSt3T5C51CSA3QHoPrs0Zl+T6AKFsCexj5VL5JKoD1LoRKIr8P5m0Hi8hyHZQHIdOPTQ/poYgGQ==", "dependencies": { - "@restorecommerce/chassis-srv": "^1.4.3", + "@restorecommerce/chassis-srv": "^1.4.4", "@restorecommerce/grpc-client": "^2.0.8", "@restorecommerce/kafka-client": "^1.1.12", "@restorecommerce/rc-grpc-clients": "^5.1.12", @@ -15455,9 +15455,9 @@ "requires": {} }, "@restorecommerce/chassis-srv": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@restorecommerce/chassis-srv/-/chassis-srv-1.4.3.tgz", - "integrity": "sha512-oiQIqD+KqAUUpat/uBSbZ0EhAdMoCGJId6MB3p+8wUvaNUhn4NIX5RJPVKyrel3j9sbBTGJZ+vnyVJbadI7qfg==", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/@restorecommerce/chassis-srv/-/chassis-srv-1.4.4.tgz", + "integrity": "sha512-nNSyon6a6xKJX/sUhOK4vaSYKICJHyiHogue8DSKIj6XWCQdSkbo4zohj0VayLYkeV3XM4dUbEjCtYr4MX1L+Q==", "requires": { "@grpc/grpc-js": "^1.9.11", "@restorecommerce/grpc-client": "^2.0.8", @@ -15563,11 +15563,11 @@ } }, "@restorecommerce/resource-base-interface": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@restorecommerce/resource-base-interface/-/resource-base-interface-1.4.3.tgz", - "integrity": "sha512-mb5KmjMKRDgbauCGRAJD6T752wyewqgmfMHpctiw15T5GqwfadoeRw90VcR204meNcbZLfRa2yHy96EKGlDXaA==", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/@restorecommerce/resource-base-interface/-/resource-base-interface-1.4.4.tgz", + "integrity": "sha512-bZcM5DFtHsMTSt3T5C51CSA3QHoPrs0Zl+T6AKFsCexj5VL5JKoD1LoRKIr8P5m0Hi8hyHZQHIdOPTQ/poYgGQ==", "requires": { - "@restorecommerce/chassis-srv": "^1.4.3", + "@restorecommerce/chassis-srv": "^1.4.4", "@restorecommerce/grpc-client": "^2.0.8", "@restorecommerce/kafka-client": "^1.1.12", "@restorecommerce/rc-grpc-clients": "^5.1.12", diff --git a/package.json b/package.json index 4ae51d2..e6c671a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@restorecommerce/catalog-srv", - "version": "1.3.2", + "version": "1.3.3", "description": "Restore Commerce microservice for catalog and offers", "main": "./lib/index.js", "author": "n-fuse GmbH", @@ -17,12 +17,12 @@ "srv" ], "dependencies": { - "@restorecommerce/chassis-srv": "^1.4.3", + "@restorecommerce/chassis-srv": "^1.4.4", "@restorecommerce/cluster-service": "^1.0.2", "@restorecommerce/kafka-client": "^1.1.12", "@restorecommerce/logger": "^1.2.8", "@restorecommerce/rc-grpc-clients": "^5.1.12", - "@restorecommerce/resource-base-interface": "^1.4.3", + "@restorecommerce/resource-base-interface": "^1.4.4", "@restorecommerce/service-config": "^1.0.10", "elasticsearch": "^16.7.3", "lodash": "^4.17.21", diff --git a/src/worker.ts b/src/worker.ts index 7bd6625..b7011ea 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -66,7 +66,14 @@ export class Worker { redisClient: RedisClientType; constructor(cfg?: any) { this.cfg = cfg || createServiceConfig(process.cwd()); - this.logger = createLogger(this.cfg.get('logger')); + const loggerCfg = this.cfg.get('logger'); + if (loggerCfg) { + loggerCfg.esTransformer = (msg) => { + msg.fields = JSON.stringify(msg.fields); + return msg; + }; + } + this.logger = createLogger(loggerCfg); this.topics = {}; this.services = {}; }