Skip to content

Commit 1f502bf

Browse files
committed
Merge commit '4584ea47f66ff1ea89199e80cbc6c437cd15cd89' into typescript-transpile-only
2 parents 84df1d7 + 4584ea4 commit 1f502bf

File tree

29 files changed

+555
-200
lines changed

29 files changed

+555
-200
lines changed

.circleci/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ commands:
3636
- run:
3737
name: Installing Dependencies
3838
command: yarn install --frozen-lockfile --check-files
39+
- run:
40+
name: Install correct Chrome Driver version
41+
command: yarn add chromedriver@76 -W
42+
- run: google-chrome --version
43+
- run: chromedriver --version
3944
yarn_lint:
4045
steps:
4146
- run:

examples/with-immutable-redux-wrapper/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Immutable Redux Example
22

3-
> This example and documentation is based on the [with-redux](https://github.com/zeit/next.js/tree/master/examples/with-redux) example.
3+
> This example and documentation is based on the [with-redux-wrapper](https://github.com/zeit/next.js/tree/master/examples/with-redux-wrapper) example.
44
55
## How to use
66

examples/with-immutable-redux-wrapper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"immutable": "4.0.0-rc.9",
1111
"next": "latest",
12-
"next-redux-wrapper": "2.0.0-beta.6",
12+
"next-redux-wrapper": "4.0.1",
1313
"react": "^16.7.0",
1414
"react-dom": "^16.7.0",
1515
"react-redux": "^5.0.1",

examples/with-react-intl/pages/_app.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import App from 'next/app'
22
import React from 'react'
3-
import { IntlProvider } from 'react-intl'
3+
import { createIntl, createIntlCache, RawIntlProvider } from 'react-intl'
4+
5+
// This is optional but highly recommended
6+
// since it prevents memory leak
7+
const cache = createIntlCache()
48

59
export default class MyApp extends App {
6-
static async getInitialProps ({ Component, router, ctx }) {
10+
static async getInitialProps ({ Component, ctx }) {
711
let pageProps = {}
812

913
if (Component.getInitialProps) {
@@ -21,10 +25,18 @@ export default class MyApp extends App {
2125
render () {
2226
const { Component, pageProps, locale, messages } = this.props
2327

28+
const intl = createIntl(
29+
{
30+
locale,
31+
messages
32+
},
33+
cache
34+
)
35+
2436
return (
25-
<IntlProvider locale={locale} messages={messages}>
37+
<RawIntlProvider value={intl}>
2638
<Component {...pageProps} />
27-
</IntlProvider>
39+
</RawIntlProvider>
2840
)
2941
}
3042
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
presets: ['next/babel'],
3+
plugins: [['react-native-web', { commonjs: true }]]
4+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
module.exports = {
2-
webpack: config => {
2+
webpack: (config, { defaultLoaders }) => {
33
config.resolve.alias = {
44
...(config.resolve.alias || {}),
55
// Transform all direct `react-native` imports to `react-native-web`
66
'react-native$': 'react-native-web'
77
}
8+
config.resolve.extensions.push('.web.js', '.web.ts', '.web.tsx')
89
return config
910
}
1011
}

examples/with-react-native-web/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
"react": "^16.7.0",
1111
"react-dom": "^16.7.0",
1212
"react-native-web": "^0.11.6"
13+
},
14+
"devDependencies": {
15+
"babel-plugin-react-native-web": "^0.11.7"
1316
}
1417
}

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"registry": "https://registry.npmjs.org/"
1818
}
1919
},
20-
"version": "9.1.2-canary.8"
20+
"version": "9.1.2-canary.9"
2121
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"babel-jest": "24.8.0",
8282
"browserstack-local": "1.4.0",
8383
"cheerio": "0.22.0",
84-
"chromedriver": "75.1.0",
84+
"chromedriver": "76.0.1",
8585
"clone": "2.1.2",
8686
"coveralls": "3.0.3",
8787
"cross-spawn": "6.0.5",

packages/create-next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-next-app",
3-
"version": "9.1.2-canary.8",
3+
"version": "9.1.2-canary.9",
44
"keywords": [
55
"react",
66
"next",

0 commit comments

Comments
 (0)