Skip to content

Conversation

@kieran-osgood-shopify
Copy link
Contributor

@kieran-osgood-shopify kieran-osgood-shopify commented Dec 15, 2025

What changes are you making?

Adds support for the new cart responses:


PR Checklist

Important

Releasing a new version of the kit?


Tip

See the Contributing documentation for instructions on how to publish a new version of the library.

@github-actions
Copy link

github-actions bot commented Dec 15, 2025

Coverage Report

Lines Statements Branches Functions
Coverage: 83%
82.24% (227/276) 83.07% (108/130) 82.05% (64/78)

@kieran-osgood-shopify kieran-osgood-shopify marked this pull request as ready for review December 16, 2025 10:41
@kieran-osgood-shopify kieran-osgood-shopify requested a review from a team as a code owner December 16, 2025 10:41
Comment on lines -49 to -61
/**
* Converts a JSON string to a dictionary.
*/
static func stringToJSON(from value: String?) -> [String: Any]? {
guard let data = value?.data(using: .utf8, allowLossyConversion: false) else { return [:] }
do {
return try JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any]
} catch {
print("Failed to convert string to JSON: \(error)", value ?? "nil")
return [:]
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This no longer referenced anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we were never using it

Copy link
Contributor

@markmur markmur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good bar the __typenames

@kieran-osgood-shopify
Copy link
Contributor Author

kieran-osgood-shopify commented Dec 16, 2025

Looks good bar the __typenames

Sweet - I'm going to merge as is then do separate PR's for the revert of __typename

@kieran-osgood-shopify kieran-osgood-shopify merged commit 5ad8ca7 into prototype/development Dec 16, 2025
7 checks passed
@kieran-osgood-shopify kieran-osgood-shopify deleted the fix.pd/cart-input branch December 16, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants