Skip to content

Commit c046e74

Browse files
authored
Version Packages (#192)
1 parent 121eb42 commit c046e74

File tree

7 files changed

+70
-71
lines changed

7 files changed

+70
-71
lines changed

.changeset/curvy-forks-brush.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.changeset/funny-trees-listen.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

.changeset/tender-otters-peel.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/metrics/CHANGELOG.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,72 @@
11
# @capsizecss/metrics
22

3+
## 3.0.0
4+
5+
### Major Changes
6+
7+
- [#191](https://github.com/seek-oss/capsize/pull/191) [`d0086a6`](https://github.com/seek-oss/capsize/commit/d0086a6006272f7b7f1e488883d1cf7863642300) Thanks [@michaeltaranto](https://github.com/michaeltaranto)! - metrics: Prefer public family name to internal `familyName` metrics
8+
9+
Ensure metrics are available using the public family name as seen on Google Fonts as opposed to the internal family name metric.
10+
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).
11+
12+
### BREAKING CHANGES:
13+
14+
#### Google Fonts
15+
16+
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.
17+
18+
```diff
19+
-import metrics from '@capsizecss/metrics/roundedMplus1c';
20+
+import metrics from '@capsizecss/metrics/mPLUSRounded1c';
21+
```
22+
23+
With only a small number of Google Fonts affected, this is only a break for the following fonts:
24+
25+
- Ballet
26+
- Bodoni Moda
27+
- Buda
28+
- Bungee Spice
29+
- Fjord One
30+
- Geologica
31+
- Imbue
32+
- M PLUS Rounded 1c
33+
- Material Symbols Outlined
34+
- Material Symbols Rounded
35+
- Material Symbols Sharp
36+
- Montagu Slab
37+
- Nanum Pen Script
38+
- Newsreader
39+
- Nunito Sans
40+
- Pathway Extreme
41+
- Sono
42+
- Sunflower
43+
- Supermercado One
44+
- Texturina
45+
46+
#### System fonts
47+
48+
The system fonts only had one example where the names diverged:
49+
50+
```diff
51+
-import metrics from '@capsizecss/metrics/brushScriptMT';
52+
+import metrics from '@capsizecss/metrics/brushScript';
53+
```
54+
55+
This now aligns with the name consumers use to reference the font on their system.
56+
57+
### Minor Changes
58+
59+
- [#190](https://github.com/seek-oss/capsize/pull/190) [`75233b1`](https://github.com/seek-oss/capsize/commit/75233b16c613525420b1383698bcf114fa41b70f) Thanks [@michaeltaranto](https://github.com/michaeltaranto)! - Update Google Fonts to latest
60+
61+
### Patch Changes
62+
63+
- [#193](https://github.com/seek-oss/capsize/pull/193) [`121eb42`](https://github.com/seek-oss/capsize/commit/121eb4201598c09793ff741a51baf85869c7e5c1) Thanks [@michaeltaranto](https://github.com/michaeltaranto)! - metrics: Update apple system font metrics
64+
65+
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.
66+
67+
Through work to support metrics for different font weights and styles, it was identified that MacOS uses the `SFNS` font.
68+
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.
69+
370
## 2.2.0
471

572
### Minor Changes

packages/metrics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@capsizecss/metrics",
3-
"version": "2.2.0",
3+
"version": "3.0.0",
44
"description": "Font metrics library for system and Google fonts",
55
"keywords": [
66
"capsize",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"@capsizecss/core": "^4.1.0",
27-
"@capsizecss/metrics": "^2.2.0",
27+
"@capsizecss/metrics": "^3.0.0",
2828
"@capsizecss/unpack": "^2.1.0",
2929
"@chakra-ui/icons": "^2.1.1",
3030
"@chakra-ui/react": "^2.8.2",

0 commit comments

Comments
 (0)