@oh-my-pi/omptype 18.13.2 → 18.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [18.13.3] - 2026-10-28
6
+
7
+ ### Changed
8
+
9
+ - Updated Bun engine requirement to ≥1.4.4
10
+
5
11
  ## [18.12.0] - 2026-10-17
6
12
 
7
13
  ### Fixed
package/README.md CHANGED
@@ -13,7 +13,7 @@ bun add @oh-my-pi/omptype
13
13
  ```
14
14
 
15
15
  Runs on Node 20+ (published as compiled ESM with bundled type declarations)
16
- and Bun 1.3.14+ (which resolves the TypeScript source directly via the `bun`
16
+ and Bun 1.4.4+ (which resolves the TypeScript source directly via the `bun`
17
17
  export condition). No runtime dependencies.
18
18
 
19
19
  ## Usage
@@ -22,9 +22,9 @@ export condition). No runtime dependencies.
22
22
  import { type } from "@oh-my-pi/omptype";
23
23
 
24
24
  const Config = type({
25
- name: "string",
26
- "retries?": "number.integer >= 0",
27
- enabled: "boolean = true",
25
+ name: "string",
26
+ "retries?": "number.integer >= 0",
27
+ enabled: "boolean = true",
28
28
  });
29
29
 
30
30
  const config = Config.assert({ name: "worker" });
@@ -32,7 +32,7 @@ const config = Config.assert({ name: "worker" });
32
32
 
33
33
  const result = Config({ name: 42 });
34
34
  if (result instanceof type.errors) {
35
- console.error(result.summary);
35
+ console.error(result.summary);
36
36
  }
37
37
  ```
38
38
 
@@ -49,12 +49,12 @@ Built-in keyword modules include `type.string.email`, `type.string.uuid.v4`,
49
49
 
50
50
  ```ts
51
51
  const models = type
52
- .scope({
53
- User: { name: "string", "manager?": "User" },
54
- Users: "User[]",
55
- PublicUser: "Pick<User, 'name'>",
56
- })
57
- .export();
52
+ .scope({
53
+ User: { name: "string", "manager?": "User" },
54
+ Users: "User[]",
55
+ PublicUser: "Pick<User, 'name'>",
56
+ })
57
+ .export();
58
58
 
59
59
  models.User.assert({ name: "Ada", manager: { name: "Grace" } });
60
60
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/omptype",
4
- "version": "18.13.2",
4
+ "version": "18.14.0",
5
5
  "description": "ArkType-compatible runtime schema validation with lazy JIT compilation",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": {
@@ -45,14 +45,13 @@
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=20",
48
- "bun": ">=1.3.14"
48
+ "bun": ">=1.4.4"
49
49
  },
50
50
  "files": [
51
51
  "src",
52
52
  "README.md",
53
53
  "CHANGELOG.md",
54
54
  "LICENSE",
55
- "THIRD-PARTY-NOTICES.txt",
56
55
  "dist/types",
57
56
  "dist/js"
58
57
  ],