File tree 2 files changed +12
-0
lines changed
packages/shared/src/utils
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @clerk/shared ' : patch
3
+ ---
4
+
5
+ Apply deprecation warnings:
6
+ - ` OrganizationContext `
7
+ - ` organizationList `
8
+ - ` useOrganizations `
9
+ - ` getRequestUrl `
Original file line number Diff line number Diff line change
1
+ import { deprecated } from './deprecated' ;
2
+
1
3
export function isValidProxyUrl ( key : string | undefined ) {
2
4
if ( ! key ) {
3
5
return true ;
@@ -25,6 +27,7 @@ export function proxyUrlToAbsoluteURL(url: string | undefined): string {
25
27
* @deprecated Use `buildRequestUrl` from @clerk/backend
26
28
*/
27
29
export function getRequestUrl ( { request, relativePath } : { request : Request ; relativePath ?: string } ) : URL {
30
+ deprecated ( 'getRequestUrl' , 'Use `buildRequestUrl` from @clerk/backend instead.' ) ;
28
31
const { headers, url : initialUrl } = request ;
29
32
const url = new URL ( initialUrl ) ;
30
33
const host = headers . get ( 'X-Forwarded-Host' ) ?? headers . get ( 'host' ) ?? ( headers as any ) [ 'host' ] ?? url . host ;
You can’t perform that action at this time.
0 commit comments