Skip to content

Commit 7ba545b

Browse files
authored
Merge pull request #62 from MatrixAI/feature-new-locks-monitor
Updating js-db project structure and integrating 4.0.0 of `@matrixai/async-locks`
2 parents 7891215 + ad61b14 commit 7ba545b

File tree

121 files changed

+17001
-3799
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+17001
-3799
lines changed

Diff for: .eslintrc

+16-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@
2828
"no-constant-condition": 0,
2929
"no-useless-escape": 0,
3030
"no-console": "error",
31+
"no-restricted-globals": [
32+
"error",
33+
{
34+
"name": "global",
35+
"message": "Use `globalThis` instead"
36+
},
37+
{
38+
"name": "window",
39+
"message": "Use `globalThis` instead"
40+
}
41+
],
3142
"require-yield": 0,
3243
"eqeqeq": ["error", "smart"],
3344
"spaced-comment": [
@@ -39,7 +50,8 @@
3950
},
4051
"block": {
4152
"exceptions": ["*"]
42-
}
53+
},
54+
"markers": ["/"]
4355
}
4456
],
4557
"capitalized-comments": [
@@ -80,7 +92,8 @@
8092
],
8193
"pathGroupsExcludedImportTypes": [
8294
"type"
83-
]
95+
],
96+
"newlines-between": "never"
8497
}
8598
],
8699
"@typescript-eslint/no-namespace": 0,
@@ -102,7 +115,7 @@
102115
"@typescript-eslint/consistent-type-imports": ["error"],
103116
"@typescript-eslint/consistent-type-exports": ["error"],
104117
"no-throw-literal": "off",
105-
"@typescript-eslint/no-throw-literal": ["error"],
118+
"@typescript-eslint/no-throw-literal": "off",
106119
"@typescript-eslint/no-floating-promises": ["error", {
107120
"ignoreVoid": true,
108121
"ignoreIIFE": true

Diff for: .github/workflows/codesee-arch-diagram.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
# This workflow was added by CodeSee. Learn more at https://codesee.io/
2+
# This is v2.0 of this workflow file
13
on:
24
push:
35
branches:
4-
- master
6+
- staging
57
pull_request_target:
68
types: [opened, synchronize, reopened]
79

@@ -18,3 +20,4 @@ jobs:
1820
- uses: Codesee-io/codesee-action@v2
1921
with:
2022
codesee-token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
23+
codesee-url: https://app.codesee.io

Diff for: .gitlab-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ build:windows:
184184
- ./scripts/choco-install.ps1
185185
- refreshenv
186186
- npm install --ignore-scripts
187-
- $env:Path = "$(npm bin);" + $env:Path
187+
- $env:Path = "$(npm root)\.bin;" + $env:Path
188188
- npm run prebuild --verbose
189189
- npm test -- --ci --coverage
190190
- npm run bench
@@ -221,7 +221,7 @@ build:macos:
221221
- ./scripts/brew-install.sh
222222
- hash -r
223223
- npm install --ignore-scripts
224-
- export PATH="$(npm bin):$PATH"
224+
- export PATH="$(npm root)/.bin:$PATH"
225225
- npm run prebuild --verbose
226226
- npm test -- --ci --coverage
227227
- npm run bench

Diff for: benches/results/db_1KiB.chart.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</head>
2929
<body>
3030
<div class="container">
31-
<canvas id="chart1658405673774" width="16" height="9"></canvas>
31+
<canvas id="chart1687684087088" width="16" height="9"></canvas>
3232
</div>
3333
<script>
3434
const format = (num) => {
@@ -51,18 +51,18 @@
5151
chunked.map((chunk) => chunk.join('')).join(' ') + fractionStr
5252
)
5353
}
54-
const ctx1658405673774 = document
55-
.getElementById('chart1658405673774')
54+
const ctx1687684087088 = document
55+
.getElementById('chart1687684087088')
5656
.getContext('2d')
57-
const chart1658405673774 = new Chart(ctx1658405673774, {
57+
const chart1687684087088 = new Chart(ctx1687684087088, {
5858
type: 'bar',
5959
data: {
6060
labels: ["get 1 KiB of data","put 1 KiB of data","put zero data","put zero data then del"],
6161
datasets: [
6262
{
63-
data: [48563,39043,40984,21108],
64-
backgroundColor: ["hsl(120, 85%, 55%)","hsl(96.48, 85%, 55%)","hsl(101.268, 85%, 55%)","hsl(52.163999999999994, 85%, 55%)"],
65-
borderColor: ["hsl(120, 85%, 55%)","hsl(96.48, 85%, 55%)","hsl(101.268, 85%, 55%)","hsl(52.163999999999994, 85%, 55%)"],
63+
data: [47519,32985,35687,17917],
64+
backgroundColor: ["hsl(120, 85%, 55%)","hsl(83.29199999999999, 85%, 55%)","hsl(90.11999999999999, 85%, 55%)","hsl(45.24, 85%, 55%)"],
65+
borderColor: ["hsl(120, 85%, 55%)","hsl(83.29199999999999, 85%, 55%)","hsl(90.11999999999999, 85%, 55%)","hsl(45.24, 85%, 55%)"],
6666
borderWidth: 2,
6767
},
6868
],

0 commit comments

Comments
 (0)