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 @matrixai/async-init, @matrixai/async-locks, @matrixai/db, @matrixai/errors, @matrixai/workers and integrating @matrixai/resources #63

Merged
merged 18 commits into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
2ae727c
Upgraded dependencies
CMCDragonkai Apr 5, 2022
c40b44e
Fixing get after delete consistency affecting ftruncate
CMCDragonkai Apr 14, 2022
24e83d3
EncryptedFS.createReadStream and EncryptedFS.createWriteStream does n…
CMCDragonkai Apr 19, 2022
528bf37
Fix infinite loop in INodeManager.fileGetBlocks when reading sparse b…
CMCDragonkai Apr 21, 2022
332b4da
updating dependencies and continuing concurrency/locking updates
CMCDragonkai Apr 19, 2022
a849e2f
fix: checks for target existence after acquiring locks
tegefaulkes May 2, 2022
c3d72ad
syntax: general fixing of types and cleaning
tegefaulkes May 3, 2022
3e8c57b
tests: added tests for `rmdir` with recursive option
tegefaulkes May 3, 2022
ac88191
test: updating and expanding concurrency tests
tegefaulkes May 3, 2022
a6ca06a
fix: fixed `EncryptedFs.streams.test.ts` build errors after updating …
tegefaulkes May 6, 2022
942daa2
fix: fixed write not zero filling bytes
tegefaulkes May 6, 2022
87b8710
fix: fixed bug with `copyFile` not setting the file size and blocks p…
tegefaulkes May 9, 2022
be930b2
fix: fixed a bug with `_open` not handling concurrency with removing …
tegefaulkes May 9, 2022
7503a25
fix: mkdir now throws correct error when target is a symlink
tegefaulkes May 9, 2022
71b532f
test: checking if truncate affects the contents in the expected way
tegefaulkes May 9, 2022
9f76523
syntax: cleaning up comments
tegefaulkes May 9, 2022
df7b8cb
test: added test for iNode allocation between efs restarts
tegefaulkes May 9, 2022
ea299d9
dependency: updated `@matrixai/errors` to `^1.1.0`
tegefaulkes May 9, 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
10 changes: 8 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"no-useless-catch": 1,
"no-prototype-builtins": 1,
"no-constant-condition": 0,
"no-useless-escape" : 0,
"no-useless-escape": 0,
"no-console": "error",
"eqeqeq": ["error", "smart"],
"spaced-comment": [
Expand Down Expand Up @@ -94,7 +94,6 @@
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/consistent-type-imports": ["error"],
Expand All @@ -108,6 +107,7 @@
"@typescript-eslint/no-misused-promises": ["error", {
"checksVoidReturn": false
}],
"@typescript-eslint/await-thenable": ["error"],
"@typescript-eslint/naming-convention": [
"error",
{
Expand Down Expand Up @@ -141,6 +141,12 @@
"selector": "typeProperty",
"format": null
}
],
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-ignore": "allow-with-description"
}
]
}
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const { pathsToModuleNameMapper } = require('ts-jest');
const { compilerOptions } = require('./tsconfig');

module.exports = {
Expand Down
4,193 changes: 1,480 additions & 2,713 deletions package-lock.json

Large diffs are not rendered by default.

27 changes: 13 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,45 +37,44 @@
"test": "jest",
"lint": "eslint '{src,tests,benches}/**/*.{js,ts}'",
"lintfix": "eslint '{src,tests,benches}/**/*.{js,ts}' --fix",
"docs": "rm -r ./docs || true; typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src && touch ./docs/.nojekyll",
"docs": "rm -r ./docs || true; typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src",
"bench": "rm -r ./benches/results || true; ts-node -r tsconfig-paths/register ./benches"
},
"dependencies": {
"@matrixai/async-init": "^1.6.0",
"@matrixai/db": "^1.1.5",
"@matrixai/async-init": "^1.7.1",
"@matrixai/async-locks": "^2.2.0",
"@matrixai/db": "^3.3.0",
"@matrixai/errors": "^1.1.0",
"@matrixai/logger": "^2.1.0",
"@matrixai/workers": "^1.2.5",
"async-mutex": "^0.3.2",
"@matrixai/resources": "^1.1.1",
"@matrixai/workers": "^1.3.1",
"errno": "^0.1.7",
"lexicographic-integer": "^1.1.0",
"node-forge": "^0.10.0",
"readable-stream": "^3.6.0",
"resource-counter": "^1.2.4",
"threads": "^1.6.5",
"ts-custom-error": "^3.2.0",
"util-callbackify": "^1.0.0"
},
"devDependencies": {
"@types/jest": "^26.0.20",
"@types/level": "^6.0.0",
"@types/jest": "^27.0.2",
"@types/node": "^14.14.35",
"@types/node-forge": "^0.9.7",
"@types/node-forge": "^0.10.4",
"@types/readable-stream": "^2.3.11",
"@types/subleveldown": "^4.1.0",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"benny": "^3.6.15",
"eslint": "^7.17.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-prettier": "^3.3.1",
"jest": "^26.6.3",
"jest": "^27.2.5",
"prettier": "^2.2.1",
"systeminformation": "^5.8.9",
"ts-jest": "^26.4.4",
"ts-jest": "^27.0.5",
"ts-node": "^10.4.0",
"tsconfig-paths": "^3.9.0",
"typedoc": "^0.21.5",
"typescript": "^4.1.3"
"typedoc": "^0.22.15",
"typescript": "^4.5.2"
}
}
4 changes: 2 additions & 2 deletions src/CurrentDirectory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class CurrentDirectory {
curPath: Array<string>,
): Promise<void> {
this._iNodeMgr.ref(ino);
await this._iNodeMgr.transact(async (tran) => {
await this._iNodeMgr.unref(tran, this._ino);
await this._iNodeMgr.withTransactionF(async (tran) => {
await this._iNodeMgr.unref(this._ino, tran);
});
this._ino = ino;
this._curPath = curPath;
Expand Down
Loading