1 | # Changelog
|
2 |
|
3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4 |
|
5 | ### [2.0.6](https://github.com/zillow/react-slider/compare/v2.0.5...v2.0.6) (2023-06-27)
|
6 |
|
7 | ### [2.0.5](https://github.com/zillow/react-slider/compare/v2.0.4...v2.0.5) (2023-06-03)
|
8 |
|
9 |
|
10 | ### Bug Fixes
|
11 |
|
12 | * prevent snap back issue on mobile ([107e2bb](https://github.com/zillow/react-slider/commit/107e2bbd83fb5823ea803714d6c2262ec28f41ae))
|
13 |
|
14 |
|
15 | ### Code Refactoring
|
16 |
|
17 | * avoid manipulating state directly ([6ca5853](https://github.com/zillow/react-slider/commit/6ca5853341022cfc85e0e114ad893582f29dfb97))
|
18 |
|
19 |
|
20 | ### Continuous Integration
|
21 |
|
22 | * inverted sliders, add simple tests ([9c50f38](https://github.com/zillow/react-slider/commit/9c50f389cc6da91c5eaae78ed61193893a5ad500))
|
23 | * inverted sliders, cleanup ([bb0ed77](https://github.com/zillow/react-slider/commit/bb0ed7727ebf80b823b7df7a66ecbe2f28f31898))
|
24 | * inverted sliders, honor inverted key down handler for horizontal sliders ([bdb2292](https://github.com/zillow/react-slider/commit/bdb22927cf755deff5cfd43f4375caa90a1e8e68))
|
25 |
|
26 |
|
27 | ### Tests
|
28 |
|
29 | * update snapshot ([4ead745](https://github.com/zillow/react-slider/commit/4ead74593ba68dc4fcaaed01139a4c9466dcb48f))
|
30 |
|
31 | ### [2.0.4](https://github.com/zillow/react-slider/compare/v2.0.3...v2.0.4) (2022-09-12)
|
32 |
|
33 |
|
34 | ### Bug Fixes
|
35 |
|
36 | * module resolution ([2fbdec6](https://github.com/zillow/react-slider/commit/2fbdec621205105c59174df48e9e5b0298b062ca))
|
37 | * Set empty style porperty values to undefined instead of empty string ([9456005](https://github.com/zillow/react-slider/commit/9456005bd258518b74a14e58010b385532ace64d)), closes [#271](https://github.com/zillow/react-slider/issues/271)
|
38 |
|
39 | ### [2.0.3](https://github.com/zillow/react-slider/compare/v2.0.2...v2.0.3) (2022-08-18)
|
40 |
|
41 | ### [2.0.2](https://github.com/zillow/react-slider/compare/v2.0.1...v2.0.2) (2022-08-18)
|
42 |
|
43 |
|
44 | ### Bug Fixes
|
45 |
|
46 | * dual package extensions ([ef1cb1e](https://github.com/zillow/react-slider/commit/ef1cb1e8ac130362366dc9cbeb1bc96ac7b9cd3b))
|
47 |
|
48 | ### [2.0.1](https://github.com/zillow/react-slider/compare/v2.0.0...v2.0.1) (2022-05-16)
|
49 |
|
50 | ## [2.0.0](https://github.com/zillow/react-slider/compare/v1.3.1...v2.0.0) (2022-03-29)
|
51 |
|
52 |
|
53 | ### ⚠ BREAKING CHANGES
|
54 |
|
55 | * update `create-react-styleguide` to 8x
|
56 |
|
57 | ### Features
|
58 |
|
59 | * add ResizeObserver to handle slider resize programatically ([95bd172](https://github.com/zillow/react-slider/commit/95bd1720f79896ebf3d78a66af1f31ebb9fc58af))
|
60 | * provide root export ([7b0c97d](https://github.com/zillow/react-slider/commit/7b0c97d4ab8be21f66c66ae7dbd08f7d9fa5805c))
|
61 | * upgrade husky and add conventional commit ([caf8246](https://github.com/zillow/react-slider/commit/caf824641eb03e8dd19a1ae09dc4e72f30d928e7))
|
62 |
|
63 |
|
64 | ### Build System
|
65 |
|
66 | * update `create-react-styleguide` to 8x ([d1cbe4e](https://github.com/zillow/react-slider/commit/d1cbe4ec3930e8eb06c0e23da8558d5c1d178c35))
|
67 |
|
68 | ### [1.3.1](https://github.com/zillow/react-slider/compare/v1.3.0...v1.3.1) (2021-06-14)
|
69 |
|
70 |
|
71 | ### Bug Fixes
|
72 |
|
73 | * ignore meta key events in keyDown handler ([cde4c80](https://github.com/zillow/react-slider/commit/cde4c8069bb95cd0a70e52693df533787658b418))
|
74 |
|
75 | ## [1.3.0](https://github.com/zillow/react-slider/compare/v1.2.0...v1.3.0) (2021-06-03)
|
76 |
|
77 |
|
78 | ### Features
|
79 |
|
80 | * add thumb index to on change events ([f0c9684](https://github.com/zillow/react-slider/commit/f0c9684da65ba0c0dd0774f9f978a644aa436280)), closes [#212](https://github.com/zillow/react-slider/issues/212)
|
81 |
|
82 | ## [1.2.0](https://github.com/zillow/react-slider/compare/v1.1.4...v1.2.0) (2021-05-18)
|
83 |
|
84 |
|
85 | ### Features
|
86 |
|
87 | * Add support for multiple values in ariaLabelledby ([28eb332](https://github.com/zillow/react-slider/commit/28eb332decafa692cb4c0a8f44e2a57198638087))
|
88 | * Adding a new ariaLabelledby prop for use with Assistive Technologies ([7d8cc4d](https://github.com/zillow/react-slider/commit/7d8cc4d1ea7fa06c6beaa38b1f9f833a38b2c9a6))
|
89 |
|
90 |
|
91 | ### Documentation
|
92 |
|
93 | * Adding separate arialabelledby examples ([5c97326](https://github.com/zillow/react-slider/commit/5c973268051f329024ade9f9f398931f341aead4))
|
94 | * Removing ariaLabel from ariaLabelledBy examples and htmlFor declarations ([5fbc3de](https://github.com/zillow/react-slider/commit/5fbc3deb8e270273105ca39ec036c383a3c76933))
|
95 |
|
96 | ### [1.1.4](https://github.com/zillow/react-slider/compare/v1.1.3...v1.1.4) (2021-01-22)
|
97 |
|
98 |
|
99 | ### Bug Fixes
|
100 |
|
101 | * set position absolute for marks at render ([7d979e7](https://github.com/zillow/react-slider/commit/7d979e7f9e43b8ba94bebc82ac0081d111efecbd)), closes [#203](https://github.com/zillow/react-slider/issues/203)
|
102 |
|
103 | ### [1.1.3](https://github.com/zillow/react-slider/compare/v1.1.2...v1.1.3) (2021-01-21)
|
104 |
|
105 | ### [1.1.2](https://github.com/zillow/react-slider/compare/v1.1.1...v1.1.2) (2020-11-10)
|
106 |
|
107 |
|
108 | ### Bug Fixes
|
109 |
|
110 | * `onAfterChange` now returns the correct value when used as a controlled component ([03fcc17](https://github.com/zillow/react-slider/commit/03fcc175df5ee28644e122e87592991d9467f765)), closes [#201](https://github.com/zillow/react-slider/issues/201)
|
111 |
|
112 | ### [1.1.1](https://github.com/zillow/react-slider/compare/v1.1.0...v1.1.1) (2020-11-03)
|
113 |
|
114 |
|
115 | ### Bug Fixes
|
116 |
|
117 | * onChange now returns the correct value when used as a controlled component ([b0aef7f](https://github.com/zillow/react-slider/commit/b0aef7f8a40b0d8dbc1ec31fd3c35e87acd10bbd)), closes [#197](https://github.com/zillow/react-slider/issues/197)
|
118 |
|
119 |
|
120 | ### Code Refactoring
|
121 |
|
122 | * UNSAFE_componentWillReceiveProps replaced in favor of getDerivedStateFromProps ([5fff681](https://github.com/zillow/react-slider/commit/5fff681b4bfca7893db246c25d6979aa3362ac9f)), closes [#193](https://github.com/zillow/react-slider/issues/193)
|
123 |
|
124 | ## [1.1.0](https://github.com/zillow/react-slider/compare/v1.0.11...v1.1.0) (2020-11-03)
|
125 |
|
126 |
|
127 | ### Features
|
128 |
|
129 | * add step support for marks ([38f29d3](https://github.com/zillow/react-slider/commit/38f29d30c3fd5ba6dc1f4d1a3fc6edca12770b35))
|
130 | * add support for boolean marks and mark class ([85060d2](https://github.com/zillow/react-slider/commit/85060d2de5cfa0c9f7ad385eefa682936b4bbc09))
|
131 | * add support for marks ([0d1a878](https://github.com/zillow/react-slider/commit/0d1a8784b611c58ed366b3b2d0271b6c3f712175))
|
132 | * add support to custom marks ([21da836](https://github.com/zillow/react-slider/commit/21da836379627ac25df469bfc6716154f47d9826))
|
133 |
|
134 |
|
135 | ### Documentation
|
136 |
|
137 | * update examples with marks ([ecffc59](https://github.com/zillow/react-slider/commit/ecffc5954d625bbea54036413618e8bdc2b7b256))
|
138 |
|
139 | ### [1.0.11](https://github.com/zillow/react-slider/compare/v1.0.10...v1.0.11) (2020-09-22)
|
140 |
|
141 |
|
142 | ### Bug Fixes
|
143 |
|
144 | * Revert "refactor: UNSAFE_componentWillReceiveProps replaced in favor of getDerivedStateFromProps" to fix controlled components ([d068026](https://github.com/zillow/react-slider/commit/d068026ad1e0b723a5c76a819f927cdf20107f55)), closes [#197](https://github.com/zillow/react-slider/issues/197)
|
145 |
|
146 | ### [1.0.10](https://github.com/zillow/react-slider/compare/v1.0.9...v1.0.10) (2020-09-21)
|
147 |
|
148 |
|
149 | ### Build System
|
150 |
|
151 | * update create-react-styleguide@^6 ([222ea5f](https://github.com/zillow/react-slider/commit/222ea5f53500d3319b2eed401e2e50ffc432b4ab))
|
152 | * update standard-version and add a versionrc to include more config types during releases ([5deae9a](https://github.com/zillow/react-slider/commit/5deae9a8b5cd9f6f304597fca96117c81e86fdc1))
|
153 |
|
154 |
|
155 | ### Code Refactoring
|
156 |
|
157 | * UNSAFE_componentWillReceiveProps replaced in favor of getDerivedStateFromProps ([904e927](https://github.com/zillow/react-slider/commit/904e927bba111820f87726ee09f4890fc4004ba9)), closes [#193](https://github.com/zillow/react-slider/issues/193)
|
158 |
|
159 | ## [1.0.9](https://github.com/zillow/react-slider/compare/v1.0.8...v1.0.9) (2020-09-08)
|
160 |
|
161 |
|
162 |
|
163 | ## [1.0.8](https://github.com/zillow/react-slider/compare/v1.0.7...v1.0.8) (2020-06-15)
|
164 |
|
165 |
|
166 | ### Bug Fixes
|
167 |
|
168 | * account for floating point operations when stepping values with the keyboard ([93f89d8](https://github.com/zillow/react-slider/commit/93f89d811f639837d7ba81a48524224cd672c2aa)), closes [#179](https://github.com/zillow/react-slider/issues/179)
|
169 | * call `onBeforeChange` and `onAfterChange` lifecycle methods when clicking track ([1e3d90e](https://github.com/zillow/react-slider/commit/1e3d90e13203cc860ed8b52651008956af197a71)), closes [#180](https://github.com/zillow/react-slider/issues/180)
|
170 | * encapsulate value reference within ReactSlider ([#181](https://github.com/zillow/react-slider/issues/181)) ([453855f](https://github.com/zillow/react-slider/commit/453855f24b210be7ae5a889a3ca6b6f7925b2194))
|
171 |
|
172 |
|
173 |
|
174 | ## [1.0.7](https://github.com/zillow/react-slider/compare/v1.0.6...v1.0.7) (2020-05-17)
|
175 |
|
176 |
|
177 | ### Bug Fixes
|
178 |
|
179 | * make sure resize is called after the DOM is ready when re-rendering ([46f616e](https://github.com/zillow/react-slider/commit/46f616e1ed71f60611c377015fceaea2bf52a3ca)), closes [#136](https://github.com/zillow/react-slider/issues/136)
|
180 |
|
181 |
|
182 |
|
183 | ## [1.0.6](https://github.com/zillow/react-slider/compare/v1.0.5...v1.0.6) (2020-05-10)
|
184 |
|
185 |
|
186 | ### Bug Fixes
|
187 |
|
188 | * prevent vertical scroll on thumb touch ([#171](https://github.com/zillow/react-slider/issues/171)) ([2f6dda3](https://github.com/zillow/react-slider/commit/2f6dda360eb814efc5e491ca8db62ac03719255a))
|
189 |
|
190 |
|
191 |
|
192 | ## [1.0.5](https://github.com/zillow/react-slider/compare/v1.0.4...v1.0.5) (2020-05-09)
|
193 |
|
194 |
|
195 |
|
196 | ## [1.0.4](https://github.com/zillow/react-slider/compare/v1.0.3...v1.0.4) (2020-04-24)
|
197 |
|
198 |
|
199 | ### Bug Fixes
|
200 |
|
201 | * update offset calculation to support IE >=9 ([78718d1](https://github.com/zillow/react-slider/commit/78718d179209684a11863f8d7ff674c759f72966))
|
202 |
|
203 |
|
204 |
|
205 | ## [1.0.3](https://github.com/zillow/react-slider/compare/v1.0.2...v1.0.3) (2020-02-14)
|
206 |
|
207 |
|
208 | ### Bug Fixes
|
209 |
|
210 | * change event handlers are now more reliable ([f1282d4](https://github.com/zillow/react-slider/commit/f1282d442d9d8ede3dca6c6ca91174b79461b61f)), closes [#161](https://github.com/zillow/react-slider/issues/161)
|
211 | * no need to pause touch events as they do not cause text selection ([8e3e275](https://github.com/zillow/react-slider/commit/8e3e27526a8e48689fe72a88ed5f70e554bf375c)), closes [#162](https://github.com/zillow/react-slider/issues/162)
|
212 |
|
213 |
|
214 |
|
215 | ## [1.0.2](https://github.com/zillow/react-slider/compare/v1.0.1...v1.0.2) (2020-01-11)
|
216 |
|
217 |
|
218 | ### Bug Fixes
|
219 |
|
220 | * clicking on the track of a vertical slider should move the correct handle ([114a56d](https://github.com/zillow/react-slider/commit/114a56d)), closes [#156](https://github.com/zillow/react-slider/issues/156)
|
221 | * make sure borders are accounted for when calculating the slider size ([9e6f2f4](https://github.com/zillow/react-slider/commit/9e6f2f4)), closes [#152](https://github.com/zillow/react-slider/issues/152)
|
222 |
|
223 |
|
224 |
|
225 | ## [1.0.1](https://github.com/zillow/react-slider/compare/v1.0.0...v1.0.1) (2019-10-22)
|
226 |
|
227 |
|
228 | ### Bug Fixes
|
229 |
|
230 | * mark componentWillReceiveProps as UNSAFE ([c6e8439](https://github.com/zillow/react-slider/commit/c6e8439)), closes [#149](https://github.com/zillow/react-slider/issues/149)
|
231 |
|
232 |
|
233 |
|
234 | # [1.0.0](https://github.com/zillow/react-slider/compare/v0.11.2...v1.0.0) (2019-09-27)
|
235 |
|
236 |
|
237 | ### Bug Fixes
|
238 |
|
239 | * `onAfterChange` was not being fired ([71746b2](https://github.com/zillow/react-slider/commit/71746b2)), closes [#3](https://github.com/zillow/react-slider/issues/3)
|
240 | * add IE11 arrow key support ([20afb9e](https://github.com/zillow/react-slider/commit/20afb9e))
|
241 | * aria keyboard support corrected so that left and down decreases and right and up increases ([1739606](https://github.com/zillow/react-slider/commit/1739606)), closes [#144](https://github.com/zillow/react-slider/issues/144)
|
242 | * do nothing when right clicking on the slider ([9fa9eb4](https://github.com/zillow/react-slider/commit/9fa9eb4))
|
243 | * Home and End keys no longer scroll the page when setting the value ([e8c8e1f](https://github.com/zillow/react-slider/commit/e8c8e1f))
|
244 | * remove active state on thumb on blur ([f05c7b1](https://github.com/zillow/react-slider/commit/f05c7b1))
|
245 | * the active thumb should get focus when a value is selected ([f1cc0cc](https://github.com/zillow/react-slider/commit/f1cc0cc))
|
246 |
|
247 |
|
248 | ### Code Refactoring
|
249 |
|
250 | * remove support for custom thumbs via `children` ([3cb3413](https://github.com/zillow/react-slider/commit/3cb3413))
|
251 |
|
252 |
|
253 | ### Features
|
254 |
|
255 | * "handle" and "bar" are now "thumb" and "track" to follow `input[type=range]` nomenclature ([e4e8ff8](https://github.com/zillow/react-slider/commit/e4e8ff8))
|
256 | * `ariaValuetext` now supports a function for dynamic value text ([021a547](https://github.com/zillow/react-slider/commit/021a547))
|
257 | * `renderThumb` now renders the entire thumb node rather than just the thumb content ([669dcdb](https://github.com/zillow/react-slider/commit/669dcdb))
|
258 | * `withTracks` is now true by default ([a450420](https://github.com/zillow/react-slider/commit/a450420))
|
259 | * add `renderBar` render prop for customizing bar content ([0de9013](https://github.com/zillow/react-slider/commit/0de9013))
|
260 | * add `renderHandle` render prop for dynamic handle content ([c87ed4b](https://github.com/zillow/react-slider/commit/c87ed4b))
|
261 | * add `valueNow` to state objects of `ariaValuetext` and `renderThumb` for easier access to the current value ([94712f2](https://github.com/zillow/react-slider/commit/94712f2))
|
262 | * add aria-orientation to slider ([5125a98](https://github.com/zillow/react-slider/commit/5125a98))
|
263 | * add support for Page Up and Page Down keys ([ed67408](https://github.com/zillow/react-slider/commit/ed67408))
|
264 | * pass `value` state to render props ([8b0615d](https://github.com/zillow/react-slider/commit/8b0615d))
|
265 | * remove dependency on create-react-class ([648512e](https://github.com/zillow/react-slider/commit/648512e))
|
266 | * the paging value is now configurable via the `pageFn` prop ([de75419](https://github.com/zillow/react-slider/commit/de75419))
|
267 |
|
268 |
|
269 | ### BREAKING CHANGES
|
270 |
|
271 | * The render props `renderThumb` and `renderTrack` are now passed two arguments
|
272 | instead of one, `props` and `state`. This makes it easier to just spread props when using
|
273 | a render function.
|
274 | * `renderThumb` was previously given the indexed handle value
|
275 | which now needs to be derived from `value` and `index.
|
276 | * custom thumbs via `children` is no longer supported.
|
277 | To customize thumbs, use the `renderThumb` render prop instead.
|
278 | * `withTracks` is more commonly true than false,
|
279 | so we are making that the default
|
280 | * "handle" and "bar" props have been renamed to "thumb" and "track",
|
281 | e.g. `withBars` is now `withTracks`, and `handleClassName` is now `thumbClassName`
|