-
-
Notifications
You must be signed in to change notification settings - Fork 331
Open
Labels
Description
This is a list of ideas for API changes that we could potentially introduce in a major version:
- Replace
tscwithrollup-plugin-dtsin build #2049 (ideally this is non-breaking, but to be safe we could schedule it for a major version) - Investigate if we could remove
t.richandt.markupin favor of a universaltfunction that works for all cases. - Investigate if we could get rid of
t.raw. It leads users to toward bad patterns that might not work with future optimizations (see Improved type-safety for `t.raw()` and improved autocomplete. #2076 (comment) for details). - Fix casing
getTimeZone(next-intl) vsTimezone(use-intl) - Consider making
NextIntlClientProviderserver-only (withIntlProviderbeing available on the client). The environment makes a difference here and it might be to easy to get wrong. In this case, we'd also move it tonext-intl/server. Not sure if the benefit is big enough though. - Rename "middleware" in APIs to "proxy"
- Should
Linkthat changes alocaleincludenofollowby default? This could help search engines avoid indexing this link while allowing us to use a safe href before hydration. Search engines should pick up localized variants from alternate links or a sitemap. - Remove "node10" types support
- Only a loose thought for now, but I wonder if it could be helpful to return routing config from
request.tsinstead of passing it to a factory function likecreateNavigation. Really not sure yet if it's worth it, but could be something to investigate.- Pro's: Avoids a hook factory, for apps with mixed routing users could use
import {Link} from 'next-intl/navigation'for both parts of the app, avoids SupportcloneElementin RSC-rendered<Link />(better compatibility with Radix Primitives, Base UI & friends) #1271 - Con's: Type safety of routes would be opt-in (similar to
formats), this is especially annoying for routes with dynamic params
- Pro's: Avoids a hook factory, for apps with mixed routing users could use
No decision has been made on these so far, but if you have feedback about these points, please leave it here!
issam-seghir, rwieruch and franknoel