Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies #3389

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions common/shared/eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ exports.baseRules = {
SwitchCase: 1,
ignoreComments: true,
}],
'perfectionist/sort-imports': 'warn',
'perfectionist/sort-exports': 'warn',
'perfectionist/sort-named-exports': 'warn',
'antfu/consistent-chaining': 'warn',
'sort-imports': [
'error',
{
Expand Down
8 changes: 4 additions & 4 deletions common/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@univerjs/shared",
"name": "@univerjs-infra/shared",
"version": "0.2.12",
"private": true,
"description": "Some infrastructures for univerjs",
Expand All @@ -17,13 +17,13 @@
"./vite": "./vite/index.js"
},
"dependencies": {
"@typescript-eslint/parser": "^8.3.0",
"@typescript-eslint/parser": "^8.5.0",
"@vitejs/plugin-react": "^4.3.1",
"@vitest/coverage-istanbul": "^2.0.5",
"happy-dom": "15.0.0",
"javascript-obfuscator": "^4.1.1",
"vite": "^5.4.2",
"vite-plugin-dts": "^4.1.0",
"vite": "^5.4.3",
"vite-plugin-dts": "^4.2.1",
"vitest": "^2.0.5"
}
}
6 changes: 3 additions & 3 deletions common/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build:storybook": "storybook build"
},
"dependencies": {
"@chromatic-com/storybook": "^1.8.0",
"@chromatic-com/storybook": "^2.0.0",
"@storybook/addon-essentials": "8.2.9",
"@storybook/addon-interactions": "8.2.9",
"@storybook/addon-links": "8.2.9",
Expand All @@ -36,9 +36,9 @@
"storybook-addon-swc": "^1.2.0",
"style-loader": "^4.0.0",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"devDependencies": {
"@univerjs/shared": "workspace:*"
"@univerjs-infra/shared": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion common/storybook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@univerjs/shared/tsconfigs/base",
"extends": "@univerjs-infra/shared/tsconfigs/base",
"compilerOptions": {
"target": "ESNext",
"jsx": "react",
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import antfu from '@antfu/eslint-config';
import { baseRules, facadePreset, specPreset, typescriptPreset } from '@univerjs-infra/shared/eslint';
import header from 'eslint-plugin-header';
import barrel from 'eslint-plugin-no-barrel-import';
import penetrating from 'eslint-plugin-no-penetrating-import';
import { baseRules, facadePreset, specPreset, typescriptPreset } from '@univerjs/shared/eslint';

header.rules.header.meta.schema = false;

Expand Down
6 changes: 3 additions & 3 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@univerjs/engine-render": "workspace:*",
"@univerjs/facade": "workspace:*",
"@univerjs/find-replace": "workspace:*",
"@univerjs/icons": "^0.1.77",
"@univerjs/icons": "^0.1.78",
"@univerjs/rpc": "workspace:*",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-conditional-formatting": "workspace:*",
Expand Down Expand Up @@ -73,14 +73,14 @@
"devDependencies": {
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@univerjs/shared": "workspace:*",
"@univerjs-infra/shared": "workspace:*",
"esbuild": "^0.23.1",
"esbuild-plugin-clean": "^1.0.1",
"esbuild-plugin-copy": "^2.1.1",
"esbuild-plugin-vue3": "^0.4.2",
"esbuild-style-plugin": "^1.6.3",
"less": "^4.2.0",
"minimist": "^1.2.8",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
2 changes: 1 addition & 1 deletion examples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@univerjs/shared/tsconfigs/base",
"extends": "@univerjs-infra/shared/tsconfigs/base",
"compilerOptions": {
"types": ["esbuild-style-plugin"],
"allowArbitraryExtensions": true,
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,25 @@
"sync:cnpm": "turbo sync:cnpm"
},
"devDependencies": {
"@antfu/eslint-config": "2.27.3",
"@antfu/eslint-config": "3.5.0",
"@commitlint/cli": "^19.4.1",
"@commitlint/config-conventional": "^19.4.1",
"@eslint-react/eslint-plugin": "^1.12.4",
"@playwright/test": "^1.46.1",
"@eslint-react/eslint-plugin": "^1.14.0",
"@playwright/test": "^1.47.0",
"@release-it-plugins/workspaces": "^4.2.0",
"@release-it/conventional-changelog": "^8.0.1",
"@storybook/react": "8.2.9",
"@types/node": "^22.5.2",
"@types/node": "^22.5.4",
"@types/react": "^18.3.5",
"@univerjs-infra/shared": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/shared": "workspace:*",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "9.9.1",
"eslint": "9.10.0",
"eslint-plugin-format": "^0.1.2",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-no-barrel-import": "^0.0.2",
"eslint-plugin-no-penetrating-import": "^0.0.1",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react": "^7.35.2",
"eslint-plugin-react-hooks": "5.1.0-rc-107a2f8c3e-20240617",
"eslint-plugin-react-refresh": "^0.4.11",
"husky": "^9.1.5",
Expand All @@ -75,7 +75,7 @@
"release-it": "^17.6.0",
"serve": "^14.2.3",
"turbo": "^2.1.1",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"lint-staged": {
"*": "eslint --fix"
Expand Down
14 changes: 7 additions & 7 deletions packages-experimental/uni-docs-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,20 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.77"
},
"devDependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/docs": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/shared": "workspace:*",
"@univerjs/icons": "^0.1.78",
"@univerjs/ui": "workspace:*",
"@univerjs/uniui": "workspace:*",
"clsx": "^2.1.1",
"clsx": "^2.1.1"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.5.4",
"vite": "^5.4.2",
"typescript": "^5.6.2",
"vite": "^5.4.3",
"vitest": "^2.0.5"
},
"univerSpace": {
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-docs-ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@univerjs/shared/tsconfigs/base",
"extends": "@univerjs-infra/shared/tsconfigs/base",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib/types"
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-docs-ui/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@univerjs/shared/tsconfigs/node",
"extends": "@univerjs-infra/shared/tsconfigs/node",
"include": ["vite.config.ts"]
}
2 changes: 1 addition & 1 deletion packages-experimental/uni-docs-ui/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import createViteConfig from '@univerjs/shared/vite';
import createViteConfig from '@univerjs-infra/shared/vite';
import pkg from './package.json';

export default ({ mode }) => createViteConfig({}, {
Expand Down
14 changes: 8 additions & 6 deletions packages-experimental/uni-formula-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,26 @@
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
"rxjs": ">=7.0.0"
},
"devDependencies": {
"dependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/docs": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.1.77",
"@univerjs/icons": "^0.1.78",
"@univerjs/rpc": "workspace:*",
"@univerjs/shared": "workspace:*",
"@univerjs/sheets-formula": "workspace:*",
"@univerjs/slides": "workspace:*",
"@univerjs/slides-ui": "workspace:*",
"@univerjs/ui": "workspace:*",
"@univerjs/uni-formula": "workspace:*",
"clsx": "^2.1.1",
"clsx": "^2.1.1"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.5.4",
"vite": "^5.4.2",
"typescript": "^5.6.2",
"vite": "^5.4.3",
"vitest": "^2.0.5"
},
"univerSpace": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*/

import { CustomRangeType, Disposable } from '@univerjs/core';
import { IUniFormulaService } from '@univerjs/uni-formula';
import { ISlideEditorBridgeService } from '@univerjs/slides-ui';
import { IUniFormulaService } from '@univerjs/uni-formula';
import type { RichText } from '@univerjs/engine-render';
import type { IAddSlideUniFormulaCommandParams } from '../commands/commands/slide.command';
import type { UniFormulaService } from './uni-formula.service';
Expand All @@ -34,7 +34,7 @@ export class SlideUIFormulaCacheService extends Disposable {
}

writeCache(rangeId: string, params: IAddSlideUniFormulaCommandParams) {
if (this._caches.size && this._caches.values().next().value.unitId !== params.unitId) {
if (this._caches.size && this._caches.values().next().value?.unitId !== params.unitId) {
this.clearCache();
}

Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-formula-ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@univerjs/shared/tsconfigs/base",
"extends": "@univerjs-infra/shared/tsconfigs/base",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib/types"
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-formula-ui/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@univerjs/shared/tsconfigs/node",
"extends": "@univerjs-infra/shared/tsconfigs/node",
"include": ["vite.config.ts"]
}
2 changes: 1 addition & 1 deletion packages-experimental/uni-formula-ui/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import createViteConfig from '@univerjs/shared/vite';
import createViteConfig from '@univerjs-infra/shared/vite';
import pkg from './package.json';

export default ({ mode }) => createViteConfig({}, {
Expand Down
14 changes: 7 additions & 7 deletions packages-experimental/uni-formula/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@
"@univerjs/core": "workspace:*"
},
"dependencies": {
"@univerjs/icons": "^0.1.77"
},
"devDependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/docs": "workspace:*",
"@univerjs/shared": "workspace:*",
"clsx": "^2.1.1",
"@univerjs/icons": "^0.1.78",
"clsx": "^2.1.1"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.5.4",
"vite": "^5.4.2",
"typescript": "^5.6.2",
"vite": "^5.4.3",
"vitest": "^2.0.5"
},
"univerSpace": {
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-formula/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@univerjs/shared/tsconfigs/base",
"extends": "@univerjs-infra/shared/tsconfigs/base",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib/types"
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-formula/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@univerjs/shared/tsconfigs/node",
"extends": "@univerjs-infra/shared/tsconfigs/node",
"include": ["vite.config.ts"]
}
2 changes: 1 addition & 1 deletion packages-experimental/uni-formula/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import createViteConfig from '@univerjs/shared/vite';
import createViteConfig from '@univerjs-infra/shared/vite';
import pkg from './package.json';

export default ({ mode }) => createViteConfig({}, {
Expand Down
14 changes: 7 additions & 7 deletions packages-experimental/uni-sheets-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,22 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.77"
},
"devDependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/docs": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/shared": "workspace:*",
"@univerjs/icons": "^0.1.78",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
"@univerjs/ui": "workspace:*",
"@univerjs/uniui": "workspace:*",
"clsx": "^2.1.1",
"clsx": "^2.1.1"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.5.4",
"vite": "^5.4.2",
"typescript": "^5.6.2",
"vite": "^5.4.3",
"vitest": "^2.0.5"
},
"univerSpace": {
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-sheets-ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@univerjs/shared/tsconfigs/base",
"extends": "@univerjs-infra/shared/tsconfigs/base",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib/types"
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-sheets-ui/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@univerjs/shared/tsconfigs/node",
"extends": "@univerjs-infra/shared/tsconfigs/node",
"include": ["vite.config.ts"]
}
2 changes: 1 addition & 1 deletion packages-experimental/uni-sheets-ui/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import createViteConfig from '@univerjs/shared/vite';
import createViteConfig from '@univerjs-infra/shared/vite';
import pkg from './package.json';

export default ({ mode }) => createViteConfig({}, {
Expand Down
14 changes: 7 additions & 7 deletions packages-experimental/uni-slides-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,24 @@
"react": "^16.9.0 || ^17.0.0 || ^18.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.77"
},
"devDependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/shared": "workspace:*",
"@univerjs/icons": "^0.1.78",
"@univerjs/slides": "workspace:*",
"@univerjs/slides-ui": "workspace:*",
"@univerjs/ui": "workspace:*",
"@univerjs/uniui": "workspace:*",
"clsx": "^2.1.1",
"clsx": "^2.1.1"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.5.4",
"vite": "^5.4.2",
"typescript": "^5.6.2",
"vite": "^5.4.3",
"vitest": "^2.0.5"
},
"univerSpace": {
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-slides-ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@univerjs/shared/tsconfigs/base",
"extends": "@univerjs-infra/shared/tsconfigs/base",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib/types"
Expand Down
Loading
Loading