@pollar/core 0.9.0-rc.4 → 0.9.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.
- package/README.md +17 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.rn.js +1 -1
- package/dist/index.rn.js.map +1 -1
- package/dist/index.rn.mjs +1 -1
- package/dist/index.rn.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Core SDK for [Pollar](https://pollar.xyz) — authentication and transaction utilities for Stellar-based applications.
|
|
4
4
|
|
|
5
|
+
> **0.9.0 (breaking — SDK surface only)** the session wallet drops the legacy
|
|
6
|
+
> `publicKey` alias and exposes only `address`; read `session.wallet.address`.
|
|
7
|
+
> `wallet.type` `'custodial'` is now surfaced as `'internal'`
|
|
8
|
+
> (`'internal' | 'smart' | 'external'`), and `ConnectWalletResponse` is
|
|
9
|
+
> `{ address }` only. The `sdk-api` wire is **unchanged** (still emits
|
|
10
|
+
> `'custodial'` + `publicKey`), so SDKs ≤0.8.x keep working and sessions written
|
|
11
|
+
> by older SDKs are migrated transparently on read. Read the
|
|
12
|
+
> [CHANGELOG](../../CHANGELOG.md) before upgrading.
|
|
13
|
+
>
|
|
5
14
|
> **0.8.0** routes every `submitTx` (custodial **and** external wallets) through
|
|
6
15
|
> `/tx/submit` so the dashboard sees every transaction and idempotency is
|
|
7
16
|
> tracked end-to-end. Adds proactive token refresh with a visibility-aware
|
|
@@ -242,15 +251,20 @@ level + sink). `@pollar/stellar-wallets-kit-adapter` accepts the same `logLevel`
|
|
|
242
251
|
|
|
243
252
|
## Preserved-on-disk storage shape
|
|
244
253
|
|
|
245
|
-
0.
|
|
254
|
+
As of 0.9.0 the session persists exactly:
|
|
246
255
|
|
|
247
256
|
```
|
|
248
257
|
clientSessionId, userId, status,
|
|
249
258
|
token { accessToken, refreshToken, expiresAt },
|
|
250
259
|
user { id?, ready },
|
|
251
|
-
wallet {
|
|
260
|
+
wallet { type, address, existsOnStellar?, createdAt?, linkedAt?, network?, deployTxHash? }
|
|
252
261
|
```
|
|
253
262
|
|
|
263
|
+
> **0.9.0** — the persisted wallet drops the legacy `publicKey` alias and exposes
|
|
264
|
+
> only `address` (G-address for `internal`, C-address for `smart`, the connected
|
|
265
|
+
> pubkey for `external`). Sessions written by ≤0.8.x are migrated transparently
|
|
266
|
+
> on read (`publicKey` → `address`, `type: 'custodial'` → `'internal'`).
|
|
267
|
+
|
|
254
268
|
PII (`mail`, `first_name`, `last_name`, `avatar`, `providers.*`) lives **in memory only** on the `PollarClient` instance
|
|
255
269
|
and is fetched after auth. Reach it via:
|
|
256
270
|
|
|
@@ -509,7 +523,7 @@ import { FreighterAdapter, AlbedoAdapter } from '@pollar/core';
|
|
|
509
523
|
const adapter = new FreighterAdapter();
|
|
510
524
|
const available = await adapter.isAvailable();
|
|
511
525
|
if (available) {
|
|
512
|
-
const {
|
|
526
|
+
const { address } = await adapter.connect();
|
|
513
527
|
}
|
|
514
528
|
```
|
|
515
529
|
|
package/dist/index.js
CHANGED
|
@@ -1173,7 +1173,7 @@ function defaultStorage(options = {}) {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
|
|
1175
1175
|
// src/version.ts
|
|
1176
|
-
var POLLAR_CORE_VERSION = "0.9.0
|
|
1176
|
+
var POLLAR_CORE_VERSION = "0.9.0" ;
|
|
1177
1177
|
|
|
1178
1178
|
// src/visibility/noop.ts
|
|
1179
1179
|
function createNoopVisibilityProvider() {
|