remix-run/remix
### [`v1.2.2`](https://togithub.com/remix-run/remix/releases/v1.2.2)
[Compare Source](https://togithub.com/remix-run/remix/compare/v1.2.1...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](https://togithub.com/remix-run/remix/issues/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:
```js
// old buggy code
import fakeDefault from "some-module";
// new, not-so-buggy code
import * as fakeDefault from "some-module";
```
- See [https://github.com/evanw/esbuild/issues/2019#issuecomment-1041980825](https://togithub.com/evanw/esbuild/issues/2019#issuecomment-1041980825) for more details:
- Fixed an issue causing loaders to revalidate unneccessarily with unchanged search params ([#1965](https://togithub.com/remix-run/remix/issues/1965))
- Fixed a bug with `` 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](https://togithub.com/remix-run/remix/issues/1937))
- Fixed an issue that caused `.client` files to be included in server builds ([#2019](https://togithub.com/remix-run/remix/issues/2019))
- Updated our global environemtnt checks to support runtime targets that include `window` as a global variable ([#2025](https://togithub.com/remix-run/remix/issues/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](https://togithub.com/remix-run/remix/issues/1994))
#### New Contributors
- [@valerie-makes](https://togithub.com/valerie-makes) made their first contribution in [https://github.com/remix-run/remix/pull/1331](https://togithub.com/remix-run/remix/pull/1331)
- [@jca41](https://togithub.com/jca41) made their first contribution in [https://github.com/remix-run/remix/pull/1965](https://togithub.com/remix-run/remix/pull/1965)
- [@wladiston](https://togithub.com/wladiston) made their first contribution in [https://github.com/remix-run/remix/pull/1937](https://togithub.com/remix-run/remix/pull/1937)
- [@supachaidev](https://togithub.com/supachaidev) made their first contribution in [https://github.com/remix-run/remix/pull/1971](https://togithub.com/remix-run/remix/pull/1971)
- [@roddds](https://togithub.com/roddds) made their first contribution in [https://github.com/remix-run/remix/pull/1260](https://togithub.com/remix-run/remix/pull/1260)
- [@thomasheyenbrock](https://togithub.com/thomasheyenbrock) made their first contribution in [https://github.com/remix-run/remix/pull/1418](https://togithub.com/remix-run/remix/pull/1418)
- [@marvinwu](https://togithub.com/marvinwu) made their first contribution in [https://github.com/remix-run/remix/pull/1808](https://togithub.com/remix-run/remix/pull/1808)
- [@LukasGerm](https://togithub.com/LukasGerm) made their first contribution in [https://github.com/remix-run/remix/pull/1922](https://togithub.com/remix-run/remix/pull/1922)
- [@SufianBabri](https://togithub.com/SufianBabri) made their first contribution in [https://github.com/remix-run/remix/pull/1947](https://togithub.com/remix-run/remix/pull/1947)
- [@Aprillion](https://togithub.com/Aprillion) made their first contribution in [https://github.com/remix-run/remix/pull/2003](https://togithub.com/remix-run/remix/pull/2003)
- [@navid-kalaei](https://togithub.com/navid-kalaei) made their first contribution in [https://github.com/remix-run/remix/pull/1500](https://togithub.com/remix-run/remix/pull/1500)
**Full Changelog**: https://github.com/remix-run/remix/compare/v1.2.1...v1.2.2
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR contains the following updates:
1.2.1
->1.2.2
Release Notes
remix-run/remix
### [`v1.2.2`](https://togithub.com/remix-run/remix/releases/v1.2.2) [Compare Source](https://togithub.com/remix-run/remix/compare/v1.2.1...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](https://togithub.com/remix-run/remix/issues/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: ```js // old buggy code import fakeDefault from "some-module"; // new, not-so-buggy code import * as fakeDefault from "some-module"; ``` - See [https://github.com/evanw/esbuild/issues/2019#issuecomment-1041980825](https://togithub.com/evanw/esbuild/issues/2019#issuecomment-1041980825) for more details: - Fixed an issue causing loaders to revalidate unneccessarily with unchanged search params ([#1965](https://togithub.com/remix-run/remix/issues/1965)) - Fixed a bug with `Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.