Compare commits

...

5 Commits

Author SHA1 Message Date
Nicolò Ribaudo
d0519fa907 v7.5.1 2019-07-06 10:07:59 +02:00
Nicolò Ribaudo
019fbca3f6 Update lerna 2019-07-06 09:57:20 +02:00
Nicolò Ribaudo
24dde2e8e8 Fix objectSpread2 backward compatibility (#10170) 2019-07-06 09:48:36 +02:00
Wesley Wolfe
bff79e198a Retain typescript export-from-source (#10167) 2019-07-05 20:47:55 +02:00
Henry Zhu
106bb41d47 change pkg name back from used-by [skip ci] 2019-07-04 12:30:56 -04:00
18 changed files with 350 additions and 454 deletions

View File

@@ -1,5 +1,5 @@
{
"version": "7.5.0",
"version": "7.5.1",
"changelog": {
"repo": "babel/babel",
"cacheDir": ".changelog",

View File

@@ -1,5 +1,5 @@
{
"name": "babel-core",
"name": "babel",
"private": true,
"license": "MIT",
"scripts": {
@@ -50,7 +50,7 @@
"gulp-watch": "^5.0.1",
"husky": "^2.3.0",
"jest": "^24.8.0",
"lerna": "^3.14.0",
"lerna": "^3.14.2",
"lerna-changelog": "^0.5.0",
"lint-staged": "^8.1.7",
"lodash": "^4.17.11",

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/helpers",
"version": "7.5.0",
"version": "7.5.1",
"description": "Collection of helper functions used by Babel transforms.",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/",

View File

@@ -406,7 +406,7 @@ helpers.objectSpread = helper("7.0.0-beta.0")`
}
`;
helpers.objectSpread2 = helper("7.0.0-beta.0")`
helpers.objectSpread2 = helper("7.5.0")`
import defineProperty from "defineProperty";
export default function _objectSpread2(target) {

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-proposal-object-rest-spread",
"version": "7.5.0",
"version": "7.5.1",
"description": "Compile object rest and spread to ES5",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-object-rest-spread",
"license": "MIT",

View File

@@ -452,7 +452,13 @@ export default declare((api, opts) => {
if (loose) {
helper = getExtendsHelper(file);
} else {
helper = file.addHelper("objectSpread2");
try {
helper = file.addHelper("objectSpread2");
} catch {
// objectSpread2 has been introduced in v7.5.0
// We have to maintain backward compatibility.
helper = file.addHelper("objectSpread");
}
}
path.replaceWith(t.callExpression(helper, args));

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-typescript",
"version": "7.5.0",
"version": "7.5.1",
"description": "Transform TypeScript into ES.next",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-typescript",
"license": "MIT",

View File

@@ -98,6 +98,7 @@ export default declare(
ExportNamedDeclaration(path) {
// remove export declaration if it's exporting only types
if (
!path.node.source &&
path.node.specifiers.length > 0 &&
!path.node.specifiers.find(exportSpecifier =>
path.scope.hasOwnBinding(exportSpecifier.local.name),
@@ -109,7 +110,10 @@ export default declare(
ExportSpecifier(path) {
// remove type exports
if (!path.scope.hasOwnBinding(path.node.local.name)) {
if (
!path.parent.source &&
!path.scope.hasOwnBinding(path.node.local.name)
) {
path.remove();
}
},

View File

@@ -0,0 +1 @@
export default "foo";

View File

@@ -0,0 +1 @@
export default "foo";

View File

@@ -0,0 +1 @@
export { bar } from './bar';

View File

@@ -0,0 +1 @@
export { bar } from './bar';

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/preset-env-standalone",
"version": "7.5.0",
"version": "7.5.1",
"description": "Standalone build of babel-prest-env for use in non-Node.js environments.",
"main": "babel-preset-env.js",
"files": [
@@ -14,7 +14,7 @@
"@babel/plugin-transform-named-capturing-groups-regex": "^7.4.5",
"@babel/plugin-transform-new-target": "^7.4.4",
"@babel/preset-env": "^7.5.0",
"@babel/standalone": "^7.5.0"
"@babel/standalone": "^7.5.1"
},
"keywords": [
"babel",

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/runtime-corejs2",
"version": "7.5.0",
"version": "7.5.1",
"description": "babel's modular runtime helpers with core-js@2 polyfilling",
"license": "MIT",
"publishConfig": {
@@ -13,6 +13,6 @@
"regenerator-runtime": "^0.13.2"
},
"devDependencies": {
"@babel/helpers": "^7.5.0"
"@babel/helpers": "^7.5.1"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/runtime-corejs3",
"version": "7.5.0",
"version": "7.5.1",
"description": "babel's modular runtime helpers with core-js@3 polyfilling",
"license": "MIT",
"publishConfig": {

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/runtime",
"version": "7.5.0",
"version": "7.5.1",
"description": "babel's modular runtime helpers",
"license": "MIT",
"publishConfig": {
@@ -12,6 +12,6 @@
"regenerator-runtime": "^0.13.2"
},
"devDependencies": {
"@babel/helpers": "^7.5.0"
"@babel/helpers": "^7.5.1"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/standalone",
"version": "7.5.0",
"version": "7.5.1",
"description": "Standalone build of Babel for use in non-Node.js environments.",
"main": "babel.js",
"files": [
@@ -24,7 +24,7 @@
"@babel/plugin-proposal-logical-assignment-operators": "^7.2.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
"@babel/plugin-proposal-numeric-separator": "^7.2.0",
"@babel/plugin-proposal-object-rest-spread": "^7.5.0",
"@babel/plugin-proposal-object-rest-spread": "^7.5.1",
"@babel/plugin-proposal-optional-catch-binding": "^7.2.0",
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
"@babel/plugin-proposal-pipeline-operator": "^7.5.0",
@@ -93,7 +93,7 @@
"@babel/plugin-transform-strict-mode": "^7.2.0",
"@babel/plugin-transform-template-literals": "^7.4.4",
"@babel/plugin-transform-typeof-symbol": "^7.2.0",
"@babel/plugin-transform-typescript": "^7.5.0",
"@babel/plugin-transform-typescript": "^7.5.1",
"@babel/plugin-transform-unicode-regex": "^7.4.4",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",

752
yarn.lock

File diff suppressed because it is too large Load Diff