@systemfsoftware/hex-schema 1.8.0 → 1.8.1

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
@@ -1,5 +1,13 @@
1
1
  # @systemfsoftware/hex-schema
2
2
 
3
+ ## 1.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - The peer requirements for `effect` and for the Effect test-runner integration now accept any compatible `4.0.0-rc` release, instead of demanding one exact release candidate.
8
+
9
+ Installing alongside a newer release candidate no longer reports an unmet peer dependency or resolves a second copy of `effect` into the dependency tree.
10
+
3
11
  ## 1.8.0
4
12
 
5
13
  ### Minor Changes
@@ -0,0 +1,32 @@
1
+ import { Schema } from 'effect';
2
+
3
+ export declare const ColonHex: Schema.brand<Schema.decodeTo<Schema.brand<Schema.decodeTo<Schema.String, Schema.String, never, never>, "HexString">, Schema.decodeTo<Schema.toEncoded<Schema.brand<Schema.decodeTo<Schema.String, Schema.String, never, never>, "HexString">>, Schema.String, never, never>, never, never>, "ColonHex">;
4
+
5
+ export declare type ColonHex = Schema.Schema.Type<typeof ColonHex>;
6
+
7
+ /**
8
+ * Composable hex-to-bytes schema. Compose any branded hex schema with
9
+ * this to produce a `Uint8Array` from that format:
10
+ *
11
+ * ```ts
12
+ * S.decodeTo(HexBytes)(PrefixedHex) // Schema<Uint8Array, `0x${string}`>
13
+ * S.decodeTo(HexBytes)(ColonHex) // Schema<Uint8Array, string>
14
+ * ```
15
+ */
16
+ export declare const HexBytes: Schema.Uint8ArrayFromHex;
17
+
18
+ export declare const HexString: Schema.brand<Schema.decodeTo<Schema.String, Schema.String, never, never>, "HexString">;
19
+
20
+ export declare type HexString = Schema.Schema.Type<typeof HexString>;
21
+
22
+ export declare const PrefixedHex: Schema.brand<Schema.decodeTo<Schema.String, Schema.TemplateLiteral<readonly ["0x", Schema.String]>, never, never>, "PrefixedHex">;
23
+
24
+ export declare type PrefixedHex = Schema.Schema.Type<typeof PrefixedHex>;
25
+
26
+ export declare const StrictHex: Schema.String;
27
+
28
+ export declare const Uint8ArrayFromPrefixedHex: Schema.decodeTo<Schema.Uint8ArrayFromHex, Schema.brand<Schema.decodeTo<Schema.String, Schema.TemplateLiteral<readonly ["0x", Schema.String]>, never, never>, "PrefixedHex">, never, never>;
29
+
30
+ export declare type Uint8ArrayFromPrefixedHex = Schema.Schema.Type<typeof Uint8ArrayFromPrefixedHex>;
31
+
32
+ export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@systemfsoftware/hex-schema",
3
3
  "license": "Apache-2.0",
4
- "version": "1.8.0",
4
+ "version": "1.8.1",
5
5
  "author": "Ryan Lee <drdgvhbh@gmail.com>",
6
6
  "repository": {
7
7
  "type": "git",
@@ -34,25 +34,25 @@
34
34
  "dist"
35
35
  ],
36
36
  "devDependencies": {
37
- "@effect/vitest": "4.0.0-rc.108",
37
+ "@effect/vitest": "4.0.0-rc.111",
38
38
  "@microsoft/api-extractor": "^7.58.7",
39
39
  "@systemfsoftware/arethetypeswrong-cli": "^1.1.1",
40
40
  "@types/node": "^24",
41
- "effect": "4.0.0-rc.108",
41
+ "effect": "4.0.0-rc.111",
42
42
  "fast-check": "^4",
43
43
  "oxlint": "^1.77.0",
44
44
  "rimraf": "^6.1.3",
45
45
  "tsdown": "^0.22.14",
46
46
  "vitest": "^4.1.10",
47
- "@systemfsoftware/effect-schema-law": "^0.8.0",
48
- "@systemfsoftware/effect-schema-vite": "^1.5.3",
47
+ "@systemfsoftware/effect-schema-vite": "^1.5.4",
48
+ "@systemfsoftware/effect-schema-law": "^0.9.0",
49
49
  "@systemfsoftware/oxlint-config": "^0.1.0",
50
50
  "@systemfsoftware/tsconfig": "^1.3.3",
51
51
  "@systemfsoftware/vitest-config": "^0.1.0",
52
- "@systemfsoftware/stryker-plugins": "^0.13.0"
52
+ "@systemfsoftware/stryker-plugins": "^0.13.1"
53
53
  },
54
54
  "peerDependencies": {
55
- "effect": "4.0.0-rc.108"
55
+ "effect": "^4.0.0-rc.111"
56
56
  },
57
57
  "publishConfig": {
58
58
  "provenance": true