homura-runtime 0.2.3 → 0.2.4

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: c6b118d146d8fb7acd478a306d621a0a25de70659fc2d8cf5db3c84e6c8b91a5
4
- data.tar.gz: 95d693ae78959617c985d9e466a54a31bf143325315dba5011d71ef047203651
3
+ metadata.gz: a7e0278919623ca0bd4057dd685cc0a6121efa0d36e0f0a7eeb8bc9e404938a8
4
+ data.tar.gz: 3896ecbe9174de362fd6e9dc4d24ec015adf495bce80b045bd61d2c4a305791d
5
5
  SHA512:
6
- metadata.gz: f81953a2cbd3ece437c951fa930f5ac9e7bbfd8ea4e98ad3178f9717dd045e071577e16e02c3232a50678418cb642d1c9115d0d76c49bd39114fe4fb03f814aa
7
- data.tar.gz: b8678fd740780a56c6896c9917c4e140258e1abfa4700c412fade593d1cf033ee37b4d4af85853eb8bb570fa11989e026b9c808ee6cccccfe3cedfe1648fee0a
6
+ metadata.gz: 2607d862746d48cad7eb8c28a8e1cb39477c95fab45c6f90ea0cc8e773dadfca54d1e2d3cb0842774cec3bddbe7216ce0efd433f147f48c86a97a2118f29edd4
7
+ data.tar.gz: 14a8a0faca16aa7f1f8ed9a49c2bbc194afd4417a2d4b808519d1d144a94b9ac2a75a01fbdbceb385e732228f3b0bba91667f3d17d5004cec8f3d17ccf72f380
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.4 (2026-04-23)
4
+
5
+ - Guard the Rack body close hook against raw JS `undefined` so Workers request teardown
6
+ does not crash when a response body is absent or non-Ruby.
7
+
3
8
  ## 0.2.3 (2026-04-23)
4
9
 
5
10
  - Bump the exact `opal-homura` dependency to `1.8.3.rc1.2` for the release retry after the
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudflareWorkers
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.4'
5
5
  end
@@ -147,7 +147,7 @@ module Rack
147
147
  status, headers, body = @app.call(env)
148
148
  build_js_response(status, headers, body)
149
149
  ensure
150
- body.close if body.respond_to?(:close) && body
150
+ body.close if body && body.respond_to?(:close)
151
151
  end
152
152
 
153
153
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homura-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuhiro Homma