Skip to content

Commit

Permalink
chore: upgrade dependencies (#391)
Browse files Browse the repository at this point in the history
* green and yellow

* update sentry and tinycolor

* upgrade testing deps

* Fix ci warnings

* fix: uuid error

Co-authored-by: keiya01 <keiya.s.0210@gmail.com>
  • Loading branch information
KaWaite and keiya01 committed Jan 10, 2023
1 parent 666c1b6 commit 7280af5
Show file tree
Hide file tree
Showing 9 changed files with 1,010 additions and 740 deletions.
80 changes: 40 additions & 40 deletions package.json
Expand Up @@ -33,103 +33,103 @@
},
"devDependencies": {
"@emotion/jest": "11.10.5",
"@graphql-codegen/cli": "2.16.1",
"@graphql-codegen/cli": "2.16.3",
"@graphql-codegen/fragment-matcher": "3.3.3",
"@graphql-codegen/introspection": "2.2.3",
"@graphql-codegen/typescript": "2.8.5",
"@graphql-codegen/typescript-operations": "2.5.10",
"@graphql-codegen/typescript": "2.8.7",
"@graphql-codegen/typescript-operations": "2.5.12",
"@graphql-codegen/typescript-react-apollo": "3.3.7",
"@playwright/test": "1.28.1",
"@playwright/test": "1.29.2",
"@rollup/plugin-yaml": "4.0.1",
"@storybook/addon-essentials": "6.5.14",
"@storybook/addons": "6.5.14",
"@storybook/builder-vite": "0.2.5",
"@storybook/react": "6.5.14",
"@storybook/theming": "6.5.14",
"@storybook/addon-essentials": "6.5.15",
"@storybook/addons": "6.5.15",
"@storybook/builder-vite": "0.2.7",
"@storybook/react": "6.5.15",
"@storybook/theming": "6.5.15",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "13.4.0",
"@testing-library/user-event": "14.4.3",
"@types/apollo-upload-client": "17.0.1",
"@types/apollo-upload-client": "17.0.2",
"@types/gapi.auth2": "0.0.56",
"@types/gapi.client": "1.0.5",
"@types/gapi.client.sheets": "4.0.20201030",
"@types/google.picker": "0.0.39",
"@types/lodash-es": "4.17.6",
"@types/node": "18.11.14",
"@types/node": "18.11.18",
"@types/react": "18.0.26",
"@types/react-dom": "18.0.9",
"@types/react-dom": "18.0.10",
"@types/react-ga": "2.3.0",
"@types/react-leaflet": "2.8.2",
"@types/storybook__addon-info": "5.2.5",
"@types/styled-components": "5.1.26",
"@types/tinycolor2": "1.4.3",
"@types/uuid": "^9.0.0",
"@vitejs/plugin-react": "3.0.0",
"@vitest/coverage-c8": "0.25.7",
"@types/uuid": "9.0.0",
"@vitejs/plugin-react": "3.0.1",
"@vitest/coverage-c8": "0.27.0",
"@welldone-software/why-did-you-render": "7.0.1",
"c8": "7.12.0",
"del-cli": "5.0.0",
"dotenv": "16.0.3",
"eslint": "8.29.0",
"eslint": "8.31.0",
"eslint-config-reearth": "0.2.1",
"eslint-plugin-playwright": "0.11.2",
"husky": "8.0.2",
"i18next-parser": "7.1.0",
"jsdom": "20.0.3",
"husky": "8.0.3",
"i18next-parser": "7.2.0",
"jsdom": "21.0.0",
"lint-staged": "13.1.0",
"npm-run-all": "4.1.5",
"prettier": "2.8.1",
"prettier": "2.8.2",
"read-env": "2.0.0",
"rollup-plugin-visualizer": "5.8.3",
"rollup-plugin-visualizer": "5.9.0",
"ts-node": "10.9.1",
"type-fest": "3.3.0",
"type-fest": "3.5.1",
"typescript": "4.9.4",
"typescript-styled-plugin": "0.18.2",
"vite": "4.0.1",
"vite": "4.0.4",
"vite-plugin-cesium": "1.2.22",
"vite-tsconfig-paths": "^4.0.2",
"vitest": "0.25.7",
"vite-tsconfig-paths": "4.0.3",
"vitest": "0.27.0",
"web-streams-polyfill": "3.2.1"
},
"dependencies": {
"@apollo/client": "3.7.2",
"@apollo/client": "3.7.3",
"@auth0/auth0-react": "1.12.0",
"@emotion/react": "11.10.5",
"@emotion/styled": "11.10.5",
"@floating-ui/react-dom": "1.0.1",
"@floating-ui/react-dom": "1.1.2",
"@monaco-editor/react": "4.4.6",
"@popperjs/core": "2.11.6",
"@rot1024/use-transition": "1.0.0",
"@sentry/browser": "6.19.7",
"@sentry/browser": "7.29.0",
"@seznam/compose-react-refs": "1.0.6",
"@turf/turf": "^6.5.0",
"@turf/turf": "6.5.0",
"@ungap/event-target": "0.2.3",
"apollo-link-sentry": "3.2.1",
"apollo-upload-client": "17.0.0",
"array-move": "4.0.0",
"axios": "1.2.1",
"cesium": "1.100.0",
"axios": "1.2.2",
"cesium": "1.101.0",
"cesium-dnd": "1.1.0",
"core-js": "3.26.1",
"core-js": "3.27.1",
"crypto-js": "4.1.1",
"csv-parse": "5.3.3",
"date-fns": "2.29.3",
"dayjs": "^1.11.7",
"dayjs": "1.11.7",
"detect-browser": "5.3.0",
"formik": "2.2.9",
"github-markdown-css": "5.1.0",
"graphiql": "2.2.0",
"graphql": "16.6.0",
"i18next": "22.4.4",
"i18next": "22.4.9",
"i18next-browser-languagedetector": "7.0.1",
"jotai": "1.11.2",
"jotai": "1.12.1",
"js-file-download": "0.4.12",
"leaflet": "1.9.3",
"localforage": "1.10.0",
"lodash-es": "4.17.21",
"mini-svg-data-uri": "1.4.4",
"parse-domain": "7.0.1",
"quickjs-emscripten": "0.21.0",
"quickjs-emscripten": "0.21.1",
"quickjs-emscripten-sync": "1.5.1",
"rc-slider": "9.7.5",
"react": "18.2.0",
Expand All @@ -143,23 +143,23 @@
"react-dropzone": "14.2.3",
"react-error-boundary": "3.1.4",
"react-ga": "3.3.1",
"react-i18next": "12.1.1",
"react-i18next": "12.1.4",
"react-inlinesvg": "3.0.1",
"react-leaflet": "4.2.0",
"react-markdown": "8.0.4",
"react-nl2br": "1.0.4",
"react-player": "2.11.0",
"react-popper": "2.3.0",
"react-router-dom": "6.4.5",
"react-router-dom": "6.6.2",
"react-spinners": "0.13.7",
"react-use": "17.4.0",
"remark-gfm": "3.0.1",
"resium": "1.16.0",
"tinycolor2": "1.4.2",
"tinycolor2": "1.5.2",
"ts-easing": "0.2.0",
"use-callback-ref": "1.3.0",
"use-custom-compare": "1.3.0",
"use-file-input": "1.0.0",
"uuid": "^9.0.0"
"uuid": "9.0.0"
}
}
2 changes: 1 addition & 1 deletion src/components/atoms/Table/index.stories.tsx
Expand Up @@ -8,7 +8,7 @@ export default {
} as Meta;

const headers = ["title", "lat", "lng", "size", "color", "text"];
type Rows = typeof headers[number];
type Rows = (typeof headers)[number];
type Item = { [k in Rows]: string | number };
const data: Item[] = [
{
Expand Down
Expand Up @@ -9,7 +9,7 @@ import { styled } from "@reearth/theme";

const sizes = [6, 7, 8, 9, 10, 11, 12, 14, 16, 18, 21, 24, 36, 48, 60, 72] as const;

export type FontSize = typeof sizes[number];
export type FontSize = (typeof sizes)[number];

const sizeItems = sizes.map(size => ({ key: size, label: size }));

Expand Down
Expand Up @@ -23,7 +23,7 @@ const horizontalAlignItems = [
{ key: "justify", label: "justify", icon: "alignJustify" } as const,
];

type HorizontalAlignKey = typeof horizontalAlignItems[number]["label"];
type HorizontalAlignKey = (typeof horizontalAlignItems)[number]["label"];

// const verticalAlignItems = [
// { key: "top", label: "top", icon: "verticalAlignTop" },
Expand Down
6 changes: 3 additions & 3 deletions src/components/organisms/EarthEditor/RightMenu/index.tsx
Expand Up @@ -13,9 +13,9 @@ import useHooks, { Tab } from "./hooks";
const layerMode = ["property", "infobox", "tag", "export"];
const widgetMode = ["property"];
const sceneMode = ["property", "tag"];
export type LayerMode = typeof layerMode[number];
export type WidgetMode = typeof widgetMode[number];
export type SceneMode = typeof sceneMode[number];
export type LayerMode = (typeof layerMode)[number];
export type WidgetMode = (typeof widgetMode)[number];
export type SceneMode = (typeof sceneMode)[number];
export type Mode = LayerMode | WidgetMode | SceneMode;

// TODO: ErrorBoudaryでエラーハンドリング
Expand Down
2 changes: 1 addition & 1 deletion src/core/mantle/data/csv.ts
Expand Up @@ -73,7 +73,7 @@ const SUPPORTED_COORDINATES = {
const setCoordinatesToPointGeometry = (
geometry: Point | null,
value: any,
coordIdx: typeof SUPPORTED_COORDINATES[keyof typeof SUPPORTED_COORDINATES],
coordIdx: (typeof SUPPORTED_COORDINATES)[keyof typeof SUPPORTED_COORDINATES],
optional?: boolean,
): Point | null => {
if (geometry === null) {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locale.ts
@@ -1,6 +1,6 @@
import { availableLanguages } from "./i18n";

export const localesWithLabel: { [l in typeof availableLanguages[number]]: string } = {
export const localesWithLabel: { [l in (typeof availableLanguages)[number]]: string } = {
en: "English",
ja: "日本語",
};
5 changes: 4 additions & 1 deletion vite.config.ts
Expand Up @@ -51,7 +51,10 @@ export default defineConfig({
],
reporter: ["text", "json", "lcov"],
},
alias: [{ find: "csv-parse", replacement: "csv-parse" }],
alias: [
{ find: "crypto", replacement: "crypto" }, // reset setting for quickjs-emscripten
{ find: "csv-parse", replacement: "csv-parse" },
],
},
});

Expand Down

0 comments on commit 7280af5

Please sign in to comment.