UNPKG

6.33 kBMarkdownView Raw
1## 1.0.0-beta.29
2
3- `<Prefetch when>` accepts array of match function names to call and its render-invoked `children()` function now receives a third argument: `error`.
4
5## 1.0.0-beta.28
6
7- `<Link>` is now a pure component.
8- `<Focus>` uses a 0 second timeout to delay focusing.
9
10## 1.0.0-beta.27
11
12- Add `<Focus>` component for auto-focusing after new responses.
13
14## 1.0.0-beta.26
15
16- `<Link>` children can be a render-invoked prop that receives the link's navigating state.
17- Warn when the `ref` passed to `<Prefetch>`'s render-invoked function is `null` after mounting.
18- Pass the object resolved by `route.prefetch()` to `<Prefetch>`'s `children` render-invoked function.
19
20## 1.0.0-beta.25
21
22- Fix `<Prefetch>` on the server and don't change refs.
23
24## 1.0.0-beta.24
25
26- Add `<Prefetch>` component for prefetching a route's data. Requires `@curi/router-prefetch`.
27- Forward `<Link>` ref to actual component (e.g. `<a>`).
28
29## 1.0.0-beta.23
30
31- TypeScript fix
32
33## 1.0.0-beta.22
34
35- Use `router.navigate()` in `<Link>`.
36
37## 1.0.0-beta.21
38
39- Add `hash`, `query`, and `state` props to `<Link>`, remove `details`.
40- Remove `<Link active>`.
41- Update `<Active>` to use a render-invoked `children` prop. Removes the `merge`, `details`, and `extra` props.
42- Use the new React Context API released in React 16.3. This forces the minimum React version for `@curi/react` projects to `16.3`.
43
44## 1.0.0-beta.20
45
46- (Internal) `<CuriProvider>` uses `router.respond(fn, { observe: true })`.
47- Use `react-broadcast` to simulate new context API. This removes the `<ResponsiveBase>` and `<CuriBase>` components in favor of a single `<CuriProvider>`. The `<Curious>` prop also now just expects a `children` render function prop.
48- (Internal) Router's response handler receives `Emitted` object.
49
50## 1.0.0-beta.19
51
52- Add a `<ResponsiveBase>` component. This is just a `<CuriBase>` wrapped in a `<Curious>`.
53- `<Curious>` does not initially call response handler (prevents extra render).
54- `<CuriBase render>` passes a single `CuriProps` object to the `render` function instead of three arguments.
55
56## 1.0.0-beta.18
57
58- Switch from `action` to `navigation` (which contains an `action` as well as the previous `response`).
59 - Make `navigation` a required prop of the `<CuriBase>` (`action` was optional).
60 - `<Curious>` injects `navigation`, not `action`.
61- `<Curious>` sets initial `response`/`navigation` when responsive.
62
63## 1.0.0-beta.17
64
65- `<Curious>` warns if trying to pass a new `router` prop.
66- `<Curious>` subscribes when given `router` prop (`responsive` not necessary).
67
68## 1.0.0-beta.16
69
70- Add `responsive` and `router` props to `<Curious>`, letting it listen for emitted responses.
71- Switch from `curious` higher-order component to `<Curious>` with a render function.
72- Rename `<Link>`'s `curi` prop to `router`.
73
74## 1.0.0-beta.15
75
76- Refer to the Curi router as `router` instead of `config`.
77- `curious` injects `router` prop instead of `curi`.
78- Export types from root.
79
80## 1.0.0-beta.14
81
82- Make passing the `action` to `<CuriBase>` optional (it will default to `POP`).
83- Rename `<Navigator>` to `<CuriBase>`.
84- Add `extra` and `details` props to the `<Active>` component.
85- Add an `extra` function to the `<Link active>` object, which is a function that can add additional active checking using the current location and the details passed to the `<Link>`. This allows you to mark a link as active based on its `query` and/or `hash`.
86- Simpler `<Link anchor>` type.
87- Removed source maps from `dist`
88
89## 1.0.0-beta.13
90
91- `<Navigator>` no longer subscribes to Curi. Instead, the user should subscribe themselves and pass the `response` to the `<Navigator>`. In addition to the `response` prop, the `<Navigator>` also now accepts an `action` prop.
92- There is now one base Curi `context` object. The object is referenced as `curi` and contains three properties: `config` (the Curi config object), `response` (the current `response` object), and `action` (the current `action` string). All components have been updated to reflect this change.
93- `<Link details={{ pathname: '...' }} />` will no longer override the `pathname` generated by the `to`/`params` props.
94- When `<Link>` is not provided a `to` prop, use `response.location` instead of `history.location` to get the `pathname`. Normally, these are the same object, but they could differ if clicking a link after navigation has started (but a response has not been emitted).
95
96## 1.0.0-beta.12
97
98- `<Link>` uses `history.navigate`, not `history.update`.
99
100## 1.0.0-beta.11
101
102- Update types to expect `Response` instead of `AnyResponse` from `@curi/core`.
103
104## 1.0.0-beta.10
105
106- Allow `<Active>`, `<Block>`, and `<Link>` to accept `curi`/`response` props (only `curi` for the `<Block>`). This should generally be unnecessary, but makes it so that we can `connect` them (using `react-redux`).
107- Remove `<Provider>`. It was only adding half of the necessary `context` values (did not provide the `response`). The `<Navigator>` should be used instead.
108
109## 1.0.0-beta.9
110
111- Remove `<Redirect>`. This was inspired by React Router, but it doesn't really serve a point. Redirects should either be known pre-render, in which case they can be made in `route.load` or can be manually performed using `curi.history.replace`.
112- Pass `action` to `<Navigator>`'s `render` function. New signature is `function(response, action, config) {}`.
113
114## 1.0.0-beta.8
115
116- Update React peer dependency to allow React 16.
117
118## 1.0.0-beta.7
119
120- Switch to TypeScript
121- Rename `<Block>`'s `when` prop to `active`.
122
123## 1.0.0-beta.6
124
125- Merge the `@curi/react-___` packages back into `@curi/react`. Instead, rely on Babel 7's `#__PURE__` comments to remove unused components. **Update**: This still does not actually work due to static properties being places outside of the closure that Babel creates. This _should_ be fixed sometime soon, but for the time being, tree-shaking will not actually work here.
126
127## 1.0.0-beta.5
128
129- Fixed build
130
131## 1.0.0-beta.4
132
133- Switched to scoped package: `@curi/react`.
134
135## 1.0.0-beta.1
136
137- Getting close to where this should be ready for release, so switching to beta version.
138
139## 0.8.0
140
141- Updated to include new versions of components that are adapted to use the [`hickory`](https://github.com/pshrmn/hickory) package.
142
143## 0.7.0
144
145- New build (uses Rollup to output a single file for each build type).