|
1 | 1 | # Topcoder React Utils Changelog
|
2 | 2 |
|
3 | 3 | ### v0.6.0
|
4 |
| -A better way to build the library: both dev and prod builds are created; and |
5 |
| -the proper version is selected depending on `NODE_ENV` value at the buildtime |
6 |
| -(client-side) or runtime (server-side) of the host code. |
7 |
| - |
8 |
| -**BREAKING CHANGE:** You should update the way you include style the global |
9 |
| -stylesheet into the host code, from: |
10 |
| -```jsx |
11 |
| -require('topcoder-react-utils/dist/style.css'); |
12 |
| -``` |
13 |
| -to |
14 |
| -```jsx |
15 |
| -/* eslint-disable global-require */ |
16 |
| -if (process.env.NODE_ENV === 'production') { |
17 |
| - require('topcoder-react-utils/dist/prod/style.css'); |
18 |
| -} else { |
19 |
| - require('topcoder-react-utils/dist/dev/style.css'); |
20 |
| -} |
21 |
| -/* eslint-enable global-require */ |
22 |
| -``` |
23 |
| -This will include the proper version of compiled global styles into the host |
24 |
| -code. |
| 4 | +- A better way to build the library: both dev and prod builds are created; and |
| 5 | + the proper version is selected depending on `NODE_ENV` value at the buildtime |
| 6 | + (client-side) or runtime (server-side) of the host code. |
| 7 | + |
| 8 | + **BREAKING CHANGE:** You should update the way you include style the global |
| 9 | + stylesheet into the host code, from: |
| 10 | + ```jsx |
| 11 | + require('topcoder-react-utils/dist/style.css'); |
| 12 | + ``` |
| 13 | + to |
| 14 | + ```jsx |
| 15 | + /* eslint-disable global-require */ |
| 16 | + if (process.env.NODE_ENV === 'production') { |
| 17 | + require('topcoder-react-utils/dist/prod/style.css'); |
| 18 | + } else { |
| 19 | + require('topcoder-react-utils/dist/dev/style.css'); |
| 20 | + } |
| 21 | + /* eslint-enable global-require */ |
| 22 | + ``` |
| 23 | + This will include the proper version of compiled global styles into the host |
| 24 | + code. |
| 25 | + |
| 26 | +- Also most of NPM dependencies updated to their latest versions, which might |
| 27 | + demand some fixes in your code. |
25 | 28 |
|
26 | 29 | ### v0.5.0
|
27 | 30 | All dependencies are force-updated to their latest versions. It might introduce
|
|
0 commit comments