You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The breaking changes for the previous major release are listed in the main [README](README.md).
4
+
The breaking changes for older major releases are listed below.
5
+
6
+
### Breaking change notice for version 8.0.0
7
+
8
+
Version 7.0.0 introduced ApiVersion, and known versions were hardcoded into the gem. Manually defining API versions is no longer required for versions not listed in the gem. Version 8.0.0 removes the following:
9
+
*`ShopifyAPI::ApiVersion::Unstable`
10
+
*`ShopifyAPI::ApiVersion::Release`
11
+
*`ShopifyAPI::ApiVersion.define_version`
12
+
13
+
The following methods on `ApiVersion` have been deprecated:
14
+
-`.coerce_to_version` deprecated. use `.find_version`
15
+
-`.define_known_versions` deprecated. Use `.fetch_known_versions`
-`.latest_stable_version` deprecated. Use `ShopifyAPI::Meta.admin_versions.find(&:latest_supported)` (this fetches info from Shopify servers. No authentication required.)
18
+
-`#name` deprecated. Use `#handle`
19
+
-`#stable?` deprecated. Use `#supported?`
20
+
21
+
Version 8.0.0 introduces a _version lookup mode_. By default, `ShopifyAPI::ApiVersion.version_lookup_mode` is `:define_on_unknown`. When setting the api_version on `Session` or `Base`, the `api_version` attribute takes a version handle (i.e. `'2019-07'` or `:unstable`) and sets an instance of `ShopifyAPI::ApiVersion` matching the handle. When the version_lookup_mode is set to `:define_on_unknown`, any handle will naïvely create a new `ApiVersion` if the version is not in the known versions returned by `ShopifyAPI::ApiVersion.versions`.
22
+
23
+
To ensure you're setting only known and active versions, call :
Known and active versions are fetched from https://app.shopify.com/services/apis.json and cached. Trying to use a version outside this cached set will raise an error. To switch back to naïve lookup and create a version if one is not found, call `ShopifyAPI::ApiVersion.version_lookup_mode = :define_on_unknown`.
31
+
32
+
### Breaking change notice for version 7.0.0
33
+
34
+
#### Changes to ShopifyAPI::Session
35
+
When creating sessions, `api_version`is now required and uses keyword arguments.
36
+
37
+
To upgrade your use of ShopifyAPI you will need to make the following changes.
Version 7.0.0 introduced ApiVersion, and known versions were hardcoded into the gem. Manually defining API versions is no longer required for versions not listed in the gem. Version 8.0.0 removes the following:
121
-
*`ShopifyAPI::ApiVersion::Unstable`
122
-
*`ShopifyAPI::ApiVersion::Release`
123
-
*`ShopifyAPI::ApiVersion.define_version`
124
-
125
-
The following methods on `ApiVersion` have been deprecated:
126
-
-`.coerce_to_version` deprecated. use `.find_version`
127
-
-`.define_known_versions` deprecated. Use `.fetch_known_versions`
-`.latest_stable_version` deprecated. Use `ShopifyAPI::Meta.admin_versions.find(&:latest_supported)` (this fetches info from Shopify servers. No authentication required.)
130
-
-`#name` deprecated. Use `#handle`
131
-
-`#stable?` deprecated. Use `#supported?`
132
-
133
-
Version 8.0.0 introduces a _version lookup mode_. By default, `ShopifyAPI::ApiVersion.version_lookup_mode` is `:define_on_unknown`. When setting the api_version on `Session` or `Base`, the `api_version` attribute takes a version handle (i.e. `'2019-07'` or `:unstable`) and sets an instance of `ShopifyAPI::ApiVersion` matching the handle. When the version_lookup_mode is set to `:define_on_unknown`, any handle will naïvely create a new `ApiVersion` if the version is not in the known versions returned by `ShopifyAPI::ApiVersion.versions`.
134
-
135
-
To ensure you're setting only known and active versions, call :
Known and active versions are fetched from https://app.shopify.com/services/apis.json and cached. Trying to use a version outside this cached set will raise an error. To switch back to naïve lookup and create a version if one is not found, call `ShopifyAPI::ApiVersion.version_lookup_mode = :define_on_unknown`.
143
-
144
-
### Breaking change notice for version 7.0.0
145
-
146
-
#### Changes to ShopifyAPI::Session
147
-
When creating sessions, `api_version`is now required and uses keyword arguments.
148
-
149
-
To upgrade your use of ShopifyAPI you will need to make the following changes.
0 commit comments