Skip to content

Commit

Permalink
chore(deps): bump frontend dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kris7t committed Aug 30, 2024
1 parent 7a3378e commit 2d89b5e
Show file tree
Hide file tree
Showing 10 changed files with 1,734 additions and 1,698 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,37 +93,3 @@ index c4638cb0e4042844c59c52dfe4749e13999fef6e..28dcfb71ad787c78645c460a29e9c522
'dataExtractEnd',
'dataProcessPass1End',
'dataProcessPass2End',
diff --git a/src/workerCode.js b/src/workerCode.js
index be538bb85921dca4da6521740a9d8159d1b39d98..6577ca466601a9f7a6ece8a2cb7f99845ff2cc27 100644
--- a/src/workerCode.js
+++ b/src/workerCode.js
@@ -9,16 +9,16 @@ export function workerCodeBody(port) {
self.document = {}; // Workaround for "ReferenceError: document is not defined" in hpccWasm

port.addEventListener('message', function(event) {
- let hpccWasm = self["@hpcc-js/wasm"];
- if (hpccWasm == undefined && event.data.vizURL) {
+ let Graphviz = self.Graphviz;
+ if (Graphviz == undefined && event.data.vizURL) {
importScripts(event.data.vizURL);
- hpccWasm = self["@hpcc-js/wasm"];
+ Graphviz = self.Graphviz;
// This is an alternative workaround where wasmFolder() is not needed
// document = {currentScript: {src: event.data.vizURL}};
}

if (event.data.type == "version") {
- hpccWasm.Graphviz.load().then(graphviz => {
+ Graphviz.load().then(graphviz => {
port.postMessage({
type: "version",
version: graphviz.version(),
@@ -27,7 +27,7 @@ export function workerCodeBody(port) {
return;
}

- hpccWasm.Graphviz.load().then(graphviz => {
+ Graphviz.load().then(graphviz => {
const svg = graphviz.layout(event.data.dot, "svg", event.data.engine, event.data.options);
if (svg) {
port.postMessage({
894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.3.1.cjs

This file was deleted.

925 changes: 925 additions & 0 deletions .yarn/releases/yarn-4.4.1.cjs

Large diffs are not rendered by default.

30 changes: 17 additions & 13 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,40 @@ packageExtensions:
"@docusaurus/core@*":
peerDependencies:
typescript: "*"
"@docusaurus/theme-classic@*":
"@docusaurus/plugin-client-redirects@*":
peerDependencies:
"@mdx-js/react": "*"
typescript: "*"
"@docusaurus/theme-common@*":
"@docusaurus/plugin-content-blog@*":
peerDependencies:
"@mdx-js/react": "*"
typescript: "*"
"@docusaurus/theme-search-algolia@*":
"@docusaurus/plugin-content-docs@*":
peerDependencies:
"@algolia/client-search": "*"
search-insights: "*"
"@mdx-js/react": "*"
typescript: "*"
"@docusaurus/plugin-client-redirects@*":
"@docusaurus/plugin-content-pages@*":
peerDependencies:
"@mdx-js/react": "*"
typescript: "*"
"@docusaurus/plugin-content-blog@*":
"@docusaurus/plugin-sitemap@*":
peerDependencies:
"@mdx-js/react": "*"
typescript: "*"
"@docusaurus/plugin-content-docs@*":
"@docusaurus/theme-classic@*":
peerDependencies:
typescript: "*"
"@docusaurus/plugin-content-pages@*":
"@docusaurus/theme-common@*":
peerDependencies:
typescript: "*"
"@docusaurus/plugin-sitemap@*":
"@docusaurus/theme-search-algolia@*":
peerDependencies:
"@algolia/client-search": "*"
"@mdx-js/react": "*"
search-insights: "*"
typescript: "*"
"@mui/x-data-grid@*":
peerDependencies:
"@emotion/react": "*"
"@emotion/styled": "*"
"@types/react": "*"
"@typescript-eslint/utils@*":
peerDependencies:
Expand All @@ -71,4 +75,4 @@ packageExtensions:
peerDependencies:
csstype: "*"

yarnPath: .yarn/releases/yarn-4.3.1.cjs
yarnPath: .yarn/releases/yarn-4.4.1.cjs
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@
"g:lint": "node scripts/eslintReport.cjs",
"g:tsc": "tsc"
},
"packageManager": "yarn@4.3.1",
"packageManager": "yarn@4.4.1",
"dependencies": {
"react": "^18.3.1"
},
"devDependencies": {
"@types/eslint": "^8.56.11",
"@types/node": "^20.14.14",
"@types/react": "^18.3.3",
"@types/eslint": "^8.56.12",
"@types/node": "^20.16.2",
"@types/react": "^18.3.5",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"corepack": "^0.29.3",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-mobx": "^0.0.11",
Expand Down
48 changes: 24 additions & 24 deletions subprojects/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,48 +30,48 @@
},
"homepage": "https://refinery.tools",
"dependencies": {
"@algolia/client-search": "^4.24.0",
"@docusaurus/core": "^3.4.0",
"@docusaurus/plugin-client-redirects": "^3.4.0",
"@docusaurus/plugin-content-docs": "^3.4.0",
"@docusaurus/plugin-content-pages": "^3.4.0",
"@docusaurus/plugin-sitemap": "^3.4.0",
"@docusaurus/theme-classic": "^3.4.0",
"@docusaurus/theme-common": "^3.4.0",
"@docusaurus/theme-search-algolia": "^3.4.0",
"@fontsource-variable/jetbrains-mono": "^5.0.21",
"@fontsource-variable/open-sans": "^5.0.29",
"@fontsource/open-sans": "^5.0.28",
"@hpcc-js/wasm-zstd": "^1.1.1",
"@algolia/client-search": "^5.2.3",
"@docusaurus/core": "^3.5.2",
"@docusaurus/plugin-client-redirects": "^3.5.2",
"@docusaurus/plugin-content-docs": "^3.5.2",
"@docusaurus/plugin-content-pages": "^3.5.2",
"@docusaurus/plugin-sitemap": "^3.5.2",
"@docusaurus/theme-classic": "^3.5.2",
"@docusaurus/theme-common": "^3.5.2",
"@docusaurus/theme-search-algolia": "^3.5.2",
"@fontsource-variable/jetbrains-mono": "^5.0.22",
"@fontsource-variable/open-sans": "^5.0.30",
"@fontsource/open-sans": "^5.0.29",
"@hpcc-js/wasm-zstd": "^1.2.0",
"@material-icons/svg": "^1.0.33",
"@mdx-js/react": "^3.0.1",
"@swc/core": "^1.7.5",
"@swc/core": "^1.7.22",
"clsx": "^2.1.1",
"java-properties": "^1.0.2",
"mdast-util-mdx": "^3.0.0",
"prism-react-renderer": "^2.3.1",
"prism-react-renderer": "^2.4.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"remark-smartypants": "^3.0.2",
"responsive-loader": "^3.1.2",
"search-insights": "^2.15.0",
"sharp": "^0.33.4",
"search-insights": "^2.17.0",
"sharp": "^0.33.5",
"swc-loader": "^0.2.6",
"terser-webpack-plugin": "^5.3.10",
"typescript": "5.5.4",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0",
"webpack": "^5.93.0"
"webpack": "^5.94.0"
},
"devDependencies": {
"@docusaurus/mdx-loader": "^3.4.0",
"@docusaurus/module-type-aliases": "^3.4.0",
"@docusaurus/types": "^3.4.0",
"@docusaurus/mdx-loader": "^3.5.2",
"@docusaurus/module-type-aliases": "^3.5.2",
"@docusaurus/types": "^3.5.2",
"@types/babel__core": "^7.20.5",
"@types/mdast": "^4.0.4",
"@types/node": "^20.14.14",
"@types/react": "^18.3.3",
"@types/node": "^20.16.2",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@types/unist": "^3.0.2"
"@types/unist": "^3.0.3"
}
}
39 changes: 20 additions & 19 deletions subprojects/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,36 @@
},
"homepage": "https://refinery.tools",
"dependencies": {
"@codemirror/autocomplete": "^6.17.0",
"@codemirror/autocomplete": "^6.18.0",
"@codemirror/commands": "^6.6.0",
"@codemirror/language": "^6.10.2",
"@codemirror/lint": "^6.8.1",
"@codemirror/search": "^6.5.6",
"@codemirror/state": "^6.4.1",
"@codemirror/view": "^6.29.1",
"@codemirror/view": "^6.33.0",
"@emotion/cache": "^11.13.1",
"@emotion/react": "^11.13.0",
"@emotion/serialize": "^1.3.0",
"@emotion/react": "^11.13.3",
"@emotion/serialize": "^1.3.1",
"@emotion/sheet": "^1.4.0",
"@emotion/styled": "^11.13.0",
"@fontsource-variable/jetbrains-mono": "^5.0.21",
"@fontsource-variable/open-sans": "^5.0.29",
"@fontsource/open-sans": "^5.0.28",
"@hpcc-js/wasm": "^2.18.0",
"@fontsource-variable/jetbrains-mono": "^5.0.22",
"@fontsource-variable/open-sans": "^5.0.30",
"@fontsource/open-sans": "^5.0.29",
"@hpcc-js/wasm": "^2.21.0",
"@hpcc-js/wasm-zstd": "^1.2.0",
"@lezer/common": "^1.2.1",
"@lezer/highlight": "^1.2.0",
"@lezer/highlight": "^1.2.1",
"@lezer/lr": "^1.4.2",
"@material-icons/svg": "^1.0.33",
"@mui/icons-material": "^5.16.6",
"@mui/material": "^5.16.6",
"@mui/system": "^5.16.6",
"@mui/x-data-grid": "^7.12.0",
"@mui/icons-material": "^6.0.1",
"@mui/material": "^6.0.1",
"@mui/system": "^6.0.1",
"@mui/x-data-grid": "^7.15.0",
"ansi-styles": "^6.2.1",
"csstype": "^3.1.3",
"d3": "^7.9.0",
"d3-color": "^3.1.0",
"d3-graphviz": "patch:d3-graphviz@npm%3A5.4.0#~/.yarn/patches/d3-graphviz-npm-5.4.0-4298b33e9f.patch",
"d3-graphviz": "patch:d3-graphviz@npm%3A5.6.0#~/.yarn/patches/d3-graphviz-npm-5.6.0-129e64ec05.patch",
"d3-selection": "^3.0.0",
"d3-zoom": "patch:d3-zoom@npm%3A3.0.0#~/.yarn/patches/d3-zoom-npm-3.0.0-18f706a421.patch",
"escape-string-regexp": "^5.0.0",
Expand Down Expand Up @@ -88,18 +89,18 @@
"@types/lodash-es": "^4.17.12",
"@types/micromatch": "^4.0.9",
"@types/ms": "^0.7.34",
"@types/node": "^20.14.14",
"@types/node": "^20.16.2",
"@types/pnpapi": "^0.0.5",
"@types/react": "^18.3.3",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"@xstate/cli": "^0.5.17",
"html-minifier-terser": "^7.2.0",
"micromatch": "^4.0.7",
"micromatch": "^4.0.8",
"pnpapi": "^0.0.0",
"typescript": "5.5.4",
"vite": "^5.3.5",
"vite-plugin-pwa": "^0.20.1",
"vite": "^5.4.2",
"vite-plugin-pwa": "^0.20.2",
"workbox-window": "^7.1.0"
}
}
11 changes: 4 additions & 7 deletions subprojects/frontend/src/persistence/compressionWorker.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
/*
* SPDX-FileCopyrightText: 2023 The Refinery Authors <https://refinery.tools/>
* SPDX-FileCopyrightText: 2023-2024 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/

import type { Zstd } from '@hpcc-js/wasm';
// We need to use a deep import for proper code splitting with `vite-plugin-pwa`.
// @ts-expect-error Typescript doesn't find the declarations for the deep import.
import { Zstd as zstdLoader } from '@hpcc-js/wasm/zstd';
import { Zstd } from '@hpcc-js/wasm-zstd';

import type {
CompressResponse,
Expand Down Expand Up @@ -56,13 +53,13 @@ async function base64Decode(compressedText: string): Promise<Uint8Array> {
return new Uint8Array(await result.arrayBuffer());
}

let zstd: Awaited<ReturnType<typeof Zstd.load>> | undefined;
let zstd: Zstd | undefined;

globalThis.onmessage = (event) => {
(async () => {
if (zstd === undefined) {
// Since we don't have types for the deep import, we have to cast here.
zstd = await (zstdLoader as { load: typeof Zstd.load }).load();
zstd = await Zstd.load();
}
// Since the render thread will only send us valid messages,
// we can save a bit of bundle size by using a cast instead of `parse`
Expand Down
Loading

0 comments on commit 2d89b5e

Please sign in to comment.