@zio.dev/zio-blocks 0.0.25 → 0.0.26
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/guides/query-dsl-extending.md +1 -1
- package/guides/query-dsl-fluent-builder.md +1 -1
- package/guides/query-dsl-reified-optics.md +1 -1
- package/guides/query-dsl-sql.md +1 -1
- package/index.md +11 -11
- package/package.json +1 -1
- package/reference/codec.md +7 -7
- package/reference/docs.md +1 -1
- package/reference/media-type.md +2 -2
- package/reference/schema-expr.md +2 -2
- package/reference/type-class-derivation.md +1 -1
|
@@ -52,7 +52,7 @@ Since `SchemaExpr` is a sealed trait, you cannot add new cases to it. Instead, w
|
|
|
52
52
|
This guide builds on [Part 1: Expressions](./query-dsl-reified-optics.md) and [Part 2: SQL Generation](./query-dsl-sql.md). You should be comfortable building `SchemaExpr` values and translating them to SQL.
|
|
53
53
|
|
|
54
54
|
```scala
|
|
55
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.
|
|
55
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.26"
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
```scala
|
|
@@ -57,7 +57,7 @@ In this guide, we solve both problems: bridge extensions eliminate `.toExpr`, an
|
|
|
57
57
|
This guide builds on [Part 1: Expressions](./query-dsl-reified-optics.md), [Part 2: SQL Generation](./query-dsl-sql.md), and [Part 3: Extending the Expression Language](./query-dsl-extending.md).
|
|
58
58
|
|
|
59
59
|
```scala
|
|
60
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.
|
|
60
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.26"
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
## Domain Setup
|
|
@@ -43,7 +43,7 @@ In this guide, we'll solve this by using ZIO Blocks' `SchemaExpr` and reified op
|
|
|
43
43
|
Add the ZIO Blocks Schema dependency:
|
|
44
44
|
|
|
45
45
|
```scala
|
|
46
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.
|
|
46
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.26"
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
```scala
|
package/guides/query-dsl-sql.md
CHANGED
|
@@ -43,7 +43,7 @@ Since `SchemaExpr` is a sealed trait, we can write a single interpreter that tra
|
|
|
43
43
|
This guide builds on [Part 1: Expressions](./query-dsl-reified-optics.md). You should be comfortable building `SchemaExpr` values with optic operators (`===`, `>`, `&&`, etc.).
|
|
44
44
|
|
|
45
45
|
```scala
|
|
46
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.
|
|
46
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.26"
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
```scala
|
package/index.md
CHANGED
|
@@ -81,14 +81,14 @@ val thriftCodec = Schema[Person].derive(ThriftFormat) // Thrift
|
|
|
81
81
|
### Installation
|
|
82
82
|
|
|
83
83
|
```scala
|
|
84
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.
|
|
84
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.26"
|
|
85
85
|
|
|
86
86
|
// Optional format modules:
|
|
87
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema-avro" % "0.0.
|
|
88
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema-toon" % "0.0.
|
|
89
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema-messagepack" % "0.0.
|
|
90
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema-thrift" % "0.0.
|
|
91
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema-bson" % "0.0.
|
|
87
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema-avro" % "0.0.26"
|
|
88
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema-toon" % "0.0.26"
|
|
89
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema-messagepack" % "0.0.26"
|
|
90
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema-thrift" % "0.0.26"
|
|
91
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema-bson" % "0.0.26"
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
### Example: Optics
|
|
@@ -143,7 +143,7 @@ Chunk is designed for:
|
|
|
143
143
|
### Installation
|
|
144
144
|
|
|
145
145
|
```scala
|
|
146
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-chunk" % "0.0.
|
|
146
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-chunk" % "0.0.26"
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
### Example
|
|
@@ -231,7 +231,7 @@ Scope.global.scoped { scope =>
|
|
|
231
231
|
### Installation
|
|
232
232
|
|
|
233
233
|
```scala
|
|
234
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-scope" % "0.0.
|
|
234
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-scope" % "0.0.26"
|
|
235
235
|
```
|
|
236
236
|
|
|
237
237
|
### Example: Basic Resource Management
|
|
@@ -334,7 +334,7 @@ Generating documentation, README files, or any Markdown content programmatically
|
|
|
334
334
|
### Installation
|
|
335
335
|
|
|
336
336
|
```scala
|
|
337
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-docs" % "0.0.
|
|
337
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-docs" % "0.0.26"
|
|
338
338
|
```
|
|
339
339
|
|
|
340
340
|
### Example
|
|
@@ -418,7 +418,7 @@ Compile-time type identity with rich metadata. TypeId captures comprehensive inf
|
|
|
418
418
|
### Installation
|
|
419
419
|
|
|
420
420
|
```scala
|
|
421
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-typeid" % "0.0.
|
|
421
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-typeid" % "0.0.26"
|
|
422
422
|
```
|
|
423
423
|
|
|
424
424
|
### Example
|
|
@@ -461,7 +461,7 @@ A type-indexed heterogeneous collection that stores values by their types with c
|
|
|
461
461
|
### Installation
|
|
462
462
|
|
|
463
463
|
```scala
|
|
464
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-context" % "0.0.
|
|
464
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-context" % "0.0.26"
|
|
465
465
|
```
|
|
466
466
|
|
|
467
467
|
### Example
|
package/package.json
CHANGED
package/reference/codec.md
CHANGED
|
@@ -48,23 +48,23 @@ val result: Either[SchemaError, Person] = Person.codec.decode(bytes)
|
|
|
48
48
|
To include the base schema module with JSON support, add the following dependency to your `build.sbt`:
|
|
49
49
|
|
|
50
50
|
```scala
|
|
51
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.
|
|
51
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.26"
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
Additional format modules are separate artifacts:
|
|
55
55
|
|
|
56
56
|
```scala
|
|
57
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema-avro" % "0.0.
|
|
58
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema-toon" % "0.0.
|
|
59
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema-messagepack" % "0.0.
|
|
60
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema-thrift" % "0.0.
|
|
61
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema-bson" % "0.0.
|
|
57
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema-avro" % "0.0.26"
|
|
58
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema-toon" % "0.0.26"
|
|
59
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema-messagepack" % "0.0.26"
|
|
60
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema-thrift" % "0.0.26"
|
|
61
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema-bson" % "0.0.26"
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
For cross-platform projects (Scala.js):
|
|
65
65
|
|
|
66
66
|
```scala
|
|
67
|
-
libraryDependencies += "dev.zio" %%% "zio-blocks-schema" % "0.0.
|
|
67
|
+
libraryDependencies += "dev.zio" %%% "zio-blocks-schema" % "0.0.26"
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
Supported Scala versions: 2.13.x and 3.x.
|
package/reference/docs.md
CHANGED
|
@@ -10,7 +10,7 @@ Complete API reference for the zio-blocks-docs module - a zero-dependency GitHub
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
12
12
|
```scala
|
|
13
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-docs" % "0.0.
|
|
13
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-docs" % "0.0.26"
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
## Core Types
|
package/reference/media-type.md
CHANGED
|
@@ -75,13 +75,13 @@ textAny.matches(html) // true
|
|
|
75
75
|
Add the following to your `build.sbt`:
|
|
76
76
|
|
|
77
77
|
```scala
|
|
78
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-mediatype" % "0.0.
|
|
78
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-mediatype" % "0.0.26"
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
For cross-platform projects (Scala.js):
|
|
82
82
|
|
|
83
83
|
```scala
|
|
84
|
-
libraryDependencies += "dev.zio" %%% "zio-blocks-mediatype" % "0.0.
|
|
84
|
+
libraryDependencies += "dev.zio" %%% "zio-blocks-mediatype" % "0.0.26"
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
Supported Scala versions: 2.13.x and 3.x.
|
package/reference/schema-expr.md
CHANGED
|
@@ -70,13 +70,13 @@ val result: Either[OpticCheck, Seq[Boolean]] = combined.eval(alice)
|
|
|
70
70
|
## Installation
|
|
71
71
|
|
|
72
72
|
```scala
|
|
73
|
-
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.
|
|
73
|
+
libraryDependencies += "dev.zio" %% "zio-blocks-schema" % "0.0.26"
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
For cross-platform (Scala.js):
|
|
77
77
|
|
|
78
78
|
```scala
|
|
79
|
-
libraryDependencies += "dev.zio" %%% "zio-blocks-schema" % "0.0.
|
|
79
|
+
libraryDependencies += "dev.zio" %%% "zio-blocks-schema" % "0.0.26"
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
Supported Scala versions: 2.13.x and 3.x.
|
|
@@ -1451,7 +1451,7 @@ Now we can use the derived `Gen[Person]` instance to generate random `Person` va
|
|
|
1451
1451
|
|
|
1452
1452
|
```scala
|
|
1453
1453
|
val random = new Random(42) // Seeded for reproducible output
|
|
1454
|
-
// random: Random = scala.util.Random@
|
|
1454
|
+
// random: Random = scala.util.Random@559ce90
|
|
1455
1455
|
|
|
1456
1456
|
Person.gen.generate(random)
|
|
1457
1457
|
// res14: Person = Person(name = "p", age = -1360544799)
|