@stackframe/stack-shared 1.0.0 → 1.2.0

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.
Files changed (52) hide show
  1. package/dist/helpers/fetch-token.d.ts +1 -0
  2. package/dist/helpers/password.d.ts +1 -0
  3. package/dist/hooks/use-async-external-store.d.ts +1 -0
  4. package/dist/hooks/use-strict-memo.d.ts +1 -0
  5. package/dist/index.d.ts +3 -2
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/interface/adminInterface.d.ts +44 -53
  8. package/dist/interface/adminInterface.d.ts.map +1 -1
  9. package/dist/interface/adminInterface.js +10 -52
  10. package/dist/interface/clientInterface.d.ts +30 -21
  11. package/dist/interface/clientInterface.d.ts.map +1 -1
  12. package/dist/interface/clientInterface.js +37 -44
  13. package/dist/interface/serverInterface.d.ts +4 -6
  14. package/dist/interface/serverInterface.d.ts.map +1 -1
  15. package/dist/interface/serverInterface.js +0 -23
  16. package/dist/utils/arrays.d.ts +1 -0
  17. package/dist/utils/bytes.d.ts +3 -0
  18. package/dist/utils/bytes.d.ts.map +1 -0
  19. package/dist/utils/bytes.js +48 -0
  20. package/dist/utils/caches.d.ts +34 -28
  21. package/dist/utils/caches.d.ts.map +1 -1
  22. package/dist/utils/caches.js +81 -46
  23. package/dist/utils/crypto.d.ts +1 -0
  24. package/dist/utils/crypto.d.ts.map +1 -1
  25. package/dist/utils/crypto.js +6 -2
  26. package/dist/utils/dates.d.ts +1 -0
  27. package/dist/utils/dom.d.ts +1 -0
  28. package/dist/utils/env.d.ts +1 -0
  29. package/dist/utils/errors.d.ts +1 -0
  30. package/dist/utils/html.d.ts +1 -0
  31. package/dist/utils/json.d.ts +1 -0
  32. package/dist/utils/jwt.d.ts +1 -0
  33. package/dist/utils/maps.d.ts +24 -0
  34. package/dist/utils/maps.d.ts.map +1 -0
  35. package/dist/utils/maps.js +110 -0
  36. package/dist/utils/math.d.ts +1 -0
  37. package/dist/utils/numbers.d.ts +1 -0
  38. package/dist/utils/objects.d.ts +1 -0
  39. package/dist/utils/password.d.ts +1 -0
  40. package/dist/utils/promises.d.ts +2 -0
  41. package/dist/utils/promises.d.ts.map +1 -1
  42. package/dist/utils/promises.js +4 -1
  43. package/dist/utils/react.d.ts +1 -0
  44. package/dist/utils/results.d.ts +1 -0
  45. package/dist/utils/stores.d.ts +1 -0
  46. package/dist/utils/stores.d.ts.map +1 -1
  47. package/dist/utils/stores.js +2 -4
  48. package/dist/utils/strings.d.ts +1 -0
  49. package/dist/utils/types.d.ts +11 -13
  50. package/dist/utils/types.d.ts.map +1 -1
  51. package/dist/utils/uuids.d.ts +1 -0
  52. package/package.json +5 -4
@@ -47,7 +47,10 @@ export function rejected(reason) {
47
47
  });
48
48
  }
49
49
  export function neverResolve() {
50
- return Object.assign(new Promise(() => { }), {
50
+ return pending(new Promise(() => { }));
51
+ }
52
+ export function pending(promise) {
53
+ return Object.assign(promise, {
51
54
  status: "pending",
52
55
  });
53
56
  }
@@ -10,3 +10,4 @@ export declare function suspend(): never;
10
10
  * Use this in a component or a hook to disable SSR.
11
11
  */
12
12
  export declare function suspendIfSsr(): void;
13
+ //# sourceMappingURL=react.d.ts.map
@@ -71,3 +71,4 @@ declare function retry<T>(fn: () => Result<T> | Promise<Result<T>>, retries: num
71
71
  exponentialDelayBase?: number | undefined;
72
72
  }): Promise<Result<T, RetryError>>;
73
73
  export {};
74
+ //# sourceMappingURL=results.d.ts.map
@@ -55,3 +55,4 @@ export declare class AsyncStore<T> implements ReadonlyAsyncStore<T> {
55
55
  unsubscribe: () => void;
56
56
  };
57
57
  }
58
+ //# sourceMappingURL=stores.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stores.d.ts","sourceRoot":"","sources":["../../src/utils/stores.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,EAAE,YAAY,EAAsB,MAAM,YAAY,CAAC;AAE9D,MAAM,MAAM,kBAAk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U5F,UAAU,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,SAAS,KAAK,IAAI,GAAG;QAAE,WAAW,EAAE,MAAM,IAAI,CAAA;KAAE;CAO/F"}
@@ -1,6 +1,6 @@
1
1
  import { AsyncResult } from "./results";
2
2
  import { generateUuid } from "./uuids";
3
- import { rejected, resolved } from "./promises";
3
+ import { pending, rejected, resolved } from "./promises";
4
4
  export class AsyncStore {
5
5
  _isAvailable;
6
6
  _value = undefined;
@@ -53,9 +53,7 @@ export class AsyncStore {
53
53
  const withFinally = promise.finally(() => {
54
54
  this._waitingRejectFunctions.delete(uuid);
55
55
  });
56
- return Object.assign(withFinally, {
57
- status: "pending",
58
- });
56
+ return pending(withFinally);
59
57
  }
60
58
  _setIfLatest(value, curCounter) {
61
59
  if (!this._isAvailable || this._isRejected || this._value !== value) {
@@ -38,3 +38,4 @@ export declare function trimLines(s: string): string;
38
38
  export declare function templateIdentity(strings: TemplateStringsArray | readonly string[], ...values: any[]): string;
39
39
  export declare function deindent(code: string): string;
40
40
  export declare function deindent(strings: TemplateStringsArray | readonly string[], ...values: any[]): string;
41
+ //# sourceMappingURL=strings.d.ts.map
@@ -1,7 +1,4 @@
1
1
  import { StatusError } from "./errors";
2
- export type ReadonlyJson = null | boolean | number | string | readonly ReadonlyJson[] | {
3
- readonly [key: string]: ReadonlyJson;
4
- };
5
2
  export declare const AccessTokenExpiredErrorCode = "ACCESS_TOKEN_EXPIRED";
6
3
  export declare const GrantInvalidErrorCode = "GRANT_INVALID";
7
4
  export declare const UserAlreadyExistErrorCode = "USER_ALREADY_EXIST";
@@ -17,17 +14,18 @@ export declare const EmailVerificationLinkUsedErrorCode = "EMAIL_VERIFICATION_LI
17
14
  export declare const PasswordResetLinkInvalidErrorCode = "PASSWORD_RESET_LINK_INVALID";
18
15
  export declare const PasswordResetLinkExpiredErrorCode = "PASSWORD_RESET_LINK_EXPIRED";
19
16
  export declare const PasswordResetLinkUsedErrorCode = "PASSWORD_RESET_LINK_USED";
20
- export type KnownErrorCode = typeof GrantInvalidErrorCode | typeof AccessTokenExpiredErrorCode | typeof UserAlreadyExistErrorCode | typeof UserNotExistErrorCode | typeof UserNotVerifiedErrorCode | typeof EmailPasswordMissMatchErrorCode | typeof RedirectUrlInvalidErrorCode | typeof PasswordFormatInvalidErrorCode | typeof ProjectIdOrKeyInvalidErrorCode | typeof EmailVerificationLinkInvalidErrorCode | typeof EmailVerificationLinkExpiredErrorCode | typeof EmailVerificationLinkUsedErrorCode | typeof PasswordResetLinkInvalidErrorCode | typeof PasswordResetLinkExpiredErrorCode | typeof PasswordResetLinkUsedErrorCode;
21
- export declare const KnownErrorCodes: string[];
22
- export type SignUpErrorCode = typeof UserAlreadyExistErrorCode;
23
- export declare const SignUpErrorCodes: string[];
24
- export type SignInErrorCode = typeof EmailPasswordMissMatchErrorCode | typeof UserNotExistErrorCode;
25
- export declare const SignInErrorCodes: string[];
26
- export type EmailVerificationLinkErrorCode = typeof EmailVerificationLinkInvalidErrorCode | typeof EmailVerificationLinkExpiredErrorCode | typeof EmailVerificationLinkUsedErrorCode;
27
- export declare const EmailVerificationLinkErrorCodes: string[];
28
- export type PasswordResetLinkErrorCode = typeof PasswordResetLinkInvalidErrorCode | typeof PasswordResetLinkExpiredErrorCode | typeof PasswordResetLinkUsedErrorCode;
29
- export declare const PasswordResetLinkErrorCodes: string[];
17
+ export declare const KnownErrorCodes: readonly ["ACCESS_TOKEN_EXPIRED", "GRANT_INVALID", "USER_ALREADY_EXIST", "USER_NOT_EXIST", "USER_NOT_VERIFIED", "EMAIL_PASSWORD_MISS_MATCH", "REDIRECT_URL_INVALID", "PASSWORD_FORMAT_INVALID", "PROJECT_ID_OR_KEY_INVALID", "EMAIL_VERIFICATION_LINK_INVALID", "EMAIL_VERIFICATION_LINK_EXPIRED", "EMAIL_VERIFICATION_LINK_USED", "PASSWORD_RESET_LINK_INVALID", "PASSWORD_RESET_LINK_EXPIRED", "PASSWORD_RESET_LINK_USED"];
18
+ export type KnownErrorCode = typeof KnownErrorCodes[number];
19
+ export declare const SignUpErrorCodes: readonly ["USER_ALREADY_EXIST"];
20
+ export type SignUpErrorCode = typeof SignUpErrorCodes[number];
21
+ export declare const SignInErrorCodes: readonly ["EMAIL_PASSWORD_MISS_MATCH", "USER_NOT_EXIST"];
22
+ export type SignInErrorCode = typeof SignInErrorCodes[number];
23
+ export declare const EmailVerificationLinkErrorCodes: readonly ["EMAIL_VERIFICATION_LINK_INVALID", "EMAIL_VERIFICATION_LINK_EXPIRED", "EMAIL_VERIFICATION_LINK_USED"];
24
+ export type EmailVerificationLinkErrorCode = typeof EmailVerificationLinkErrorCodes[number];
25
+ export declare const PasswordResetLinkErrorCodes: readonly ["PASSWORD_RESET_LINK_INVALID", "PASSWORD_RESET_LINK_EXPIRED", "PASSWORD_RESET_LINK_USED"];
26
+ export type PasswordResetLinkErrorCode = typeof PasswordResetLinkErrorCodes[number];
30
27
  export declare class KnownError extends StatusError {
31
28
  readonly errorCode: KnownErrorCode;
32
29
  constructor(errorCode: KnownErrorCode);
33
30
  }
31
+ //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAKvC,MAAM,MAAM,YAAY,GACpB,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,YAAY,EAAE,GACvB;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,CAAC;AAE7C,eAAO,MAAM,2BAA2B,yBAAyB,CAAC;AAClE,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AACrD,eAAO,MAAM,yBAAyB,uBAAuB,CAAC;AAC9D,eAAO,MAAM,qBAAqB,mBAAmB,CAAC;AACtD,eAAO,MAAM,wBAAwB,sBAAsB,CAAC;AAC5D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AACX,MAAM,MAAM,8BAA8B,GAAG,OAAO,+BAA+B,CAAC,MAAM,CAAC,CAAA;AAE3F,eAAO,MAAM,2BAA2B,qGAI9B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,2BAA2B,CAAC,MAAM,CAAC,CAAA;AAEnF,qBAAa,UAAW,SAAQ,WAAW;aACb,SAAS,EAAE,cAAc;gBAAzB,SAAS,EAAE,cAAc;CAatD"}
@@ -1 +1,2 @@
1
1
  export declare function generateUuid(): string;
2
+ //# sourceMappingURL=uuids.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/stack-shared",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -28,12 +28,13 @@
28
28
  "@typescript-eslint/parser": "^6.x",
29
29
  "eslint": "^8",
30
30
  "eslint-config-next": "^14",
31
- "rimraf": "^5.0.5"
31
+ "rimraf": "^5.0.5",
32
+ "react": "^18.2.0"
32
33
  },
33
34
  "scripts": {
34
- "build": "pnpm clean && tsc",
35
+ "build": "tsc",
35
36
  "typecheck": "tsc --noEmit",
36
- "clean": "rimraf dist",
37
+ "clean": "rimraf dist && rimraf node_modules",
37
38
  "dev": "tsc -w --preserveWatchOutput --declarationMap",
38
39
  "lint": "eslint --ext .tsx,.ts ."
39
40
  }