Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Jan 17, 2025
1 parent faebae3 commit e802e29
Show file tree
Hide file tree
Showing 35 changed files with 2,881 additions and 2,612 deletions.
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ labels: ['bug']
- OS: [e.g. iOS]
- Browser: [e.g. Chrome, Safari]
- Version: [e.g. 22]
- H5Web context: [choose one or several] demo, jupyterlab_h5web, @h5web/lib, @h5web/app
- H5Web context: [choose one or several] demo, jupyterlab_h5web, @h5web/lib,
@h5web/app
20 changes: 10 additions & 10 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@
"dependencies": {
"@h5web/app": "workspace:*",
"@h5web/h5wasm": "workspace:*",
"axios": "1.7.3",
"axios-hooks": "5.0.2",
"axios": "1.7.9",
"axios-hooks": "5.1.0",
"h5wasm-plugins": "0.0.3",
"normalize.css": "8.0.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-dropzone": "14.2.3",
"react-icons": "5.2.1",
"wouter": "3.3.1"
"react-dropzone": "14.3.5",
"react-icons": "5.4.0",
"wouter": "3.3.5"
},
"devDependencies": {
"@types/node": "^20.17.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "3.7.0",
"eslint": "9.16.0",
"@vitejs/plugin-react-swc": "3.7.2",
"eslint": "9.18.0",
"typescript": "5.7.3",
"vite": "5.3.5",
"vite-css-modules": "1.4.2",
"vite-plugin-checker": "0.7.2",
"vite": "5.4.11",
"vite-css-modules": "1.8.0",
"vite-plugin-checker": "0.8.0",
"vite-plugin-eslint": "1.8.1"
}
}
4 changes: 2 additions & 2 deletions apps/demo/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ body {
--monospace: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier,
monospace;
--sans-serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
}

#root {
Expand Down
8 changes: 5 additions & 3 deletions apps/storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@ const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.tsx'],
framework: '@storybook/react-vite',
addons: [
{
name: '@storybook/addon-essentials',
options: { docs: false }, // `addon-docs` needs to be configured separately
},
{
name: '@storybook/addon-docs',
options: {
mdxPluginOptions: {
mdxCompileOptions: {
remarkPlugins: [remarkGfm],
remarkPlugins: [remarkGfm], // https://storybook.js.org/docs/writing-docs/mdx#markdown-tables-arent-rendering-correctly
},
},
},
},
'@storybook/addon-links',
'@storybook/addon-essentials',
],
docs: { autodocs: true },
};

export default config;
65 changes: 36 additions & 29 deletions apps/storybook/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,45 @@ import 'normalize.css';
import '@h5web/shared/styles.css'; // importing via `@h5web/lib/src/styles.css` fails due ot lack of `~` prefix (as it is not supported by Vite)
import '../src/styles.css';

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
docs: { source: { excludeDecorators: true } },
options: {
storySort: {
order: [
'Getting started',
'Utilities',
'Context',
'Customization',
'Visualizations',
['LineVis'],
'Building Blocks',
[
'VisCanvas',
'Interactions',
import type { Preview } from '@storybook/react';

const preview: Preview = {
tags: ['autodocs'],
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
docs: { source: { excludeDecorators: true } },
options: {
storySort: {
order: [
'Getting started',
'Utilities',
'Context',
'Customization',
'Visualizations',
['LineVis'],
'Building Blocks',
[
'DefaultInteractions',
'Pan',
'Zoom',
'XAxisZoom',
'YAxisZoom',
'SelectToZoom',
'AxialSelectToZoom',
'SelectionTool',
'AxialSelectionTool',
'VisCanvas',
'Interactions',
[
'DefaultInteractions',
'Pan',
'Zoom',
'XAxisZoom',
'YAxisZoom',
'SelectToZoom',
'AxialSelectToZoom',
'SelectionTool',
'AxialSelectionTool',
],
],
'Toolbar',
['Toolbar', 'DomainWidget', 'Histogram'],
'Experimental',
],
'Toolbar',
['Toolbar', 'DomainWidget', 'Histogram'],
'Experimental',
],
},
},
},
};

export default preview;
30 changes: 15 additions & 15 deletions apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,39 @@
"dependencies": {
"@h5web/lib": "workspace:*",
"@h5web/shared": "workspace:*",
"@react-hookz/web": "24.0.4",
"@react-three/drei": "9.109.2",
"@react-three/fiber": "8.16.8",
"@react-hookz/web": "25.0.1",
"@react-three/drei": "9.121.2",
"@react-three/fiber": "8.17.12",
"d3-array": "3.2.4",
"d3-format": "3.1.0",
"greenlet": "1.1.0",
"ndarray": "1.0.19",
"normalize.css": "8.0.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-icons": "5.2.1",
"three": "0.167.1"
"react-icons": "5.4.0",
"three": "0.172.0"
},
"devDependencies": {
"@storybook/addon-docs": "8.3.5",
"@storybook/addon-essentials": "8.3.5",
"@storybook/addon-links": "8.3.5",
"@storybook/addon-mdx-gfm": "8.3.5",
"@storybook/blocks": "8.3.5",
"@storybook/react": "8.3.5",
"@storybook/react-vite": "8.3.5",
"@storybook/addon-docs": "8.5.0",
"@storybook/addon-essentials": "8.5.0",
"@storybook/addon-links": "8.5.0",
"@storybook/addon-mdx-gfm": "8.5.0",
"@storybook/blocks": "8.5.0",
"@storybook/react": "8.5.0",
"@storybook/react-vite": "8.5.0",
"@types/d3-array": "~3.2.1",
"@types/d3-format": "~3.0.4",
"@types/ndarray": "1.0.14",
"@types/node": "^20.17.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/three": "0.167.1",
"eslint": "9.16.0",
"eslint": "9.18.0",
"remark-gfm": "4.0.0",
"storybook": "8.3.5",
"storybook": "8.5.0",
"typescript": "5.7.3",
"vite": "5.3.5"
"vite": "5.4.11"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/src/Stacking.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import FillHeight from './decorators/FillHeight';

const meta = {
decorators: [FillHeight],
tags: ['autodocs', '!dev'], // use in `Stacking` doc page and hide from sidebar
tags: ['!dev'], // hide from sidebar (use in `Stacking.mdx` doc page only)
} satisfies Meta;

export default meta;
Expand Down
4 changes: 2 additions & 2 deletions apps/storybook/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ body {
--monospace: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier,
monospace;
--sans-serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
}

body {
Expand Down
19 changes: 3 additions & 16 deletions eslint.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,6 @@ export function createConfig(opts = {}) {
globals: { ...globals.browser },
},
},
withVitest && {
/**
* Configure Vitest globals on test files.
*/
name: 'h5web/defaults/globals-vitest',
files: [
'**/__tests__/**/*.{js,jsx,ts,tsx}',
'**/*.test.{js,jsx,ts,tsx}',
],
languageOptions: {
globals: { ...vitestPlugin.environments.env.globals },
},
},
{
/**
* ESLint core rules: https://eslint.org/docs/latest/rules/
Expand Down Expand Up @@ -790,8 +777,8 @@ export function createConfig(opts = {}) {
'@typescript-eslint/consistent-type-assertions': [
'error',
{
assertionStyle: 'as',
objectLiteralTypeAssertions: 'allow-as-parameter', // prefer `const x: T = { ... };` to `const x = { ... } as T; `
arrayLiteralTypeAssertions: 'allow-as-parameter', // prefer `const x: T[] = [ ... ];` to `const x = [ ... ] as T[];`
objectLiteralTypeAssertions: 'allow-as-parameter', // prefer `const x: T = { ... };` to `const x = { ... } as T;`
},
],
'@typescript-eslint/consistent-type-exports': 'warn',
Expand Down Expand Up @@ -831,7 +818,7 @@ export function createConfig(opts = {}) {
allowComparingNullableBooleansToTrue: false,
},
],
'@typescript-eslint/no-unnecessary-condition': 'off', // false positives
'@typescript-eslint/no-unnecessary-condition': 'warn', // false positives due to not enabling `noUncheckedIndexedAccess` can be disabled inline
'@typescript-eslint/no-unnecessary-parameter-property-assignment':
'warn',
'@typescript-eslint/no-unnecessary-qualifier': 'warn',
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,32 +41,32 @@
},
"devDependencies": {
"@simonsmith/cypress-image-snapshot": "9.1.0",
"@stylistic/eslint-plugin-js": "2.12.1",
"@stylistic/eslint-plugin-js": "2.13.0",
"@testing-library/cypress": "10.0.2",
"@types/node": "^20.17.12",
"@vitest/eslint-plugin": "1.1.20",
"@vitest/eslint-plugin": "1.1.25",
"confusing-browser-globals": "1.0.11",
"cypress": "13.13.2",
"cypress": "13.17.0",
"cypress-wait-for-stable-dom": "0.1.0",
"eslint": "9.16.0",
"eslint": "9.18.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-promise": "7.2.1",
"eslint-plugin-react": "7.37.2",
"eslint-plugin-react": "7.37.4",
"eslint-plugin-react-hooks": "5.1.0",
"eslint-plugin-regexp": "2.7.0",
"eslint-plugin-simple-import-sort": "12.1.1",
"eslint-plugin-storybook": "0.11.2",
"eslint-plugin-testing-library": "7.1.1",
"eslint-plugin-unicorn": "56.0.1",
"globals": "15.13.0",
"globals": "15.14.0",
"lodash": "4.17.21",
"prettier": "3.3.3",
"prettier": "3.4.2",
"typescript": "5.7.3",
"typescript-eslint": "8.18.0",
"vitest": "2.0.5",
"vitest-fail-on-console": "0.7.0",
"wait-on": "7.2.0"
"typescript-eslint": "8.20.0",
"vitest": "2.1.8",
"vitest-fail-on-console": "0.7.1",
"wait-on": "8.0.2"
},
"pnpm": {
"requiredScripts": [
Expand Down
36 changes: 18 additions & 18 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,45 +50,45 @@
},
"dependencies": {
"@h5web/lib": "workspace:*",
"@react-hookz/web": "24.0.4",
"@react-three/fiber": "8.16.8",
"axios": "1.7.3",
"@react-hookz/web": "25.0.1",
"@react-three/fiber": "8.17.12",
"axios": "1.7.9",
"d3-format": "3.1.0",
"ndarray": "1.0.19",
"ndarray-ops": "1.2.2",
"react-error-boundary": "4.0.13",
"react-icons": "5.2.1",
"react-reflex": "4.2.6",
"react-error-boundary": "5.0.0",
"react-icons": "5.4.0",
"react-reflex": "4.2.7",
"react-slider": "2.0.4",
"three": "0.167.1",
"zustand": "4.5.4"
"three": "0.172.0",
"zustand": "5.0.3"
},
"devDependencies": {
"@h5web/shared": "workspace:*",
"@rollup/plugin-alias": "5.1.0",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "16.0.0",
"@testing-library/user-event": "14.5.2",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.2.0",
"@testing-library/user-event": "14.6.0",
"@types/d3-format": "~3.0.4",
"@types/ndarray": "1.0.14",
"@types/node": "^20.17.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-slider": "~1.3.6",
"@vitejs/plugin-react-swc": "3.7.0",
"@vitejs/plugin-react-swc": "3.7.2",
"concat": "1.0.3",
"dot-json": "1.3.0",
"eslint": "9.16.0",
"jsdom": "24.1.1",
"eslint": "9.18.0",
"jsdom": "26.0.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"rimraf": "6.0.1",
"rollup": "4.20.0",
"rollup": "4.30.1",
"rollup-plugin-dts": "6.1.1",
"typescript": "5.7.3",
"vite": "5.3.5",
"vite-css-modules": "1.4.2",
"vitest": "2.0.5"
"vite": "5.4.11",
"vite-css-modules": "1.8.0",
"vitest": "2.1.8"
}
}
4 changes: 2 additions & 2 deletions packages/app/src/App.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
--monospace: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier,
monospace;
--sans-serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
--toolbar-height: 2.875rem;
--toolbarBtn-height: 2rem;
}
Expand Down
Loading

0 comments on commit e802e29

Please sign in to comment.