Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(RSC): Clean up package boundaries #387

Merged
merged 26 commits into from
Jul 26, 2023

Conversation

amannn
Copy link
Owner

@amannn amannn commented Jul 7, 2023

Changes:

  • Add exports to use-intl to have clear package boundaries and add new APIs
    • core: RichTranslationValuesPlain, createBaseTranslator, initializeConfig, TS utils
    • react: (no changes)
  • Add exports to next-intl

Information

We build the entry point and nested exports from libraries separately because the build for the main entry point is always smaller this way. Nested exports always result in separate modules currently.

@vercel
Copy link

vercel bot commented Jul 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
example-next-13-next-auth ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2023 8:26am
next-intl-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2023 8:26am
next-intl-example-next-13 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2023 8:26am

…-13-rsc-clean-up-package-boundaries

# Conflicts:
#	packages/next-intl/src/react-server/getBaseTranslator.tsx
#	packages/next-intl/src/react-server/useTranslations.tsx
#	packages/next-intl/src/server/getTranslations.tsx
#	packages/next-intl/src/server/getTranslator.tsx
@amannn amannn marked this pull request as ready for review July 26, 2023 08:23
@amannn amannn merged commit a371d39 into feat/next-13-rsc Jul 26, 2023
2 checks passed
@amannn amannn deleted the feat/next-13-rsc-clean-up-package-boundaries branch July 26, 2023 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant