-
Notifications
You must be signed in to change notification settings - Fork 1
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
Version Packages (next) #88
Open
github-actions
wants to merge
1
commit into
main
Choose a base branch
from
changeset-release/main
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11b2259
to
ed55c45
Compare
ed55c45
to
0a18c24
Compare
0a18c24
to
0b8e7f0
Compare
0b8e7f0
to
01d676d
Compare
01d676d
to
496b793
Compare
496b793
to
d16a914
Compare
d16a914
to
e06035a
Compare
e06035a
to
6801736
Compare
6801736
to
c648f6f
Compare
c648f6f
to
3613e5d
Compare
3613e5d
to
1351d0c
Compare
1351d0c
to
b04354b
Compare
b04354b
to
180b7d6
Compare
180b7d6
to
b8d3028
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
main
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onmain
.Releases
@vintl/vintl@5.0.0-next.0
Major Changes
997402a: Removed deprecated composables
Composables like
useI18n
,useTranslate
anduseFormatters
were previously deprecated with the warning that they will be removed in the next major version. They now get removed as scheduled.Here's how you migrate:
Replace all uses of
useI18n
withuseVIntl
, the former was just an alias foruseVIntl
in the previous versions.To retrieve translate function previously returned by
useTranslate
, destructureformatMessage
function from the controller:It is bound to the controller and as such is safe to use on its own.
To retrieve formatters previously returned by
useFormatters
, destructureformats
property from the controller:It is a reactively updated object and is also safe to use on its own.
c2c6cb6: Bumped Vue version to 3.3.4
We now require a newer Vue version because we are relying on functionality added in Vue 3.3, such as generic components. Since this is not compatible with the previous versions of Vue, this is marked as a breaking change.
Minor Changes
5e746fa: Add more formatting components similar to ones found in
react-intl
:FormattedDate
,FormattedDateParts
FormattedTime
,FormattedTimeParts
FormattedDateTimeRange
FormattedRelativeTime
(doesn't update live likereact-intl
)FormattedNumber
,FormattedNumberParts
FormattedPlural
FormattedList
,FormattedListParts
FormattedDisplayName
FormattedMessage
Slots can be used to receive the formatted values instead of being formatted as is.
FormattedMessage
is very similar toIntlFormatted
, but accepts descriptor properties and does not allow to format raw messages.b194662: Added
useMessages
composableuseMessages
is the new composable that allows you to pass in an object with the extended message descriptors, and returns back a reactive object with the current messages. Extended message descriptors can contain values or formatters that will be used when interpreting the message. This allows you to create messages in a very inefferctive manner.