Skip to content

Commit

Permalink
feat(localizers): move localizer dependencies
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cutterbl authored Jul 7, 2022
1 parent 7dddb21 commit e4a3235
Show file tree
Hide file tree
Showing 5 changed files with 3,092 additions and 2,448 deletions.
24 changes: 12 additions & 12 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,26 @@
}
},
"react-big-calendar.js": {
"bundled": 1583435,
"minified": 445376,
"gzipped": 137501
"bundled": 1587763,
"minified": 446013,
"gzipped": 137712
},
"react-big-calendar.min.js": {
"bundled": 283187,
"minified": 281738,
"gzipped": 88836
"bundled": 284200,
"minified": 282747,
"gzipped": 89477
},
"react-big-calendar.esm.js": {
"bundled": 199459,
"minified": 93011,
"gzipped": 24119,
"bundled": 200472,
"minified": 93363,
"gzipped": 24285,
"treeshaked": {
"rollup": {
"code": 66234,
"import_statements": 1804
"code": 66845,
"import_statements": 1823
},
"webpack": {
"code": 70014
"code": 70436
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ module.exports = {
},
},
},
{
name: '@storybook/addon-postcss',
options: {
postcssLoaderOptions: {
implementation: require('postcss'),
},
},
},
],
framework: '@storybook/react',
core: {
Expand Down
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module.exports = function (api) {
plugins: [
['@babel/plugin-transform-runtime'],
['transform-react-remove-prop-types', { mode: 'wrap' }],
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
['@babel/plugin-proposal-private-methods', { loose: true }],
...optionalPlugins,
Expand Down
92 changes: 44 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,89 +41,85 @@
"tdd": "NODE_ENV=test jest --watch"
},
"peerDependencies": {
"moment": "^2.29.1",
"react": "^16.14.0 || ^17 || ^18",
"react-dom": "^16.14.0 || ^17 || ^18"
},
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.17.5",
"@babel/eslint-parser": "^7.17.0",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@babel/cli": "^7.18.6",
"@babel/core": "^7.18.6",
"@babel/eslint-parser": "^7.18.2",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-commonjs": "21.0.2",
"@rollup/plugin-node-resolve": "13.1.3",
"@rollup/plugin-commonjs": "22.0.1",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-replace": "4.0.0",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@storybook/addon-actions": "^6.4.19",
"@storybook/addon-essentials": "^6.4.19",
"@storybook/addon-jest": "6.4.19",
"@storybook/addon-links": "^6.4.19",
"@storybook/addon-postcss": "2.0.0",
"@storybook/builder-webpack5": "^6.4.19",
"@storybook/manager-webpack5": "^6.4.19",
"@storybook/addon-actions": "^6.5.9",
"@storybook/addon-essentials": "^6.5.9",
"@storybook/addon-jest": "6.5.9",
"@storybook/addon-links": "^6.5.9",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/builder-webpack5": "^6.5.9",
"@storybook/manager-webpack5": "^6.5.9",
"@storybook/preset-scss": "1.0.3",
"@storybook/react": "^6.4.19",
"@storybook/theming": "6.4.19",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"autoprefixer": "^10.4.2",
"babel-jest": "^27.5.1",
"babel-loader": "^8.2.3",
"@storybook/react": "^6.5.9",
"@storybook/theming": "6.5.9",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"autoprefixer": "^10.4.7",
"babel-jest": "^28.1.2",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"babel-plugin-transform-rename-import": "^2.3.0",
"babel-preset-react-app": "^10.0.1",
"bootstrap": "3.4.1",
"bootstrap-sass": "3.4.3",
"eslint": "^8.10.0",
"eslint": "^8.19.0",
"eslint-config-jason": "^8.2.2",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-webpack": "^0.13.2",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-react": "^7.29.3",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"font-awesome": "^4.7.0",
"globalize": "^0.1.1",
"husky": "^7.0.0",
"husky": "^8.0.1",
"is-ci": "^3.0.1",
"jest": "^27.5.1",
"lint-staged": "^12.3.5",
"luxon": "^2.3.1",
"moment": "^2.29.1",
"moment-timezone": "^0.5.34",
"postcss": "^8.4.8",
"postcss-cli": "^9.1.0",
"prettier": "^2.5.1",
"jest": "^28.1.2",
"jest-environment-jsdom": "^28.1.2",
"lint-staged": "^13.0.3",
"postcss": "^8.4.14",
"postcss-cli": "^10.0.0",
"prettier": "^2.7.1",
"react": "^17.0.2",
"react-bootstrap": "^0.32.4",
"react-docgen": "^5.4.0",
"react-dom": "^17.0.2",
"react-tackle-box": "^2.1.0",
"regenerator-runtime": "^0.13.9",
"rollup": "^2.70.0",
"rollup": "^2.75.7",
"rollup-plugin-clear": "^2.0.7",
"rollup-plugin-size-snapshot": "^0.12.0",
"rollup-plugin-terser": "^7.0.2",
"sass": "1.49.9",
"sass-loader": "^12.6.0",
"semantic-release": "^19.0.2",
"webpack": "^5.70.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.7.4",
"zx": "^5.2.0"
"sass": "1.53.0",
"sass-loader": "^13.0.2",
"semantic-release": "^19.0.3",
"zx": "^7.0.7"
},
"dependencies": {
"@babel/runtime": "^7.17.2",
"clsx": "^1.1.1",
"@babel/runtime": "^7.18.6",
"clsx": "^1.2.1",
"date-arithmetic": "^4.1.0",
"dom-helpers": "^5.2.1",
"globalize": "^0.1.1",
"invariant": "^2.2.4",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"luxon": "^2.4.0",
"memoize-one": "^6.0.0",
"moment": "^2.29.4",
"moment-timezone": "^0.5.34",
"prop-types": "^15.8.1",
"react-overlays": "^4.1.1",
"uncontrollable": "^7.2.1"
Expand Down
Loading

0 comments on commit e4a3235

Please sign in to comment.