Skip to content

Commit 06df931

Browse files
authored
Version Packages (#240)
1 parent 41ef5b0 commit 06df931

File tree

9 files changed

+52
-36
lines changed

9 files changed

+52
-36
lines changed

.changeset/five-ways-sell.md

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

packages/core/CHANGELOG.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @capsizecss/core
22

3+
## 4.1.3
4+
5+
### Patch Changes
6+
7+
- [#239](https://github.com/seek-oss/capsize/pull/239) [`41ef5b0`](https://github.com/seek-oss/capsize/commit/41ef5b0663f468575369485152b800ea48c53812) Thanks [@delucis](https://github.com/delucis)! - Bundle Capsize packages with [tsdown](https://tsdown.dev/) instead of Crackle. This is an internal change only and does not affect the public API.
8+
39
## 4.1.2
410

511
### Patch Changes
@@ -35,7 +41,7 @@
3541
```ts
3642
createFontStack([merriweatherSans, arial], {
3743
fontFaceProperties: {
38-
sizeAdjust: '300%',
44+
sizeAdjust: "300%",
3945
},
4046
});
4147
```
@@ -97,7 +103,7 @@
97103

98104
```ts
99105
const { fontFamily, fontFaces } = createFontStack([lobster, arial], {
100-
subset: 'thai',
106+
subset: "thai",
101107
});
102108
```
103109

@@ -110,7 +116,6 @@
110116
Migrating Capsize packages to be precompiled with [Crackle], with a key change being Crackle now handles entry points instead of [Preconstruct].
111117

112118
Other benefits include:
113-
114119
- Modern module entry point syntax using the ["exports" field] with better tooling compatibility.
115120
- Improved types and better ESM and CJS compatibility
116121
- Better alignment between compiled code and module entry points
@@ -138,8 +143,8 @@
138143
The `fontFamily` returned from `createFontStack` now includes the original fallback font name(s). These are appended to the end of the font stack in the case the preferred font and generated fallbacks are not available.
139144

140145
```ts
141-
import lobster from '@capsizecss/metrics/lobster';
142-
import arial from '@capsizecss/metrics/arial';
146+
import lobster from "@capsizecss/metrics/lobster";
147+
import arial from "@capsizecss/metrics/arial";
143148

144149
const { fontFamily } = createFontStack([lobster, arial]);
145150
```
@@ -176,10 +181,10 @@
176181
### Example usage
177182

178183
```ts
179-
import { createFontStack } from '@capsizecss/core';
180-
import lobster from '@capsizecss/metrics/lobster';
181-
import helveticaNeue from '@capsizecss/metrics/helveticaNeue';
182-
import arial from '@capsizecss/metrics/arial';
184+
import { createFontStack } from "@capsizecss/core";
185+
import lobster from "@capsizecss/metrics/lobster";
186+
import helveticaNeue from "@capsizecss/metrics/helveticaNeue";
187+
import arial from "@capsizecss/metrics/arial";
183188

184189
const { fontFamily, fontFaces } = createFontStack([
185190
lobster,
@@ -198,15 +203,15 @@
198203
```css
199204
/* `fontFaces` */
200205
@font-face {
201-
font-family: 'Lobster Fallback: Helvetica Neue';
202-
src: local('Helvetica Neue');
206+
font-family: "Lobster Fallback: Helvetica Neue";
207+
src: local("Helvetica Neue");
203208
ascent-override: 115.1741%;
204209
descent-override: 28.7935%;
205210
size-adjust: 86.8251%;
206211
}
207212
@font-face {
208-
font-family: 'Lobster Fallback: Arial';
209-
src: local('Arial');
213+
font-family: "Lobster Fallback: Arial";
214+
src: local("Arial");
210215
ascent-override: 113.5679%;
211216
descent-override: 28.392%;
212217
size-adjust: 88.053%;
@@ -262,9 +267,9 @@
262267
Accepts capsize `options` and returns a string representation of the capsize styles that can then be templated into a HTML `style` tag or appended to a stylesheet.
263268

264269
```ts
265-
import { createStyleString } from '@capsizecss/core';
270+
import { createStyleString } from "@capsizecss/core";
266271

267-
const capsizedStyleRule = createStyleString('capsizedText', {
272+
const capsizedStyleRule = createStyleString("capsizedText", {
268273
fontSize: 18,
269274
fontMetrics: {
270275
// ...

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@capsizecss/core",
3-
"version": "4.1.2",
3+
"version": "4.1.3",
44
"description": "Flipping how we define typography",
55
"keywords": [
66
"capsize",

packages/metrics/CHANGELOG.md

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

3+
## 3.6.1
4+
5+
### Patch Changes
6+
7+
- [#239](https://github.com/seek-oss/capsize/pull/239) [`41ef5b0`](https://github.com/seek-oss/capsize/commit/41ef5b0663f468575369485152b800ea48c53812) Thanks [@delucis](https://github.com/delucis)! - Bundle Capsize packages with [tsdown](https://tsdown.dev/) instead of Crackle. This is an internal change only and does not affect the public API.
8+
39
## 3.6.0
410

511
### 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": "3.6.0",
3+
"version": "3.6.1",
44
"description": "Font metrics library for system and Google fonts",
55
"keywords": [
66
"capsize",

packages/unpack/CHANGELOG.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @capsizecss/unpack
22

3+
## 3.0.1
4+
5+
### Patch Changes
6+
7+
- [#239](https://github.com/seek-oss/capsize/pull/239) [`41ef5b0`](https://github.com/seek-oss/capsize/commit/41ef5b0663f468575369485152b800ea48c53812) Thanks [@delucis](https://github.com/delucis)! - Bundle Capsize packages with [tsdown](https://tsdown.dev/) instead of Crackle. This is an internal change only and does not affect the public API.
8+
39
## 3.0.0
410

511
### Major Changes
@@ -21,7 +27,7 @@
2127
Extract font metrics from a buffer directly by calling the newly exposed `fromBuffer` function:
2228

2329
```ts
24-
import { fromBuffer } from '@capsizecss/unpack';
30+
import { fromBuffer } from "@capsizecss/unpack";
2531

2632
const metrics = await fromBuffer(buffer);
2733
```
@@ -37,10 +43,10 @@
3743
For example:
3844

3945
```ts
40-
import { fromFile } from '@capsizecss/unpack';
46+
import { fromFile } from "@capsizecss/unpack";
4147

42-
const metrics = await fromFile('AvenirNext.ttc', {
43-
postscriptName: 'AvenirNext-Bold',
48+
const metrics = await fromFile("AvenirNext.ttc", {
49+
postscriptName: "AvenirNext-Bold",
4450
});
4551
```
4652

@@ -77,8 +83,8 @@
7783

7884
```css
7985
@font-face {
80-
font-family: 'Web Font Fallback';
81-
src: local('Arial Bold'), local('Arial-BoldMT');
86+
font-family: "Web Font Fallback";
87+
src: local("Arial Bold"), local("Arial-BoldMT");
8288
font-weight: 700;
8389
ascent-override: 89.3502%;
8490
descent-override: 23.1683%;
@@ -130,7 +136,7 @@
130136

131137
```ts
132138
const { fontFamily, fontFaces } = createFontStack([lobster, arial], {
133-
subset: 'thai',
139+
subset: "thai",
134140
});
135141
```
136142

@@ -151,7 +157,6 @@
151157
Migrating Capsize packages to be precompiled with [Crackle], with a key change being Crackle now handles entry points instead of [Preconstruct].
152158

153159
Other benefits include:
154-
155160
- Modern module entry point syntax using the ["exports" field] with better tooling compatibility.
156161
- Improved types and better ESM and CJS compatibility
157162
- Better alignment between compiled code and module entry points

packages/unpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@capsizecss/unpack",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "Unpack capsize font metrics from fonts",
55
"keywords": [
66
"capsize",

packages/vanilla-extract/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @capsizecss/vanilla-extract
22

3+
## 2.0.2
4+
5+
### Patch Changes
6+
7+
- [#239](https://github.com/seek-oss/capsize/pull/239) [`41ef5b0`](https://github.com/seek-oss/capsize/commit/41ef5b0663f468575369485152b800ea48c53812) Thanks [@delucis](https://github.com/delucis)! - Bundle Capsize packages with [tsdown](https://tsdown.dev/) instead of Crackle. This is an internal change only and does not affect the public API.
8+
9+
- Updated dependencies [[`41ef5b0`](https://github.com/seek-oss/capsize/commit/41ef5b0663f468575369485152b800ea48c53812)]:
10+
- @capsizecss/core@4.1.3
11+
312
## 2.0.1
413

514
### Patch Changes
@@ -15,7 +24,6 @@
1524
Migrating Capsize packages to be precompiled with [Crackle], with a key change being Crackle now handles entry points instead of [Preconstruct].
1625

1726
Other benefits include:
18-
1927
- Modern module entry point syntax using the ["exports" field] with better tooling compatibility.
2028
- Improved types and better ESM and CJS compatibility
2129
- Better alignment between compiled code and module entry points

packages/vanilla-extract/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@capsizecss/vanilla-extract",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Vanilla-extract integration for capsize",
55
"keywords": [
66
"capsize",

0 commit comments

Comments
 (0)