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 #123

Merged
merged 2 commits into from
Jan 31, 2023
Merged

Version Packages #123

merged 2 commits into from
Jan 31, 2023

Conversation

seek-oss-ci
Copy link
Contributor

@seek-oss-ci seek-oss-ci commented Jan 30, 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 master, this PR will be updated.

Releases

@capsizecss/metrics@1.0.0

Major Changes

  • #125 5d77f47 Thanks @michaeltaranto! - metrics, unpack: Cut v1 release

    No actual breaking change here, but cutting the v1 release to mark the packages moving out of experimental phase.

Minor Changes

  • #122 8a15c86 Thanks @michaeltaranto! - Update Google Fonts

  • #122 8a15c86 Thanks @michaeltaranto! - Calculate and expose xWidthAvg, the average width of lowercase characters.

  • #122 8a15c86 Thanks @michaeltaranto! - Add category field to describe the style of the font, e.g. “serif”, “sans-serif” etc.

    Exposes the category field captured by Google Fonts, manually populating it for system fonts.

@capsizecss/unpack@1.0.0

Major Changes

  • #125 5d77f47 Thanks @michaeltaranto! - metrics, unpack: Cut v1 release

    No actual breaking change here, but cutting the v1 release to mark the packages moving out of experimental phase.

Minor Changes

@capsizecss/core@3.1.0

Minor Changes

  • #117 0e969d8 Thanks @michaeltaranto! - Add createFontStack for metrics-based font family fallbacks.

    Creates metrics-based @font-face declarations to improve the alignment of font family fallbacks, which can dramatically improve the Cumulative Layout Shift metric for sites that depend on a web font.

    Example usage

    import { createFontStack } from '@capsizecss/core';
    import lobster from '@capsizecss/metrics/lobster';
    import helveticaNeue from '@capsizecss/metrics/helveticaNeue';
    import arial from '@capsizecss/metrics/arial';
    
    const { fontFamily, fontFaces } = createFontStack([
      lobster,
      helveticaNeue,
      arial,
    ]);

    The returned values are the computed font family and the generated font face declarations:

    // `fontFamily`
    "Lobster, 'Lobster Fallback: Helvetica Neue', 'Lobster Fallback: Arial'";
    /* `fontFaces` */
    @font-face {
      font-family: 'Lobster Fallback: Helvetica Neue';
      src: local('Helvetica Neue');
      ascent-override: 115.1741%;
      descent-override: 28.7935%;
      size-adjust: 86.8251%;
    }
    @font-face {
      font-family: 'Lobster Fallback: Arial';
      src: local('Arial');
      ascent-override: 113.5679%;
      descent-override: 28.392%;
      size-adjust: 88.053%;
    }

Patch Changes

  • #122 8a15c86 Thanks @michaeltaranto! - Add additional properties to FontMetrics type definition.

    Previously the FontMetrics type captured only the metrics required by the options for the createStyleObject and createStyleString APIs.
    With additional APIs coming that require a different subset of metrics, the type now reflects the structure of the data from the metrics package.

    The additional properties are: familyName, category, xHeight and xWidthAvg.
    See documentation for more details.

@seek-oss-ci seek-oss-ci requested a review from a team as a code owner January 30, 2023 03:30
@seek-oss-ci seek-oss-ci force-pushed the changeset-release/master branch 2 times, most recently from d078ac9 to c3346d2 Compare January 30, 2023 05:10
@michaeltaranto michaeltaranto merged commit 03cc50b into master Jan 31, 2023
@michaeltaranto michaeltaranto deleted the changeset-release/master branch January 31, 2023 02: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.

None yet

2 participants