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

Commit

Permalink
Add LATEST_API_VERSION constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mkevinosullivan committed Jun 29, 2022
1 parent 476236f commit 3a026c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

- Add REST resources for July 2022 API version, add `Shopify.LATEST_API_VERSION` constant, remove support and REST resources for July 2021 API version []()

### Added

- Add support for July 2022 API version [#409](https://github.com/Shopify/shopify-node-api/pull/409)
Expand Down
3 changes: 2 additions & 1 deletion src/base-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ export interface ContextParams {
}

export enum ApiVersion {
July21 = '2021-07',
October21 = '2021-10',
January22 = '2022-01',
April22 = '2022-04',
July22 = '2022-07',
Unstable = 'unstable',
}

export const LATEST_API_VERSION = ApiVersion.July22;

export enum ShopifyHeader {
AccessToken = 'X-Shopify-Access-Token',
StorefrontAccessToken = 'X-Shopify-Storefront-Access-Token',
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import ShopifySession from './auth/session';
import ShopifyClients from './clients';
import ShopifyUtils from './utils';
import ShopifyWebhooks from './webhooks';
import {LATEST_API_VERSION} from './base-types';

export const Shopify = {
Context,
LATEST_API_VERSION,
Auth: ShopifyAuth,
Session: ShopifySession,
Clients: ShopifyClients,
Expand Down

0 comments on commit 3a026c8

Please # to comment.