@systemfsoftware/effect-schema-extensions 0.5.0 → 0.6.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.
@@ -9,7 +9,7 @@ export declare type ColonHex = Schema.Schema.Type<typeof ColonHex>;
9
9
  * this to produce a `Uint8Array` from that format:
10
10
  *
11
11
  * ```ts
12
- * S.compose(PrefixedHex, HexBytes) // Schema<Uint8Array, string>
12
+ * S.compose(PrefixedHex, HexBytes) // Schema<Uint8Array, `0x${string}`>
13
13
  * S.compose(ColonHex, HexBytes) // Schema<Uint8Array, string>
14
14
  * ```
15
15
  */
@@ -19,13 +19,13 @@ export declare const HexString: Schema.brand<Schema.transform<Schema.refine<stri
19
19
 
20
20
  export declare type HexString = Schema.Schema.Type<typeof HexString>;
21
21
 
22
- export declare const PrefixedHex: Schema.brand<Schema.transform<Schema.refine<string, typeof Schema.String>, Schema.refine<string, typeof Schema.String>>, "PrefixedHex">;
22
+ export declare const PrefixedHex: Schema.brand<Schema.transform<Schema.refine<`0x${string}`, Schema.TemplateLiteral<`0x${string}`>>, Schema.refine<string, typeof Schema.String>>, "PrefixedHex">;
23
23
 
24
24
  export declare type PrefixedHex = Schema.Schema.Type<typeof PrefixedHex>;
25
25
 
26
26
  export declare const StrictHex: Schema.refine<string, typeof Schema.String>;
27
27
 
28
- export declare const Uint8ArrayFromPrefixedHex: Schema.transform<Schema.refine<string, typeof Schema.String>, Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>>;
28
+ export declare const Uint8ArrayFromPrefixedHex: Schema.transform<Schema.refine<`0x${string}`, Schema.TemplateLiteral<`0x${string}`>>, Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>>;
29
29
 
30
30
  export declare type Uint8ArrayFromPrefixedHex = Schema.Schema.Type<typeof Uint8ArrayFromPrefixedHex>;
31
31
 
@@ -9,7 +9,7 @@ export declare type ColonHex = Schema.Schema.Type<typeof ColonHex>;
9
9
  * this to produce a `Uint8Array` from that format:
10
10
  *
11
11
  * ```ts
12
- * S.compose(PrefixedHex, HexBytes) // Schema<Uint8Array, string>
12
+ * S.compose(PrefixedHex, HexBytes) // Schema<Uint8Array, `0x${string}`>
13
13
  * S.compose(ColonHex, HexBytes) // Schema<Uint8Array, string>
14
14
  * ```
15
15
  */
@@ -19,13 +19,13 @@ export declare const HexString: Schema.brand<Schema.transform<Schema.refine<stri
19
19
 
20
20
  export declare type HexString = Schema.Schema.Type<typeof HexString>;
21
21
 
22
- export declare const PrefixedHex: Schema.brand<Schema.transform<Schema.refine<string, typeof Schema.String>, Schema.refine<string, typeof Schema.String>>, "PrefixedHex">;
22
+ export declare const PrefixedHex: Schema.brand<Schema.transform<Schema.refine<`0x${string}`, Schema.TemplateLiteral<`0x${string}`>>, Schema.refine<string, typeof Schema.String>>, "PrefixedHex">;
23
23
 
24
24
  export declare type PrefixedHex = Schema.Schema.Type<typeof PrefixedHex>;
25
25
 
26
26
  export declare const StrictHex: Schema.refine<string, typeof Schema.String>;
27
27
 
28
- export declare const Uint8ArrayFromPrefixedHex: Schema.transform<Schema.refine<string, typeof Schema.String>, Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>>;
28
+ export declare const Uint8ArrayFromPrefixedHex: Schema.transform<Schema.refine<`0x${string}`, Schema.TemplateLiteral<`0x${string}`>>, Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>>;
29
29
 
30
30
  export declare type Uint8ArrayFromPrefixedHex = Schema.Schema.Type<typeof Uint8ArrayFromPrefixedHex>;
31
31
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@systemfsoftware/effect-schema-extensions",
3
3
  "license": "MIT",
4
- "version": "0.5.0",
4
+ "version": "0.6.0",
5
5
  "author": "Ryan Lee <drdgvhbh@gmail.com>",
6
6
  "repository": {
7
7
  "type": "git",
@@ -38,7 +38,7 @@
38
38
  "dist"
39
39
  ],
40
40
  "dependencies": {
41
- "@systemfsoftware/hex-schema": "^1.2.0"
41
+ "@systemfsoftware/hex-schema": "^1.4.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@effect/vitest": "0.30.0",
@@ -51,8 +51,8 @@
51
51
  "tsdown": "^0.22.9",
52
52
  "vitest": "^4",
53
53
  "@systemfsoftware/arethetypeswrong-cli": "^1.0.7",
54
- "@systemfsoftware/tsconfig": "^1.2.6",
55
54
  "@systemfsoftware/oxlint-config": "^0.1.0",
55
+ "@systemfsoftware/tsconfig": "^1.2.6",
56
56
  "@systemfsoftware/vitest-config": "^0.1.0"
57
57
  },
58
58
  "peerDependencies": {