sinatra-inertia 0.1.2 → 0.1.3
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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/sinatra/inertia/async_sources.rb +2 -2
- data/lib/sinatra/inertia/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e51ad95f421e2dc7d2eadc72b2c17b06377e2a72748a591e09d48106500786e
|
|
4
|
+
data.tar.gz: 3f110beacd7e7eb6778440a800e6f31768d0cb44ff75546607a94ee22c50e066
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ab6eda91b4f83b63d90d3cd56281edb83222e99692396748544497dd5c4637aedaf8f557bf7777b3f03c743ab15c1ec483d50f8b88e415d15aef071aade9a47
|
|
7
|
+
data.tar.gz: 4d1b984e23f72254fad4e1a6da82498cb35ca8f26f5270c5ab1ddaa4149118926a1c9a00ce5c7c061318e9d9da7693d412b50c4952432ba9d909a82394376914
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.3 — 2026-04-29
|
|
4
|
+
|
|
5
|
+
- `lib/sinatra/inertia/async_sources.rb` registers under
|
|
6
|
+
`HomuraRuntime::AsyncRegistry` (was `CloudflareWorkers::AsyncRegistry`)
|
|
7
|
+
to follow the homura-runtime 0.3.0 module rename. Pure-Sinatra MRI
|
|
8
|
+
consumers are unaffected (the registration block is gated on
|
|
9
|
+
`defined?(::HomuraRuntime)`). Pin homura-runtime ≥ 0.3.0 if you
|
|
10
|
+
want sinatra-inertia 0.1.3's auto-await registration to fire.
|
|
11
|
+
|
|
3
12
|
## 0.1.2 — 2026-04-29
|
|
4
13
|
|
|
5
14
|
- Fix: under Opal/Workers, the Inertia visit JSON body shipped with
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
# Loaded only when the homura runtime is present (MRI / pure-Sinatra
|
|
11
11
|
# environments don't need this; their `to_h` is fully synchronous).
|
|
12
12
|
|
|
13
|
-
if defined?(::
|
|
14
|
-
::
|
|
13
|
+
if defined?(::HomuraRuntime) && defined?(::HomuraRuntime::AsyncRegistry)
|
|
14
|
+
::HomuraRuntime::AsyncRegistry.register_async_source do
|
|
15
15
|
async_method 'Sinatra::Inertia::Response', :to_h
|
|
16
16
|
async_method 'Sinatra::Inertia::Response', :to_json
|
|
17
17
|
end
|