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

Upgrade Babel-related deps #1621

Merged
merged 1 commit into from
Nov 9, 2019
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
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,17 @@
}
},
"dependencies": {
"@babel/core": "^7.5.5",
"@babel/helper-module-imports": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/core": "^7.7.2",
"@babel/helper-module-imports": "^7.7.0",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-syntax-jsx": "^7.2.0",
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@babel/preset-env": "^7.5.5",
"@babel/plugin-transform-flow-strip-types": "^7.6.3",
"@babel/plugin-transform-react-jsx": "^7.7.0",
"@babel/preset-env": "^7.7.1",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.5.5",
"@babel/runtime": "^7.5.5",
"@babel/preset-react": "^7.7.0",
"@babel/register": "^7.7.0",
"@babel/runtime": "^7.7.2",
"@changesets/changelog-github": "^0.1.0",
"@changesets/cli": "^2.4.0",
"@manypkg/cli": "^0.5.2",
Expand All @@ -188,7 +188,7 @@
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.3",
"babel-flow-types": "^1.2.3",
"babel-jest": "^24.1.0",
"babel-jest": "^24.9.0",
"babel-plugin-add-basic-constructor-for-react-components": "^0.1.0",
"babel-plugin-codegen": "^3.0.0",
"babel-plugin-fix-dce-for-classes-with-statics": "^0.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-plugin-emotion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"test:typescript": "exit 0"
},
"dependencies": {
"@babel/helper-module-imports": "^7.0.0",
"@babel/runtime": "^7.5.5",
"@babel/helper-module-imports": "^7.7.0",
"@babel/runtime": "^7.7.2",
"@emotion/hash": "0.7.3",
"@emotion/memoize": "0.7.3",
"@emotion/serialize": "^1.0.0-next.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-jsx-pragmatic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"access": "public"
},
"devDependencies": {
"@babel/core": "^7.5.5"
"@babel/core": "^7.7.2"
}
}
6 changes: 3 additions & 3 deletions packages/babel-preset-css-prop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"test:typescript": "exit 0"
},
"dependencies": {
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@babel/runtime": "^7.5.5",
"@babel/plugin-transform-react-jsx": "^7.7.0",
"@babel/runtime": "^7.7.2",
"@emotion/babel-plugin-jsx-pragmatic": "^0.1.4",
"babel-plugin-emotion": "^11.0.0-next.0"
},
Expand All @@ -26,6 +26,6 @@
"dist"
],
"devDependencies": {
"@babel/core": "^7.5.5"
"@babel/core": "^7.7.2"
}
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test:typescript": "dtslint types"
},
"dependencies": {
"@babel/runtime": "^7.5.5",
"@babel/runtime": "^7.7.2",
"@emotion/cache": "^11.0.0-next.0",
"@emotion/css": "^11.0.0-next.1",
"@emotion/serialize": "^1.0.0-next.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/emotion-theming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"react": "^16.11.0"
},
"dependencies": {
"@babel/runtime": "^7.5.5",
"@babel/runtime": "^7.7.2",
"@emotion/weak-memoize": "0.2.4",
"hoist-non-react-statics": "^3.3.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-emotion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test:typescript": "dtslint types"
},
"dependencies": {
"@babel/runtime": "^7.5.5",
"@babel/runtime": "^7.7.2",
"@types/jest": "^23.0.2",
"chalk": "^2.4.1",
"css": "^2.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:typescript": "dtslint types"
},
"dependencies": {
"@babel/runtime": "^7.5.5",
"@babel/runtime": "^7.7.2",
"@emotion/is-prop-valid": "0.8.5",
"@emotion/serialize": "^1.0.0-next.0",
"@emotion/utils": "0.11.2",
Expand Down
6 changes: 3 additions & 3 deletions scripts/babel-preset-emotion-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"version": "9.2.6",
"private": true,
"scripts": {
"test:typescript": "exit 0"
"test:typescript": "exit 0"
},
"dependencies": {
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-transform-flow-strip-types": "^7.6.3",
"babel-plugin-add-basic-constructor-for-react-components": "^0.1.0",
"babel-plugin-fix-dce-for-classes-with-statics": "^0.1.0"
}
Expand Down
6 changes: 4 additions & 2 deletions scripts/babel-preset-emotion-dev/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ module.exports = () => {
require.resolve('babel-plugin-fix-dce-for-classes-with-statics'),
require.resolve('@babel/plugin-transform-flow-strip-types'),
require.resolve('babel-plugin-codegen'),
require.resolve('@babel/plugin-proposal-object-rest-spread'),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was not using loose, I've removed it because it's already included nowadays in @babel/preset-env which in turn uses loose here, so it saves few bytes because we don't duplicate objectSpread2 helper across 2 packages (they were bundled in as it was a new helper) and we just reuse regular extends helper

require.resolve('@babel/plugin-transform-runtime'),
[
require.resolve('@babel/plugin-transform-runtime'),
{ version: require('@babel/runtime/package.json').version }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this allows inserting references to @babel/runtime for helpers which were not available yet in 7.0.0-beta.0 release

],
[
require.resolve('@babel/plugin-proposal-class-properties'),
{ loose: true }
Expand Down
4 changes: 4 additions & 0 deletions scripts/babel-tester/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
"private": true,
"scripts": {
"test:typescript": "exit 0"
},
"dependencies": {
"@babel/plugin-syntax-class-properties": "^7.2.0",
"@babel/plugin-syntax-object-rest-spread": "^7.2.0"
}
}
2 changes: 1 addition & 1 deletion scripts/babel-tester/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const tester = allOpts => async opts => {
plugins: [
'macros',
'@babel/plugin-syntax-jsx',
`@babel/plugin-syntax-class-properties`,
'@babel/plugin-syntax-class-properties',
'@babel/plugin-syntax-object-rest-spread',
...(allOpts.plugins || [])
],
Expand Down
2 changes: 1 addition & 1 deletion scripts/benchmarks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:typescript": "exit 0"
},
"dependencies": {
"@babel/core": "^7.5.5",
"@babel/core": "^7.7.2",
"babel-core": "^6.26.3",
"babel-plugin-emotion": "^11.0.0-next.0",
"babel-plugin-react-native-web": "^0.9.6",
Expand Down
Loading