Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading lib dependencies and node.js version #374

Merged
merged 74 commits into from
Jun 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
08f7886
fix: adding dependencies for `async-locks`, `db`, `resources` and `er…
CMCDragonkai Mar 28, 2022
feb1072
build: upgrade to Node v16
emmacasolin Apr 26, 2022
37a6d62
build: updating core libraries
emmacasolin Apr 26, 2022
4977305
feat: static descriptions and exit codes for all errors
emmacasolin Apr 26, 2022
b14b240
feat: using `cause` property to establish error chain
emmacasolin Apr 27, 2022
18d04a7
fix: validation errors are forced to use `void` as `cause`
emmacasolin May 2, 2022
99db4fa
feat: error serialisation/deserialisation over gRPC incorporating err…
emmacasolin May 2, 2022
bc356a9
feat: added logger to service handlers
emmacasolin May 4, 2022
b37de4d
syntax: removing index imports
emmacasolin May 4, 2022
41bfb8b
fix: integrating db changes into ACL
emmacasolin May 7, 2022
0c55d3e
fix: changing `es6` to `es2021` in `./eslintrc`
emmacasolin May 9, 2022
e54bfcd
fix: integrating db changes into ACL
emmacasolin May 9, 2022
81df018
fix: integrating db changes into vaults
tegefaulkes May 10, 2022
bf29a28
fix: integrating db changes into Notifications
tegefaulkes May 11, 2022
7cce986
fix: integrating db changes into `Discovery`
tegefaulkes May 11, 2022
9c7d649
fix: integrating db changes into `Sigchain`
tegefaulkes May 12, 2022
52fca02
build: updated dependencies and added incremental build
emmacasolin May 13, 2022
403be9e
fix: integrating db changes into sessions
emmacasolin May 13, 2022
6b199d0
fix: keymanager tests passing
emmacasolin May 13, 2022
b0d6161
fix: git tests passing
emmacasolin May 13, 2022
277c577
fix: NodeGraph tests passing
emmacasolin May 13, 2022
4f4b438
feat: adding transactions to service handlers
emmacasolin May 13, 2022
9afde49
fix: fix for `GRPCServer` `http2Servers` hack
tegefaulkes May 13, 2022
51bcaa2
fix: Small test fixes
tegefaulkes May 16, 2022
d51f282
fix: Small fix for NotificationsManager tests
tegefaulkes May 16, 2022
6266b72
fix: Small fix for Discovery tests
tegefaulkes May 16, 2022
5fa0bcd
fix: removing sigchain.transaction
tegefaulkes May 17, 2022
6b1a0ae
fix: added locking back into sigchain
emmacasolin May 17, 2022
480eaa4
fix: added locking back into notifications
emmacasolin May 17, 2022
61c5511
fix: discovery test fixes
emmacasolin May 17, 2022
dd126c0
fix: fix for `NodeConnection.test.ts` not running
emmacasolin May 17, 2022
70d368e
refactor: replacing `Mutex` with `Lock` for Proxy
emmacasolin May 17, 2022
a17cb0b
fix: fixing vaultManager tests
tegefaulkes May 17, 2022
d32cb3b
test: fixing client tests
tegefaulkes May 17, 2022
25ef70d
test: fixes for agent tests
tegefaulkes May 17, 2022
30db49c
test: fixes for grpc tests
tegefaulkes May 17, 2022
8517292
feat: error serialisation/deserialisation + metadata
emmacasolin May 18, 2022
30eb4bd
feat: adding transactions to agent service handlers
tegefaulkes May 18, 2022
c0f1e8c
fix: toError deserialization
emmacasolin May 19, 2022
bcff364
feat: adding metadata of sending node to errors
emmacasolin May 19, 2022
b611f2e
feat: adding transactions to client service handlers
tegefaulkes May 19, 2022
fcbf66b
feat: NodeId in ErrorPolykeyRemote data now encoded
emmacasolin May 20, 2022
734662b
feat: updated `NodeConnectionManager`'s resourceAcquire to handle err…
tegefaulkes May 20, 2022
b118a95
feat: updated `NodeConnectionManager` to use `LockBox` for object map…
tegefaulkes May 20, 2022
cd19bba
feat: updated `VaultManager` to use `LockBox` for object map locking
tegefaulkes May 23, 2022
f18be47
feat: format json affects error logging
emmacasolin May 23, 2022
cc801b6
tests: fixing bin tests
tegefaulkes May 18, 2022
c3a7fd2
fix: added logic check to `NotificationsManager.readNotifications`
tegefaulkes May 24, 2022
6d7105e
tests: split vaults client service tests
emmacasolin May 24, 2022
679826c
test: fixed broken proxy tests
tegefaulkes May 25, 2022
84ca544
tests: fixing remaining tests
tegefaulkes May 25, 2022
7b8afbe
tests: grpc tests fixes
emmacasolin May 26, 2022
3ca2910
tests: split vaults secrets client service tests
emmacasolin May 26, 2022
5933fc5
tests: fix for nodesClaim test TypeError
emmacasolin May 26, 2022
246dd3a
tests: fixing timeouts for tests failing in CI/CD
tegefaulkes May 26, 2022
ad9b51b
feat: updating `@matrixai/db` to `^4.0.1`
tegefaulkes May 27, 2022
36abd29
tests: general clean up for proxy tests
CMCDragonkai May 25, 2022
e476eaf
tests: fixed write after end error in proxy tests
tegefaulkes May 26, 2022
b69e544
tests: fixed odd internal error for one test
tegefaulkes May 26, 2022
3f853b4
syntax: general clean up proxy tests
tegefaulkes May 26, 2022
314eb1c
build: updated `@matrixai/db` and `encryptedfs` dependencies
tegefaulkes May 31, 2022
897895f
fix: updated usage of iterators to use `valueAsBuff: false` option
tegefaulkes May 31, 2022
45cb2d9
fix: importing `LockRequest` for `VaultManager`
tegefaulkes Jun 1, 2022
51b0f1d
fix: bug with `decryptWithKey` utility
tegefaulkes Jun 1, 2022
8b28473
build: Updated `encryptedfs` and `@matrixai/db` version
tegefaulkes Jun 1, 2022
bfc1a92
refactor: moving `ClientMetadata` to GRPC domain
emmacasolin Jun 1, 2022
66b5272
fix: changed "remote error" to "cause" in cli error logging
emmacasolin Jun 1, 2022
4e99b8b
feat: filtering error logging in service handlers
emmacasolin Jun 1, 2022
7375e1d
feat: updated `Opaque` usage
emmacasolin Jun 3, 2022
a244c30
feat: `promisify` utility now preserves typing info
emmacasolin Jun 3, 2022
bb50d71
fix: bug fixes in vaults service handlers
emmacasolin Jun 6, 2022
fe0070b
style: lint fix
emmacasolin Jun 6, 2022
26fd955
fix: service handlers check for client error chains
emmacasolin Jun 6, 2022
c37eddb
build: updated package.json
emmacasolin Jun 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"es2021": true,
"node": true,
"jest": true
},
Expand All @@ -11,26 +11,24 @@
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier",
"prettier/@typescript-eslint"
"prettier"
],
"plugins": [
"import"
],
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module",
"ecmaVersion": 2020
"sourceType": "module"
},
"rules": {
"linebreak-style": ["error", "unix"],
"no-empty": 1,
"no-undef": 0,
"no-useless-catch": 1,
"no-prototype-builtins": 1,
"no-constant-condition": 0,
"no-useless-escape" : 0,
"no-console": "error",
"require-yield": 0,
"eqeqeq": ["error", "smart"],
"spaced-comment": [
"warn",
Expand Down Expand Up @@ -121,6 +119,12 @@
"leadingUnderscore": "allow",
"trailingUnderscore": "allowSingleOrDouble"
},
{
"selector": "function",
"format": ["camelCase", "PascalCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allowSingleOrDouble"
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
/benches
/build
/builds
/dist/tsbuildinfo
25 changes: 20 additions & 5 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ runCommandNoCC
, callPackage
, jq
}:

let
Expand Down Expand Up @@ -32,11 +33,25 @@ let
"${utils.node2nixProd}/lib/node_modules" \
"$out/lib/node_modules/$packageName/"
fi
# create symlink to the deployed executable folder, if applicable
if [ -d "${utils.node2nixDev}/lib/node_modules/.bin" ]; then
cp -r ${utils.node2nixDev}/lib/node_modules/.bin $out/lib/node_modules/
ln -s $out/lib/node_modules/.bin $out/bin
# symlink bin executables
if [ \
"$(${jq}/bin/jq 'has("bin")' "$out/lib/node_modules/${utils.node2nixDev.packageName}/package.json")" \
== \
"true" \
]; then
mkdir -p "$out/bin"
while IFS= read -r bin_name && IFS= read -r bin_path; do
# make files executable
chmod a+x "$out/lib/node_modules/${utils.node2nixDev.packageName}/$bin_path"
# create the symlink
ln -s \
"../lib/node_modules/${utils.node2nixDev.packageName}/$bin_path" \
"$out/bin/$bin_name"
done < <(
${jq}/bin/jq -r 'select(.bin != null) | .bin | to_entries[] | (.key, .value)' \
"$out/lib/node_modules/${utils.node2nixDev.packageName}/package.json"
)
fi
'';
'';
in
drv
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const os = require('os');
const path = require('path');
const fs = require('fs');
const process = require('process');
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const { pathsToModuleNameMapper } = require('ts-jest');
const { compilerOptions } = require('./tsconfig');

const moduleNameMapper = pathsToModuleNameMapper(compilerOptions.paths, {
Expand Down
Loading