Skip to content

Commit

Permalink
Release v0.1.22 - See CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-KumarH committed Mar 19, 2021
1 parent d2d52e9 commit cc10c12
Show file tree
Hide file tree
Showing 7 changed files with 224 additions and 331 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 0.1.22 (March 19th, 2021)

- migrate from redis to ioredis
- updated dependencies

### 0.1.21 (March 15th, 2021)

- fixed get / download api for piping the AWS response stream directly to grpc response stream
Expand Down
519 changes: 204 additions & 315 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@restorecommerce/ostorage-srv",
"version": "0.1.21",
"version": "0.1.22",
"description": "Restorecommerce microservice for storing objects",
"main": "lib/start.js",
"author": "n-fuse GmbH",
Expand All @@ -18,15 +18,15 @@
],
"dependencies": {
"@restorecommerce/acs-client": "^0.2.23",
"@restorecommerce/chassis-srv": "^0.1.11",
"@restorecommerce/chassis-srv": "^0.1.12",
"@restorecommerce/cluster-service": "^0.1.4",
"@restorecommerce/grpc-client": "^0.0.9",
"@restorecommerce/kafka-client": "^0.1.13",
"@restorecommerce/logger": "^0.6.4",
"@restorecommerce/protos": "^0.0.22",
"@restorecommerce/resource-base-interface": "^0.0.7",
"@restorecommerce/resource-base-interface": "^0.0.9",
"@restorecommerce/service-config": "^0.4.1",
"aws-sdk": "^2.848.0",
"aws-sdk": "^2.867.0",
"koa-multer": "^1.0.2",
"multer-s3": "^2.9.0",
"s3-upload-stream": "^1.0.7",
Expand All @@ -35,24 +35,24 @@
"devDependencies": {
"@types/lodash": "^4.14.168",
"@types/mocha": "^8.2.1",
"@types/node": "^14.14.31",
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/eslint-plugin-tslint": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"@types/node": "^14.14.35",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/eslint-plugin-tslint": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"coveralls": "^3.1.0",
"cross-env": "^7.0.2",
"eslint": "^7.20.0",
"eslint": "^7.22.0",
"eslint-plugin-prefer-arrow-functions": "^3.0.1",
"grpc-mock": "^0.7.0",
"mocha": "^8.3.0",
"mocha": "^8.3.2",
"nodemon": "^2.0.7",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"should": "^13.2.3",
"sleep": "^6.3.0",
"ts-node": "^9.0.0",
"typescript": "^4.1.5"
"typescript": "^4.2.3"
},
"scripts": {
"start": "npm run createtopics && node lib/start.js",
Expand Down
2 changes: 1 addition & 1 deletion src/commandInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as chassis from '@restorecommerce/chassis-srv';
import { Events } from '@restorecommerce/kafka-client';
import { updateConfig } from '@restorecommerce/acs-client';
import { Unimplemented } from '@restorecommerce/chassis-srv/lib/microservice/errors';
import { RedisClient } from 'redis';
import { Redis as RedisClient } from 'ioredis';

export class OStorageCommandInterface extends chassis.CommandInterface {
constructor(server: chassis.Server, cfg: any, logger: any, events: Events, redisClient: RedisClient) {
Expand Down
2 changes: 1 addition & 1 deletion src/service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as _ from 'lodash';
import * as aws from 'aws-sdk';
import { PassThrough, Readable, Transform } from 'stream';
import { Readable, Transform } from 'stream';
import { errors } from '@restorecommerce/chassis-srv';
import { toObject } from '@restorecommerce/resource-base-interface';
import {
Expand Down
1 change: 0 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
AuthZAction, Decision, PolicySetRQ, accessRequest, Subject
} from '@restorecommerce/acs-client';
import { RedisClient } from 'redis';
import * as _ from 'lodash';
import { Service } from './service';
import { createServiceConfig } from '@restorecommerce/service-config';
Expand Down
4 changes: 2 additions & 2 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createLogger } from '@restorecommerce/logger';
import * as chassis from '@restorecommerce/chassis-srv';
import { Service } from './service';
import { OStorageCommandInterface } from './commandInterface';
import { createClient } from 'redis';
import Redis from 'ioredis';
import { initAuthZ, ACSAuthZ, initializeCache } from '@restorecommerce/acs-client';
import { Logger } from 'winston';
import { Client } from '@restorecommerce/grpc-client';
Expand Down Expand Up @@ -45,7 +45,7 @@ export class Worker {
// init redisClient
const redisConfig = cfg.get('redis');
redisConfig.db = cfg.get('redis:db-indexes:db-subject');
const redisClient = new createClient(redisConfig);
const redisClient = new Redis(redisConfig);

// init ACS cache
initializeCache();
Expand Down

0 comments on commit cc10c12

Please sign in to comment.