@tenxyte/core 0.9.2 → 0.9.3

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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +6 -6
  3. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tenxyte
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -384,16 +384,16 @@ const state = await tx.getState();
384
384
 
385
385
  ---
386
386
 
387
- ## Migration Guide: v0.9v1.0
387
+ ## Migration Guide: v0.8v0.9
388
388
 
389
389
  ### Breaking Changes
390
390
 
391
391
  1. **Constructor signature changed** — The client now accepts a `TenxyteClientConfig` object:
392
392
  ```typescript
393
- // Before (v0.9)
393
+ // Before (v0.8)
394
394
  const tx = new TenxyteClient({ baseUrl: '...', headers: { ... } });
395
395
 
396
- // After (v1.0) — same, but new options available
396
+ // After (v0.9) — same, but new options available
397
397
  const tx = new TenxyteClient({
398
398
  baseUrl: '...',
399
399
  headers: { ... },
@@ -405,10 +405,10 @@ const state = await tx.getState();
405
405
 
406
406
  2. **`loginWithEmail` now requires `device_info`**:
407
407
  ```typescript
408
- // Before (v0.9)
408
+ // Before (v0.8)
409
409
  await tx.auth.loginWithEmail({ email, password });
410
410
 
411
- // After (v1.0)
411
+ // After (v0.9)
412
412
  await tx.auth.loginWithEmail({ email, password, device_info: '' });
413
413
  ```
414
414
 
@@ -427,7 +427,7 @@ const state = await tx.getState();
427
427
 
428
428
  6. **`register()` return type changed** — Now returns `RegisterResponse` (may include tokens if auto-login is enabled).
429
429
 
430
- ### New Features in v1.0
430
+ ### New Features in v0.9
431
431
 
432
432
  - Auto-refresh interceptor (silent 401 → refresh → retry)
433
433
  - Configurable retry with exponential backoff (429/5xx)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenxyte/core",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Core JavaScript SDK for Tenxyte",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",