Skip to content

Commit e4a3235

Browse files
authored
feat(localizers): move localizer dependencies
Move moment, moment-timezone, luxon and globalize from devDependencies to dependencies, requiring devs to explicitly include in their projects. Update other dependencies. BREAKING CHANGE: moment, luxon and globalize are no longer bundled
1 parent 7dddb21 commit e4a3235

File tree

5 files changed

+3092
-2448
lines changed

5 files changed

+3092
-2448
lines changed

.size-snapshot.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,26 @@
2424
}
2525
},
2626
"react-big-calendar.js": {
27-
"bundled": 1583435,
28-
"minified": 445376,
29-
"gzipped": 137501
27+
"bundled": 1587763,
28+
"minified": 446013,
29+
"gzipped": 137712
3030
},
3131
"react-big-calendar.min.js": {
32-
"bundled": 283187,
33-
"minified": 281738,
34-
"gzipped": 88836
32+
"bundled": 284200,
33+
"minified": 282747,
34+
"gzipped": 89477
3535
},
3636
"react-big-calendar.esm.js": {
37-
"bundled": 199459,
38-
"minified": 93011,
39-
"gzipped": 24119,
37+
"bundled": 200472,
38+
"minified": 93363,
39+
"gzipped": 24285,
4040
"treeshaked": {
4141
"rollup": {
42-
"code": 66234,
43-
"import_statements": 1804
42+
"code": 66845,
43+
"import_statements": 1823
4444
},
4545
"webpack": {
46-
"code": 70014
46+
"code": 70436
4747
}
4848
}
4949
}

.storybook/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ module.exports = {
3030
},
3131
},
3232
},
33+
{
34+
name: '@storybook/addon-postcss',
35+
options: {
36+
postcssLoaderOptions: {
37+
implementation: require('postcss'),
38+
},
39+
},
40+
},
3341
],
3442
framework: '@storybook/react',
3543
core: {

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ module.exports = function (api) {
4141
plugins: [
4242
['@babel/plugin-transform-runtime'],
4343
['transform-react-remove-prop-types', { mode: 'wrap' }],
44+
['@babel/plugin-proposal-class-properties', { loose: true }],
4445
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
4546
['@babel/plugin-proposal-private-methods', { loose: true }],
4647
...optionalPlugins,

package.json

Lines changed: 44 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -41,89 +41,85 @@
4141
"tdd": "NODE_ENV=test jest --watch"
4242
},
4343
"peerDependencies": {
44-
"moment": "^2.29.1",
4544
"react": "^16.14.0 || ^17 || ^18",
4645
"react-dom": "^16.14.0 || ^17 || ^18"
4746
},
4847
"devDependencies": {
49-
"@babel/cli": "^7.17.6",
50-
"@babel/core": "^7.17.5",
51-
"@babel/eslint-parser": "^7.17.0",
52-
"@babel/plugin-transform-runtime": "^7.17.0",
53-
"@babel/preset-env": "^7.16.11",
54-
"@commitlint/cli": "^16.2.1",
55-
"@commitlint/config-conventional": "^16.2.1",
48+
"@babel/cli": "^7.18.6",
49+
"@babel/core": "^7.18.6",
50+
"@babel/eslint-parser": "^7.18.2",
51+
"@babel/plugin-proposal-class-properties": "^7.18.6",
52+
"@babel/plugin-transform-runtime": "^7.18.6",
53+
"@babel/preset-env": "^7.18.6",
54+
"@commitlint/cli": "^17.0.3",
55+
"@commitlint/config-conventional": "^17.0.3",
5656
"@rollup/plugin-babel": "5.3.1",
57-
"@rollup/plugin-commonjs": "21.0.2",
58-
"@rollup/plugin-node-resolve": "13.1.3",
57+
"@rollup/plugin-commonjs": "22.0.1",
58+
"@rollup/plugin-node-resolve": "13.3.0",
5959
"@rollup/plugin-replace": "4.0.0",
6060
"@semantic-release/changelog": "^6.0.1",
6161
"@semantic-release/git": "^10.0.1",
62-
"@storybook/addon-actions": "^6.4.19",
63-
"@storybook/addon-essentials": "^6.4.19",
64-
"@storybook/addon-jest": "6.4.19",
65-
"@storybook/addon-links": "^6.4.19",
66-
"@storybook/addon-postcss": "2.0.0",
67-
"@storybook/builder-webpack5": "^6.4.19",
68-
"@storybook/manager-webpack5": "^6.4.19",
62+
"@storybook/addon-actions": "^6.5.9",
63+
"@storybook/addon-essentials": "^6.5.9",
64+
"@storybook/addon-jest": "6.5.9",
65+
"@storybook/addon-links": "^6.5.9",
66+
"@storybook/addon-postcss": "^2.0.0",
67+
"@storybook/builder-webpack5": "^6.5.9",
68+
"@storybook/manager-webpack5": "^6.5.9",
6969
"@storybook/preset-scss": "1.0.3",
70-
"@storybook/react": "^6.4.19",
71-
"@storybook/theming": "6.4.19",
72-
"@typescript-eslint/eslint-plugin": "^5.14.0",
73-
"autoprefixer": "^10.4.2",
74-
"babel-jest": "^27.5.1",
75-
"babel-loader": "^8.2.3",
70+
"@storybook/react": "^6.5.9",
71+
"@storybook/theming": "6.5.9",
72+
"@typescript-eslint/eslint-plugin": "^5.30.5",
73+
"autoprefixer": "^10.4.7",
74+
"babel-jest": "^28.1.2",
7675
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
7776
"babel-plugin-transform-rename-import": "^2.3.0",
7877
"babel-preset-react-app": "^10.0.1",
7978
"bootstrap": "3.4.1",
8079
"bootstrap-sass": "3.4.3",
81-
"eslint": "^8.10.0",
80+
"eslint": "^8.19.0",
8281
"eslint-config-jason": "^8.2.2",
8382
"eslint-config-prettier": "^8.5.0",
8483
"eslint-import-resolver-webpack": "^0.13.2",
85-
"eslint-plugin-import": "^2.25.4",
86-
"eslint-plugin-react": "^7.29.3",
87-
"eslint-plugin-react-hooks": "^4.3.0",
84+
"eslint-plugin-import": "^2.26.0",
85+
"eslint-plugin-react": "^7.30.1",
86+
"eslint-plugin-react-hooks": "^4.6.0",
8887
"font-awesome": "^4.7.0",
89-
"globalize": "^0.1.1",
90-
"husky": "^7.0.0",
88+
"husky": "^8.0.1",
9189
"is-ci": "^3.0.1",
92-
"jest": "^27.5.1",
93-
"lint-staged": "^12.3.5",
94-
"luxon": "^2.3.1",
95-
"moment": "^2.29.1",
96-
"moment-timezone": "^0.5.34",
97-
"postcss": "^8.4.8",
98-
"postcss-cli": "^9.1.0",
99-
"prettier": "^2.5.1",
90+
"jest": "^28.1.2",
91+
"jest-environment-jsdom": "^28.1.2",
92+
"lint-staged": "^13.0.3",
93+
"postcss": "^8.4.14",
94+
"postcss-cli": "^10.0.0",
95+
"prettier": "^2.7.1",
10096
"react": "^17.0.2",
10197
"react-bootstrap": "^0.32.4",
102-
"react-docgen": "^5.4.0",
10398
"react-dom": "^17.0.2",
10499
"react-tackle-box": "^2.1.0",
105100
"regenerator-runtime": "^0.13.9",
106-
"rollup": "^2.70.0",
101+
"rollup": "^2.75.7",
107102
"rollup-plugin-clear": "^2.0.7",
108103
"rollup-plugin-size-snapshot": "^0.12.0",
109104
"rollup-plugin-terser": "^7.0.2",
110-
"sass": "1.49.9",
111-
"sass-loader": "^12.6.0",
112-
"semantic-release": "^19.0.2",
113-
"webpack": "^5.70.0",
114-
"webpack-cli": "^4.9.2",
115-
"webpack-dev-server": "^4.7.4",
116-
"zx": "^5.2.0"
105+
"sass": "1.53.0",
106+
"sass-loader": "^13.0.2",
107+
"semantic-release": "^19.0.3",
108+
"zx": "^7.0.7"
117109
},
118110
"dependencies": {
119-
"@babel/runtime": "^7.17.2",
120-
"clsx": "^1.1.1",
111+
"@babel/runtime": "^7.18.6",
112+
"clsx": "^1.2.1",
121113
"date-arithmetic": "^4.1.0",
122114
"dom-helpers": "^5.2.1",
115+
"globalize": "^0.1.1",
123116
"invariant": "^2.2.4",
124117
"lodash": "^4.17.21",
125118
"lodash-es": "^4.17.21",
119+
"luxon": "^2.4.0",
126120
"memoize-one": "^6.0.0",
121+
"moment": "^2.29.4",
122+
"moment-timezone": "^0.5.34",
127123
"prop-types": "^15.8.1",
128124
"react-overlays": "^4.1.1",
129125
"uncontrollable": "^7.2.1"

0 commit comments

Comments
 (0)