Skip to content

Commit

Permalink
chore: update libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Gumichocopengin8 committed Oct 18, 2024
1 parent 8d52279 commit 60ce37e
Show file tree
Hide file tree
Showing 8 changed files with 384 additions and 375 deletions.
195 changes: 97 additions & 98 deletions api/Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
profile = "default"
channel = "1.81.0"
channel = "1.82.0"
389 changes: 195 additions & 194 deletions web/package-lock.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^6.1.1",
"@mui/material": "^6.1.1",
"@mui/icons-material": "^6.1.4",
"@mui/material": "^6.1.4",
"axios": "^1.7.7",
"dayjs": "^1.11.13",
"echarts": "^5.5.1",
"next": "^14.2.13",
"next": "^14.2.15",
"pretty-bytes": "^6.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand All @@ -29,23 +29,23 @@
"swr": "^2.2.5"
},
"devDependencies": {
"@eslint/js": "^9.11.1",
"@playwright/test": "^1.47.2",
"@types/node": "^22.7.1",
"@types/react": "^18.3.9",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@eslint/js": "^9.12.0",
"@playwright/test": "^1.48.1",
"@types/node": "^22.7.6",
"@types/react": "^18.3.11",
"@typescript-eslint/eslint-plugin": "^8.10.0",
"@typescript-eslint/parser": "^8.10.0",
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.13",
"eslint-config-next": "^14.2.15",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^4.6.2",
"globals": "^15.9.0",
"globals": "^15.11.0",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"typescript": "^5.6.2",
"typescript-eslint": "^8.7.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.10.0",
"wasm-pack": "^0.13.0"
},
"husky": {
Expand Down
56 changes: 28 additions & 28 deletions web/src/web_assembly/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions web/src/web_assembly/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
js-sys = "0.3.70"
web-sys = { "version" = "0.3.70", features = ['console'] }
wasm-bindgen = "0.2.93"
js-sys = "0.3.72"
web-sys = { "version" = "0.3.72", features = ['console'] }
wasm-bindgen = "0.2.95"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
Expand Down
83 changes: 46 additions & 37 deletions web/src/web_assembly/pkg/web_assembly.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,26 +99,20 @@ function getDataViewMemory0() {
return cachedDataViewMemory0;
}

const cachedTextDecoder =
typeof TextDecoder !== 'undefined'
? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true })
: {
decode: () => {
throw Error('TextDecoder not available');
},
};
let heap_next = heap.length;

if (typeof TextDecoder !== 'undefined') {
cachedTextDecoder.decode();
function dropObject(idx) {
if (idx < 132) return;
heap[idx] = heap_next;
heap_next = idx;
}

function getStringFromWasm0(ptr, len) {
ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
function takeObject(idx) {
const ret = getObject(idx);
dropObject(idx);
return ret;
}

let heap_next = heap.length;

function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
Expand All @@ -128,16 +122,22 @@ function addHeapObject(obj) {
return idx;
}

function dropObject(idx) {
if (idx < 132) return;
heap[idx] = heap_next;
heap_next = idx;
const cachedTextDecoder =
typeof TextDecoder !== 'undefined'
? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true })
: {
decode: () => {
throw Error('TextDecoder not available');
},
};

if (typeof TextDecoder !== 'undefined') {
cachedTextDecoder.decode();
}

function takeObject(idx) {
const ret = getObject(idx);
dropObject(idx);
return ret;
function getStringFromWasm0(ptr, len) {
ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
}

function passArrayJsValueToWasm0(array, malloc) {
Expand Down Expand Up @@ -182,7 +182,7 @@ async function __wbg_load(module, imports) {
} catch (e) {
if (module.headers.get('Content-Type') != 'application/wasm') {
console.warn(
'`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n',
'`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n',
e
);
} else {
Expand Down Expand Up @@ -215,33 +215,33 @@ function __wbg_get_imports() {
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
};
imports.wbg.__wbg_new0_65387337a95cf44d = function () {
imports.wbg.__wbg_new0_218ada33b570be35 = function () {
const ret = new Date();
return addHeapObject(ret);
};
imports.wbg.__wbg_getTime_91058879093a1589 = function (arg0) {
imports.wbg.__wbg_getTime_41225036a0393d63 = function (arg0) {
const ret = getObject(arg0).getTime();
return ret;
};
imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
takeObject(arg0);
};
imports.wbg.__wbindgen_number_new = function (arg0) {
const ret = arg0;
return addHeapObject(ret);
};
imports.wbg.__wbg_new_7982fb43cfca37ae = function (arg0) {
imports.wbg.__wbg_new_6fb55f037293191b = function (arg0) {
const ret = new Date(getObject(arg0));
return addHeapObject(ret);
};
imports.wbg.__wbg_getTimezoneOffset_c9929a3cc94500fe = function (arg0) {
imports.wbg.__wbg_getTimezoneOffset_93f7d384c8ade3be = function (arg0) {
const ret = getObject(arg0).getTimezoneOffset();
return ret;
};
imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_throw = function (arg0, arg1) {
throw new Error(getStringFromWasm0(arg0, arg1));
};
Expand All @@ -263,8 +263,13 @@ function __wbg_finalize_init(instance, module) {
function initSync(module) {
if (wasm !== undefined) return wasm;

if (typeof module !== 'undefined' && Object.getPrototypeOf(module) === Object.prototype) ({ module } = module);
else console.warn('using deprecated parameters for `initSync()`; pass a single object instead');
if (typeof module !== 'undefined') {
if (Object.getPrototypeOf(module) === Object.prototype) {
({ module } = module);
} else {
console.warn('using deprecated parameters for `initSync()`; pass a single object instead');
}
}

const imports = __wbg_get_imports();

Expand All @@ -282,9 +287,13 @@ function initSync(module) {
async function __wbg_init(module_or_path) {
if (wasm !== undefined) return wasm;

if (typeof module_or_path !== 'undefined' && Object.getPrototypeOf(module_or_path) === Object.prototype)
({ module_or_path } = module_or_path);
else console.warn('using deprecated parameters for the initialization function; pass a single object instead');
if (typeof module_or_path !== 'undefined') {
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
({ module_or_path } = module_or_path);
} else {
console.warn('using deprecated parameters for the initialization function; pass a single object instead');
}
}

if (typeof module_or_path === 'undefined') {
module_or_path = new URL('web_assembly_bg.wasm', import.meta.url);
Expand Down
Binary file modified web/src/web_assembly/pkg/web_assembly_bg.wasm
Binary file not shown.

0 comments on commit 60ce37e

Please sign in to comment.