@dynamic-labs/eclipse 4.7.1 → 4.8.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/CHANGELOG.md CHANGED
@@ -1,4 +1,30 @@
1
1
 
2
+ ## [4.8.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.7.2...v4.8.0) (2025-02-25)
3
+
4
+
5
+ ### Features
6
+
7
+ * add support for network switching for SOL wallets ([#8095](https://github.com/dynamic-labs/dynamic-auth/issues/8095)) ([8997b39](https://github.com/dynamic-labs/dynamic-auth/commit/8997b399e1e5cd294aad8b719d39928eed5e911d))
8
+ * add support for solNetworks override ([#8138](https://github.com/dynamic-labs/dynamic-auth/issues/8138)) ([8c3f374](https://github.com/dynamic-labs/dynamic-auth/commit/8c3f374a9b2b451f984aed98e7ce506552e2a6c5))
9
+ * **react-native:** add account abstraction multi-chain ([#8132](https://github.com/dynamic-labs/dynamic-auth/issues/8132)) ([c64a26e](https://github.com/dynamic-labs/dynamic-auth/commit/c64a26e16943d913edf4683084f59592a9aeedfc))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * ensure zero dev network cache use project id ([#8133](https://github.com/dynamic-labs/dynamic-auth/issues/8133)) ([408c4ed](https://github.com/dynamic-labs/dynamic-auth/commit/408c4ed764a623b6d870cd24973320e5ca4a74c7))
15
+
16
+ ### [4.7.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.7.1...v4.7.2) (2025-02-22)
17
+
18
+ ### Features
19
+
20
+ * add bitcoin rune support for token balances ([95640](https://github.com/dynamic-labs/dynamic-auth/commit/956403dc0e427e9a99c62e189fc59de0d8b11e1b))
21
+
22
+ ### Bug Fixes
23
+
24
+ * hidrate the user state when a valid token is present ([#8116](https://github.com/dynamic-labs/dynamic-auth/issues/8116)) ([dad5837](https://github.com/dynamic-labs/dynamic-auth/commit/dad58373c4c2fe0c870d918474d6a1f541eae659))
25
+ * prompt to re-establish wallet connect session for secondary wallets ([#8111](https://github.com/dynamic-labs/dynamic-auth/issues/8111)) ([c713ead](https://github.com/dynamic-labs/dynamic-auth/commit/c713ead0611c658aea3d7aca534c2ba2c3cab584))
26
+ * upgrade elliptic ([#8106](https://github.com/dynamic-labs/dynamic-auth/issues/8106)) ([359c873](https://github.com/dynamic-labs/dynamic-auth/commit/359c8733fdd8c0510c2f0018ee0fefa337847aae))
27
+
2
28
  ### [4.7.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.7.0...v4.7.1) (2025-02-20)
3
29
 
4
30
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.7.1";
6
+ var version = "4.8.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.7.1";
2
+ var version = "4.8.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/eclipse",
3
- "version": "4.7.1",
3
+ "version": "4.8.0",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -20,15 +20,15 @@
20
20
  "dependencies": {
21
21
  "@solana/web3.js": "1.92.1",
22
22
  "@wallet-standard/base": "1.0.1",
23
- "@dynamic-labs/assert-package-version": "4.7.1",
24
- "@dynamic-labs/rpc-providers": "4.7.1",
23
+ "@dynamic-labs/assert-package-version": "4.8.0",
24
+ "@dynamic-labs/rpc-providers": "4.8.0",
25
25
  "@dynamic-labs/sdk-api-core": "0.0.628",
26
- "@dynamic-labs/solana": "4.7.1",
27
- "@dynamic-labs/solana-core": "4.7.1",
28
- "@dynamic-labs/types": "4.7.1",
29
- "@dynamic-labs/utils": "4.7.1",
30
- "@dynamic-labs/wallet-book": "4.7.1",
31
- "@dynamic-labs/wallet-connector-core": "4.7.1"
26
+ "@dynamic-labs/solana": "4.8.0",
27
+ "@dynamic-labs/solana-core": "4.8.0",
28
+ "@dynamic-labs/types": "4.8.0",
29
+ "@dynamic-labs/utils": "4.8.0",
30
+ "@dynamic-labs/wallet-book": "4.8.0",
31
+ "@dynamic-labs/wallet-connector-core": "4.8.0"
32
32
  },
33
33
  "peerDependencies": {}
34
34
  }
@@ -12,6 +12,9 @@ var Backpack = require('./injected/Backpack/Backpack.cjs');
12
12
  var OKX = require('./injected/OKX/OKX.cjs');
13
13
  var Nightly = require('./injected/Nightly/Nightly.cjs');
14
14
 
15
+ /**
16
+ * @deprecated Eclipse has been merged into `SolanaWalletConnectors`. Please use that instead.
17
+ */
15
18
  const EclipseWalletConnectors = () => [Backpack.Backpack, OKX.OKX, Nightly.Nightly];
16
19
 
17
20
  exports.EclipseWalletConnectors = EclipseWalletConnectors;
@@ -1,2 +1,5 @@
1
1
  import { Backpack } from './injected';
2
+ /**
3
+ * @deprecated Eclipse has been merged into `SolanaWalletConnectors`. Please use that instead.
4
+ */
2
5
  export declare const EclipseWalletConnectors: () => (typeof Backpack)[];
@@ -8,6 +8,9 @@ import { Backpack } from './injected/Backpack/Backpack.js';
8
8
  import { OKX } from './injected/OKX/OKX.js';
9
9
  import { Nightly } from './injected/Nightly/Nightly.js';
10
10
 
11
+ /**
12
+ * @deprecated Eclipse has been merged into `SolanaWalletConnectors`. Please use that instead.
13
+ */
11
14
  const EclipseWalletConnectors = () => [Backpack, OKX, Nightly];
12
15
 
13
16
  export { EclipseWalletConnectors };
@@ -7,6 +7,8 @@ var EclipseWalletConnectors = require('../EclipseWalletConnectors.cjs');
7
7
 
8
8
  /**
9
9
  * Allows passing in Solana connection configuration to all wallet connectors.
10
+ *
11
+ * @deprecated Eclipse has been merged into `SolanaWalletConnectorsWithConfig`. Please use that instead.
10
12
  */
11
13
  const EclipseWalletConnectorsWithConfig = (connectionConfig) => {
12
14
  // Idea here is to ensure that all wallet connectors are constructed with
@@ -2,5 +2,7 @@ import { WalletConnectorConstructor } from '@dynamic-labs/wallet-connector-core'
2
2
  import { SolanaConnectionConfig } from '@dynamic-labs/solana-core';
3
3
  /**
4
4
  * Allows passing in Solana connection configuration to all wallet connectors.
5
+ *
6
+ * @deprecated Eclipse has been merged into `SolanaWalletConnectorsWithConfig`. Please use that instead.
5
7
  */
6
8
  export declare const EclipseWalletConnectorsWithConfig: (connectionConfig: SolanaConnectionConfig) => () => WalletConnectorConstructor[];
@@ -3,6 +3,8 @@ import { EclipseWalletConnectors } from '../EclipseWalletConnectors.js';
3
3
 
4
4
  /**
5
5
  * Allows passing in Solana connection configuration to all wallet connectors.
6
+ *
7
+ * @deprecated Eclipse has been merged into `SolanaWalletConnectorsWithConfig`. Please use that instead.
6
8
  */
7
9
  const EclipseWalletConnectorsWithConfig = (connectionConfig) => {
8
10
  // Idea here is to ensure that all wallet connectors are constructed with
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var solana = require('@dynamic-labs/solana');
7
7
  var InjectedWalletBase = require('../InjectedWalletBase/InjectedWalletBase.cjs');
8
- var constants = require('../../constants.cjs');
9
8
 
10
9
  const getNightlyWallet = () => solana.getWalletStandardWallets().find((wallet) => wallet.name === 'Nightly' && solana.hasAllWalletStandardRequiredFeatures(wallet));
11
10
  class Nightly extends InjectedWalletBase.InjectedWalletBase {
@@ -16,11 +15,6 @@ class Nightly extends InjectedWalletBase.InjectedWalletBase {
16
15
  this._wallet = getNightlyWallet();
17
16
  if (this._wallet) {
18
17
  this._provider = solana.createSolanaSignerFromWalletStandard({
19
- genesisHashesMap: {
20
- [constants.eclipseMainnetHash]: 'mainnet',
21
- [constants.eclipseTestnetHash]: 'testnet',
22
- },
23
- network: this.eclipseNetworks[0],
24
18
  wallet: this._wallet,
25
19
  walletConnector: this,
26
20
  });
@@ -1,7 +1,6 @@
1
1
  'use client'
2
2
  import { createSolanaSignerFromWalletStandard, getWalletStandardWallets, hasAllWalletStandardRequiredFeatures } from '@dynamic-labs/solana';
3
3
  import { InjectedWalletBase } from '../InjectedWalletBase/InjectedWalletBase.js';
4
- import { eclipseMainnetHash, eclipseTestnetHash } from '../../constants.js';
5
4
 
6
5
  const getNightlyWallet = () => getWalletStandardWallets().find((wallet) => wallet.name === 'Nightly' && hasAllWalletStandardRequiredFeatures(wallet));
7
6
  class Nightly extends InjectedWalletBase {
@@ -12,11 +11,6 @@ class Nightly extends InjectedWalletBase {
12
11
  this._wallet = getNightlyWallet();
13
12
  if (this._wallet) {
14
13
  this._provider = createSolanaSignerFromWalletStandard({
15
- genesisHashesMap: {
16
- [eclipseMainnetHash]: 'mainnet',
17
- [eclipseTestnetHash]: 'testnet',
18
- },
19
- network: this.eclipseNetworks[0],
20
14
  wallet: this._wallet,
21
15
  walletConnector: this,
22
16
  });