Skip to content

Commit

Permalink
Preparing for release
Browse files Browse the repository at this point in the history
  • Loading branch information
paulomarg committed Apr 25, 2024
1 parent 353882a commit c2b14a0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
27 changes: 15 additions & 12 deletions packages/apps/shopify-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

### Major Changes

> [!NOTE]
> For more details on migrating to v10, please follow see the [migration guide](./docs/migrating-to-v10.md).
- 379206c: Webhook validation will now return a different `reason` value when the HMAC value is missing from the request. Instead of returning `WebhookValidationErrorReason.MissingHeaders` as it does for the other headers it validates, it will now return a new `WebhookValidationErrorReason.MissingHmac` error so this check matches other HMAC validations.

If your app doesn't explicitly check for the error after calling `webhook.validate()`, you don't need to make any changes.
Expand All @@ -17,17 +20,17 @@
Before:

```ts
import "node_modules/@shopify/shopify-api/lib/clients/admin/graphql/client";
import "@shopify/shopify-api/adapters/node";
import 'node_modules/@shopify/shopify-api/lib/clients/admin/graphql/client';
import '@shopify/shopify-api/adapters/node';
```

After:

```ts
// Add `dist/esm|cjs/` before the file
import "node_modules/@shopify/shopify-api/dist/esm/lib/clients/admin/graphql/client";
import 'node_modules/@shopify/shopify-api/dist/esm/lib/clients/admin/graphql/client';
// Unchanged
import "@shopify/shopify-api/adapters/node";
import '@shopify/shopify-api/adapters/node';
```

### Patch Changes
Expand Down Expand Up @@ -139,7 +142,7 @@
<details>

```ts
const { session, headers } = shopify.auth.callback({
const {session, headers} = shopify.auth.callback({
rawRequest: req,
rawResponse: res,
});
Expand Down Expand Up @@ -343,13 +346,13 @@
Before:
```ts
import { gdprTopics } from "@shopify/shopify-api";
import {gdprTopics} from '@shopify/shopify-api';
```
After:
```ts
import { privacyTopics } from "@shopify/shopify-api";
import {privacyTopics} from '@shopify/shopify-api';
```
### Minor Changes
Expand Down Expand Up @@ -402,13 +405,13 @@
{
interval: BillingInterval.Usage,
amount: 30,
currencyCode: "USD",
terms: "per 1000 emails",
currencyCode: 'USD',
terms: 'per 1000 emails',
},
{
interval: BillingInterval.Every30Days,
amount: 30,
currencyCode: "USD",
currencyCode: 'USD',
discount: {
durationLimitInIntervals: 3,
value: {
Expand Down Expand Up @@ -780,15 +783,15 @@
Before:
```js
app.post("/graphql", async (req, res) => {
app.post('/graphql', async (req, res) => {
await Shopify.Utils.graphqlProxy(req, res);
});
```
After:
```js
app.post("/graphql", async (req, res) => {
app.post('/graphql', async (req, res) => {
const response = await Shopify.Utils.graphqlProxy(req, res);
res.status(200).send(response.body);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/shopify-api/lib/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SHOPIFY_API_LIBRARY_VERSION = '9.7.2';
export const SHOPIFY_API_LIBRARY_VERSION = '10.0.0';
2 changes: 1 addition & 1 deletion packages/apps/shopify-app-express/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SHOPIFY_EXPRESS_LIBRARY_VERSION = '4.1.5';
export const SHOPIFY_EXPRESS_LIBRARY_VERSION = '4.1.6';
2 changes: 1 addition & 1 deletion packages/apps/shopify-app-remix/src/server/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SHOPIFY_REMIX_LIBRARY_VERSION = '2.8.1';
export const SHOPIFY_REMIX_LIBRARY_VERSION = '2.8.2';

0 comments on commit c2b14a0

Please sign in to comment.