Skip to content

Commit f2ada7f

Browse files
Version Packages
1 parent 31dc6fa commit f2ada7f

File tree

5 files changed

+41
-44
lines changed

5 files changed

+41
-44
lines changed

.changeset/odd-moons-sip.md

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

.changeset/perfect-islands-type.md

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

.changeset/silver-buttons-bake.md

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

packages/unpack/CHANGELOG.md

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

3+
## 4.0.0
4+
5+
### Major Changes
6+
7+
- [#250](https://github.com/seek-oss/capsize/pull/250) [`31dc6fa`](https://github.com/seek-oss/capsize/commit/31dc6fa83f232e958a94cb50a1909f1884327330) Thanks [@michaeltaranto](https://github.com/michaeltaranto)! - Create `fs` entry point to isolate usage of file system APIs without needing to polyfill.
8+
9+
### BREAKING CHANGES
10+
11+
Move `fromFile` to `fs` entry point.
12+
13+
#### MIGRATION GUIDE
14+
15+
```diff
16+
-import { fromFile } from '@capsizecss/unpack';
17+
+import { fromFile } from '@capsizecss/unpack/fs';
18+
```
19+
20+
- [#238](https://github.com/seek-oss/capsize/pull/238) [`61f51f3`](https://github.com/seek-oss/capsize/commit/61f51f303d377210fd14184786ac37aea9764fa2) Thanks [@delucis](https://github.com/delucis)! - Convert to ESM-only package.
21+
22+
### BREAKING CHANGES
23+
24+
As a result of migrating to a lighter weight package for extracting font file metrics, this package is now ESM-only.
25+
26+
#### MIGRATION GUIDE
27+
28+
In most projects you can continue to use the package as before.
29+
CommonJS (CJS) projects using Node.js <20, should update to use a dynamic import:
30+
31+
```js
32+
// For CJS projects before Node 20
33+
const { fromBuffer } = await import("@capsizecss/unpack");
34+
35+
// For all other projects
36+
import { fromBuffer } from "@capsizecss/unpack";
37+
```
38+
39+
### Patch Changes
40+
41+
- [#238](https://github.com/seek-oss/capsize/pull/238) [`61f51f3`](https://github.com/seek-oss/capsize/commit/61f51f303d377210fd14184786ac37aea9764fa2) Thanks [@delucis](https://github.com/delucis)! - Reduce install size by using a lighter weight package for extracting font file metrics
42+
343
## 3.0.1
444

545
### Patch Changes

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.1",
3+
"version": "4.0.0",
44
"description": "Unpack capsize font metrics from fonts",
55
"keywords": [
66
"capsize",

0 commit comments

Comments
 (0)