@koolbase/js 12.28.0 → 12.30.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 (2) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -7,6 +7,15 @@ is based on [Keep a Changelog][kac], and this project adheres to
7
7
  [kac]: https://keepachangelog.com/en/1.1.0/
8
8
  [semver]: https://semver.org/
9
9
 
10
+ ## 12.30.0
11
+
12
+ A refused app key is reported as the setup problem it is, never as a wrong password and never by signing the user out (#168, #169). Same contract as koolbase_flutter 12.40.0.
13
+
14
+ - **`KoolbaseInvalidPublicKeyError`** (`invalid_public_key`, 401): the app's Koolbase key is unknown or revoked, or its project is deleted or not ready. The API answers this on any route since #169. It is deliberately not a `KoolbaseUnauthenticatedError`, so it never clears the session.
15
+ - **Behaviour change**: a sign-in call's 401 without a recognised code used to become `InvalidCredentialsError` ("Invalid email or password"), whatever the cause. It is now a generic `KoolbaseAuthError` carrying the server's reason. A refresh's 401 is still a session that expired. The API sends `invalid_credentials` whenever a password is wrong.
16
+ - **Covered surfaces**: auth (with Apple and Google sign-in), data, storage, Functions, fiscal and the offline sync engine.
17
+ - **Tested**: the code maps to its error on each surface; a data 401 for the key does not sign anyone out, and any other data 401 still does.
18
+
10
19
  ## 12.2.0
11
20
 
12
21
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koolbase/js",
3
- "version": "12.28.0",
3
+ "version": "12.30.0",
4
4
  "description": "Koolbase SDK for the browser \u2014 auth, database, storage, realtime, functions, flags and offline sync in one package.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "url": "https://github.com/koolbase/koolbase-react-native"
27
27
  },
28
28
  "dependencies": {
29
- "@koolbase/core": "12.28.0"
29
+ "@koolbase/core": "12.30.0"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"