@supabase/gotrue-js 2.105.4 → 2.107.0-canary.5

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 (57) hide show
  1. package/AGENTS.md +11 -0
  2. package/README.md +19 -19
  3. package/dist/main/GoTrueClient.d.ts +83 -14
  4. package/dist/main/GoTrueClient.d.ts.map +1 -1
  5. package/dist/main/GoTrueClient.js +355 -110
  6. package/dist/main/GoTrueClient.js.map +1 -1
  7. package/dist/main/lib/errors.d.ts +24 -0
  8. package/dist/main/lib/errors.d.ts.map +1 -1
  9. package/dist/main/lib/errors.js +31 -1
  10. package/dist/main/lib/errors.js.map +1 -1
  11. package/dist/main/lib/fetch.d.ts.map +1 -1
  12. package/dist/main/lib/fetch.js +3 -1
  13. package/dist/main/lib/fetch.js.map +1 -1
  14. package/dist/main/lib/locks.d.ts +28 -34
  15. package/dist/main/lib/locks.d.ts.map +1 -1
  16. package/dist/main/lib/locks.js +28 -34
  17. package/dist/main/lib/locks.js.map +1 -1
  18. package/dist/main/lib/types.d.ts +16 -27
  19. package/dist/main/lib/types.d.ts.map +1 -1
  20. package/dist/main/lib/types.js.map +1 -1
  21. package/dist/main/lib/version.d.ts +1 -1
  22. package/dist/main/lib/version.d.ts.map +1 -1
  23. package/dist/main/lib/version.js +1 -1
  24. package/dist/main/lib/version.js.map +1 -1
  25. package/dist/module/GoTrueClient.d.ts +83 -14
  26. package/dist/module/GoTrueClient.d.ts.map +1 -1
  27. package/dist/module/GoTrueClient.js +357 -112
  28. package/dist/module/GoTrueClient.js.map +1 -1
  29. package/dist/module/lib/errors.d.ts +24 -0
  30. package/dist/module/lib/errors.d.ts.map +1 -1
  31. package/dist/module/lib/errors.js +28 -0
  32. package/dist/module/lib/errors.js.map +1 -1
  33. package/dist/module/lib/fetch.d.ts.map +1 -1
  34. package/dist/module/lib/fetch.js +3 -1
  35. package/dist/module/lib/fetch.js.map +1 -1
  36. package/dist/module/lib/locks.d.ts +28 -34
  37. package/dist/module/lib/locks.d.ts.map +1 -1
  38. package/dist/module/lib/locks.js +28 -34
  39. package/dist/module/lib/locks.js.map +1 -1
  40. package/dist/module/lib/types.d.ts +16 -27
  41. package/dist/module/lib/types.d.ts.map +1 -1
  42. package/dist/module/lib/types.js.map +1 -1
  43. package/dist/module/lib/version.d.ts +1 -1
  44. package/dist/module/lib/version.d.ts.map +1 -1
  45. package/dist/module/lib/version.js +1 -1
  46. package/dist/module/lib/version.js.map +1 -1
  47. package/dist/tsconfig.module.tsbuildinfo +1 -1
  48. package/dist/tsconfig.tsbuildinfo +1 -1
  49. package/migrations/README.md +25 -0
  50. package/migrations/lockless-coordination.md +89 -0
  51. package/package.json +24 -11
  52. package/src/GoTrueClient.ts +423 -141
  53. package/src/lib/errors.ts +32 -0
  54. package/src/lib/fetch.ts +3 -1
  55. package/src/lib/locks.ts +29 -34
  56. package/src/lib/types.ts +16 -27
  57. package/src/lib/version.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/gotrue-js",
3
- "version": "2.105.4",
3
+ "version": "2.107.0-canary.5",
4
4
  "private": false,
5
5
  "description": "Official SDK for Supabase Auth",
6
6
  "keywords": [
@@ -15,7 +15,9 @@
15
15
  "author": "Supabase",
16
16
  "files": [
17
17
  "dist",
18
- "src"
18
+ "src",
19
+ "migrations",
20
+ "AGENTS.md"
19
21
  ],
20
22
  "main": "dist/main/index.js",
21
23
  "module": "dist/module/index.js",
@@ -25,20 +27,31 @@
25
27
  "url": "https://github.com/supabase/supabase-js.git",
26
28
  "directory": "packages/core/auth-js"
27
29
  },
28
- "scripts": {
29
- "build": "npm run build:main && npm run build:module",
30
- "build:main": "tsc -p tsconfig.json",
31
- "build:module": "tsc -p tsconfig.module.json",
32
- "docs": "typedoc src/index.ts --out docs/v2 --excludePrivate --excludeProtected",
33
- "docs:json": "typedoc --json docs/v2/spec.json --excludeExternals --excludePrivate --excludeProtected src/index.ts"
34
- },
35
30
  "dependencies": {
36
31
  "tslib": "2.8.1"
37
32
  },
38
33
  "devDependencies": {
39
- "prettier": "^2.8.8"
34
+ "@faker-js/faker": "^9.9.0",
35
+ "@types/jest": "30.0.0",
36
+ "@types/jsonwebtoken": "^8.5.8",
37
+ "@types/node": "20.19.9",
38
+ "jest": "30.4.2",
39
+ "jest-environment-jsdom": "30.4.1",
40
+ "jest-mock-server": "^0.1.0",
41
+ "jsonwebtoken": "^9.0.0",
42
+ "prettier": "^3.6.2",
43
+ "ts-jest": "^29.4.9",
44
+ "typedoc": "^0.27.9",
45
+ "typescript": "~5.8.3"
40
46
  },
41
47
  "engines": {
42
48
  "node": ">=20.0.0"
49
+ },
50
+ "scripts": {
51
+ "build": "npm run build:main && npm run build:module",
52
+ "build:main": "tsc -p tsconfig.json",
53
+ "build:module": "tsc -p tsconfig.module.json",
54
+ "docs": "typedoc src/index.ts --out docs/v2 --excludePrivate --excludeProtected",
55
+ "docs:json": "typedoc --json docs/v2/spec.json --excludeExternals --excludePrivate --excludeProtected src/index.ts"
43
56
  }
44
- }
57
+ }