homura-runtime 0.2.10 → 0.2.11
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 +6 -0
- data/lib/cloudflare_workers/version.rb +1 -1
- data/lib/cloudflare_workers.rb +6 -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: 7426d1447a4eca3f4ae0b8826e8dfaee809c9868d99314e381ae5b0e338defc3
|
|
4
|
+
data.tar.gz: d42df70713ac5bf410d91ccd77ade2c3500464a2280c769ee5475449ce427231
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f92aca6718eeb4440a60a45611378e0fa4669116fbe56f56f4663705f6440e9010e92d9d30f09c5faac5b2d7de47798a2c26dba69f9995012ce655b861831c9e
|
|
7
|
+
data.tar.gz: 9686bae18cd4c9f858f8056c807d47e068130710b44d73b796b21119b102a176f9c5154f9f5e40b95f0e4b5c6a846e6b37a16a00677c208820cef5263c7b4e27
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.11 (2026-04-25)
|
|
4
|
+
|
|
5
|
+
- Normalize bare JS `undefined` / `null` values to Ruby `nil` while converting
|
|
6
|
+
D1 rows into Ruby Hashes, preventing first-row crashes when a nullable column
|
|
7
|
+
is present in the result shape.
|
|
8
|
+
|
|
3
9
|
## 0.2.10 (2026-04-24)
|
|
4
10
|
|
|
5
11
|
- Derive `worker.entrypoint.mjs` import paths relative to the actual
|
data/lib/cloudflare_workers.rb
CHANGED
|
@@ -504,8 +504,13 @@ module Cloudflare
|
|
|
504
504
|
while i < len
|
|
505
505
|
k = `#{keys}[#{i}]`
|
|
506
506
|
v = `#{js_obj}[#{k}]`
|
|
507
|
+
# Normalize bare JS null/undefined to Ruby nil before storing them.
|
|
508
|
+
if `#{v} == null`
|
|
509
|
+
v = nil
|
|
507
510
|
# Recurse for nested plain objects (but not Arrays, Dates, etc.)
|
|
508
|
-
|
|
511
|
+
elsif `typeof #{v} === 'object' && !Array.isArray(#{v}) && !(#{v} instanceof Date)`
|
|
512
|
+
v = js_object_to_hash(v)
|
|
513
|
+
end
|
|
509
514
|
h[k] = v
|
|
510
515
|
i += 1
|
|
511
516
|
end
|