homura-runtime 0.2.13 → 0.2.14

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: fcb680263cc614fbab274bca4c5fb543190eaed082f89027f164271d53823b3c
4
- data.tar.gz: 6a27e35387f0712257727c082d5e938e92a0c8501b9dbae039966a608bdd44f8
3
+ metadata.gz: 6f9563f8e7aae9b3faa946423aa2f7dc13c48767572c744546397ada20dd1015
4
+ data.tar.gz: 946de6742c7518ced26da901ce064d894d52607e3139c8365914d21fe5a2b539
5
5
  SHA512:
6
- metadata.gz: 73df80bf976afee41fb737ed791a14c91b5236d1ae9a7fc2e851cb4a7eb949a9a459b525c32f9384c38bbaf175ad0ce00055d745c09daf1ba6702dd822cfbc0a
7
- data.tar.gz: 0ab6bf2f93f9fae328f3850ee690120b21a62af0b49617f854e221db329844f21d4903f57de46271e29fde6b092b963b8c4bdae6d43a9c4a96bf3d2af269a26d
6
+ metadata.gz: 185534dd8a467b7b04fe44456c856d84f0124bdd6d487f9a756676d71479228e081b4fdaa72d7635d1428d6cf2b0868db3b2103668b9f696ec9487f0f8c9b2a7
7
+ data.tar.gz: 91fce4ded7da7402431a993225969618fa88f538d77a6e5791a4c5acc72391941a706f446ab59a74996528f7575b5a186a852b483e276bb5a312fdb009b78311
@@ -148,6 +148,13 @@ CloudflareWorkers::AsyncRegistry.register_async_source do
148
148
  async_method 'Cloudflare::D1Statement', :all
149
149
  async_method 'Cloudflare::D1Statement', :first
150
150
  async_method 'Cloudflare::D1Statement', :run
151
+ # `bind` returns a new D1Statement for further chaining. Tainting the
152
+ # return preserves the type so the auto-await pass keeps chaining
153
+ # `.run` / `.all` / `.first` on the bound statement (otherwise
154
+ # `db.prepare(sql).bind(...).run` drops await on `.run` and
155
+ # `flatten_meta` ends up receiving a JS Promise instead of the
156
+ # metadata Hash).
157
+ taint_return 'Cloudflare::D1Statement', :bind, 'Cloudflare::D1Statement'
151
158
 
152
159
  async_method 'Cloudflare::KVNamespace', :get
153
160
  async_method 'Cloudflare::KVNamespace', :get_with_metadata
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudflareWorkers
4
- VERSION = '0.2.13'
4
+ VERSION = '0.2.14'
5
5
  end
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.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuhiro Homma