v1.2.2
What Changed?
This release fixes a few pesky bugs, simplifies the default caching strategy in our Express starter, and improves a few error messages. Enjoy!
🐛 Bug fixes
- Fixed a bug in our compiler that incorrectly handled modules that omit a default export (#1998)
- While this behavior was in fact a bug, it also means that apps that incorrectly import
default
from modules that don't expose a default export may have worked before and break after an update. Fixing this will require a small refactor:// old buggy code import fakeDefault from "some-module"; // new, not-so-buggy code import * as fakeDefault from "some-module";
- See evanw/esbuild#2019 (comment) for more details:
- While this behavior was in fact a bug, it also means that apps that incorrectly import
- Fixed an issue causing loaders to revalidate unneccessarily with unchanged search params (#1965)
- Fixed a bug with
<ScrollRestoration />
where routes with a hash restored to the hashed element instead of the user's last scroll position. This fix improves the default UX for forward/back navigation. (#1937) - Fixed an issue that caused
.client
files to be included in server builds (#2019) - Updated our global environemtnt checks to support runtime targets that include
window
as a global variable (#2025)
💅 Enhancements
- Simplified the asset caching strategy in our Express template. This makes it easier for users to send more targeted cache headers for various types of requests. (#1994)
New Contributors
- @valerie-makes made their first contribution in #1331
- @jca41 made their first contribution in #1965
- @wladiston made their first contribution in #1937
- @supachaidev made their first contribution in #1971
- @roddds made their first contribution in #1260
- @thomasheyenbrock made their first contribution in #1418
- @marvinwu made their first contribution in #1808
- @LukasGerm made their first contribution in #1922
- @SufianBabri made their first contribution in #1947
- @Aprillion made their first contribution in #2003
- @navid-kalaei made their first contribution in #1500
Full Changelog: v1.2.1...v1.2.2