Skip to content

Commit 4be299c

Browse files
authored
Merge branch 'main' into zl/add_expiring_offline_token_support
2 parents a60430d + d5cffaa commit 4be299c

File tree

21 files changed

+51
-41
lines changed

21 files changed

+51
-41
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Unreleased
1919
- Handle invalid token when adding redirection headers [#1945](https://github.com/Shopify/shopify_app/pull/1945)
2020
- Handle invalid record error for concurrent token exchange calls [#1966](https://github.com/Shopify/shopify_app/pull/1966)
2121
- Add opt-in `ShopifyApp.add_csp_directives(policy)` helper for apps with strict CSP that need to allow App Bridge script source [#2017](https://github.com/Shopify/shopify_app/pull/2017)
22+
- Bumps shopify_api dependency to ~> 16.0
2223

2324
22.5.2 (March 14, 2025)
2425
----------

Gemfile.lock

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PATH
55
addressable (~> 2.7)
66
rails (>= 7.1, < 9)
77
redirect_safely (~> 1.0)
8-
shopify_api (>= 14.7.0, < 15.0)
8+
shopify_api (~> 16.0)
99
sprockets-rails
1010

1111
GEM
@@ -103,7 +103,7 @@ GEM
103103
cgi (0.5.0)
104104
coderay (1.1.3)
105105
concurrent-ruby (1.3.5)
106-
connection_pool (2.5.4)
106+
connection_pool (3.0.2)
107107
crack (0.4.5)
108108
rexml
109109
crass (1.0.6)
@@ -117,7 +117,8 @@ GEM
117117
activesupport (>= 6.1)
118118
hash_diff (1.1.1)
119119
hashdiff (1.0.1)
120-
httparty (0.21.0)
120+
httparty (0.23.2)
121+
csv
121122
mini_mime (>= 1.0.0)
122123
multi_xml (>= 0.5.2)
123124
i18n (1.14.7)
@@ -128,7 +129,8 @@ GEM
128129
rdoc (>= 4.0.0)
129130
reline (>= 0.4.2)
130131
json (2.7.2)
131-
jwt (2.7.0)
132+
jwt (3.1.2)
133+
base64
132134
language_server-protocol (3.17.0.3)
133135
logger (1.7.0)
134136
loofah (2.24.1)
@@ -143,10 +145,11 @@ GEM
143145
marcel (1.1.0)
144146
method_source (1.0.0)
145147
mini_mime (1.1.5)
146-
minitest (5.26.1)
148+
minitest (5.26.2)
147149
mocha (2.8.0)
148150
ruby2_keywords (>= 0.0.5)
149-
multi_xml (0.6.0)
151+
multi_xml (0.7.2)
152+
bigdecimal (~> 3.1)
150153
mutex_m (0.3.0)
151154
net-imap (0.5.12)
152155
date
@@ -164,8 +167,11 @@ GEM
164167
racc (~> 1.4)
165168
nokogiri (1.18.10-x86_64-linux-gnu)
166169
racc (~> 1.4)
167-
oj (3.14.3)
168-
openssl (3.1.0)
170+
oj (3.16.13)
171+
bigdecimal (>= 3.0)
172+
ostruct (>= 0.2)
173+
openssl (3.3.2)
174+
ostruct (0.6.3)
169175
parallel (1.24.0)
170176
parser (3.3.0.5)
171177
ast (~> 2.4.1)
@@ -265,7 +271,7 @@ GEM
265271
ruby-progressbar (1.13.0)
266272
ruby2_keywords (0.0.5)
267273
securerandom (0.4.1)
268-
shopify_api (14.7.0)
274+
shopify_api (16.0.0)
269275
activesupport
270276
concurrent-ruby
271277
hash_diff
@@ -276,7 +282,7 @@ GEM
276282
securerandom
277283
sorbet-runtime
278284
zeitwerk (~> 2.5)
279-
sorbet-runtime (0.5.10835)
285+
sorbet-runtime (0.6.12838)
280286
sprockets (4.2.2)
281287
concurrent-ruby (~> 1.0)
282288
logger

lib/generators/shopify_app/add_app_uninstalled_job/templates/app_uninstalled_job.rb.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class AppUninstalledJob < ActiveJob::Base
2-
extend ShopifyAPI::Webhooks::Handler
2+
include ShopifyAPI::Webhooks::WebhookHandler
33

44
class << self
5-
def handle(topic:, shop:, body:)
5+
def handle(topic:, shop:, body:, webhook_id:, api_version:)
66
perform_later(topic: topic, shop_domain: shop, webhook: body)
77
end
88
end

lib/generators/shopify_app/add_privacy_jobs/templates/customers_data_request_job.rb.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class CustomersDataRequestJob < ActiveJob::Base
2-
extend ShopifyAPI::Webhooks::Handler
2+
include ShopifyAPI::Webhooks::WebhookHandler
33

44
class << self
5-
def handle(topic:, shop:, body:)
5+
def handle(topic:, shop:, body:, webhook_id:, api_version:)
66
perform_later(topic: topic, shop_domain: shop, webhook: body)
77
end
88
end

lib/generators/shopify_app/add_privacy_jobs/templates/customers_redact_job.rb.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class CustomersRedactJob < ActiveJob::Base
2-
extend ShopifyAPI::Webhooks::Handler
2+
include ShopifyAPI::Webhooks::WebhookHandler
33

44
class << self
5-
def handle(topic:, shop:, body:)
5+
def handle(topic:, shop:, body:, webhook_id:, api_version:)
66
perform_later(topic: topic, shop_domain: shop, webhook: body)
77
end
88
end

lib/generators/shopify_app/add_privacy_jobs/templates/shop_redact_job.rb.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class ShopRedactJob < ActiveJob::Base
2-
extend ShopifyAPI::Webhooks::Handler
2+
include ShopifyAPI::Webhooks::WebhookHandler
33

44
class << self
5-
def handle(topic:, shop:, body:)
5+
def handle(topic:, shop:, body:, webhook_id:, api_version:)
66
perform_later(topic: topic, shop_domain: shop, webhook: body)
77
end
88
end

lib/generators/shopify_app/add_webhook/templates/webhook_job.rb.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class <%= @job_class_name %> < ActiveJob::Base
2-
extend ShopifyAPI::Webhooks::Handler
2+
include ShopifyAPI::Webhooks::WebhookHandler
33

44
class << self
5-
def handle(topic:, shop:, body:)
5+
def handle(topic:, shop:, body:, webhook_id:, api_version:)
66
perform_later(topic: topic, shop_domain: shop, webhook: body)
77
end
88
end

lib/generators/shopify_app/install/install_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class InstallGenerator < Rails::Generators::Base
1919
def create_shopify_app_initializer
2020
@application_name = format_array_argument(options["application_name"])
2121
@scope = format_array_argument(options["scope"])
22-
@api_version = options["api_version"] || ShopifyAPI::LATEST_SUPPORTED_ADMIN_VERSION
22+
@api_version = options["api_version"] || "2025-10"
2323

2424
template("shopify_app.rb", "config/initializers/shopify_app.rb")
2525
end

shopify_app.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
1717
s.add_runtime_dependency("addressable", "~> 2.7")
1818
s.add_runtime_dependency("rails", ">= 7.1", "< 9")
1919
s.add_runtime_dependency("redirect_safely", "~> 1.0")
20-
s.add_runtime_dependency("shopify_api", ">= 14.7.0", "< 15.0")
20+
s.add_runtime_dependency("shopify_api", "~> 16.0")
2121
s.add_runtime_dependency("sprockets-rails")
2222
s.add_development_dependency("byebug")
2323
s.add_development_dependency("csv")

test/controllers/callback_controller_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ def perform(session)
1616
end
1717

1818
class CartsUpdateJob < ActiveJob::Base
19-
extend ShopifyAPI::Webhooks::Handler
19+
include ShopifyAPI::Webhooks::WebhookHandler
2020

2121
class << self
22-
def handle(topic:, shop:, body:)
22+
def handle(topic:, shop:, body:, webhook_id:, api_version:)
2323
perform_later(topic: topic, shop_domain: shop, webhook: body)
2424
end
2525
end

0 commit comments

Comments
 (0)