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

Update dependency @capsizecss/metrics to v3.x #1484

Merged
merged 2 commits into from
May 16, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 15, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@capsizecss/metrics (source) ^2.2.0 -> ^3.0.0 age adoption passing confidence

Release Notes

seek-oss/capsize (@​capsizecss/metrics)

v3.1.0

Compare Source

Minor Changes
  • #​195 aa77cb2 Thanks @​michaeltaranto! - Extract and expose postscriptName and fullName from font metrics

    The font metrics returned now include the postscriptName and fullName properties as authored by the font creator.

    For example:

    // Arial Regular metrics
    {
      "familyName": "Arial",
      "fullName": "Arial",
      "postscriptName": "ArialMT",
      ...
    }
    
    // Arial Bold metrics
    {
      "familyName": "Arial",
      "fullName": "Arial Bold",
      "postscriptName": "Arial-BoldMT",
      ...
    }

    These values are particularly useful when constructing CSS @font-face declarations, as they can be used to specify local(<font-face-name>) sources.
    MDN recommends using both “to assure proper matching across platforms”.

    @&#8203;font-face {
      font-family: 'Web Font Fallback';
      src: local('Arial Bold'), local('Arial-BoldMT');
      font-weight: 700;
      ascent-override: 89.3502%;
      descent-override: 23.1683%;
      size-adjust: 108.3377%;
    }

v3.0.0

Compare Source

Major Changes
  • #​191 d0086a6 Thanks @​michaeltaranto! - metrics: Prefer public family name to internal familyName metrics

    Ensure metrics are available using the public family name as seen on Google Fonts as opposed to the internal family name metric.
    This makes sense as consumers are looking to import the metrics relevant to a specific system font or from Google Fonts (also aligns with the names Google use in their font declarations generated in the hosted stylesheets).

BREAKING CHANGES:
Google Fonts

Previously, the metrics were imported with a path that used the internal family name, now they align with the font as seen on Google Fonts.

-import metrics from '@&#8203;capsizecss/metrics/roundedMplus1c';
+import metrics from '@&#8203;capsizecss/metrics/mPLUSRounded1c';

With only a small number of Google Fonts affected, this is only a break for the following fonts:

  • Ballet
  • Bodoni Moda
  • Buda
  • Bungee Spice
  • Fjord One
  • Geologica
  • Imbue
  • M PLUS Rounded 1c
  • Material Symbols Outlined
  • Material Symbols Rounded
  • Material Symbols Sharp
  • Montagu Slab
  • Nanum Pen Script
  • Newsreader
  • Nunito Sans
  • Pathway Extreme
  • Sono
  • Sunflower
  • Supermercado One
  • Texturina
System fonts

The system fonts only had one example where the names diverged:

-import metrics from '@&#8203;capsizecss/metrics/brushScriptMT';
+import metrics from '@&#8203;capsizecss/metrics/brushScript';

This now aligns with the name consumers use to reference the font on their system.

Minor Changes
Patch Changes
  • #​193 121eb42 Thanks @​michaeltaranto! - metrics: Update apple system font metrics

    Previously the metrics provided for -apple-system and BlinkMacSystemFont were extracted from the SF Pro font, with a custom override to correct the descent metric.

    Through work to support metrics for different font weights and styles, it was identified that MacOS uses the SFNS font.
    Extracting the metrics from this font means no more custom overrides, and will now enable using this font as a fallback via postscript name soon too.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team as a code owner April 15, 2024 10:24
Copy link

changeset-bot bot commented Apr 15, 2024

🦋 Changeset detected

Latest commit: b129de6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
braid-design-system Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@renovate renovate bot force-pushed the renovate-capsizecss-metrics-3.x branch 2 times, most recently from 2f64d8e to 0074ff5 Compare May 9, 2024 00:24
@renovate renovate bot force-pushed the renovate-capsizecss-metrics-3.x branch from 0074ff5 to 7e47bb6 Compare May 15, 2024 03:49
@renovate renovate bot force-pushed the renovate-capsizecss-metrics-3.x branch from 7e47bb6 to 3182dc7 Compare May 15, 2024 23:33
Copy link
Contributor Author

renovate bot commented May 16, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@michaeltaranto michaeltaranto merged commit 2dfbe30 into master May 16, 2024
8 checks passed
@michaeltaranto michaeltaranto deleted the renovate-capsizecss-metrics-3.x branch May 16, 2024 00:34
@seek-oss-ci seek-oss-ci mentioned this pull request May 16, 2024
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