Skip to content

Commit 9405849

Browse files
committed
Adds release candidate API version
1 parent 6e9102f commit 9405849

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.changeset/twenty-eyes-wash.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/shopify-api': minor
3+
---
4+
5+
Add release candidate API version

packages/apps/shopify-api/lib/__tests__/config.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ describe('Config object', () => {
161161
expect(config.hostName).toEqual('my-host-name');
162162
});
163163

164-
it('points LATEST_API_VERSION to the last non-unstable version in the enum', () => {
164+
it('points LATEST_API_VERSION to the last non-unstable, and non release candidate version in the enum', () => {
165165
const enumVersions = Object.values(ApiVersion);
166166

167-
expect(LATEST_API_VERSION).toEqual(enumVersions[enumVersions.length - 2]);
167+
expect(LATEST_API_VERSION).toEqual(enumVersions[enumVersions.length - 3]);
168168
});
169169

170170
it('can alias billing future flags', () => {

packages/apps/shopify-api/lib/types.ts

+2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ export enum ApiVersion {
1616
July24 = '2024-07',
1717
October24 = '2024-10',
1818
January25 = '2025-01',
19+
April25 = '2025-04',
1920
Unstable = 'unstable',
2021
}
2122

2223
export const LIBRARY_NAME = 'Shopify API Library';
2324
export const LATEST_API_VERSION = ApiVersion.January25;
25+
export const RELEASE_CANDIDATE_API_VERSION = ApiVersion.April25;
2426

2527
/* eslint-disable @shopify/typescript/prefer-pascal-case-enums */
2628
export enum ShopifyHeader {

0 commit comments

Comments
 (0)