Skip to content

Commit

Permalink
Merge pull request #120 from sharetribe/release-1.12
Browse files Browse the repository at this point in the history
Release 1.12
  • Loading branch information
lyyder authored Aug 12, 2020
2 parents 5963644 + ecf61ca commit 9a3c1a4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased] - xxxx-xx-xx

## [v1.12.0] - 2020-08-12

### Added

- A utility function to convert an object query parameter into a URL compatible
Expand Down
9 changes: 7 additions & 2 deletions docs/object-query-parameters.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Object query parameters

Some endpoints in the Flex Marketplace API require a specific syntax that allows passing one or more key-value pairs as the value of a single query parameter. The keys and values are colon-separated whereas the pairs are separated by semicolons. For example, when requesting custom image variants:
Some endpoints in the Flex Marketplace API require a specific syntax that allows
passing one or more key-value pairs as the value of a single query parameter.
The keys and values are colon-separated whereas the pairs are separated by
semicolons. For example, when requesting custom image variants:

``` js
sdk.listings.show({
Expand All @@ -13,7 +16,9 @@ sdk.listings.show({
});
```

To simplify building requests like these, the SDK provides a utility method: `sharetribeSdk.util.objectQueryString`. It serializes an object into the correct string syntax. Using this method, the request above can be written as follows:
To simplify building requests like these, the SDK provides a utility method:
`sharetribeSdk.util.objectQueryString`. It serializes an object into the correct
string syntax. Using this method, the request above can be written as follows:

``` js
sdk.listings.show({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sharetribe-flex-sdk",
"version": "1.11.0",
"version": "1.12.0",
"description": "Sharetribe Flex SDK for JavaScript",
"main": "build/sharetribe-flex-sdk-node.js",
"browser": "build/sharetribe-flex-sdk-web.js",
Expand Down

0 comments on commit 9a3c1a4

Please sign in to comment.