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

Version Packages (next) #88

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 31, 2023

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, run changeset pre exit on main.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@vintl/[email protected]

Major Changes

  • 997402a: Removed deprecated composables

    Composables like useI18n, useTranslate and useFormatters 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 with useVIntl, the former was just an alias for useVIntl in the previous versions.

    • To retrieve translate function previously returned by useTranslate, destructure formatMessage function from the controller:

      const { formatMessage } = useVIntl();

      It is bound to the controller and as such is safe to use on its own.

    • To retrieve formatters previously returned by useFormatters, destructure formats property from the controller:

      const { formats } = useVIntl();

      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 like react-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 to IntlFormatted, but accepts descriptor properties and does not allow to format raw messages.

  • b194662: Added useMessages composable

    useMessages 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.

@github-actions github-actions bot force-pushed the changeset-release/main branch from 11b2259 to ed55c45 Compare November 17, 2023 23:25
@github-actions github-actions bot force-pushed the changeset-release/main branch from ed55c45 to 0a18c24 Compare December 11, 2023 19:44
@github-actions github-actions bot force-pushed the changeset-release/main branch from 0a18c24 to 0b8e7f0 Compare December 13, 2023 02:57
@github-actions github-actions bot force-pushed the changeset-release/main branch from 0b8e7f0 to 01d676d Compare December 13, 2023 03:08
@github-actions github-actions bot force-pushed the changeset-release/main branch from 01d676d to 496b793 Compare December 13, 2023 05:35
@github-actions github-actions bot force-pushed the changeset-release/main branch from 496b793 to d16a914 Compare December 18, 2023 04:58
@github-actions github-actions bot force-pushed the changeset-release/main branch from d16a914 to e06035a Compare December 25, 2023 09:23
@github-actions github-actions bot force-pushed the changeset-release/main branch from e06035a to 6801736 Compare January 4, 2024 14:44
@github-actions github-actions bot force-pushed the changeset-release/main branch from 6801736 to c648f6f Compare January 8, 2024 08:16
@github-actions github-actions bot force-pushed the changeset-release/main branch from c648f6f to 3613e5d Compare February 16, 2024 23:55
@github-actions github-actions bot force-pushed the changeset-release/main branch from 3613e5d to 1351d0c Compare February 23, 2024 18:10
@github-actions github-actions bot force-pushed the changeset-release/main branch from 1351d0c to b04354b Compare May 9, 2024 09:24
@github-actions github-actions bot force-pushed the changeset-release/main branch from b04354b to 180b7d6 Compare May 17, 2024 09:17
@github-actions github-actions bot force-pushed the changeset-release/main branch from 180b7d6 to b8d3028 Compare May 17, 2024 09:18
@github-actions github-actions bot force-pushed the changeset-release/main branch from b8d3028 to 2f9a50f Compare October 12, 2024 11:00
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.

0 participants