|
| 1 | +{/* Copyright 2025 Adobe. All rights reserved. |
| 2 | +This file is licensed to you under the Apache License, Version 2.0 (the "License"); |
| 3 | +you may not use this file except in compliance with the License. You may obtain a copy |
| 4 | +of the License at http://www.apache.org/licenses/LICENSE-2.0 |
| 5 | +Unless required by applicable law or agreed to in writing, software distributed under |
| 6 | +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS |
| 7 | +OF ANY KIND, either express or implied. See the License for the specific language |
| 8 | +governing permissions and limitations under the License. */} |
| 9 | + |
| 10 | +import {BlogPostLayout, Hero, Image} from '@react-spectrum/docs'; |
| 11 | +export default BlogPostLayout; |
| 12 | + |
| 13 | +--- |
| 14 | +description: In today's release we are excited to announce custom calendar support across all React Spectrum libraries! We have also added enhanced support for React Suspense and performance optimizations for collections in React Aria Components, reduced the bundle sizes of our libraries as a whole, and now support `onClick` as an alias for `onPress`. |
| 15 | +date: 2025-04-11 |
| 16 | +--- |
| 17 | + |
| 18 | +# April 11, 2025 Release |
| 19 | + |
| 20 | +In today’s release, we are excited to announce custom calendar support across all React Spectrum libraries! This feature allows you to create your own calendar that implements custom business logic, such as a [4-5-4 fiscal calendar](https://nrf.com/resources/4-5-4-calendar), either by extending an existing Calendar implementation or building from scratch. Please see the [React Spectrum docs](../react-spectrum/Calendar.html#custom-calendar-systems) for an example implementation. A special shout out to [@ToyWalrus](https://github.com/ToyWalrus) for all the hard work that went into this contribution! |
| 21 | + |
| 22 | +This release also includes several updates for collections in React Aria Components. These include enhanced support for React Suspense and optimizations for large collections. These changes should result in much more performant collections when fetching and rendering large amounts of data. |
| 23 | + |
| 24 | +We have also reduced the bundle sizes of our libraries by moving some console warnings to development only, and removing old browser fallbacks for pointer events. For example, `@react-aria/interactions`, which powers most of our components, is now 22% smaller! |
| 25 | + |
| 26 | +Lastly, we have decided to handle `onClick` as an alias for `onPress`. This improves interoperability with other dependencies that use `onClick` events. Please note that `onPress` is still preferred over `onClick` as it standardizes behavior across a variety of platforms. |
| 27 | + |
| 28 | +A huge thank you once again to everyone in the community for all of your feedback and contributions! |
| 29 | + |
| 30 | + |
| 31 | +## Enhancements |
| 32 | + |
| 33 | +- Calendar |
| 34 | + - Custom calendar support - [@ToyWalrus](https://github.com/ToyWalrus) - [PR](https://github.com/adobe/react-spectrum/pull/7803) |
| 35 | +- Collections |
| 36 | + - Add `escapeKeyBehavior` to GridList/ListBox/Menu/Table/Tree - [@LFDanLu](https://github.com/LFDanLu) - [PR](https://github.com/adobe/react-spectrum/pull/7974) |
| 37 | +- Toast |
| 38 | + - Pass data attributes through on Toast - [@lukpsaxo](https://github.com/lukpsaxo) - [PR](https://github.com/adobe/react-spectrum/pull/7923) |
| 39 | +- Miscellaneous |
| 40 | + - Support `onClick` as an alias for `onPress` - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7891) |
| 41 | + - Reduce production bundle sizes - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7977), [PR](https://github.com/adobe/react-spectrum/pull/8046) |
| 42 | + - Support React 19 and remove Jest reliance in test utils - [@LFDanLu](https://github.com/LFDanLu) - [PR](https://github.com/adobe/react-spectrum/pull/7686) |
| 43 | + |
| 44 | +## Fixes |
| 45 | + |
| 46 | +- Collections |
| 47 | + - Support React Suspense in collections - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7912) |
| 48 | + - Improve collection update performance - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/7905), [PR](https://github.com/adobe/react-spectrum/pull/8052) |
| 49 | +- Date/Time |
| 50 | + - Add `data-disabled` CSS selector to DateField - [@suyash5053](https://github.com/suyash5053) - [PR](https://github.com/adobe/react-spectrum/pull/7896) |
| 51 | + - Exclude `isEditable` from DateSegment render props - [@Persists](https://github.com/Persists) - [PR](https://github.com/adobe/react-spectrum/pull/7961) |
| 52 | +- Separator |
| 53 | + - Pass aria labeling props in RAC Separator - [@yihuiliao](https://github.com/yihuiliao) - [PR](https://github.com/adobe/react-spectrum/pull/7881) |
| 54 | +- Table |
| 55 | + - Ensure table typeahead does honor row `textValue` - [@nwidynski](https://github.com/nwidynski) - [PR](https://github.com/adobe/react-spectrum/pull/7857) |
| 56 | + - Add Table Cell `id` prop back into the Cell types - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/7983) |
| 57 | +- Toast |
| 58 | + - Pass `wrapUpdate` through `useToastState` - [@reidbarber](https://github.com/reidbarber) - [PR](https://github.com/adobe/react-spectrum/pull/7910) |
| 59 | + - Export QueuedToast - [@lukpsaxo](https://github.com/lukpsaxo) - [PR](https://github.com/adobe/react-spectrum/pull/7944) |
| 60 | +- Miscellaneous |
| 61 | + - Update yarn peer dependencies - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/7932) |
| 62 | + - Fix French number parsing ambiguity - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/7966) |
| 63 | + - Restore focus after a Select closes on mobile - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/7904) |
| 64 | + - Apply `touch-action` by default in `usePress` - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/8047) |
| 65 | + |
| 66 | + |
| 67 | +## Docs |
| 68 | +- Remove defaults from `BoxAlignmentStyleProps` - [@dsmmcken](https://github.com/dsmmcken) - [PR](https://github.com/adobe/react-spectrum/pull/7982) |
| 69 | +- Fix typo in CalendarDate docs - [@DarkstarXDD](https://github.com/DarkstarXDD) - [PR](https://github.com/adobe/react-spectrum/pull/8043) |
| 70 | + |
| 71 | +## Under Construction |
| 72 | + |
| 73 | +- Allow configurations to the Toast PortalProvider - [@armandabric](https://github.com/armandabric) - [PR](https://github.com/adobe/react-spectrum/pull/7907), [@LFDanLu](https://github.com/LFDanLu) - [PR](https://github.com/adobe/react-spectrum/pull/7976) |
| 74 | + |
| 75 | +## Released packages |
| 76 | + |
| 77 | +``` |
| 78 | + |
| 79 | + - @internationalized/[email protected] |
| 80 | + - @internationalized/[email protected] |
| 81 | + - @internationalized/[email protected] |
| 82 | + - @internationalized/[email protected] |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + - @react-spectrum/[email protected] |
| 136 | + - @react-spectrum/[email protected] |
| 137 | + - @react-spectrum/[email protected] |
| 138 | + - @react-spectrum/[email protected] |
| 139 | + - @react-spectrum/[email protected] |
| 140 | + - @react-spectrum/[email protected] |
| 141 | + - @react-spectrum/[email protected] |
| 142 | + - @react-spectrum/[email protected] |
| 143 | + - @react-spectrum/[email protected] |
| 144 | + - @react-spectrum/[email protected] |
| 145 | + - @react-spectrum/[email protected] |
| 146 | + - @react-spectrum/[email protected] |
| 147 | + - @react-spectrum/[email protected] |
| 148 | + - @react-spectrum/[email protected] |
| 149 | + - @react-spectrum/[email protected] |
| 150 | + - @react-spectrum/[email protected] |
| 151 | + - @react-spectrum/[email protected] |
| 152 | + - @react-spectrum/[email protected] |
| 153 | + - @react-spectrum/[email protected] |
| 154 | + - @react-spectrum/[email protected] |
| 155 | + - @react-spectrum/[email protected] |
| 156 | + - @react-spectrum/[email protected] |
| 157 | + - @react-spectrum/[email protected] |
| 158 | + - @react-spectrum/[email protected] |
| 159 | + - @react-spectrum/[email protected] |
| 160 | + - @react-spectrum/[email protected] |
| 161 | + - @react-spectrum/[email protected] |
| 162 | + - @react-spectrum/[email protected] |
| 163 | + - @react-spectrum/[email protected] |
| 164 | + - @react-spectrum/[email protected] |
| 165 | + - @react-spectrum/[email protected] |
| 166 | + - @react-spectrum/[email protected] |
| 167 | + - @react-spectrum/[email protected] |
| 168 | + - @react-spectrum/[email protected] |
| 169 | + - @react-spectrum/[email protected] |
| 170 | + - @react-spectrum/[email protected] |
| 171 | + - @react-spectrum/[email protected] |
| 172 | + - @react-spectrum/[email protected] |
| 173 | + - @react-spectrum/[email protected] |
| 174 | + - @react-spectrum/[email protected] |
| 175 | + - @react-spectrum/[email protected] |
| 176 | + - @react-spectrum/[email protected] |
| 177 | + - @react-spectrum/[email protected] |
| 178 | + - @react-spectrum/[email protected] |
| 179 | + - @react-spectrum/[email protected] |
| 180 | + - @react-spectrum/[email protected] |
| 181 | + - @react-spectrum/[email protected] |
| 182 | + - @react-spectrum/[email protected] |
| 183 | + - @react-spectrum/[email protected] |
| 184 | + - @react-spectrum/[email protected] |
| 185 | + - @react-spectrum/[email protected] |
| 186 | + - @react-spectrum/[email protected] |
| 187 | + - @react-spectrum/[email protected] |
| 188 | + - @react-spectrum/[email protected] |
| 189 | + - @react-spectrum/[email protected] |
| 190 | + - @react-spectrum/[email protected] |
| 191 | + - @react-spectrum/[email protected] |
| 192 | + - @react-spectrum/[email protected] |
| 193 | + - @react-spectrum/[email protected] |
| 194 | + - @react-spectrum/[email protected] |
| 195 | + - @react-spectrum/[email protected] |
| 196 | + - @react-spectrum/[email protected] |
| 197 | + - @react-spectrum/[email protected] |
| 198 | + - @react-stately/[email protected] |
| 199 | + - @react-stately/[email protected] |
| 200 | + - @react-stately/[email protected] |
| 201 | + - @react-stately/[email protected] |
| 202 | + - @react-stately/[email protected] |
| 203 | + - @react-stately/[email protected] |
| 204 | + - @react-stately/[email protected] |
| 205 | + - @react-stately/[email protected] |
| 206 | + - @react-stately/[email protected] |
| 207 | + - @react-stately/[email protected] |
| 208 | + - @react-stately/[email protected] |
| 209 | + - @react-stately/[email protected] |
| 210 | + - @react-stately/[email protected] |
| 211 | + - @react-stately/[email protected] |
| 212 | + - @react-stately/[email protected] |
| 213 | + - @react-stately/[email protected] |
| 214 | + - @react-stately/[email protected] |
| 215 | + - @react-stately/[email protected] |
| 216 | + - @react-stately/[email protected] |
| 217 | + - @react-stately/[email protected] |
| 218 | + - @react-stately/[email protected] |
| 219 | + - @react-stately/[email protected] |
| 220 | + - @react-stately/[email protected] |
| 221 | + - @react-stately/[email protected] |
| 222 | + - @react-stately/[email protected] |
| 223 | + - @react-stately/[email protected] |
| 224 | + - @react-stately/[email protected] |
| 225 | + - @react-stately/[email protected] |
| 226 | + - @react-stately/[email protected] |
| 227 | + - @react-stately/[email protected] |
| 228 | + - @react-stately/[email protected] |
| 229 | + - @react-stately/[email protected] |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
| 257 | + |
| 258 | + |
| 259 | + |
| 260 | + |
| 261 | + |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + - @spectrum-icons/[email protected] |
| 277 | + - @spectrum-icons/[email protected] |
| 278 | + - @spectrum-icons/[email protected] |
| 279 | + - @spectrum-icons/[email protected] |
| 280 | + - @spectrum-icons/[email protected] |
| 281 | + - @react-spectrum/[email protected] |
| 282 | + |
| 283 | + - @react-spectrum/[email protected] |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | +``` |
0 commit comments