Skip to content

Commit 43d6b67

Browse files
authoredMar 3, 2025··
DataConnect: Update requests to point to v1 backend endpoints instead of v1beta (#8820)
* update API requests to point to v1 instead of v1beta * update changelog
1 parent a24a76a commit 43d6b67

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed
 

‎.changeset/tricky-actors-exercise.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/data-connect': patch
3+
---
4+
5+
Update requests to point to v1 backend endpoints instead of v1beta

‎packages/data-connect/src/util/url.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function urlBuilder(
3737
'Incorrect type for port passed in!'
3838
);
3939
}
40-
return `${baseUrl}/v1beta/projects/${project}/locations/${location}/services/${service}/connectors/${connector}`;
40+
return `${baseUrl}/v1/projects/${project}/locations/${location}/services/${service}/connectors/${connector}`;
4141
}
4242
export function addToken(url: string, apiKey?: string): string {
4343
if (!apiKey) {

‎packages/data-connect/test/dataconnect/dataconnect.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
specVersion: "v1beta"
1+
specVersion: "v1"
22
serviceId: "fdc-service"
33
location: "us-west2"
44
schema:

‎packages/data-connect/test/unit/gmpid.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('GMPID Tests', () => {
5353
// @ts-ignore
5454
await executeQuery(queryRef(dc, '')).catch(() => {});
5555
expect(fakeFetchImpl).to.be.calledWithMatch(
56-
'https://firebasedataconnect.googleapis.com/v1beta/projects/p/locations/l/services/s/connectors/c:executeQuery',
56+
'https://firebasedataconnect.googleapis.com/v1/projects/p/locations/l/services/s/connectors/c:executeQuery',
5757
{
5858
headers: {
5959
['x-firebase-gmpid']: APPID
@@ -71,7 +71,7 @@ describe('GMPID Tests', () => {
7171
// @ts-ignore
7272
await executeQuery(queryRef(dc2, '')).catch(() => {});
7373
expect(fakeFetchImpl).to.be.calledWithMatch(
74-
'https://firebasedataconnect.googleapis.com/v1beta/projects/p/locations/l/services/s/connectors/c:executeQuery',
74+
'https://firebasedataconnect.googleapis.com/v1/projects/p/locations/l/services/s/connectors/c:executeQuery',
7575
{
7676
headers: {
7777
['x-firebase-gmpid']: APPID

‎packages/data-connect/test/unit/userAgent.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('User Agent Tests', () => {
5454
// @ts-ignore
5555
await executeQuery(queryRef(dc, '')).catch(() => {});
5656
expect(fakeFetchImpl).to.be.calledWithMatch(
57-
'https://firebasedataconnect.googleapis.com/v1beta/projects/p/locations/l/services/s/connectors/c:executeQuery',
57+
'https://firebasedataconnect.googleapis.com/v1/projects/p/locations/l/services/s/connectors/c:executeQuery',
5858
{
5959
headers: {
6060
['X-Goog-Api-Client']: 'gl-js/ fire/' + SDK_VERSION + ' js/gen'
@@ -66,7 +66,7 @@ describe('User Agent Tests', () => {
6666
// @ts-ignore
6767
await executeQuery(queryRef(dc, '')).catch(() => {});
6868
expect(fakeFetchImpl).to.be.calledWithMatch(
69-
'https://firebasedataconnect.googleapis.com/v1beta/projects/p/locations/l/services/s/connectors/c:executeQuery',
69+
'https://firebasedataconnect.googleapis.com/v1/projects/p/locations/l/services/s/connectors/c:executeQuery',
7070
{
7171
headers: {
7272
['X-Goog-Api-Client']: 'gl-js/ fire/' + SDK_VERSION

0 commit comments

Comments
 (0)
Please sign in to comment.