Skip to content

Commit 4d4baea

Browse files
authored
Merge pull request #80 from MatrixAI/feature-node-18
Update project structure to align with node v18 and new async-locks
2 parents 19a358a + b0ad946 commit 4d4baea

File tree

188 files changed

+22966
-5293
lines changed

Some content is hidden

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

188 files changed

+22966
-5293
lines changed

.eslintrc

Lines changed: 14 additions & 2 deletions
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": [
@@ -81,7 +92,8 @@
8192
],
8293
"pathGroupsExcludedImportTypes": [
8394
"type"
84-
]
95+
],
96+
"newlines-between": "never"
8597
}
8698
],
8799
"@typescript-eslint/no-namespace": 0,
@@ -103,7 +115,7 @@
103115
"@typescript-eslint/consistent-type-imports": ["error"],
104116
"@typescript-eslint/consistent-type-exports": ["error"],
105117
"no-throw-literal": "off",
106-
"@typescript-eslint/no-throw-literal": ["error"],
118+
"@typescript-eslint/no-throw-literal": "off",
107119
"@typescript-eslint/no-floating-promises": ["error", {
108120
"ignoreVoid": true,
109121
"ignoreIIFE": true

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ build:windows:
169169
- .\scripts\choco-install.ps1
170170
- refreshenv
171171
- npm install --ignore-scripts
172-
- $env:Path = "$(npm bin);" + $env:Path
172+
- $env:Path = "$(npm root)\.bin;" + $env:Path
173173
- npm test -- --ci --coverage
174174
- npm run bench
175175
artifacts:
@@ -192,14 +192,14 @@ build:macos:
192192
stage: build
193193
needs: []
194194
tags:
195-
- shared-macos-amd64
196-
image: macos-11-xcode-12
195+
- saas-macos-medium-m1
196+
image: macos-12-xcode-14
197197
script:
198198
- eval "$(brew shellenv)"
199199
- ./scripts/brew-install.sh
200200
- hash -r
201201
- npm install --ignore-scripts
202-
- export PATH="$(npm bin):$PATH"
202+
- export PATH="$(npm root)/.bin:$PATH"
203203
- npm test -- --ci --coverage
204204
- npm run bench
205205
artifacts:

benches/results/crypto_100KiB.chart.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</head>
2929
<body>
3030
<div class="container">
31-
<canvas id="chart1661148325685" width="16" height="9"></canvas>
31+
<canvas id="chart1687794239503" 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 ctx1661148325685 = document
55-
.getElementById('chart1661148325685')
54+
const ctx1687794239503 = document
55+
.getElementById('chart1687794239503')
5656
.getContext('2d')
57-
const chart1661148325685 = new Chart(ctx1661148325685, {
57+
const chart1687794239503 = new Chart(ctx1687794239503, {
5858
type: 'bar',
5959
data: {
6060
labels: ["encrypt 100 KiB of data","decrypt 100 KiB of data","encrypt 100 KiB of data with workers","decrypt 100 KiB of data with workers"],
6161
datasets: [
6262
{
63-
data: [130,135,96,92],
64-
backgroundColor: ["hsl(115.56, 85%, 55%)","hsl(120, 85%, 55%)","hsl(85.332, 85%, 55%)","hsl(81.78000000000002, 85%, 55%)"],
65-
borderColor: ["hsl(115.56, 85%, 55%)","hsl(120, 85%, 55%)","hsl(85.332, 85%, 55%)","hsl(81.78000000000002, 85%, 55%)"],
63+
data: [169,170,125,146],
64+
backgroundColor: ["hsl(119.292, 85%, 55%)","hsl(120, 85%, 55%)","hsl(88.236, 85%, 55%)","hsl(103.056, 85%, 55%)"],
65+
borderColor: ["hsl(119.292, 85%, 55%)","hsl(120, 85%, 55%)","hsl(88.236, 85%, 55%)","hsl(103.056, 85%, 55%)"],
6666
borderWidth: 2,
6767
},
6868
],

0 commit comments

Comments
 (0)