Skip to content

Commit

Permalink
Version Packages (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
seek-oss-ci authored Mar 8, 2024
1 parent 879208b commit 1e6d67f
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 62 deletions.
51 changes: 0 additions & 51 deletions .changeset/pink-plants-develop.md

This file was deleted.

46 changes: 46 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# @capsizecss/core

## 4.1.0

### Minor Changes

- [#177](https://github.com/seek-oss/capsize/pull/177) [`879208b`](https://github.com/seek-oss/capsize/commit/879208bd08372be246ecd30a1be42f44883ca650) Thanks [@michaeltaranto](https://github.com/michaeltaranto)! - xWidthAvg: Add `subset` support for non-latin character sets

Previously the `xWidthAvg` metric was calculated based on the character frequency as measured from English text only.
This resulted in the `xWidthAvg` metric being incorrect for languages that use a different unicode subset range, e.g. Thai.

Supporting Thai now enables adding support for other unicode ranges in the future.

### What's changed?

#### `@capsizecss/metrics`

The `subsets` field has been added to the metrics object, providing the `xWidthAvg` metric for each subset — calculated against the relevant character frequency data.

```diff
{
"familyName": "Abril Fatface",
...
+ "subsets": {
+ "latin": {
+ "xWidthAvg": 512
+ },
+ "thai": {
+ "xWidthAvg": 200
+ }
+ }
}
```

There are no changes to any of the other existing metrics.

#### `@capsizecss/core`

Fallback font stacks can now be generated per subset, allowing the correct `xWidthAvg` metric to be used for the relevant subset.

The `createFontStack` API now accepts `subset` as an option:

```ts
const { fontFamily, fontFaces } = createFontStack([lobster, arial], {
subset: 'thai',
});
```

## 4.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@capsizecss/core",
"version": "4.0.0",
"version": "4.1.0",
"description": "Flipping how we define typography",
"keywords": [
"capsize",
Expand Down
46 changes: 46 additions & 0 deletions packages/metrics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# @capsizecss/metrics

## 2.2.0

### Minor Changes

- [#177](https://github.com/seek-oss/capsize/pull/177) [`879208b`](https://github.com/seek-oss/capsize/commit/879208bd08372be246ecd30a1be42f44883ca650) Thanks [@michaeltaranto](https://github.com/michaeltaranto)! - xWidthAvg: Add `subset` support for non-latin character sets

Previously the `xWidthAvg` metric was calculated based on the character frequency as measured from English text only.
This resulted in the `xWidthAvg` metric being incorrect for languages that use a different unicode subset range, e.g. Thai.

Supporting Thai now enables adding support for other unicode ranges in the future.

### What's changed?

#### `@capsizecss/metrics`

The `subsets` field has been added to the metrics object, providing the `xWidthAvg` metric for each subset — calculated against the relevant character frequency data.

```diff
{
"familyName": "Abril Fatface",
...
+ "subsets": {
+ "latin": {
+ "xWidthAvg": 512
+ },
+ "thai": {
+ "xWidthAvg": 200
+ }
+ }
}
```

There are no changes to any of the other existing metrics.

#### `@capsizecss/core`

Fallback font stacks can now be generated per subset, allowing the correct `xWidthAvg` metric to be used for the relevant subset.

The `createFontStack` API now accepts `subset` as an option:

```ts
const { fontFamily, fontFaces } = createFontStack([lobster, arial], {
subset: 'thai',
});
```

## 2.1.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/metrics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@capsizecss/metrics",
"version": "2.1.1",
"version": "2.2.0",
"description": "Font metrics library for system and Google fonts",
"keywords": [
"capsize",
Expand Down Expand Up @@ -64,7 +64,7 @@
"generate": "pnpm clean && tsx ./scripts/generate.ts"
},
"devDependencies": {
"@capsizecss/unpack": "^2.0.1",
"@capsizecss/unpack": "^2.1.0",
"@types/cli-progress": "^3.9.2",
"@types/node-fetch": "^2.6.2",
"cli-progress": "^3.9.1",
Expand Down
46 changes: 46 additions & 0 deletions packages/unpack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# @capsizecss/unpack

## 2.1.0

### Minor Changes

- [#177](https://github.com/seek-oss/capsize/pull/177) [`879208b`](https://github.com/seek-oss/capsize/commit/879208bd08372be246ecd30a1be42f44883ca650) Thanks [@michaeltaranto](https://github.com/michaeltaranto)! - xWidthAvg: Add `subset` support for non-latin character sets

Previously the `xWidthAvg` metric was calculated based on the character frequency as measured from English text only.
This resulted in the `xWidthAvg` metric being incorrect for languages that use a different unicode subset range, e.g. Thai.

Supporting Thai now enables adding support for other unicode ranges in the future.

### What's changed?

#### `@capsizecss/metrics`

The `subsets` field has been added to the metrics object, providing the `xWidthAvg` metric for each subset — calculated against the relevant character frequency data.

```diff
{
"familyName": "Abril Fatface",
...
+ "subsets": {
+ "latin": {
+ "xWidthAvg": 512
+ },
+ "thai": {
+ "xWidthAvg": 200
+ }
+ }
}
```

There are no changes to any of the other existing metrics.

#### `@capsizecss/core`

Fallback font stacks can now be generated per subset, allowing the correct `xWidthAvg` metric to be used for the relevant subset.

The `createFontStack` API now accepts `subset` as an option:

```ts
const { fontFamily, fontFaces } = createFontStack([lobster, arial], {
subset: 'thai',
});
```

## 2.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/unpack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@capsizecss/unpack",
"version": "2.0.1",
"version": "2.1.0",
"description": "Unpack capsize font metrics from fonts",
"keywords": [
"capsize",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"directory": "site"
},
"dependencies": {
"@capsizecss/core": "^4.0.0",
"@capsizecss/metrics": "^2.1.1",
"@capsizecss/unpack": "^2.0.1",
"@capsizecss/core": "^4.1.0",
"@capsizecss/metrics": "^2.2.0",
"@capsizecss/unpack": "^2.1.0",
"@chakra-ui/icons": "^2.1.1",
"@chakra-ui/react": "^2.8.2",
"@emotion/react": "^11.11.3",
Expand Down

0 comments on commit 1e6d67f

Please sign in to comment.