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

1229 upgrade dayjs to 1119 and remove dayjs plugins from bundle #1230

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
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtable/api",
"version": "10.44.1",
"version": "10.44.2",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtable/dashboard",
"version": "10.44.1",
"version": "10.44.2",
"license": "Apache-2.0",
"publishConfig": {
"access": "public",
Expand Down Expand Up @@ -145,7 +145,7 @@
"crypto-js": "^4.1.1",
"d3-array": "3.2.3",
"d3-regression": "1.3.10",
"dayjs": "1.11.7",
"dayjs": "1.11.9",
"echarts": "^5.3.2",
"echarts-for-react": "^3.0.2",
"echarts-gl": "^2.0.9",
Expand Down
6 changes: 1 addition & 5 deletions dashboard/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ const EXTERNAL_PATHS = [
'/node_modules/dayjs',
];
const DEPENDENCIES = new Set(Object.keys(dependencies).concat(Object.keys(peerDependencies)));
const externals = (id: string) => {
if (id.includes('node_modules/dayjs/plugin')) {
// FIXME: find a way to use alias on dayjs/plugins
return false;
}
const externals = (id: string, importer: any, isResolved: boolean) => {
// babel transforms module id of emotion, we need to exclude all of them
if (id.startsWith('@emotion')) {
return true;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtable/root",
"version": "10.44.1",
"version": "10.44.2",
"private": true,
"workspaces": [
"api",
Expand Down
2 changes: 1 addition & 1 deletion settings-form/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtable/settings-form",
"version": "10.44.1",
"version": "10.44.2",
"license": "Apache-2.0",
"publishConfig": {
"access": "public",
Expand Down
4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@devtable/website",
"private": true,
"license": "Apache-2.0",
"version": "10.44.1",
"version": "10.44.2",
"scripts": {
"dev": "vite",
"preview": "vite preview"
Expand Down Expand Up @@ -47,7 +47,7 @@
"crypto-js": "^4.1.1",
"d3-array": "3.2.3",
"d3-regression": "1.3.10",
"dayjs": "1.11.7",
"dayjs": "1.11.9",
"echarts": "^5.3.2",
"echarts-for-react": "^3.0.2",
"echarts-gl": "^2.0.9",
Expand Down
13 changes: 3 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,7 @@ __metadata:
crypto-js: ^4.1.1
d3-array: 3.2.3
d3-regression: 1.3.10
dayjs: 1.11.7
dayjs: 1.11.9
echarts: ^5.3.2
echarts-for-react: ^3.0.2
echarts-gl: ^2.0.9
Expand Down Expand Up @@ -1884,7 +1884,7 @@ __metadata:
crypto-js: ^4.1.1
d3-array: 3.2.3
d3-regression: 1.3.10
dayjs: 1.11.7
dayjs: 1.11.9
echarts: ^5.3.2
echarts-for-react: ^3.0.2
echarts-gl: ^2.0.9
Expand Down Expand Up @@ -8374,14 +8374,7 @@ __metadata:
languageName: node
linkType: hard

"dayjs@npm:1.11.7":
version: 1.11.7
resolution: "dayjs@npm:1.11.7"
checksum: 5003a7c1dd9ed51385beb658231c3548700b82d3548c0cfbe549d85f2d08e90e972510282b7506941452c58d32136d6362f009c77ca55381a09c704e9f177ebb
languageName: node
linkType: hard

"dayjs@npm:^1.10.4, dayjs@npm:^1.9.1":
"dayjs@npm:1.11.9, dayjs@npm:^1.10.4, dayjs@npm:^1.9.1":
version: 1.11.9
resolution: "dayjs@npm:1.11.9"
checksum: a4844d83dc87f921348bb9b1b93af851c51e6f71fa259604809cfe1b49d1230e6b0212dab44d1cb01994c096ad3a77ea1cf18fa55154da6efcc9d3610526ac38
Expand Down