@signageos/lib 8.0.0 → 8.1.1-master.1330

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +13 -0
  3. package/package.json +5 -4
package/CHANGELOG.md CHANGED
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [Unreleased]
8
+ ### Fixed
9
+ - MongodD proprietary cluster `ordinary` connection strategy.
10
+
11
+ ## [8.1.0] - 2021-11-17
12
+ ### Added
13
+ - redis connection factory supports graceful exit after connection error
14
+ - mongo connection factory supports graceful exit after connection error
15
+ - amqp connection factory supports graceful exit after connection error
16
+ - postgres connection factory supports graceful exit after connection error
17
+ - locked decoration can be instances scoped & this argument can be used in key callback
18
+
19
+ ### Fixed
20
+ - AMQP channel provider will not be blocked by other connection instances
21
+
7
22
  ## [8.0.0] - 2021-10-25
8
23
  ### Changed
9
24
  - Device actions from device can have more separated queues
package/README.md CHANGED
@@ -1,3 +1,16 @@
1
1
  # General Library
2
2
 
3
3
  Shared code accross all services
4
+
5
+ 1) execute `docker-compose up -d`
6
+ 2) fill following file `config/env.test.json`
7
+ ```
8
+ {
9
+ "amqp_dsn": "amqp://guest:guest@localhost:5672/",
10
+ "redis_dsn": "redis://localhost:6379",
11
+ "mongo_db_dsn": "mongodb://localhost:27017/test",
12
+ "postgres_dsn": "postgres://postgres:postgres@localhost:5432/test",
13
+ "rethink_dsn": "rethink://admin@localhost:28015/test"
14
+ }
15
+ ```
16
+ 3) run `npm test`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signageos/lib",
3
- "version": "8.0.0",
3
+ "version": "8.1.1-master.1330",
4
4
  "main": "./dist",
5
5
  "files": [
6
6
  "tools",
@@ -20,6 +20,8 @@
20
20
  "prebuild": "rm -rf dist/*",
21
21
  "prepublish": "npm run prebuild && npm run build",
22
22
  "test": "NODE_ENV=test mocha --opts mocha.opts",
23
+ "test-connections": "DEBUG=@signageos/lib:Events:genericGracefulExit NODE_ENV=test mocha --allow-uncaught --opts mochaConnections.opts",
24
+ "test-rabbit-connection": "DEBUG=@signageos/lib:Events:genericGracefulExit NODE_ENV=test node_modules/.bin/mocha --require should --require should-sinon --require ts-node/register --ui bdd --watch-extensions ts --timeout 120000 tests/**/rabbitmqGracefulExit.connection-spec.ts",
23
25
  "watch": "tsc --watch",
24
26
  "check": "npm run depcheck && tools/check-deps.js",
25
27
  "depcheck": "depcheck --specials=tslint,webpack,mocha --parsers='*.ts:typescript,*.js:es6' --detectors='requireCallExpression,importDeclaration' --ignore-dirs='dist' --ignores='@types/*,@signageos/codestyle,ts-node,mocha,depcheck,webpack-cli'"
@@ -50,7 +52,7 @@
50
52
  "amqp10": "~3.5.0",
51
53
  "mocha": "^3.1.2",
52
54
  "pg": "7.12.1",
53
- "pg-promise": "^5.3.3",
55
+ "pg-promise": "^10.11.0",
54
56
  "redis": "^3.0.2",
55
57
  "mongoose": "^5.9.16",
56
58
  "mongodb": "3.3.3",
@@ -84,7 +86,6 @@
84
86
  "@types/moment-timezone": "0.5.4",
85
87
  "@types/mongoose": "5.7.21",
86
88
  "@types/node": "12.12.28",
87
- "@types/pg-promise": "0.0.29",
88
89
  "@types/raven": "2.5.1",
89
90
  "@types/redis": "2.8.16",
90
91
  "@types/rethinkdb": "2.3.2",
@@ -110,7 +111,7 @@
110
111
  "mongodb": "3.3.3",
111
112
  "mongoose": "5.9.16",
112
113
  "pg": "7.12.1",
113
- "pg-promise": "5.9.7",
114
+ "pg-promise": "10.11.0",
114
115
  "raven": "2.6.4",
115
116
  "redis": "3.0.2",
116
117
  "rethinkdb": "2.3.3",