Skip to content

Commit

Permalink
fix(sync-utils): add metafields to variant query (#179)
Browse files Browse the repository at this point in the history
* chore(release): v0.22.1 [skip-ci]

* docs: add agonsgd as a contributor for bug (#176)

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Joseph Thomas <[email protected]>

* chore(release): v0.22.2 [skip-ci]

* fix(sync-utils): add metafields to variant query

Co-authored-by: github-actions <[email protected]>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Joseph Thomas <[email protected]>
  • Loading branch information
4 people authored Mar 4, 2022
1 parent e80a92c commit fa07ebb
Show file tree
Hide file tree
Showing 13 changed files with 115 additions and 33 deletions.
37 changes: 14 additions & 23 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"files": [
"README.md"
],
"files": ["README.md"],
"imageSize": 100,
"commit": false,
"contributors": [
Expand All @@ -10,56 +8,49 @@
"name": "Joseph Thomas",
"avatar_url": "https://avatars.githubusercontent.com/u/11514928?v=4",
"profile": "https://www.good-idea.studio",
"contributions": [
"doc",
"code",
"test"
]
"contributions": ["doc", "code", "test"]
},
{
"login": "GLips",
"name": "Graham Lipsman",
"avatar_url": "https://avatars.githubusercontent.com/u/842883?v=4",
"profile": "http://branchlabs.com",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "homerjam",
"name": "James Homer",
"avatar_url": "https://avatars.githubusercontent.com/u/1055769?v=4",
"profile": "https://homerjam.es",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "nrgnrg",
"name": "Richard Cooke",
"avatar_url": "https://avatars.githubusercontent.com/u/25795402?v=4",
"profile": "https://github.com/nrgnrg",
"contributions": [
"doc"
]
"contributions": ["doc"]
},
{
"login": "liqueflies",
"name": "Lorenzo Girardi",
"avatar_url": "https://avatars.githubusercontent.com/u/12168237?v=4",
"profile": "https://www.loregirardi.it",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "agonsgd",
"name": "agonsgd",
"avatar_url": "https://avatars.githubusercontent.com/u/80262375?v=4",
"profile": "https://github.com/agonsgd",
"contributions": ["bug"]
},
{
"login": "synim-sogody",
"name": "Synim",
"avatar_url": "https://avatars.githubusercontent.com/u/79842197?v=4",
"profile": "https://github.com/synim-sogody",
"contributions": [
"bug"
]
"contributions": ["bug"]
}
],
"contributorsPerLine": 7,
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.22.2 (2021-07-02)

**Note:** Version bump only for package sane-shopify-monorepo-root





## 0.22.1 (2021-07-02)

**Note:** Version bump only for package sane-shopify-monorepo-root





# 0.22.0 (2021-06-24)


Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://homerjam.es"><img src="https://avatars.githubusercontent.com/u/1055769?v=4?s=100" width="100px;" alt=""/><br /><sub><b>James Homer</b></sub></a><br /><a href="https://github.com/good-idea/sane-shopify/commits?author=homerjam" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/nrgnrg"><img src="https://avatars.githubusercontent.com/u/25795402?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Richard Cooke</b></sub></a><br /><a href="https://github.com/good-idea/sane-shopify/commits?author=nrgnrg" title="Documentation">📖</a></td>
<td align="center"><a href="https://www.loregirardi.it"><img src="https://avatars.githubusercontent.com/u/12168237?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Lorenzo Girardi</b></sub></a><br /><a href="https://github.com/good-idea/sane-shopify/commits?author=liqueflies" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/agonsgd"><img src="https://avatars.githubusercontent.com/u/80262375?v=4?s=100" width="100px;" alt=""/><br /><sub><b>agonsgd</b></sub></a><br /><a href="https://github.com/good-idea/sane-shopify/issues?q=author%3Aagonsgd" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://github.com/synim-sogody"><img src="https://avatars.githubusercontent.com/u/79842197?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Synim</b></sub></a><br /><a href="https://github.com/good-idea/sane-shopify/issues?q=author%3Asynim-sogody" title="Bug reports">🐛</a></td>
</tr>
</table>
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"packages/*"
],
"version": "0.22.0",
"version": "0.22.2",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
Expand Down
16 changes: 16 additions & 0 deletions packages/sanity-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.22.2 (2021-07-02)

**Note:** Version bump only for package @sane-shopify/sanity-plugin





## 0.22.1 (2021-07-02)

**Note:** Version bump only for package @sane-shopify/sanity-plugin





# 0.22.0 (2021-06-24)


Expand Down
6 changes: 3 additions & 3 deletions packages/sanity-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sane-shopify/sanity-plugin",
"version": "0.22.0",
"version": "0.22.2",
"description": "A Sanity.io field for selecting products & collections from a Shopify storefront",
"author": "Joseph Thomas <[email protected]>",
"homepage": "https://github.com/good-idea/sane-shopify#readme",
Expand Down Expand Up @@ -72,8 +72,8 @@
},
"dependencies": {
"@good-idea/unwind-edges": "^1.5.3",
"@sane-shopify/sync-utils": "^0.22.0",
"@sane-shopify/types": "^0.22.0",
"@sane-shopify/sync-utils": "^0.22.2",
"@sane-shopify/types": "^0.22.2",
"lodash": "^4.17.21",
"react-icons": "^4.2.0"
},
Expand Down
16 changes: 16 additions & 0 deletions packages/server/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.22.2 (2021-07-02)

**Note:** Version bump only for package @sane-shopify/server





## 0.22.1 (2021-07-02)

**Note:** Version bump only for package @sane-shopify/server





# 0.22.0 (2021-06-24)


Expand Down
6 changes: 3 additions & 3 deletions packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sane-shopify/server",
"version": "0.22.0",
"version": "0.22.2",
"description": "A server and lambdas to serve & sync data between Shopify and Sanity",
"author": "Joseph Thomas <[email protected]>",
"homepage": "https://github.com/good-idea/sane-shopify#readme",
Expand Down Expand Up @@ -39,7 +39,7 @@
"url": "https://github.com/good-idea/sane-shopify/issues"
},
"dependencies": {
"@sane-shopify/sync-utils": "^0.22.0",
"@sane-shopify/sync-utils": "^0.22.2",
"apollo-link": "^1.2.14",
"apollo-link-http": "^1.5.17",
"apollo-server-lambda": "^2.23.0",
Expand All @@ -49,7 +49,7 @@
"source-map-support": "^0.5.19"
},
"devDependencies": {
"@sane-shopify/types": "^0.22.0",
"@sane-shopify/types": "^0.22.2",
"@types/aws-lambda": "^8.10.75",
"@types/node-fetch": "^2.5.10",
"@types/source-map-support": "^0.5.3",
Expand Down
16 changes: 16 additions & 0 deletions packages/sync-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.22.2 (2021-07-02)

**Note:** Version bump only for package @sane-shopify/sync-utils





## 0.22.1 (2021-07-02)

**Note:** Version bump only for package @sane-shopify/sync-utils





# 0.22.0 (2021-06-24)


Expand Down
4 changes: 2 additions & 2 deletions packages/sync-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sane-shopify/sync-utils",
"version": "0.22.0",
"version": "0.22.2",
"description": "Syncing utility for Node & the browser",
"author": "Joseph Thomas | Good Idea Studio",
"homepage": "https://github.com/good-idea/sane-shopify#readme",
Expand Down Expand Up @@ -46,7 +46,7 @@
"dependencies": {
"@good-idea/leaky-bucket": "^3.1.2",
"@good-idea/unwind-edges": "^1.5.3",
"@sane-shopify/types": "^0.22.0",
"@sane-shopify/types": "^0.22.2",
"cross-fetch": "^3.1.4",
"debug": "^4.3.1",
"deepmerge": "^4.2.2",
Expand Down
10 changes: 10 additions & 0 deletions packages/sync-utils/src/shopify/queryFragments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ export const productVariantFragment = gql`
}
}
}
metafields(first: 100) {
edges {
cursor
node {
namespace
key
value
}
}
}
requiresShipping
sku
title
Expand Down
16 changes: 16 additions & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.22.2 (2021-07-02)

**Note:** Version bump only for package @sane-shopify/types





## 0.22.1 (2021-07-02)

**Note:** Version bump only for package @sane-shopify/types





# 0.22.0 (2021-06-24)


Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sane-shopify/types",
"version": "0.22.0",
"version": "0.22.2",
"description": "Common typescript typings for @sane-shopify projects",
"author": "Joseph Thomas <[email protected]>",
"homepage": "https://github.com/good-idea/sane-shopify#readme",
Expand Down

0 comments on commit fa07ebb

Please sign in to comment.