@effected/jsonl 0.2.0 → 0.3.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/JsonlError.js +2 -2
- package/README.md +1 -1
- package/package.json +2 -2
package/JsonlError.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LineSlice } from "./LineSlice.js";
|
|
2
|
-
import { Option, Schema
|
|
2
|
+
import { Option, Schema } from "effect";
|
|
3
3
|
|
|
4
4
|
//#region src/JsonlError.ts
|
|
5
5
|
/**
|
|
@@ -20,7 +20,7 @@ import { Option, Schema, SchemaError } from "effect";
|
|
|
20
20
|
* still carrying the failure **structurally** — `error.issue` keeps its paths
|
|
21
21
|
* and expected types — instead of flattening it to a string at the boundary.
|
|
22
22
|
*/
|
|
23
|
-
const SchemaErrorFromSelf = Schema.declare(
|
|
23
|
+
const SchemaErrorFromSelf = Schema.declare(Schema.isSchemaError);
|
|
24
24
|
/**
|
|
25
25
|
* A journal line that is not valid JSON.
|
|
26
26
|
*
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Append-only, schema-validated JSONL journals as a definable Effect service. The subject is not the format — one JSON value per line is a two-sentence specification and needs no library — but the file as a live object: a journal that only ever grows, whose current state is its last valid line, whose tail may be torn mid-append, and which several processes read while one writes. Every line is an envelope (`at`, `event`, an optional `scope`, and a `data` payload validated by the schema you registered for that event), so a journal stays greppable, `jq`-able and diffable in a pull request while the reads that matter stay typed.
|
|
9
9
|
|
|
10
10
|
> **Pre-release.** This package is part of the `@effected/*` kit, in pre-`1.0.0`
|
|
11
|
-
> development against a single pinned Effect v4
|
|
11
|
+
> development against a single pinned Effect v4 prerelease. Packages graduate to
|
|
12
12
|
> `1.0.0` once Effect `4.0.0` ships. To hold your own `effect` versions at
|
|
13
13
|
> exactly the ones the kit is built and tested against, install
|
|
14
14
|
> [`@effected/pnpm-plugin-effect`](https://www.npmjs.com/package/@effected/pnpm-plugin-effect).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/jsonl",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Append-only, schema-validated JSONL journals as a definable Effect service.",
|
|
6
6
|
"keywords": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"effect": "4.0.0-
|
|
40
|
+
"effect": "4.0.0-rc.109"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=24.11.0"
|