@stackframe/js 2.8.6 → 2.8.8

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @stackframe/stack
2
2
 
3
+ ## 2.8.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Various changes
8
+ - Updated dependencies
9
+ - @stackframe/stack-ui@2.8.8
10
+ - @stackframe/stack-sc@2.8.8
11
+ - @stackframe/stack-shared@2.8.8
12
+
13
+ ## 2.8.7
14
+
15
+ ### Patch Changes
16
+
17
+ - Various changes
18
+ - @stackframe/stack-sc@2.8.7
19
+ - @stackframe/stack-shared@2.8.7
20
+ - @stackframe/stack-ui@2.8.7
21
+
3
22
  ## 2.8.6
4
23
 
5
24
  ### Patch Changes
@@ -209,7 +209,7 @@ var __StackClientAppImplIncomplete = class __StackClientAppImplIncomplete {
209
209
  if (allClientApps.has(this._uniqueIdentifier)) {
210
210
  throw new StackAssertionError("A Stack client app with the same unique identifier already exists");
211
211
  }
212
- allClientApps.set(this._uniqueIdentifier, [this._options.checkString ?? "default check string", this]);
212
+ allClientApps.set(this._uniqueIdentifier, [this._options.checkString ?? void 0, this]);
213
213
  }
214
214
  /**
215
215
  * Cloudflare workers does not allow use of randomness on the global scope (on which the Stack app is probably
@@ -885,20 +885,12 @@ var __StackClientAppImplIncomplete = class __StackClientAppImplIncomplete {
885
885
  if (!options?.noRedirectBack) {
886
886
  if (handlerName === "afterSignIn" || handlerName === "afterSignUp") {
887
887
  if (isReactServer || typeof window === "undefined") {
888
- try {
889
- await this._checkFeatureSupport("rsc-handler-" + handlerName, {});
890
- } catch (e) {
891
- }
892
888
  } else {
893
889
  const queryParams = new URLSearchParams(window.location.search);
894
890
  url = queryParams.get("after_auth_return_to") || url;
895
891
  }
896
892
  } else if (handlerName === "signIn" || handlerName === "signUp") {
897
893
  if (isReactServer || typeof window === "undefined") {
898
- try {
899
- await this._checkFeatureSupport("rsc-handler-" + handlerName, {});
900
- } catch (e) {
901
- }
902
894
  } else {
903
895
  const currentUrl = new URL(window.location.href);
904
896
  const nextUrl = new URL(url, currentUrl);
@@ -1380,7 +1372,7 @@ ${url}`);
1380
1372
  const existing = allClientApps.get(json.uniqueIdentifier);
1381
1373
  if (existing) {
1382
1374
  const [existingCheckString, clientApp] = existing;
1383
- if (existingCheckString !== providedCheckString) {
1375
+ if (existingCheckString !== void 0 && existingCheckString !== providedCheckString) {
1384
1376
  throw new StackAssertionError("The provided app JSON does not match the configuration of the existing client app with the same unique identifier", { providedObj: json, existingString: existingCheckString });
1385
1377
  }
1386
1378
  return clientApp;