Skip to content

Commit f060d09

Browse files
committed
0.8.0
1 parent 20329ad commit f060d09

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## 0.8.0 (2026-04-08)
2+
3+
* feat: 🎸 extract s.coerce into standalone opt-in module ([20329ad](https://github.com/mjancarik/esmj-schema/commit/20329ad))
4+
5+
### BREAKING CHANGE
6+
7+
* 🧨 Move the coerce implementation from src/index.ts into a new
8+
src/coerce.ts side-effect module, matching the pattern ofstring.ts /
9+
number.ts / array.ts. s.coerce is an empty object by default — methods
10+
are only availableafter importing the coerce module: import
11+
'@esmj/schema/coerce'; // side-effect only import { s } from
12+
'@esmj/schema/coerce'; // re-exports index.ts import { s } from
13+
'@esmj/schema/full'; // includes all modulesWithout this import,
14+
calling any s.coerce method throws at runtime.TypeScript enforces this
15+
through the empty CoerceInterface./
116
## <small>0.7.4 (2026-04-07)</small>
217

318
* feat: 🎸 extract schema factories as tree-shakeable named export ([eae8c8c](https://github.com/mjancarik/esmj-schema/commit/eae8c8c))

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@esmj/schema",
3-
"version": "0.7.4",
3+
"version": "0.8.0",
44
"description": "Tiny extendable package for schema validation.",
55
"keywords": [
66
"schema",

0 commit comments

Comments
 (0)