Skip to content

Commit

Permalink
Bump babel-preset-react-native version to 5.0.0 for Babel 7
Browse files Browse the repository at this point in the history
Reviewed By: rafeca

Differential Revision: D7685340

fbshipit-source-id: f229fb5da71f2f1d277d3d55eaa0f400aa76471b
  • Loading branch information
Peter van der Zee authored and facebook-github-bot committed Apr 19, 2018
1 parent 3c0b892 commit 34bd776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babel-preset/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-preset-react-native",
"version": "4.0.0",
"version": "5.0.0",
"description": "Babel preset for React Native applications",
"main": "index.js",
"repository": "https://github.com/facebook/react-native/tree/master/babel-preset",
Expand Down

8 comments on commit 34bd776

@chirag04
Copy link
Contributor

Choose a reason for hiding this comment

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

@rafeca @davidaurelio Seems like we bumped the version here but didn't actually publish on npm. This is partially breaking e2e tests in OSS. Can somebody with access publish this on npm. @hramos

@rafeca
Copy link
Contributor

@rafeca rafeca commented on 34bd776 May 7, 2018

Choose a reason for hiding this comment

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

Thanks for the heads up!

@qfox Can you publish a version of babel-preset-react-native tomorrow?

@pvdz
Copy link

@pvdz pvdz commented on 34bd776 May 10, 2018

Choose a reason for hiding this comment

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

(We plan to bump Metro and the RN preset on Monday, sorry for the delay)

@chirag04
Copy link
Contributor

Choose a reason for hiding this comment

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

@qfox Seems like we bumped metro but RN present is not released on npm. friendly ping :)

@hramos
Copy link
Contributor

@hramos hramos commented on 34bd776 May 16, 2018

Choose a reason for hiding this comment

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

What's missing from npm? babel-preset-react-native?

@chirag04
Copy link
Contributor

Choose a reason for hiding this comment

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

latest on npm is 4.0 for babel-preset-react-native. we already bumped the package.json file to 5.0 but never published to npm.

So need somebody to publish babel-present-react-native v5.0 to npm.

@pvdz
Copy link

@pvdz pvdz commented on 34bd776 May 16, 2018

Choose a reason for hiding this comment

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

Ah, yes. Apologies for not leaving a note here.

Basically there was a bug with ?. and I got tied up with a necessary babel upgrade to beta.47 and wanted to prevent a double major bump for the preset. This is still the case so I want to bump the preset as soon as I got things back on track again.

@pvdz
Copy link

@pvdz pvdz commented on 34bd776 May 17, 2018

Choose a reason for hiding this comment

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

I think there may have been some confusion here. The preset v5 is already published, just under the next tag because it cut over to babel 7 and it was causing problems for people not on master.

For this reason we made version 4 the latest (the default) and we put v5 the next release. This way you have to explicitly request it in order to npm/yarn add it.

So, I'm going to publish a 5.0.1 with the current changes that were staged, they are not important but I'll publish them anyways. If you want to get it you need to specify v5 explicitly (so like yarn add babel-preset-react-native@^5.0.0 or something).

Once the community cuts a proper pre-babel7 release and a babel7 release of RN we can drop the next tag and make v5 the default. This shouldn't take too long now so please be patient here.

To repeat; I would recommend NOT opting in to v5 of the preset unless you run RN from master.

Please sign in to comment.