Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #785 from Shopify/changeset-release/main
Browse files Browse the repository at this point in the history
Packages for release
  • Loading branch information
mkevinosullivan authored Apr 11, 2023
2 parents b6d58e0 + ca29db0 commit 820edb4
Show file tree
Hide file tree
Showing 26 changed files with 71 additions and 130 deletions.
28 changes: 0 additions & 28 deletions .changeset/clever-shrimps-leave.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/eleven-years-boil.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/empty-spies-love.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/fast-oranges-lick.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/five-carrots-think.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/gold-pears-hang.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/itchy-boxes-smash.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/large-dancers-compete.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/late-bugs-yawn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nice-olives-worry.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/popular-books-fly.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/quick-frogs-tan.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/quick-wombats-run.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/rude-squids-confess.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/selfish-boats-bake.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/shiny-poets-raise.md

This file was deleted.

31 changes: 0 additions & 31 deletions .changeset/six-crabs-give.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stupid-roses-behave.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/tame-llamas-learn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/unlucky-glasses-fetch.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/violet-bottles-greet.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/violet-owls-unite.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/young-spiders-repair.md

This file was deleted.

73 changes: 69 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,76 @@
# Changelog

All notable changes to this project will be documented in this file.
## 7.0.0

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
### Major Changes

## Unreleased
- 5a68e4a5: ⚠️ [Breaking] Return pagination info as part of .all() requests in REST resources, and remove the `[PREV|NEXT]_PAGE_INFO` static, thread unsafe attributes.
Instead of returning a plain array of objects, it will now return an object containing that array, as well as the response headers and pagination info.

This enables apps to use locally-scoped pagination info, which makes it possible to use pagination in a thread-safe way.

You'll need to make 2 changes to use this version:

1. Where you accessed resources from the response, you'll now access the `data` property.
1. Where you accessed pagination data from the static variables, you'll now retrieve it from the response.

```ts
const response = await shopify.rest.Product.all({
/* ... */
});

// BEFORE
const products: Product[] = response;
const nextPageInfo = shopify.rest.Product.NEXT_PAGE_INFO;

// AFTER
const products: Product[] = response.data;
const nextPageInfo = response.pageInfo?.nextPage;
const responseHeaders = response.headers;
```

- fc2692f0: ⚠️ [Breaking] Removing deprecated code:

- The `isPrivateApp` param from `shopifyApi()` was removed in favour of `isCustomStoreApp`.
- The `isOnline` param from `shopify.auth.callback()` was removed, because it's now handled automatically.

- 8acc71da: Adding support for 2023-04 API version.

⚠️ [Breaking] Removing support for 2022-04 and 2022-07 API versions.

- 2096f9e4: The logger is now synchronous. This removes unnecessary `await`'s from functions that use the logger but functionally don't need to `await` anything else. `webhooks.addHandlers` is the main impacted public method (it was `async` only because of the logging mechanism).

Apps that use the default logging methods (which send to `console`) will not be impacted by this change. Apps that implement their own loggers _may_ be impacted; async logging functions can still be used but they need to be handled as promises.

```ts
// BEFORE
const myLogFunction = async (severity, message) => {
try {
await MyService.log(severity, message);
// After external call
} catch {
// Handle error
}
};
// AFTER
const myLogFunction = (severity, message) => {
MyService.log(severity, message)
.then(() => {
// After external call
})
.catch(() => {
// Handle error
});
};
```

### Patch Changes

- f06912d3: Bump jose from 4.11.2 to 4.13.1. See jose [changelog](https://github.com/panva/jose/blob/main/CHANGELOG.md) for details.
- 89847cac: Bump @shopify/network from 1.5.1 to 3.2.1. See [network changelog](https://github.com/Shopify/quilt/blob/main/packages/network/CHANGELOG.md) for details.
- 896ef0d8: Add response headers to `GraphqlQueryError`. Fixes #553
- 97449f9e: validateHmac will now check for a `hmac` or a `signature` query argument. Fixes #776

## [6.2.0] - 2023-02-15

Expand Down
2 changes: 1 addition & 1 deletion lib/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SHOPIFY_API_LIBRARY_VERSION = '6.2.0';
export const SHOPIFY_API_LIBRARY_VERSION = '7.0.0';
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/shopify-api",
"version": "6.2.0",
"version": "7.0.0",
"description": "Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down

0 comments on commit 820edb4

Please sign in to comment.