Skip to content

Commit fd871a2

Browse files
authored
feat(@vercel/blob): Use v10 api (#842)
1 parent a65d1b8 commit fd871a2

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

packages/blob/src/api.node.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('api', () => {
6666
authorization: 'Bearer 123',
6767
'x-api-blob-request-attempt': '0',
6868
'x-api-blob-request-id': expect.any(String) as string,
69-
'x-api-version': '9',
69+
'x-api-version': '10',
7070
},
7171
method: 'POST',
7272
},

packages/blob/src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export interface BlobApiError {
126126
// This version is used to ensure that the client and server are compatible
127127
// The server (Vercel Blob API) uses this information to change its behavior like the
128128
// response format
129-
const BLOB_API_VERSION = 9;
129+
const BLOB_API_VERSION = 10;
130130

131131
function getApiVersion(): string {
132132
let versionOverride = null;

packages/blob/src/client.browser.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ describe('client', () => {
9292
authorization: 'Bearer vercel_blob_client_fake_123',
9393
'x-api-blob-request-attempt': '0',
9494
'x-api-blob-request-id': `fake:${Date.now()}:${requestId}`,
95-
'x-api-version': '9',
95+
'x-api-version': '10',
9696
},
9797
method: 'PUT',
9898
},
@@ -207,7 +207,7 @@ describe('client', () => {
207207
authorization: 'Bearer vercel_blob_client_fake_token_for_test',
208208
'x-api-blob-request-attempt': '0',
209209
'x-api-blob-request-id': `fake:${Date.now()}:${requestId}`,
210-
'x-api-version': '9',
210+
'x-api-version': '10',
211211
'x-mpu-action': 'create',
212212
},
213213
method: 'POST',
@@ -224,7 +224,7 @@ describe('client', () => {
224224
authorization: 'Bearer vercel_blob_client_fake_token_for_test',
225225
'x-api-blob-request-attempt': '0',
226226
'x-api-blob-request-id': `fake:${Date.now()}:${requestId}`,
227-
'x-api-version': '9',
227+
'x-api-version': '10',
228228
'x-mpu-action': 'upload',
229229
'x-mpu-key': 'key',
230230
'x-mpu-upload-id': 'uploadId',
@@ -243,7 +243,7 @@ describe('client', () => {
243243
authorization: 'Bearer vercel_blob_client_fake_token_for_test',
244244
'x-api-blob-request-attempt': '0',
245245
'x-api-blob-request-id': `fake:${Date.now()}:${requestId}`,
246-
'x-api-version': '9',
246+
'x-api-version': '10',
247247
'x-mpu-action': 'upload',
248248
'x-mpu-key': 'key',
249249
'x-mpu-upload-id': 'uploadId',
@@ -266,7 +266,7 @@ describe('client', () => {
266266
authorization: 'Bearer vercel_blob_client_fake_token_for_test',
267267
'x-api-blob-request-attempt': '0',
268268
'x-api-blob-request-id': `fake:${Date.now()}:${requestId}`,
269-
'x-api-version': '9',
269+
'x-api-version': '10',
270270
'x-mpu-action': 'complete',
271271
'x-mpu-key': 'key',
272272
'x-mpu-upload-id': 'uploadId',
@@ -349,7 +349,7 @@ describe('client', () => {
349349
authorization: 'Bearer vercel_blob_client_fake_token_for_test',
350350
'x-api-blob-request-attempt': '0',
351351
'x-api-blob-request-id': `fake:${Date.now()}:${requestId}`,
352-
'x-api-version': '9',
352+
'x-api-version': '10',
353353
'x-mpu-action': 'create',
354354
},
355355
method: 'POST',
@@ -366,7 +366,7 @@ describe('client', () => {
366366
authorization: 'Bearer vercel_blob_client_fake_token_for_test',
367367
'x-api-blob-request-attempt': '0',
368368
'x-api-blob-request-id': `fake:${Date.now()}:${requestId}`,
369-
'x-api-version': '9',
369+
'x-api-version': '10',
370370
'x-mpu-action': 'upload',
371371
'x-mpu-key': 'key',
372372
'x-mpu-upload-id': 'uploadId',
@@ -385,7 +385,7 @@ describe('client', () => {
385385
authorization: 'Bearer vercel_blob_client_fake_token_for_test',
386386
'x-api-blob-request-attempt': '0',
387387
'x-api-blob-request-id': `fake:${Date.now()}:${requestId}`,
388-
'x-api-version': '9',
388+
'x-api-version': '10',
389389
'x-mpu-action': 'upload',
390390
'x-mpu-key': 'key',
391391
'x-mpu-upload-id': 'uploadId',
@@ -408,7 +408,7 @@ describe('client', () => {
408408
authorization: 'Bearer vercel_blob_client_fake_token_for_test',
409409
'x-api-blob-request-attempt': '0',
410410
'x-api-blob-request-id': `fake:${Date.now()}:${requestId}`,
411-
'x-api-version': '9',
411+
'x-api-version': '10',
412412
'x-mpu-action': 'complete',
413413
'x-mpu-key': 'key',
414414
'x-mpu-upload-id': 'uploadId',

0 commit comments

Comments
 (0)