UNPKG

3.21 kBMarkdownView Raw
1# Changelog
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
8## [Unreleased]
9
10- Bump `webpack-virtual-modules` to `v0.2.2` [[#1484]](https://github.com/Shopify/quilt/pull/1484)
11
12## [3.0.0] - 2020-05-12
13
14### Changed
15
16- ⚠️ Generated entrypoints no longer render the App component with a `location` prop. Apps can instead get the same data from the new `url` prop's `href` attribute.
17- ⚠️ Generated entrypoints no longer render the `App` component with a `server` prop. Whether an app is rendered on the server can instead be trivially inferred from `typeof window === 'undefined'`
18
19Apps which were using the `location` prop will need to use the `url` prop instead. Where before an app component might look like this
20
21```tsx
22export function App({location}: {location: string}) {
23 return (
24 <div className={styles.App}>
25 <Router location={location}>
26 <Frame>
27 <Routes />
28 </Frame>
29 </Router>
30 </div>
31 );
32}
33```
34
35It would now look like this
36
37```tsx
38export function App({url}: {url: URL}) {
39 return (
40 <div className={styles.App}>
41 <Router location={url.href}>
42 <Frame>
43 <Routes />
44 </Frame>
45 </Router>
46 </div>
47 );
48}
49```
50
51### Added
52
53- Generated entrypoints now pass a `data` prop to the `App`. This prop contains the deserialized data from the `x-quilt-data` header which is used by `quilt_rails` to pass data directly to React
54- Generated entrypoints now pass a `url` prop to the `App`. This prop is a full WHATWG compliant `URL` object representing the url for the request that react-server responded to.
55
56## [2.2.17] - 2019-11-29
57
58- Updated dependency: `@shopify/react-server@0.8.5`
59
60## [2.2.13] - 2019-10-31
61
62- Fix case where default entrypoints were generated for `client` and `server` when there were bespoke folders with index files present
63
64## [2.2.0] - 2019-09-26
65
66- Log errors on `uncaughtException` `unhandledRejection` events [#1006](https://github.com/Shopify/quilt/pull/1006)
67
68## [2.1.1] - 2019-09-17
69
70- Fixes an error regrding missing templates [#1006](https://github.com/Shopify/quilt/pull/1006)
71
72## [2.1.0] - 2019-08-16
73
74- Added support for Node projects [#917](https://github.com/Shopify/quilt/pull/917)
75 - _Note:_ For Node apps the plugin relies on `app` being included in your webpack config's `resolve.modules`. For Rails apps, it relies on `app/ui`.
76
77## [2.0.0] - 2019-08-16
78
79- The plugin now defaults the `host` of the generated code to use `process.env.REACT_SERVER_IP` and the `port` to use `process.env.REACT_SERVER_PORT` when explicit values are not supplied. [#852](https://github.com/Shopify/quilt/pull/852)
80- 💚 Increase test timeout [#849](https://github.com/Shopify/quilt/pull/849)
81
82## [1.0.2] - 2019-08-14
83
84- Remove unused `@shopify/koa-shopify-graphql-proxy` import [#847](https://github.com/Shopify/quilt/pull/847)
85
86## [1.0.1] - 2019-08-13
87
88- Upgrading to `react-server@^0.1.1`
89
90## [1.0.0] - 2019-08-13
91
92### Added
93
94- `@shopify/react-server-webpack-plugin` package [#841](https://github.com/Shopify/quilt/pull/841)