Skip to content

Commit ea406d3

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

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

Diff for: .changeset/gorgeous-moose-beg.md

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

Diff for: 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', () => {

Diff for: 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 {

Diff for: packages/apps/shopify-app-remix/src/server/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ setAbstractRuntimeString(() => {
77

88
export {
99
LATEST_API_VERSION,
10+
RELEASE_CANDIDATE_API_VERSION,
1011
LogSeverity,
1112
DeliveryMethod,
1213
BillingInterval,

0 commit comments

Comments
 (0)