Skip to content

Commit

Permalink
chore(*): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai committed Jan 26, 2025
1 parent 1a8981d commit 5db1d57
Show file tree
Hide file tree
Showing 82 changed files with 1,856 additions and 2,314 deletions.
1 change: 1 addition & 0 deletions common/shared/eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ exports.baseRules = {
'react/no-unstable-default-props': 'warn',
'command/command': 'off',
'jsdoc/tag-lines': 'off',
'import/consistent-type-specifier-style': 'warn',

// IMPORTANT: To ensure compatibility, some features of React 19 will be disabled.
'react/no-forward-ref': 'off',
Expand Down
10 changes: 5 additions & 5 deletions common/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@
"@typescript-eslint/parser": "^8.21.0",
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-vue": "^5.2.1",
"@vitest/coverage-istanbul": "^2.1.8",
"@vitest/coverage-istanbul": "^3.0.4",
"autoprefixer": "^10.4.20",
"eslint-plugin-readable-tailwind": "^1.9.0",
"fs-extra": "^11.2.0",
"fs-extra": "^11.3.0",
"happy-dom": "15.0.0",
"javascript-obfuscator": "^4.1.1",
"postcss-preset-env": "^10.1.3",
"sort-keys": "^5.1.0",
"tailwind-scrollbar": "^3.1.0",
"tailwindcss": "^3.4.17",
"vite": "^6.0.7",
"vite-plugin-dts": "^4.4.0",
"vite": "^6.0.11",
"vite-plugin-dts": "^4.5.0",
"vite-plugin-external": "^4.3.1",
"vitest": "^2.1.8"
"vitest": "^3.0.4"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
Expand Down
24 changes: 12 additions & 12 deletions common/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@
"build:storybook": "storybook build"
},
"dependencies": {
"@chromatic-com/storybook": "^3.2.3",
"@storybook/addon-essentials": "^8.4.7",
"@storybook/addon-interactions": "^8.4.7",
"@storybook/addon-links": "^8.4.7",
"@chromatic-com/storybook": "^3.2.4",
"@storybook/addon-essentials": "^8.5.1",
"@storybook/addon-interactions": "^8.5.1",
"@storybook/addon-links": "^8.5.1",
"@storybook/addon-styling-webpack": "^1.0.1",
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
"@storybook/blocks": "^8.4.7",
"@storybook/icons": "^1.3.0",
"@storybook/react": "^8.4.7",
"@storybook/react-webpack5": "^8.4.7",
"@storybook/types": "^8.4.7",
"@storybook/blocks": "^8.5.1",
"@storybook/icons": "^1.3.2",
"@storybook/react": "^8.5.1",
"@storybook/react-webpack5": "^8.5.1",
"@storybook/types": "^8.5.1",
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/ui": "workspace:*",
"css-loader": "^7.1.2",
"less-loader": "^12.2.0",
"postcss-loader": "^8.1.1",
"storybook": "^8.4.7",
"storybook": "^8.5.1",
"storybook-addon-swc": "^1.2.0",
"style-loader": "^4.0.0",
"tsconfig-paths-webpack-plugin": "^4.2.0",
Expand All @@ -42,8 +42,8 @@
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@univerjs-infra/shared": "workspace:*",
"fs-extra": "^11.2.0",
"postcss": "^8.4.49",
"fs-extra": "^11.3.0",
"postcss": "^8.5.1",
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7"
}
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default antfu(
],
},
}, {
// Not penetrating for source files
// Not penetrating for source files
files: ['**/*.ts', '**/*.tsx'],
plugins: {
penetrating,
Expand Down
2 changes: 1 addition & 1 deletion examples-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@types/fs-extra": "^11.0.4",
"@univerjs-infra/shared": "workspace:*",
"esbuild": "^0.24.2",
"fs-extra": "^11.2.0",
"fs-extra": "^11.3.0",
"typescript": "^5.7.3"
}
}
8 changes: 4 additions & 4 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@
"@types/fs-extra": "^11.0.4",
"@univerjs-infra/shared": "workspace:*",
"cross-env": "^7.0.3",
"detect-port": "^1.6.1",
"detect-port": "^2.1.0",
"esbuild": "^0.24.2",
"esbuild-plugin-clean": "^1.0.1",
"esbuild-plugin-copy": "^2.1.1",
"esbuild-plugin-vue3": "^0.4.2",
"esbuild-style-plugin": "^1.6.3",
"fast-glob": "^3.3.3",
"fs-extra": "^11.2.0",
"less": "^4.2.1",
"fs-extra": "^11.3.0",
"less": "^4.2.2",
"minimist": "^1.2.8",
"postcss": "^8.4.49",
"postcss": "^8.5.1",
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.7.3"
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,39 +44,39 @@
"release": "release-it"
},
"devDependencies": {
"@antfu/eslint-config": "3.12.1",
"@antfu/eslint-config": "4.1.0",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@eslint-react/eslint-plugin": "^1.24.1",
"@playwright/test": "^1.49.1",
"@playwright/test": "^1.50.0",
"@release-it-plugins/workspaces": "^4.2.0",
"@release-it/conventional-changelog": "^9.0.4",
"@storybook/react": "8.4.7",
"@types/node": "^22.10.9",
"@types/react": "^19.0.7",
"@storybook/react": "8.5.1",
"@types/node": "^22.10.10",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@univerjs-infra/shared": "workspace:*",
"@univerjs/design": "workspace:*",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "9.18.0",
"eslint-plugin-format": "^0.1.3",
"eslint": "9.19.0",
"eslint-plugin-format": "^1.0.1",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-jsdoc": "^50.6.2",
"eslint-plugin-jsdoc": "^50.6.3",
"eslint-plugin-no-barrel-import": "^0.0.2",
"eslint-plugin-no-penetrating-import": "^0.0.1",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "5.1.0",
"eslint-plugin-react-refresh": "^0.4.18",
"husky": "^9.1.7",
"lint-staged": "^15.4.1",
"lint-staged": "^15.4.2",
"react": "19.0.0",
"react-dom": "19.0.0",
"release-it": "^17.11.0",
"serve": "^14.2.4",
"tsx": "^4.19.2",
"turbo": "^2.3.3",
"turbo": "^2.3.4",
"typescript": "^5.7.3",
"vitest": "^2.1.8"
"vitest": "^3.0.4"
},
"resolutions": {
"@types/react": "^19.0.2",
Expand Down
6 changes: 3 additions & 3 deletions packages-experimental/action-recorder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
"less": "^4.2.2",
"react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
"vite": "^6.0.11",
"vitest": "^3.0.4"
}
}
8 changes: 4 additions & 4 deletions packages-experimental/debugger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"postcss": "^8.4.49",
"postcss": "^8.5.1",
"react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8",
"vue": "^3.5.12"
"vite": "^6.0.11",
"vitest": "^3.0.4",
"vue": "^3.5.13"
}
}
4 changes: 2 additions & 2 deletions packages-experimental/sheets-source-binding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
"vite": "^6.0.11",
"vitest": "^3.0.4"
}
}
6 changes: 3 additions & 3 deletions packages-experimental/uni-docs-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"postcss": "^8.4.49",
"postcss": "^8.5.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
"vite": "^6.0.11",
"vitest": "^3.0.4"
}
}
6 changes: 3 additions & 3 deletions packages-experimental/uni-formula-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"postcss": "^8.4.49",
"postcss": "^8.5.1",
"react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
"vite": "^6.0.11",
"vitest": "^3.0.4"
}
}
4 changes: 2 additions & 2 deletions packages-experimental/uni-formula/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
"vite": "^6.0.11",
"vitest": "^3.0.4"
}
}
6 changes: 3 additions & 3 deletions packages-experimental/uni-sheets-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"postcss": "^8.4.49",
"postcss": "^8.5.1",
"react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
"vite": "^6.0.11",
"vitest": "^3.0.4"
}
}
8 changes: 4 additions & 4 deletions packages-experimental/uni-slides-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
"postcss": "^8.4.49",
"less": "^4.2.2",
"postcss": "^8.5.1",
"react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
"vite": "^6.0.11",
"vitest": "^3.0.4"
}
}
8 changes: 4 additions & 4 deletions packages-experimental/uniui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"less": "^4.2.1",
"postcss": "^8.4.49",
"less": "^4.2.2",
"postcss": "^8.5.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
"vite": "^6.0.11",
"vitest": "^3.0.4"
}
}
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
"vite": "^6.0.11",
"vitest": "^3.0.4"
}
}
27 changes: 20 additions & 7 deletions packages/core/src/common/shims.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,46 @@
* limitations under the License.
*/

export function installShims() {
installRequestIdleCallback();
}

const glob = typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : window;

function installRequestIdleCallback() {
const TIME_WINDOW = 50;

const idleCallbacks = new Map<number, NodeJS.Timeout>();
let currentId = 0;

if (typeof glob.requestIdleCallback !== 'function') {
glob.requestIdleCallback = function shimRIC(callback: Function) {
const start = Date.now();
return setTimeout(function rICCallback() {
const id = ++currentId;

const timeoutId = setTimeout(function rICCallback() {
idleCallbacks.delete(id);
const remaining = Math.max(0, TIME_WINDOW - (Date.now() - start));
callback({
didTimeout: remaining === 0,
timeRemaining() {
return remaining;
},
});
}, 1) as unknown as number;
}, 1);

idleCallbacks.set(id, timeoutId);
return id;
};
}

if (typeof glob.cancelIdleCallback !== 'function') {
glob.cancelIdleCallback = function shimCancelRIC(id: number) {
clearTimeout(id);
const timeoutId = idleCallbacks.get(id);
if (timeoutId !== undefined) {
clearTimeout(timeoutId);
idleCallbacks.delete(id);
}
};
}
}

export function installShims() {
installRequestIdleCallback();
}
4 changes: 2 additions & 2 deletions packages/data-validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@univerjs/sheets": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
"vite": "^6.0.11",
"vitest": "^3.0.4"
}
}
Loading

0 comments on commit 5db1d57

Please sign in to comment.