expo-linking 58.0.8 → 58.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -7
- package/android/build.gradle +2 -2
- package/build/Linking.d.ts +1 -0
- package/build/Linking.js +1 -0
- package/build/Linking.js.map +1 -1
- package/build/Linking.server.d.ts +1 -0
- package/build/Linking.server.js +1 -0
- package/build/Linking.server.js.map +1 -1
- package/build/createURL.js +1 -1
- package/build/createURL.js.map +1 -1
- package/build/createURL.web.js +1 -1
- package/build/createURL.web.js.map +1 -1
- package/build/devLaunchURL.d.ts +23 -0
- package/build/devLaunchURL.js +53 -0
- package/build/devLaunchURL.js.map +1 -0
- package/expo-module.config.json +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/{58.0.8/expo.modules.linking-58.0.8.module → 58.0.9/expo.modules.linking-58.0.9.module} +7 -7
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.9/expo.modules.linking-58.0.9.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.9/expo.modules.linking-58.0.9.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.9/expo.modules.linking-58.0.9.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.9/expo.modules.linking-58.0.9.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/{58.0.8/expo.modules.linking-58.0.8.pom → 58.0.9/expo.modules.linking-58.0.9.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.9/expo.modules.linking-58.0.9.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.9/expo.modules.linking-58.0.9.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.9/expo.modules.linking-58.0.9.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.9/expo.modules.linking-58.0.9.pom.sha512 +1 -0
- package/package.json +4 -4
- package/src/Linking.server.ts +1 -0
- package/src/Linking.ts +1 -0
- package/src/createURL.ts +1 -1
- package/src/createURL.web.ts +1 -1
- package/src/devLaunchURL.ts +54 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.8/expo.modules.linking-58.0.8.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.8/expo.modules.linking-58.0.8.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.8/expo.modules.linking-58.0.8.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.8/expo.modules.linking-58.0.8.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.8/expo.modules.linking-58.0.8.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.8/expo.modules.linking-58.0.8.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.8/expo.modules.linking-58.0.8.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/58.0.8/expo.modules.linking-58.0.8.pom.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/maven-metadata.xml +0 -13
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/maven-metadata.xml.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/maven-metadata.xml.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/maven-metadata.xml.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.linking/maven-metadata.xml.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.linking/{58.0.8/expo.modules.linking-58.0.8-sources.jar → 58.0.9/expo.modules.linking-58.0.9-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.linking/{58.0.8/expo.modules.linking-58.0.8-sources.jar.md5 → 58.0.9/expo.modules.linking-58.0.9-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.linking/{58.0.8/expo.modules.linking-58.0.8-sources.jar.sha1 → 58.0.9/expo.modules.linking-58.0.9-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.linking/{58.0.8/expo.modules.linking-58.0.8-sources.jar.sha256 → 58.0.9/expo.modules.linking-58.0.9-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.linking/{58.0.8/expo.modules.linking-58.0.8-sources.jar.sha512 → 58.0.9/expo.modules.linking-58.0.9-sources.jar.sha512} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.linking/{58.0.8/expo.modules.linking-58.0.8.aar → 58.0.9/expo.modules.linking-58.0.9.aar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.linking/{58.0.8/expo.modules.linking-58.0.8.aar.md5 → 58.0.9/expo.modules.linking-58.0.9.aar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.linking/{58.0.8/expo.modules.linking-58.0.8.aar.sha1 → 58.0.9/expo.modules.linking-58.0.9.aar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.linking/{58.0.8/expo.modules.linking-58.0.8.aar.sha256 → 58.0.9/expo.modules.linking-58.0.9.aar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.linking/{58.0.8/expo.modules.linking-58.0.8.aar.sha512 → 58.0.9/expo.modules.linking-58.0.9.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 58.0.9
|
|
4
4
|
|
|
5
|
-
###
|
|
6
|
-
|
|
7
|
-
### 🎉 New features
|
|
5
|
+
### Patch Changes
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
- Force-bump all packages, due to migration to changesets. ([#50762](https://github.com/expo/expo/pull/50762) by [@kitten](https://github.com/kitten))
|
|
8
|
+
- Stop decoding query parameter values twice in `parse()`. Values with percent-encoded `%`, `+` or `@` were altered, and malformed percent-encoding threw a `URIError`. ([#50289](https://github.com/expo/expo/pull/50289) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
|
9
|
+
- Add `unwrapDevLaunchURL()` to resolve the URL an app should route from an Expo Go or development build launch URL, dropping the reserved `__expo_*` params. ([#50289](https://github.com/expo/expo/pull/50289) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
|
10
|
+
- Updated dependencies. ([#50762](https://github.com/expo/expo/pull/50762), [#49511](https://github.com/expo/expo/pull/49511), [#50661](https://github.com/expo/expo/pull/50661))
|
|
11
|
+
- expo-constants@58.0.9
|
|
12
12
|
|
|
13
13
|
## 58.0.8 — 2026-09-28
|
|
14
14
|
|
package/android/build.gradle
CHANGED
|
@@ -4,13 +4,13 @@ plugins {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
group = 'host.exp.exponent'
|
|
7
|
-
version = '58.0.
|
|
7
|
+
version = '58.0.9'
|
|
8
8
|
|
|
9
9
|
android {
|
|
10
10
|
namespace "expo.modules.linking"
|
|
11
11
|
defaultConfig {
|
|
12
12
|
versionCode 1
|
|
13
|
-
versionName "58.0.
|
|
13
|
+
versionName "58.0.9"
|
|
14
14
|
}
|
|
15
15
|
lintOptions {
|
|
16
16
|
abortOnError false
|
package/build/Linking.d.ts
CHANGED
package/build/Linking.js
CHANGED
|
@@ -143,5 +143,6 @@ import { validateURL } from './validateURL';
|
|
|
143
143
|
export * from './Linking.types';
|
|
144
144
|
export * from './Schemes';
|
|
145
145
|
export { parse, createURL } from './createURL';
|
|
146
|
+
export { unwrapDevLaunchURL } from './devLaunchURL';
|
|
146
147
|
|
|
147
148
|
//# sourceMappingURL=Linking.js.map
|
package/build/Linking.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Linking.ts"],"sourcesContent":[null],"names":["UnavailabilityError","useEffect","useState","Platform","ExpoLinking","RNLinking","parse","validateURL","addEventListener","type","handler","parseInitialURLAsync","initialUrl","getInitialURL","scheme","hostname","path","queryParams","sendIntent","action","extras","OS","openSettings","openURL","getLinkingURL","clearInitialURL","url","canOpenURL","useURL","setLink","onChange","event","then","subscription","remove","useLinkingURL","addListener","createURL"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,oBAAoB;AACxD,SAASC,SAAS,EAAEC,QAAQ,QAAQ,QAAQ;AAE5C,SAASC,QAAQ,QAAQ,eAAe;AAExC,OAAOC,iBAAiB,gBAAgB;AAExC,OAAOC,eAAe,cAAc;AACpC,SAASC,KAAK,QAAQ,cAAc;AACpC,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,cAAc;AACd;;;;;;;;CAQC,GACD,OAAO,SAASC,iBAAiBC,IAAW,EAAEC,OAAoB;IAChE,OAAOL,UAAUG,gBAAgB,CAACC,MAAMC;AAC1C;AAEA,cAAc;AACd;;;;;;CAMC,GACD,OAAO,eAAeC;IACpB,MAAMC,aAAa,MAAMP,UAAUQ,aAAa;IAChD,IAAI,CAACD,YAAY;QACf,OAAO;YACLE,QAAQ;YACRC,UAAU;YACVC,MAAM;YACNC,aAAa;QACf;IACF;IAEA,OAAOX,MAAMM;AACf;AAEA,cAAc;AACd;;;;;CAKC,GACD,OAAO,eAAeM,WAAWC,MAAc,EAAEC,MAA2B;IAC1E,IAAIjB,SAASkB,EAAE,KAAK,WAAW;QAC7B,OAAO,MAAMhB,UAAUa,UAAU,CAACC,QAAQC;IAC5C;IACA,MAAM,IAAIpB,oBAAoB,WAAW;AAC3C;AAEA,cAAc;AACd;;CAEC,GACD,OAAO,eAAesB;IACpB,IAAInB,SAASkB,EAAE,KAAK,OAAO;QACzB,MAAM,IAAIrB,oBAAoB,WAAW;IAC3C;IACA,IAAIK,UAAUiB,YAAY,EAAE;QAC1B,OAAO,MAAMjB,UAAUiB,YA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
{"version":3,"sources":["Linking.ts"],"sourcesContent":[null],"names":["UnavailabilityError","useEffect","useState","Platform","ExpoLinking","RNLinking","parse","validateURL","addEventListener","type","handler","parseInitialURLAsync","initialUrl","getInitialURL","scheme","hostname","path","queryParams","sendIntent","action","extras","OS","openSettings","openURL","getLinkingURL","clearInitialURL","url","canOpenURL","useURL","setLink","onChange","event","then","subscription","remove","useLinkingURL","addListener","createURL","unwrapDevLaunchURL"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,oBAAoB;AACxD,SAASC,SAAS,EAAEC,QAAQ,QAAQ,QAAQ;AAE5C,SAASC,QAAQ,QAAQ,eAAe;AAExC,OAAOC,iBAAiB,gBAAgB;AAExC,OAAOC,eAAe,cAAc;AACpC,SAASC,KAAK,QAAQ,cAAc;AACpC,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,cAAc;AACd;;;;;;;;CAQC,GACD,OAAO,SAASC,iBAAiBC,IAAW,EAAEC,OAAoB;IAChE,OAAOL,UAAUG,gBAAgB,CAACC,MAAMC;AAC1C;AAEA,cAAc;AACd;;;;;;CAMC,GACD,OAAO,eAAeC;IACpB,MAAMC,aAAa,MAAMP,UAAUQ,aAAa;IAChD,IAAI,CAACD,YAAY;QACf,OAAO;YACLE,QAAQ;YACRC,UAAU;YACVC,MAAM;YACNC,aAAa;QACf;IACF;IAEA,OAAOX,MAAMM;AACf;AAEA,cAAc;AACd;;;;;CAKC,GACD,OAAO,eAAeM,WAAWC,MAAc,EAAEC,MAA2B;IAC1E,IAAIjB,SAASkB,EAAE,KAAK,WAAW;QAC7B,OAAO,MAAMhB,UAAUa,UAAU,CAACC,QAAQC;IAC5C;IACA,MAAM,IAAIpB,oBAAoB,WAAW;AAC3C;AAEA,cAAc;AACd;;CAEC,GACD,OAAO,eAAesB;IACpB,IAAInB,SAASkB,EAAE,KAAK,OAAO;QACzB,MAAM,IAAIrB,oBAAoB,WAAW;IAC3C;IACA,IAAIK,UAAUiB,YAAY,EAAE;QAC1B,OAA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,cAAc;AAC/C,SAASC,kBAAkB,QAAQ,iBAAiB"}
|
package/build/Linking.server.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Linking.server.ts"],"sourcesContent":[null],"names":["UnavailabilityError","addEventListener","type","handler","remove","parseInitialURLAsync","scheme","hostname","path","queryParams","sendIntent","action","extras","openSettings","getInitialURL","getLinkingURL","clearInitialURL","openURL","url","canOpenURL","useURL","useLinkingURL","collectManifestSchemes","hasConstantsManifest","hasCustomScheme","resolveScheme","parse","createURL"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,oBAAoB;AAIxD,OAAO,SAASC,iBAAiBC,IAAW,EAAEC,OAAoB;IAChE,OAAO;QAAEC,WAAU;IAAE;AACvB;AAEA,OAAO,eAAeC;IACpB,OAAO;QACLC,QAAQ;QACRC,UAAU;QACVC,MAAM;QACNC,aAAa;IACf;AACF;AAEA,OAAO,eAAeC,WAAWC,MAAc,EAAEC,MAA2B;IAC1E,MAAM,IAAIZ,oBAAoB,WAAW;AAC3C;AAEA,OAAO,eAAea;IACpB,MAAM,IAAIb,oBAAoB,WAAW;AAC3C;AAEA,OAAO,eAAec;IACpB,OAAO;AACT;AAEA,OAAO,SAASC;IACd,OAAO;AACT;AAEA,OAAO,SAASC,mBAAyB;AAEzC,OAAO,eAAeC,QAAQC,GAAW;IACvC,OAAO;AACT;AAEA,OAAO,eAAeC;IACpB,OAAO;AACT;AAEA,OAAO,SAASC;IACd,OAAO;AACT;AAEA,OAAO,SAASC;IACd,OAAO;AACT;AAEA,cAAc,kBAAkB;AAEhC,OAAO,SAASC;IACd,OAAO,EAAE;AACX;AAEA,OAAO,SAASC;IACd,OAAO;AACT;AAEA,OAAO,SAASC;IACd,OAAO;AACT;AAEA,OAAO,SAASC;IACd,OAAO;AACT;AAEA,SAASC,KAAK,EAAEC,SAAS,QAAQ,cAAc"}
|
|
1
|
+
{"version":3,"sources":["Linking.server.ts"],"sourcesContent":[null],"names":["UnavailabilityError","addEventListener","type","handler","remove","parseInitialURLAsync","scheme","hostname","path","queryParams","sendIntent","action","extras","openSettings","getInitialURL","getLinkingURL","clearInitialURL","openURL","url","canOpenURL","useURL","useLinkingURL","collectManifestSchemes","hasConstantsManifest","hasCustomScheme","resolveScheme","parse","createURL","unwrapDevLaunchURL"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,oBAAoB;AAIxD,OAAO,SAASC,iBAAiBC,IAAW,EAAEC,OAAoB;IAChE,OAAO;QAAEC,WAAU;IAAE;AACvB;AAEA,OAAO,eAAeC;IACpB,OAAO;QACLC,QAAQ;QACRC,UAAU;QACVC,MAAM;QACNC,aAAa;IACf;AACF;AAEA,OAAO,eAAeC,WAAWC,MAAc,EAAEC,MAA2B;IAC1E,MAAM,IAAIZ,oBAAoB,WAAW;AAC3C;AAEA,OAAO,eAAea;IACpB,MAAM,IAAIb,oBAAoB,WAAW;AAC3C;AAEA,OAAO,eAAec;IACpB,OAAO;AACT;AAEA,OAAO,SAASC;IACd,OAAO;AACT;AAEA,OAAO,SAASC,mBAAyB;AAEzC,OAAO,eAAeC,QAAQC,GAAW;IACvC,OAAO;AACT;AAEA,OAAO,eAAeC;IACpB,OAAO;AACT;AAEA,OAAO,SAASC;IACd,OAAO;AACT;AAEA,OAAO,SAASC;IACd,OAAO;AACT;AAEA,cAAc,kBAAkB;AAEhC,OAAO,SAASC;IACd,OAAO,EAAE;AACX;AAEA,OAAO,SAASC;IACd,OAAO;AACT;AAEA,OAAO,SAASC;IACd,OAAO;AACT;AAEA,OAAO,SAASC;IACd,OAAO;AACT;AAEA,SAASC,KAAK,EAAEC,SAAS,QAAQ,cAAc;AAC/C,SAASC,kBAAkB,QAAQ,iBAAiB"}
|
package/build/createURL.js
CHANGED
|
@@ -144,7 +144,7 @@ function ensureLeadingSlash(input, shouldAppend) {
|
|
|
144
144
|
try {
|
|
145
145
|
const parsed = new URL(url);
|
|
146
146
|
parsed.searchParams.forEach((value, key)=>{
|
|
147
|
-
queryParams[key] =
|
|
147
|
+
queryParams[key] = value;
|
|
148
148
|
});
|
|
149
149
|
path = parsed.pathname || null;
|
|
150
150
|
hostname = parsed.hostname || null;
|
package/build/createURL.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["createURL.ts"],"sourcesContent":[null],"names":["Constants","getBundleOrigin","hasCustomScheme","resolveScheme","validateURL","getDevServerLocation","expoGoConfig","developer","bundleOrigin","host","protocol","URL","authority","isSecure","getHostUri","devServer","expoConfig","hostUri","removeScheme","linkingUri","replace","isExpoHosted","test","url","removePort","removeLeadingSlash","removeTrailingSlashAndQueryString","ensureLeadingSlash","input","shouldAppend","hasSlash","startsWith","substring","createURL","path","scheme","queryParams","isTripleSlashed","resolvedScheme","expoHosted","queryString","queryStringMatchResult","match","paramsFromHostUri","Object","fromEntries","URLSearchParams","entries","filter","value","toString","encodedURI","encodeURI","parse","hostname","parsed","searchParams","forEach","key","
|
|
1
|
+
{"version":3,"sources":["createURL.ts"],"sourcesContent":[null],"names":["Constants","getBundleOrigin","hasCustomScheme","resolveScheme","validateURL","getDevServerLocation","expoGoConfig","developer","bundleOrigin","host","protocol","URL","authority","isSecure","getHostUri","devServer","expoConfig","hostUri","removeScheme","linkingUri","replace","isExpoHosted","test","url","removePort","removeLeadingSlash","removeTrailingSlashAndQueryString","ensureLeadingSlash","input","shouldAppend","hasSlash","startsWith","substring","createURL","path","scheme","queryParams","isTripleSlashed","resolvedScheme","expoHosted","queryString","queryStringMatchResult","match","paramsFromHostUri","Object","fromEntries","URLSearchParams","entries","filter","value","toString","encodedURI","encodeURI","parse","hostname","parsed","searchParams","forEach","key","pathname","hostUriStripped","length","expoPrefix","parts","split","slice","concat","join","indexOf"],"mappings":"AAAA,OAAOA,eAAe,iBAAiB;AACvC,SAASC,eAAe,QAAQ,8BAA8B;AAG9D,SAASC,eAAe,EAAEC,aAAa,QAAQ,YAAY;AAC3D,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,SAASC;IACP,yFAAy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Aa;YACrF5B,OAAOA,KAAKF,SAAS,CAAC8B,WAAWD,MAAM;YACvCP,WAAW;QACb,OAAO,IAAIpB,KAAKkC,OAAO,CAAC,OAAO,CAAC,GAAG;YACjClC,OAAOA,KAAKF,SAAS,CAACE,KAAKkC,OAAO,CAAC,OAAO;QAC5C;IACF;IAEA,OAAO;QACLd;QACApB;QACAE;QACAD;IACF;AACF"}
|
package/build/createURL.web.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["createURL.web.ts"],"sourcesContent":[null],"names":["createURL","path","queryParams","window","url","URL","location","origin","Object","entries","forEach","key","value","searchParams","set","encodeURIComponent","toString","replace","parse","parsed","hostname","scheme","
|
|
1
|
+
{"version":3,"sources":["createURL.web.ts"],"sourcesContent":[null],"names":["createURL","path","queryParams","window","url","URL","location","origin","Object","entries","forEach","key","value","searchParams","set","encodeURIComponent","toString","replace","parse","parsed","hostname","scheme","pathname","protocol"],"mappings":"AAEA,OAAO,SAASA,UAAUC,IAAY,EAAE,EAAEC,cAAc,CAAC,CAAC,EAAoB,GAAG,CAAC,CAAC;IACjF,IAAI,OAAOC,WAAW,aAAa,OAAO;IAC1C,MAAMC,MAAM,IAAIC,IAAIJ,MAAME,OAAOG,QAAQ,CAACC,MAAM;IAChDC,OAAOC,OAAO,CAACP,aAAaQ,OAAO,CAAC,CAAC,CAACC,KAAKC,MAAM;QAC/C,IAAI,OAAOA,UAAU,UAAU;YAC7BR,IAAIS,YAAY,CAACC,GAAG,CAACH,KAAKI,mBAAmBH;QAC/C,OAAO,IAAIA,SAAS,MAAM;YACxBR,IAAIS,YAAY,CAACC,GAAG,CAClBH,KACA,iDAAiD;YACjDC;QAEJ;IACF;IACA,OAAOR,IAAIY,QAAQ,GAAGC,OAAO,CAAC,OAAO;AACvC;AAEA,OAAO,SAASC,MAAMd,GAAW;IAC/B,IAAIe;IACJ,IAAI;QACFA,SAAS,IAAId,IAAID;IACnB,EAAE,OAAM;QACN,IAAI,OAAOD,WAAW,aAAa;YACjC,OAAO;gBACLiB,UAAU;gBACVnB,MAAMG;gBACNF,aAAa,CAAC;gBACdmB,QAAQ;YACV;QACF;QACA,OAAO;YACLD,UAAU;YACVnB,MAAMG;YACNF,aAAa,CAAC;YACdmB,QAAQ;QACV;IACF;IACA,MAAMnB,cAAsC,CAAC;IAC7CiB,OAAON,YAAY,CAACH,OAAO,CAAC,CAACE,OAAOD;QAClCT,WAAW,CAACS,IAAI,GAAGC;IACrB;IACA,OAAO;QACLQ,UAAUD,OAAOC,QAAQ,IAAI;QAC7B,oFAAoF;QACpFnB,MACE,CAACkB,OAAOC,QAAQ,IAAI,CAACD,OAAOG,QAAQ,GAChC,OACAH,OAAOG,QAAQ,KAAK,KAClB,OACAH,OAAOG,QAAQ,CAACL,OAAO,CAAC,OAAO;QACvCf;QACAmB,QAAQF,OAAOI,QAAQ,CAACN,OAAO,CAAC,MAAM;IACxC;AACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves a launch URL to the URL the app should handle.
|
|
3
|
+
*
|
|
4
|
+
* Expo Go and development builds accept
|
|
5
|
+
* [launcher commands](/develop/development-builds/development-workflows/#deep-linking-to-an-updates-url)
|
|
6
|
+
* as reserved `__expo_*` query parameters on any URL, or through the legacy
|
|
7
|
+
* `expo-development-client` host with a `url` parameter. This function returns the target URL named
|
|
8
|
+
* by `__expo_url` (or the legacy `url`), or the given URL without its reserved parameters. If the
|
|
9
|
+
* URL is invalid or carries no launcher command, the function returns it unchanged.
|
|
10
|
+
*
|
|
11
|
+
* @param url A URL received by the app, for example from `Linking.getInitialURL()`.
|
|
12
|
+
* @return The URL the app should handle, or an empty string for a legacy launch URL without a
|
|
13
|
+
* target.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* unwrapDevLaunchURL('myapp://expo-development-client/?url=http%3A%2F%2F10.0.0.5%3A8081%2F--%2Fprofile');
|
|
18
|
+
* // 'http://10.0.0.5:8081/--/profile'
|
|
19
|
+
* unwrapDevLaunchURL('myapp://login?__expo_disable_fab=1');
|
|
20
|
+
* // 'myapp://login'
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function unwrapDevLaunchURL(url: string): string;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const RESERVED_PREFIX = '__expo_';
|
|
2
|
+
const URL_PARAM = `${RESERVED_PREFIX}url`;
|
|
3
|
+
const LEGACY_HOST = 'expo-development-client';
|
|
4
|
+
// @needsAudit
|
|
5
|
+
/**
|
|
6
|
+
* Resolves a launch URL to the URL the app should handle.
|
|
7
|
+
*
|
|
8
|
+
* Expo Go and development builds accept
|
|
9
|
+
* [launcher commands](/develop/development-builds/development-workflows/#deep-linking-to-an-updates-url)
|
|
10
|
+
* as reserved `__expo_*` query parameters on any URL, or through the legacy
|
|
11
|
+
* `expo-development-client` host with a `url` parameter. This function returns the target URL named
|
|
12
|
+
* by `__expo_url` (or the legacy `url`), or the given URL without its reserved parameters. If the
|
|
13
|
+
* URL is invalid or carries no launcher command, the function returns it unchanged.
|
|
14
|
+
*
|
|
15
|
+
* @param url A URL received by the app, for example from `Linking.getInitialURL()`.
|
|
16
|
+
* @return The URL the app should handle, or an empty string for a legacy launch URL without a
|
|
17
|
+
* target.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* unwrapDevLaunchURL('myapp://expo-development-client/?url=http%3A%2F%2F10.0.0.5%3A8081%2F--%2Fprofile');
|
|
22
|
+
* // 'http://10.0.0.5:8081/--/profile'
|
|
23
|
+
* unwrapDevLaunchURL('myapp://login?__expo_disable_fab=1');
|
|
24
|
+
* // 'myapp://login'
|
|
25
|
+
* ```
|
|
26
|
+
*/ export function unwrapDevLaunchURL(url) {
|
|
27
|
+
let parsed;
|
|
28
|
+
try {
|
|
29
|
+
parsed = new URL(url);
|
|
30
|
+
} catch {
|
|
31
|
+
return url;
|
|
32
|
+
}
|
|
33
|
+
const isLegacyHost = parsed.hostname === LEGACY_HOST;
|
|
34
|
+
const target = parsed.searchParams.get(URL_PARAM) ?? (isLegacyHost ? parsed.searchParams.get('url') : null);
|
|
35
|
+
if (target != null) {
|
|
36
|
+
return target;
|
|
37
|
+
}
|
|
38
|
+
if (isLegacyHost) {
|
|
39
|
+
return '';
|
|
40
|
+
}
|
|
41
|
+
const reserved = [
|
|
42
|
+
...parsed.searchParams.keys()
|
|
43
|
+
].filter((key)=>key.startsWith(RESERVED_PREFIX));
|
|
44
|
+
if (!reserved.length) {
|
|
45
|
+
return url;
|
|
46
|
+
}
|
|
47
|
+
for (const key of reserved){
|
|
48
|
+
parsed.searchParams.delete(key);
|
|
49
|
+
}
|
|
50
|
+
return parsed.toString();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=devLaunchURL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["devLaunchURL.ts"],"sourcesContent":[null],"names":["RESERVED_PREFIX","URL_PARAM","LEGACY_HOST","unwrapDevLaunchURL","url","parsed","URL","isLegacyHost","hostname","target","searchParams","get","reserved","keys","filter","key","startsWith","length","delete","toString"],"mappings":"AAAA,MAAMA,kBAAkB;AACxB,MAAMC,YAAY,GAAGD,gBAAgB,GAAG,CAAC;AACzC,MAAME,cAAc;AAEpB,cAAc;AACd;;;;;;;;;;;;;;;;;;;;;CAqBC,GACD,OAAO,SAASC,mBAAmBC,GAAW;IAC5C,IAAIC;IACJ,IAAI;QACFA,SAAS,IAAIC,IAAIF;IACnB,EAAE,OAAM;QACN,OAAOA;IACT;IAEA,MAAMG,eAAeF,OAAOG,QAAQ,KAAKN;IACzC,MAAMO,SACJJ,OAAOK,YAAY,CAACC,GAAG,CAACV,cAAeM,CAAAA,eAAeF,OAAOK,YAAY,CAACC,GAAG,CAAC,SAAS,IAAG;IAC5F,IAAIF,UAAU,MAAM;QAClB,OAAOA;IACT;IACA,IAAIF,cAAc;QAChB,OAAO;IACT;IAEA,MAAMK,WAAW;WAAIP,OAAOK,YAAY,CAACG,IAAI;KAAG,CAACC,MAAM,CAAC,CAACC,MAAQA,IAAIC,UAAU,CAAChB;IAChF,IAAI,CAACY,SAASK,MAAM,EAAE;QACpB,OAAOb;IACT;IACA,KAAK,MAAMW,OAAOH,SAAU;QAC1BP,OAAOK,YAAY,CAACQ,MAAM,CAACH;IAC7B;IACA,OAAOV,OAAOc,QAAQ;AACxB"}
|
package/expo-module.config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.linking",
|
|
6
|
-
"version": "58.0.
|
|
6
|
+
"version": "58.0.9",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.linking-58.0.
|
|
28
|
-
"url": "expo.modules.linking-58.0.
|
|
27
|
+
"name": "expo.modules.linking-58.0.9.aar",
|
|
28
|
+
"url": "expo.modules.linking-58.0.9.aar",
|
|
29
29
|
"size": 12917,
|
|
30
30
|
"sha512": "e5a39edaa3583c5eed58156459a5b717c92e8a2f79fabb4d105f24030a32ad561e9752232601648fda1b41eb69a0452805c2d115ffa6672d139408817fae24c4",
|
|
31
31
|
"sha256": "6b7c85fe2f27e3c8a6dad0a62f3c612b9d901f81af75757c2663d4e90c82479c",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
],
|
|
68
68
|
"files": [
|
|
69
69
|
{
|
|
70
|
-
"name": "expo.modules.linking-58.0.
|
|
71
|
-
"url": "expo.modules.linking-58.0.
|
|
70
|
+
"name": "expo.modules.linking-58.0.9.aar",
|
|
71
|
+
"url": "expo.modules.linking-58.0.9.aar",
|
|
72
72
|
"size": 12917,
|
|
73
73
|
"sha512": "e5a39edaa3583c5eed58156459a5b717c92e8a2f79fabb4d105f24030a32ad561e9752232601648fda1b41eb69a0452805c2d115ffa6672d139408817fae24c4",
|
|
74
74
|
"sha256": "6b7c85fe2f27e3c8a6dad0a62f3c612b9d901f81af75757c2663d4e90c82479c",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
},
|
|
88
88
|
"files": [
|
|
89
89
|
{
|
|
90
|
-
"name": "expo.modules.linking-58.0.
|
|
91
|
-
"url": "expo.modules.linking-58.0.
|
|
90
|
+
"name": "expo.modules.linking-58.0.9-sources.jar",
|
|
91
|
+
"url": "expo.modules.linking-58.0.9-sources.jar",
|
|
92
92
|
"size": 2056,
|
|
93
93
|
"sha512": "56281223873763913dbf53e6e48ae76e0c8ee7a2aeef3aa61d21b8cb24e37703d77d140b09deed30474de4059b179d3968e4c40c2281191a80f549bd1e668984",
|
|
94
94
|
"sha256": "9c79fa2568d8b5488a247a4d8dbdf4ed1112036477f567e9342e9659f5a9cc50",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
42281d1c412090c92e6b718005a3a2ad
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b7679dbdd0978f0e5c209beabbc9534ab254f014
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7f8ac96f1c711426a2a53502e236fa6c0abb0ecae27bacc8e2faccc15abfa4c4
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cc191cc5b4e444d73d095ecea653b4d4d805cf170bf655b3c931774fc11fd779f624618c68ce9db41be725484e656d29e964f3a7fb239a1a43d5aa9f2516ac59
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>host.exp.exponent</groupId>
|
|
11
11
|
<artifactId>expo.modules.linking</artifactId>
|
|
12
|
-
<version>58.0.
|
|
12
|
+
<version>58.0.9</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.linking</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f85f5658d9103c2437b101d8dc634959
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
72d57c451cc3a9010f8eb89798cc29384e31c7fb
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cbe167aa2644fddb05fb97eadca3da9f2b6b9ed57c354b46223bfcb5c8d8ea8f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9f03a85b3e81a1b468541ba9432cc5e07f1d0df4e87bdae281c6e68c2e24fde9dbc936475e672644d76cd888696b2a9a5393d2147f3faddfe230c8367c0ca09a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-linking",
|
|
3
|
-
"version": "58.0.
|
|
3
|
+
"version": "58.0.9",
|
|
4
4
|
"description": "Create and open deep links universally",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"expo",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"./package.json": "./package.json"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"expo-constants": "~58.0.
|
|
43
|
+
"expo-constants": "~58.0.9",
|
|
44
44
|
"invariant": "^2.2.4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/invariant": "^2.2.33",
|
|
48
48
|
"@types/react": "~19.3.0",
|
|
49
|
-
"expo-module-scripts": "56.0.
|
|
49
|
+
"expo-module-scripts": "56.0.4"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"expo": "*",
|
|
53
53
|
"react": "*",
|
|
54
54
|
"react-native": "*"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "74f6d2b90bc50bd8df7b160d6e6b2204b37a8ce7",
|
|
57
56
|
"scripts": {
|
|
57
|
+
"precompile-android": "et prebuild-android-package-for-publish",
|
|
58
58
|
"build": "expo-build src",
|
|
59
59
|
"clean": "expo-module clean",
|
|
60
60
|
"lint": "oxlint --config oxlint.config.mjs .",
|
package/src/Linking.server.ts
CHANGED
package/src/Linking.ts
CHANGED
package/src/createURL.ts
CHANGED
|
@@ -176,7 +176,7 @@ export function parse(url: string): ParsedURL {
|
|
|
176
176
|
const parsed = new URL(url);
|
|
177
177
|
|
|
178
178
|
parsed.searchParams.forEach((value, key) => {
|
|
179
|
-
queryParams[key] =
|
|
179
|
+
queryParams[key] = value;
|
|
180
180
|
});
|
|
181
181
|
path = parsed.pathname || null;
|
|
182
182
|
hostname = parsed.hostname || null;
|
package/src/createURL.web.ts
CHANGED
|
@@ -39,7 +39,7 @@ export function parse(url: string): ParsedURL {
|
|
|
39
39
|
}
|
|
40
40
|
const queryParams: Record<string, string> = {};
|
|
41
41
|
parsed.searchParams.forEach((value, key) => {
|
|
42
|
-
queryParams[key] =
|
|
42
|
+
queryParams[key] = value;
|
|
43
43
|
});
|
|
44
44
|
return {
|
|
45
45
|
hostname: parsed.hostname || null,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const RESERVED_PREFIX = '__expo_';
|
|
2
|
+
const URL_PARAM = `${RESERVED_PREFIX}url`;
|
|
3
|
+
const LEGACY_HOST = 'expo-development-client';
|
|
4
|
+
|
|
5
|
+
// @needsAudit
|
|
6
|
+
/**
|
|
7
|
+
* Resolves a launch URL to the URL the app should handle.
|
|
8
|
+
*
|
|
9
|
+
* Expo Go and development builds accept
|
|
10
|
+
* [launcher commands](/develop/development-builds/development-workflows/#deep-linking-to-an-updates-url)
|
|
11
|
+
* as reserved `__expo_*` query parameters on any URL, or through the legacy
|
|
12
|
+
* `expo-development-client` host with a `url` parameter. This function returns the target URL named
|
|
13
|
+
* by `__expo_url` (or the legacy `url`), or the given URL without its reserved parameters. If the
|
|
14
|
+
* URL is invalid or carries no launcher command, the function returns it unchanged.
|
|
15
|
+
*
|
|
16
|
+
* @param url A URL received by the app, for example from `Linking.getInitialURL()`.
|
|
17
|
+
* @return The URL the app should handle, or an empty string for a legacy launch URL without a
|
|
18
|
+
* target.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* unwrapDevLaunchURL('myapp://expo-development-client/?url=http%3A%2F%2F10.0.0.5%3A8081%2F--%2Fprofile');
|
|
23
|
+
* // 'http://10.0.0.5:8081/--/profile'
|
|
24
|
+
* unwrapDevLaunchURL('myapp://login?__expo_disable_fab=1');
|
|
25
|
+
* // 'myapp://login'
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export function unwrapDevLaunchURL(url: string): string {
|
|
29
|
+
let parsed: URL;
|
|
30
|
+
try {
|
|
31
|
+
parsed = new URL(url);
|
|
32
|
+
} catch {
|
|
33
|
+
return url;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const isLegacyHost = parsed.hostname === LEGACY_HOST;
|
|
37
|
+
const target =
|
|
38
|
+
parsed.searchParams.get(URL_PARAM) ?? (isLegacyHost ? parsed.searchParams.get('url') : null);
|
|
39
|
+
if (target != null) {
|
|
40
|
+
return target;
|
|
41
|
+
}
|
|
42
|
+
if (isLegacyHost) {
|
|
43
|
+
return '';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const reserved = [...parsed.searchParams.keys()].filter((key) => key.startsWith(RESERVED_PREFIX));
|
|
47
|
+
if (!reserved.length) {
|
|
48
|
+
return url;
|
|
49
|
+
}
|
|
50
|
+
for (const key of reserved) {
|
|
51
|
+
parsed.searchParams.delete(key);
|
|
52
|
+
}
|
|
53
|
+
return parsed.toString();
|
|
54
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
c3073e4df6beb6979e838229f686dd98
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9ae3c8a0aa0a2ead1b702c1896dbd03e0aec8dd0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
c6d1b66d57d29d4420a940a315da07eb4a766df7bf3885cbd94aabb30cf70964
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0eb924cc9361a13d5bfc59170669f98a7802968091bc7dafc98cdc04ac1b279a0b3bc9c2f1fadd93a1c2a2958d5d79c149967d53a850a20d450c0f43330d4aaf
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8ca8f399c25b4a949c09a9e8b9783660
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e2a7c761e80a425f0f822f600dbc6bba1d220d51
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d508722e65c1a5b764539659b34806ed7fabe30e1711d2b1ddc7841edef2bc42
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2b74c91611c403c6612a544f7f396987fc76c9ef0b853bc5dddbe180dbdb2c99131db6565e329608674a1e12b3eb4e5f5e0c69a941d9d3aff0245fba9dd5099e
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<metadata>
|
|
3
|
-
<groupId>host.exp.exponent</groupId>
|
|
4
|
-
<artifactId>expo.modules.linking</artifactId>
|
|
5
|
-
<versioning>
|
|
6
|
-
<latest>58.0.8</latest>
|
|
7
|
-
<release>58.0.8</release>
|
|
8
|
-
<versions>
|
|
9
|
-
<version>58.0.8</version>
|
|
10
|
-
</versions>
|
|
11
|
-
<lastUpdated>20260928121116</lastUpdated>
|
|
12
|
-
</versioning>
|
|
13
|
-
</metadata>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
bd0ca6da4cd28f837cd8e621c2139e86
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1c7b4470bf2de4499b3b798a20e0e7f3b68fb11c
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d3cbd01740e94b004ab99269882f6b7c6bd201b3cff9be537d86f71204d44ecb
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4f600ea03224a56df7fe5405c1f6821ad8c9b0aea7758ef0a52bd6978992e451902d2d5685f27cb13d9967970691c1f91428be76419be0cf7a467cb30937f2ee
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|