yrby 0.2.1-aarch64-linux-musl → 0.2.3-aarch64-linux-musl

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67ca78b9b3b01b4454342ae06d98ef4bd571765993436765be3f9475a53bdacb
4
- data.tar.gz: 4c33dd59cc61d278551cf0460f4df8aff54b736d479fdc4888c9df629ab68841
3
+ metadata.gz: b2a836980af9b5ad4c5cf22ee5bb5f444a091b73a19bf20619dfec212a51c9e1
4
+ data.tar.gz: ca3faed6eff8a9168d5cb9362927957893a076ec94c7d6eacc2ddb37074e78c8
5
5
  SHA512:
6
- metadata.gz: 510ebe0914503d467c7b13e59de31ecd6872195efcd0ca879aa9d77b13bf527411ea2a1e026273a76bfe97d683c7037c8ca4079a3542a977553898e9276e24f6
7
- data.tar.gz: 83c995b11f8662693db3b1b611bc13f22e6b7f75cb845a694114a01f292241491a894f5a3396dcb2d6a3553f4cac90f508f6895e6ec5dfe950d109eda7699a24
6
+ metadata.gz: f29869d299d84a592989a61237e990413397bac0fc8d0973b286de7a9601a538840d56a83a7ad627416b2ffdc6ba9d340d9b12b90cfee073cf0f13bbc3c29f4e
7
+ data.tar.gz: 71445a6ac4d470cfddf8eade636bb8bad6998b3ab108ed2af97abb3b233547bcf2632a4635ad1646ff73cc1dfe44b3bb40dead318fb47bfe2c27b99cbc269619
data/CHANGELOG.md CHANGED
@@ -6,6 +6,44 @@ to follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.2.3] - 2026-07-01
10
+
11
+ ### Fixed
12
+
13
+ - `Doc#update_advances?` is now exact for **delete-bearing** updates, so an
14
+ already-applied pure-delete retry no longer reports as advancing. Previously any
15
+ update carrying a delete set returned `true` (record it) because deletes don't
16
+ move the state vector, so the cheap state-vector probe couldn't prove a
17
+ duplicate. A lost-ack retry of a deletion the server had already integrated was
18
+ therefore re-recorded and re-broadcast every time. For delete-bearing updates we
19
+ now compare the full encoded document state (which includes the delete set)
20
+ before vs. after a trial apply on an isolated probe: a genuinely new deletion
21
+ changes it (`true`); an already-applied retry re-encodes identically (`false`).
22
+ Insert/format-only updates keep the cheaper state-vector path, so only
23
+ delete-bearing frames — a minority — pay for the exact comparison. The exactly-
24
+ once guarantee is unchanged in the safe direction: a real deletion is never
25
+ dropped.
26
+
27
+ This lets `yrby-actioncable` (and any caller gating `on_change` on
28
+ `update_advances?`) settle a duplicate pure-delete frame as `:applied` — acked,
29
+ but not stored or relayed — so apps no longer need an app-level
30
+ encode-and-compare guard around their durable writes.
31
+
32
+ ## [0.2.2] - 2026-06-30
33
+
34
+ ### Fixed
35
+
36
+ - `Doc#read_xml` now recovers text from **nested** Lexical/Lexxy blocks. Lexical
37
+ embeds child blocks (list items, table cells, nested lists) as `Y.XmlText`
38
+ embeds that `get_string` silently drops, so lists and tables previously came
39
+ back empty. `read_xml` now walks the embeds: text runs build a line, inline
40
+ children (links) join it, and nested block children flush and recurse — so a
41
+ document with headings, formatted text, links, bullet/numbered/check/nested
42
+ lists, blockquotes, code blocks and tables extracts every piece of text.
43
+ Lexical decorator elements (horizontal rule, image) are skipped instead of
44
+ emitting their `<UNDEFINED …>` serialization. ProseMirror handling is
45
+ unchanged.
46
+
9
47
  ## [0.2.1] - 2026-06-29
10
48
 
11
49
  ### Changed
@@ -15,15 +53,9 @@ to follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
15
53
 
16
54
  ## [0.2.0] - 2026-06-28
17
55
 
18
- First release under the **`yrby`** name (the project was previously developed
19
- as `yrb-lite`). The public Ruby interface is the top-level module **`Y`** —
20
- mirroring the `y-rb` gem's `Y::Doc` interface.
21
-
22
- ### Changed
23
- - **Renamed `yrb-lite` → `yrby`.** Module `YrbLite` → top-level `Y`
24
- (`Y::Doc`, `Y::Error`, `Y::VERSION`). Require path `require "yrb_lite"` →
25
- `require "y"`. (The native extension crate shipped as `y_ruby` in 0.2.0; see
26
- 0.2.1 for its rename to `yrby`.)
56
+ First release. The public Ruby interface is the top-level module **`Y`**
57
+ (`Y::Doc`, `Y::Error`, `Y::VERSION`), loaded with `require "y"` mirroring the
58
+ `y-rb` gem's `Y::Doc` interface.
27
59
 
28
60
  ### Added
29
61
  - Native `Doc#read_text` and `Doc#read_map` readers — reconstruct plain text and
data/README.md CHANGED
@@ -41,23 +41,25 @@ npm install yrby-client
41
41
  one-include ActionCable concern.
42
42
  - Authoritative record-before-distribute semantics: each document change can be
43
43
  recorded durably before it goes out to anyone.
44
- -
44
+ - Optional server-side reads: `Doc#read_text` and `Doc#read_map` reconstruct a
45
+ document's contents in Ruby - no Node process - for search, exports, validation,
46
+ or server-side rendering.
45
47
 
46
- ## Why "lite"
48
+ ## Scope
47
49
 
48
- The "lite" is the size of the surface. `yrby` binds just the part of `y-crdt` you
49
- need to *sync and persist* collaborative documents - a `Doc`, awareness, and the
50
- y-websocket protocol primitives. The Ruby side treats a document as opaque CRDT
51
- state: it applies updates, answers sync handshakes, and records deltas, but never
52
- reaches in to read or edit the contents. The browser editor owns the document's
53
- shape.
50
+ `yrby` binds just the part of `y-crdt` you need to *sync and persist* collaborative
51
+ documents - a `Doc`, awareness, and the y-websocket protocol primitives. By default
52
+ the Ruby side treats a document as opaque CRDT state: it applies updates, answers
53
+ sync handshakes, and records deltas without reaching into the contents - the browser
54
+ editor owns the document's shape. When you do need to look inside, `Doc#read_text`
55
+ and `Doc#read_map` reconstruct it server-side, in Ruby.
54
56
 
55
- ## What isn't "lite"
57
+ ## Durability and delivery
56
58
 
57
- The surface area may be "lite", but a core focus is on durability, resiliency, delivery
59
+ The surface is intentionally small, but the focus is durability, resiliency, delivery
58
60
  guarantees, correctness, and thread safety.
59
61
 
60
- Towards that goal, `yrby` adds capabilities that may even stand out in the Yjs ecosystem:
62
+ Towards that goal, `yrby` adds capabilities that stand out even in the Yjs ecosystem:
61
63
 
62
64
  - Built-in update acknowledgement: the `ActionCableProvider` in `yrby-client` will continue to
63
65
  send updates until an ack is received from the server. [`yrby-actioncable`](https://rubygems.org/gems/yrby-actioncable)
data/lib/y/3.4/yrby.so CHANGED
Binary file
data/lib/y/4.0/yrby.so CHANGED
Binary file
data/lib/y/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Y
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yrby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: aarch64-linux-musl
6
6
  authors:
7
7
  - JP Camara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-29 00:00:00.000000000 Z
11
+ date: 2026-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest