diff --git a/README.md b/README.md index f4d6fcecd..01fc31ed2 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,11 @@

- + Logo

# Magic JavaScript SDK -[![](https://app.circleci.com/pipelines/github/magiclabs/magic-js.svg?style=shield)](https://app.circleci.com/pipelines/github/magiclabs/magic-js) - > The Magic JavaScript SDK empowers developers to provide frictionless web3 onboarding to their end-users while preserving their security and privacy using non-custodial wallets.

@@ -54,16 +52,60 @@ Then, you can start authenticating users with _just one method!_ Magic works acr ```ts import { Magic } from 'magic-sdk'; -import Web3 from 'web3'; +import { ethers } from 'ethers'; const magic = new Magic('YOUR_API_KEY', { - network: 'goerli', + network: 'sepolia', }); -const web3 = new Web3(magic.rpcProvider); +const provider = new ethers.BrowserProvider(magic.rpcProvider); const accounts = await magic.wallet.connectWithUI(); ``` +With network switching: + +> Network switching is available on web SDK version 31.0.0+ and React Native SDKs version 32.0.0+ + +```ts +import { Magic } from 'magic-sdk'; +import { SolanaExtension } from '@magic-ext/solana'; +import { EVMExtension } from '@magic-ext/evm'; +import { ethers } from 'ethers'; + +const customPolygonOptions = { + rpcUrl: 'https://polygon-rpc.com/', // Polygon RPC URL + chainId: 137, // Polygon chain id + default: true, // Set as default network +}; + +const customOptimismOptions = { + rpcUrl: 'https://mainnet.optimism.io', + chainId: 10, +}; + +const magic = new Magic(API_KEY, { + extensions: [ + new EVMExtension([customPolygonOptions, customOptimismOptions]), + new SolanaExtension({ + rpcUrl: 'https://api.devnet.solana.com', + }), + ], +}); + +const provider = new ethers.BrowserProvider(magic.rpcProvider); + +const network = await provider.getNetwork(); +console.log(network.chainId); // => 137 + +magic.evm.switchChain(10); + +const network = await provider.getNetwork(); +console.log(network.chainId); // => 10 + +const solanaPublicAddress = await magic.solana.getPublicAddress(); +console.log(solanaPublicAddress); // => "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" +``` + ## ๐Ÿ“ฆ Package Ecosystem ### Entry points @@ -84,13 +126,11 @@ Extend Magic JS SDK functionality for your use-case through [`@magic-ext/*` pack These are packages Magic JS SDK uses internally to work seamlessly across platforms. -| Package Name | Changelog | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| [`@magic-sdk/types`](https://www.npmjs.com/package/@magic-sdk/types) | [CHANGELOG](./packages/@magic-sdk/types/CHANGELOG.md) | Core typings shared between JavaScript entry-points of Magic SDK. | -| [`@magic-sdk/pnp`](https://www.npmjs.com/package/@magic-sdk/pnp) | [CHANGELOG](./packages/@magic-sdk/pnp/CHANGELOG.md) | A lightweight connector that wraps Magic JS authentication with a beautiful, functional out-of-the-box login form. | -| [`@magic-sdk/provider`](https://www.npmjs.com/package/@magic-sdk/provider) | [CHANGELOG](./packages/@magic-sdk/provider/CHANGELOG.md) | Core business logic shared between JavaScript entry-points of Magic SDK. | -| [`@magic-sdk/commons`](https://www.npmjs.com/package/@magic-sdk/commons) | [CHANGELOG](./packages/@magic-sdk/commons/CHANGELOG.md) | Exposes a listing of common public APIs from `@magic-sdk/provider` and `@magic-sdk/types` to the platform-specific entry points. | -| [`@magic-sdk/types`](https://www.npmjs.com/package/@magic-sdk/types) | [CHANGELOG](./packages/@magic-sdk/types/CHANGELOG.md) | Core typings for Magic SDK packages. | +| Package Name | Changelog | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------ | +| [`@magic-sdk/types`](https://www.npmjs.com/package/@magic-sdk/types) | [CHANGELOG](./packages/@magic-sdk/types/CHANGELOG.md) | Core typings shared between JavaScript entry-points of Magic SDK. | +| [`@magic-sdk/provider`](https://www.npmjs.com/package/@magic-sdk/provider) | [CHANGELOG](./packages/@magic-sdk/provider/CHANGELOG.md) | Core business logic shared between JavaScript entry-points of Magic SDK. | +| [`@magic-sdk/types`](https://www.npmjs.com/package/@magic-sdk/types) | [CHANGELOG](./packages/@magic-sdk/types/CHANGELOG.md) | Core typings for Magic SDK packages. | ## ๐Ÿšฆ Testing diff --git a/packages/@magic-ext/algorand/package.json b/packages/@magic-ext/algorand/package.json index 9bb02b544..f301b943c 100644 --- a/packages/@magic-ext/algorand/package.json +++ b/packages/@magic-ext/algorand/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/algorand/src/index.ts b/packages/@magic-ext/algorand/src/index.ts index b166a73a6..3a60a50f9 100644 --- a/packages/@magic-ext/algorand/src/index.ts +++ b/packages/@magic-ext/algorand/src/index.ts @@ -1,17 +1,14 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; import { AlgorandConfig, AlgorandPayloadMethod } from './types'; -export class AlgorandExtension extends Extension.Internal<'algod', any> { +export class AlgorandExtension extends MultichainExtension<'algod'> { name = 'algod' as const; - config: any = {}; constructor(public algorandConfig: AlgorandConfig) { - super(); - - this.config = { + super({ rpcUrl: algorandConfig.rpcUrl, chainType: 'ALGOD', - }; + }); } public async signTransaction(txn: any) { diff --git a/packages/@magic-ext/aptos/package.json b/packages/@magic-ext/aptos/package.json index b545ad5a9..8ca11dc18 100644 --- a/packages/@magic-ext/aptos/package.json +++ b/packages/@magic-ext/aptos/package.json @@ -23,13 +23,11 @@ }, "externals": { "include": [ - "@magic-sdk/commons", "@magic-sdk/provider" ] }, "devDependencies": { "@aptos-labs/wallet-adapter-core": "^2.2.0", - "@magic-sdk/commons": "^26.0.0", "@magic-sdk/provider": "^30.0.0", "aptos": "^1.8.5" }, diff --git a/packages/@magic-ext/aptos/src/index.ts b/packages/@magic-ext/aptos/src/index.ts index 627727d9f..0f3139588 100644 --- a/packages/@magic-ext/aptos/src/index.ts +++ b/packages/@magic-ext/aptos/src/index.ts @@ -1,4 +1,4 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; // @ts-ignore import { AptosClient, BCS, TxnBuilderTypes, Types, getAddressFromAccountOrAddress } from 'aptos'; @@ -7,20 +7,15 @@ import { AptosConfig, AptosPayloadMethod } from './type'; import { APTOS_PAYLOAD_TYPE } from './constants'; export { MagicAptosWallet } from './MagicAptosWallet'; -export class AptosExtension extends Extension.Internal<'aptos', any> { +export class AptosExtension extends MultichainExtension<'aptos'> { name = 'aptos' as const; - config: any = {}; constructor(public aptosConfig: AptosConfig) { - super(); - - this.config = { - rpcUrl: '', + super({ + rpcUrl: aptosConfig.nodeUrl, chainType: 'APTOS', - options: { - nodeUrl: aptosConfig.nodeUrl, - }, - }; + options: { nodeUrl: aptosConfig.nodeUrl }, + }); } private serializeRawTransaction = (rawTransaction: TxnBuilderTypes.RawTransaction) => { diff --git a/packages/@magic-ext/avalanche/package.json b/packages/@magic-ext/avalanche/package.json index ed3d92ef1..59347470a 100644 --- a/packages/@magic-ext/avalanche/package.json +++ b/packages/@magic-ext/avalanche/package.json @@ -12,7 +12,7 @@ "dist" ], "target": "neutral", - "cdnGlobalName": "MagicSolanaExtension", + "cdnGlobalName": "MagicAvalancheExtension", "main": "./dist/cjs/index.js", "module": "./dist/es/index.js", "types": "./dist/types/index.d.ts", @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/avalanche/src/index.ts b/packages/@magic-ext/avalanche/src/index.ts index e9f0a0a28..8e21bd8ad 100644 --- a/packages/@magic-ext/avalanche/src/index.ts +++ b/packages/@magic-ext/avalanche/src/index.ts @@ -1,21 +1,18 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; import { AvaxConfig } from './types'; -export class AvalancheExtension extends Extension.Internal<'avax', any> { +export class AvalancheExtension extends MultichainExtension<'avax'> { name = 'avax' as const; - config: any = {}; constructor(public avalancheConfig: AvaxConfig) { - super(); - - this.config = { + super({ rpcUrl: avalancheConfig.rpcUrl, chainType: 'AVAX', options: { chainId: avalancheConfig.chainId, networkId: avalancheConfig.networkId, }, - }; + }); } public signTransaction = ( diff --git a/packages/@magic-ext/bitcoin/package.json b/packages/@magic-ext/bitcoin/package.json index eee818c15..3d34ab787 100644 --- a/packages/@magic-ext/bitcoin/package.json +++ b/packages/@magic-ext/bitcoin/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/bitcoin/src/index.ts b/packages/@magic-ext/bitcoin/src/index.ts index fd0e09586..0f7360c31 100644 --- a/packages/@magic-ext/bitcoin/src/index.ts +++ b/packages/@magic-ext/bitcoin/src/index.ts @@ -1,20 +1,17 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; import { BitcoinConfig, BitcoinPayloadMethod } from './types'; -export class BitcoinExtension extends Extension.Internal<'bitcoin', any> { +export class BitcoinExtension extends MultichainExtension<'bitcoin'> { name = 'bitcoin' as const; - config: any = {}; constructor(public bitcoinConfig: BitcoinConfig) { - super(); - - this.config = { + super({ rpcUrl: bitcoinConfig.rpcUrl, chainType: 'BITCOIN', options: { network: bitcoinConfig.network, }, - }; + }); } public async signTransaction(txn: string, inputIndex: number) { diff --git a/packages/@magic-ext/conflux/package.json b/packages/@magic-ext/conflux/package.json index 46b4d97cc..33bd89606 100644 --- a/packages/@magic-ext/conflux/package.json +++ b/packages/@magic-ext/conflux/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/conflux/src/index.ts b/packages/@magic-ext/conflux/src/index.ts index 86cf2ac2f..988f3d843 100644 --- a/packages/@magic-ext/conflux/src/index.ts +++ b/packages/@magic-ext/conflux/src/index.ts @@ -1,20 +1,17 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; import { ConfluxPayloadMethod, ConfluxConfig } from './types'; -export class ConfluxExtension extends Extension.Internal<'conflux', any> { +export class ConfluxExtension extends MultichainExtension<'conflux'> { name = 'conflux' as const; - config: any = {}; constructor(public confluxConfig: ConfluxConfig) { - super(); - - this.config = { + super({ chainType: 'CONFLUX', options: { rpcUrl: confluxConfig.rpcUrl, networkId: confluxConfig.networkId, }, - }; + }); } public async sendTransaction(txObject: any) { diff --git a/packages/@magic-ext/cosmos/package.json b/packages/@magic-ext/cosmos/package.json index ff5e65eeb..7c1595444 100644 --- a/packages/@magic-ext/cosmos/package.json +++ b/packages/@magic-ext/cosmos/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/cosmos/src/index.ts b/packages/@magic-ext/cosmos/src/index.ts index 87ab57882..95287746a 100644 --- a/packages/@magic-ext/cosmos/src/index.ts +++ b/packages/@magic-ext/cosmos/src/index.ts @@ -1,20 +1,17 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; import { CosmosConfig, CosmosPayloadMethod } from './type'; -export class CosmosExtension extends Extension.Internal<'cosmos', any> { +export class CosmosExtension extends MultichainExtension<'cosmos'> { name = 'cosmos' as const; - config: any = {}; constructor(public cosmosConfig: CosmosConfig) { - super(); - - this.config = { + super({ rpcUrl: cosmosConfig.rpcUrl, chainType: 'COSMOS', options: { chain: cosmosConfig.chain, }, - }; + }); } public signAndBroadcast = async (message: any, fee: any) => { diff --git a/packages/@magic-ext/ed25519/package.json b/packages/@magic-ext/ed25519/package.json index 8b0fb5ee4..3558a8487 100644 --- a/packages/@magic-ext/ed25519/package.json +++ b/packages/@magic-ext/ed25519/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/ed25519/src/index.ts b/packages/@magic-ext/ed25519/src/index.ts index 3d45b230c..ff575670e 100644 --- a/packages/@magic-ext/ed25519/src/index.ts +++ b/packages/@magic-ext/ed25519/src/index.ts @@ -1,4 +1,4 @@ -import { Extension } from '@magic-sdk/commons'; +import { Extension } from '@magic-sdk/provider'; import { Ed25519PayloadMethod } from './types'; export class Ed25519Extension extends Extension.Internal<'ed', any> { diff --git a/packages/@magic-sdk/commons/.lintstagedrc.yml b/packages/@magic-ext/evm/.lintstagedrc.yml similarity index 100% rename from packages/@magic-sdk/commons/.lintstagedrc.yml rename to packages/@magic-ext/evm/.lintstagedrc.yml diff --git a/packages/@magic-sdk/commons/.prettierrc.js b/packages/@magic-ext/evm/.prettierrc.js similarity index 100% rename from packages/@magic-sdk/commons/.prettierrc.js rename to packages/@magic-ext/evm/.prettierrc.js diff --git a/packages/@magic-ext/evm/CHANGELOG.md b/packages/@magic-ext/evm/CHANGELOG.md new file mode 100644 index 000000000..e69de29bb diff --git a/packages/@magic-sdk/commons/LICENSE b/packages/@magic-ext/evm/LICENSE similarity index 100% rename from packages/@magic-sdk/commons/LICENSE rename to packages/@magic-ext/evm/LICENSE diff --git a/packages/@magic-sdk/commons/eslint.config.mjs b/packages/@magic-ext/evm/eslint.config.mjs similarity index 100% rename from packages/@magic-sdk/commons/eslint.config.mjs rename to packages/@magic-ext/evm/eslint.config.mjs diff --git a/packages/@magic-ext/evm/package.json b/packages/@magic-ext/evm/package.json new file mode 100644 index 000000000..576e7988b --- /dev/null +++ b/packages/@magic-ext/evm/package.json @@ -0,0 +1,35 @@ +{ + "name": "@magic-ext/evm", + "version": "0.0.0", + "description": "magic evm extension", + "author": "Magic (https://magic.link/)", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/magiclabs/magic-js" + }, + "files": [ + "dist" + ], + "target": "neutral", + "cdnGlobalName": "MagicEVMExtension", + "main": "./dist/cjs/index.js", + "module": "./dist/es/index.js", + "types": "./dist/types/index.d.ts", + "jsdelivr": "./dist/extension.js", + "exports": { + "import": "./dist/es/index.mjs", + "types": "./dist/types/index.d.ts", + "require": "./dist/cjs/index.js" + }, + "externals": { + "include": [ + "@magic-sdk/provider", + "@magic-sdk/types" + ] + }, + "devDependencies": { + "@magic-sdk/provider": "^29.5.0", + "@magic-sdk/types": "^24.22.0" + } +} diff --git a/packages/@magic-ext/evm/src/index.cdn.ts b/packages/@magic-ext/evm/src/index.cdn.ts new file mode 100644 index 000000000..6b286f29e --- /dev/null +++ b/packages/@magic-ext/evm/src/index.cdn.ts @@ -0,0 +1,3 @@ +import { EVMExtension } from './index'; + +export default EVMExtension; diff --git a/packages/@magic-ext/evm/src/index.native.ts b/packages/@magic-ext/evm/src/index.native.ts new file mode 100644 index 000000000..ea465c2a3 --- /dev/null +++ b/packages/@magic-ext/evm/src/index.native.ts @@ -0,0 +1 @@ +export * from './index'; diff --git a/packages/@magic-ext/evm/src/index.ts b/packages/@magic-ext/evm/src/index.ts new file mode 100644 index 000000000..7ace77e25 --- /dev/null +++ b/packages/@magic-ext/evm/src/index.ts @@ -0,0 +1,28 @@ +import { Extension } from '@magic-sdk/provider'; +import { EVMNetworkConfig, EVMPayloadMethod } from './types'; + +export class EVMExtension extends Extension.Internal<'evm', any> { + name = 'evm' as const; + config: any = {}; + + constructor(public evmConfig: EVMNetworkConfig[]) { + super(); + + this.config = { + networks: evmConfig, + }; + } + + public switchChain = (chainId: number) => { + return this.request<{ + network: + | string + | { + rpcUrl: string; + chainId?: number; + chainType?: string; + } + | undefined; + }>(this.utils.createJsonRpcRequestPayload(EVMPayloadMethod.switchChain, [{ chainId }])); + }; +} diff --git a/packages/@magic-ext/evm/src/types.ts b/packages/@magic-ext/evm/src/types.ts new file mode 100644 index 000000000..6eb255cd3 --- /dev/null +++ b/packages/@magic-ext/evm/src/types.ts @@ -0,0 +1,9 @@ +import { CustomNodeConfiguration } from '@magic-sdk/types'; + +export enum EVMPayloadMethod { + switchChain = 'evm_switchChain', +} + +export interface EVMNetworkConfig extends CustomNodeConfiguration { + default?: boolean; +} diff --git a/packages/@magic-sdk/commons/tsconfig.json b/packages/@magic-ext/evm/tsconfig.json similarity index 98% rename from packages/@magic-sdk/commons/tsconfig.json rename to packages/@magic-ext/evm/tsconfig.json index d426fac03..c268bce54 100644 --- a/packages/@magic-sdk/commons/tsconfig.json +++ b/packages/@magic-ext/evm/tsconfig.json @@ -1,3 +1,4 @@ { "extends": "../../../tsconfig.settings.json", } + diff --git a/packages/@magic-ext/farcaster/package.json b/packages/@magic-ext/farcaster/package.json index e46e2df3d..8b6e89067 100644 --- a/packages/@magic-ext/farcaster/package.json +++ b/packages/@magic-ext/farcaster/package.json @@ -24,10 +24,12 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider", + "@magic-sdk/types" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0", + "@magic-sdk/types": "^25.0.0" } } diff --git a/packages/@magic-ext/farcaster/src/index.ts b/packages/@magic-ext/farcaster/src/index.ts index 84e857d07..3032171e0 100644 --- a/packages/@magic-ext/farcaster/src/index.ts +++ b/packages/@magic-ext/farcaster/src/index.ts @@ -1,4 +1,5 @@ -import {Extension, FarcasterLoginEventEmit} from '@magic-sdk/commons'; +import { Extension } from '@magic-sdk/provider'; +import { FarcasterLoginEventEmit } from '@magic-sdk/types'; import { FarcasterPayloadMethod } from './types'; import { isMainFrame, isMobile } from './utils'; diff --git a/packages/@magic-ext/flow/package.json b/packages/@magic-ext/flow/package.json index adf8f6497..3e6760839 100644 --- a/packages/@magic-ext/flow/package.json +++ b/packages/@magic-ext/flow/package.json @@ -24,11 +24,11 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0", + "@magic-sdk/provider": "^30.0.0", "@onflow/fcl": "^1.4.1", "@onflow/types": "^1.1.0" }, diff --git a/packages/@magic-ext/flow/src/index.ts b/packages/@magic-ext/flow/src/index.ts index c4452cc72..087ffa827 100644 --- a/packages/@magic-ext/flow/src/index.ts +++ b/packages/@magic-ext/flow/src/index.ts @@ -1,21 +1,18 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; // @ts-ignore import * as fcl from '@onflow/fcl'; import { FlowConfig, FlowPayloadMethod } from './type'; -export class FlowExtension extends Extension.Internal<'flow', any> { +export class FlowExtension extends MultichainExtension<'flow'> { name = 'flow' as const; - config: any = {}; constructor(public flowConfig: FlowConfig) { - super(); - - this.config = { + super({ rpcUrl: flowConfig.rpcUrl, chainType: 'FLOW', network: flowConfig.network, - }; + }); } getAccount = () => { diff --git a/packages/@magic-ext/gdkms/package.json b/packages/@magic-ext/gdkms/package.json index 0d0195c30..e62288ebf 100644 --- a/packages/@magic-ext/gdkms/package.json +++ b/packages/@magic-ext/gdkms/package.json @@ -24,12 +24,12 @@ }, "externals": { "include": [ - "@magic-sdk/commons", + "@magic-sdk/provider", "@magic-sdk/types" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0", + "@magic-sdk/provider": "^30.0.0", "@magic-sdk/types": "^25.0.0" } } diff --git a/packages/@magic-ext/gdkms/src/index.ts b/packages/@magic-ext/gdkms/src/index.ts index 77d516e05..3544a3574 100644 --- a/packages/@magic-ext/gdkms/src/index.ts +++ b/packages/@magic-ext/gdkms/src/index.ts @@ -1,4 +1,5 @@ -import { Extension, MagicPayloadMethod } from '@magic-sdk/commons'; +import { Extension } from '@magic-sdk/provider'; +import { MagicPayloadMethod } from '@magic-sdk/types'; export class GDKMSExtension extends Extension.Internal<'gdkms', any> { name = 'gdkms' as const; diff --git a/packages/@magic-ext/harmony/package.json b/packages/@magic-ext/harmony/package.json index 69879ade3..39cb31576 100644 --- a/packages/@magic-ext/harmony/package.json +++ b/packages/@magic-ext/harmony/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/harmony/src/index.ts b/packages/@magic-ext/harmony/src/index.ts index cc74c3dbc..70bccfee5 100644 --- a/packages/@magic-ext/harmony/src/index.ts +++ b/packages/@magic-ext/harmony/src/index.ts @@ -1,20 +1,17 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; import { HarmonyPayloadMethod, HarmonyConfig } from './types'; -export class HarmonyExtension extends Extension.Internal<'harmony', any> { +export class HarmonyExtension extends MultichainExtension<'harmony'> { name = 'harmony' as const; - config: any = {}; constructor(public harmonyConfig: HarmonyConfig) { - super(); - - this.config = { + super({ rpcUrl: harmonyConfig.rpcUrl, chainType: 'HARMONY', options: { chainId: harmonyConfig.chainId, }, - }; + }); } public async sendTransaction(params: any) { diff --git a/packages/@magic-ext/hedera/package.json b/packages/@magic-ext/hedera/package.json index 2433b558c..fd29d9e27 100644 --- a/packages/@magic-ext/hedera/package.json +++ b/packages/@magic-ext/hedera/package.json @@ -24,11 +24,11 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^14.6.0" + "@magic-sdk/provider": "^29.5.0" }, "peerDependencies": { "@hashgraph/sdk": "^2.31.0" diff --git a/packages/@magic-ext/hedera/src/index.ts b/packages/@magic-ext/hedera/src/index.ts index a17acf22f..2875a6a45 100644 --- a/packages/@magic-ext/hedera/src/index.ts +++ b/packages/@magic-ext/hedera/src/index.ts @@ -1,23 +1,18 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; import { HederaConfig, HederaPayloadMethod } from './types'; export * from './utils'; -export class HederaExtension extends Extension.Internal<'hedera', any> { +export class HederaExtension extends MultichainExtension<'hedera'> { name = 'hedera' as const; - config: any = {}; network: string; constructor(public hederaConfig: HederaConfig) { - super(); - - this.network = hederaConfig.network; - this.config = { + super({ chainType: 'HEDERA', - options: { - network: hederaConfig.network, - }, - }; + options: { network: hederaConfig.network }, + }); + this.network = hederaConfig.network; } public async getPublicKey() { diff --git a/packages/@magic-ext/icon/package.json b/packages/@magic-ext/icon/package.json index 247dca405..aec1f6fa6 100644 --- a/packages/@magic-ext/icon/package.json +++ b/packages/@magic-ext/icon/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/icon/src/index.ts b/packages/@magic-ext/icon/src/index.ts index 334a682c5..b48c38a47 100644 --- a/packages/@magic-ext/icon/src/index.ts +++ b/packages/@magic-ext/icon/src/index.ts @@ -1,18 +1,14 @@ -import { Extension } from '@magic-sdk/commons'; -import { IconConfig, ConfigType } from './type'; +import { MultichainExtension } from '@magic-sdk/provider'; +import { IconConfig } from './type'; -export class IconExtension extends Extension.Internal<'icon', IconConfig> { +export class IconExtension extends MultichainExtension<'icon'> { name = 'icon' as const; - config: ConfigType; - constructor(public iconConfig: IconConfig) { - super(); - - this.config = { + super({ rpcUrl: iconConfig.rpcUrl, chainType: 'ICON', - }; + }); } public sendTransaction = (txObj: any): Promise => { diff --git a/packages/@magic-ext/kadena/package.json b/packages/@magic-ext/kadena/package.json index cc620f3d4..afc47921c 100644 --- a/packages/@magic-ext/kadena/package.json +++ b/packages/@magic-ext/kadena/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/kadena/src/index.ts b/packages/@magic-ext/kadena/src/index.ts index 13ee4d6ce..695147045 100644 --- a/packages/@magic-ext/kadena/src/index.ts +++ b/packages/@magic-ext/kadena/src/index.ts @@ -1,4 +1,4 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; import { UnsignedCommand, KadenaConfig, @@ -10,36 +10,35 @@ import { OptimalTransactionsAccount, } from './types'; -export class KadenaExtension extends Extension.Internal<'kadena'> { +export class KadenaExtension extends MultichainExtension<'kadena'> { name = 'kadena' as const; - config = {}; constructor(public kadenaConfig: KadenaConfig) { - super(); - - this.config = { - chainType: 'KADENA', + super({ rpcUrl: kadenaConfig.rpcUrl, + chainType: 'KADENA', chainId: kadenaConfig.chainId, options: { networkId: kadenaConfig.networkId, createAccountsOnChain: Boolean(kadenaConfig.createAccountsOnChain), }, - }; + }); } public signTransaction(hash: string): Promise { - return this.request(this.utils.createJsonRpcRequestPayload(KadenaPayloadMethod.KadenaSignTransaction, [{ hash }])); + return this.request( + this.utils.createJsonRpcRequestPayload(KadenaPayloadMethod.KadenaSignTransaction, [{ hash }]), + ); } public async signTransactionWithSpireKey( transaction: UnsignedCommand, - accounts?: OptimalTransactionsAccount[] + accounts?: OptimalTransactionsAccount[], ): Promise { const signedTransaction = await this.request( this.utils.createJsonRpcRequestPayload(KadenaPayloadMethod.KadenaSignTransactionWithSpireKey, [ { transaction, accounts: accounts || undefined }, - ]) + ]), ); return signedTransaction; } diff --git a/packages/@magic-ext/near/package.json b/packages/@magic-ext/near/package.json index a051d3121..a2930e049 100644 --- a/packages/@magic-ext/near/package.json +++ b/packages/@magic-ext/near/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/near/src/index.ts b/packages/@magic-ext/near/src/index.ts index 82c878eb3..016b002ac 100644 --- a/packages/@magic-ext/near/src/index.ts +++ b/packages/@magic-ext/near/src/index.ts @@ -1,17 +1,14 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; import { NearPayloadMethod, NearConfig } from './types'; -export class NearExtension extends Extension.Internal<'near', any> { +export class NearExtension extends MultichainExtension<'near'> { name = 'near' as const; - config: any = {}; constructor(public nearConfig: NearConfig) { - super(); - - this.config = { + super({ rpcUrl: nearConfig.rpcUrl, chainType: 'NEAR', - }; + }); } public async signTransaction(params: any) { diff --git a/packages/@magic-ext/oauth2/package.json b/packages/@magic-ext/oauth2/package.json index 0835a5fe3..43ed7f1df 100644 --- a/packages/@magic-ext/oauth2/package.json +++ b/packages/@magic-ext/oauth2/package.json @@ -24,7 +24,6 @@ }, "externals": { "include": [ - "@magic-sdk/commons", "@magic-sdk/provider" ] }, @@ -32,7 +31,7 @@ "crypto-js": "^4.2.0" }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0", + "@magic-sdk/provider": "^30.0.0", "@types/crypto-js": "4.2.0" } } diff --git a/packages/@magic-ext/oauth2/src/index.ts b/packages/@magic-ext/oauth2/src/index.ts index 841c5c27f..ebd912402 100644 --- a/packages/@magic-ext/oauth2/src/index.ts +++ b/packages/@magic-ext/oauth2/src/index.ts @@ -1,4 +1,4 @@ -import { Extension } from '@magic-sdk/commons'; +import { Extension } from '@magic-sdk/provider'; import { OAuthErrorData, OAuthRedirectError, diff --git a/packages/@magic-ext/oidc/package.json b/packages/@magic-ext/oidc/package.json index 3d9314f36..250395ff6 100644 --- a/packages/@magic-ext/oidc/package.json +++ b/packages/@magic-ext/oidc/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/oidc/src/index.ts b/packages/@magic-ext/oidc/src/index.ts index c2949236d..a6ab0201e 100644 --- a/packages/@magic-ext/oidc/src/index.ts +++ b/packages/@magic-ext/oidc/src/index.ts @@ -1,4 +1,4 @@ -import { Extension } from '@magic-sdk/commons'; +import { Extension } from '@magic-sdk/provider'; import { MagicOpenIdConnectPayloadMethod, LoginWithOpenIdParams } from './types'; export class OpenIdExtension extends Extension.Internal<'openid', any> { diff --git a/packages/@magic-ext/polkadot/package.json b/packages/@magic-ext/polkadot/package.json index df23cdba0..26819d7d6 100644 --- a/packages/@magic-ext/polkadot/package.json +++ b/packages/@magic-ext/polkadot/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/polkadot/src/index.ts b/packages/@magic-ext/polkadot/src/index.ts index 65a8d4103..252afb649 100644 --- a/packages/@magic-ext/polkadot/src/index.ts +++ b/packages/@magic-ext/polkadot/src/index.ts @@ -1,18 +1,14 @@ -import { Extension } from '@magic-sdk/commons'; -import { PolkadotConfig, ConfigType } from './type'; +import { MultichainExtension } from '@magic-sdk/provider'; +import { PolkadotConfig } from './type'; -export class PolkadotExtension extends Extension.Internal<'polkadot', PolkadotConfig> { +export class PolkadotExtension extends MultichainExtension<'polkadot'> { name = 'polkadot' as const; - config: ConfigType; - constructor(public polkadotConfig: PolkadotConfig) { - super(); - - this.config = { + super({ rpcUrl: polkadotConfig.rpcUrl, chainType: 'POLKADOT', - }; + }); } public sendTransaction = (to: string, value: number): Promise => { diff --git a/packages/@magic-ext/solana/package.json b/packages/@magic-ext/solana/package.json index df130c9ac..052e1ea37 100644 --- a/packages/@magic-ext/solana/package.json +++ b/packages/@magic-ext/solana/package.json @@ -24,11 +24,11 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" }, "dependencies": { "@solana/web3.js": "^1.87.2" diff --git a/packages/@magic-ext/solana/src/index.ts b/packages/@magic-ext/solana/src/index.ts index db39be6aa..100836ba7 100644 --- a/packages/@magic-ext/solana/src/index.ts +++ b/packages/@magic-ext/solana/src/index.ts @@ -1,20 +1,16 @@ -import { Extension } from '@magic-sdk/commons'; - +import { MultichainExtension } from '@magic-sdk/provider'; import { SerializeConfig, Transaction, VersionedTransaction } from '@solana/web3.js'; import { SolanaConfig } from './type'; import { SOLANA_PAYLOAD_METHODS } from './constants'; -export class SolanaExtension extends Extension.Internal<'solana', any> { +export class SolanaExtension extends MultichainExtension<'solana'> { name = 'solana' as const; - config: any = {}; constructor(public solanaConfig: SolanaConfig) { - super(); - - this.config = { + super({ rpcUrl: solanaConfig.rpcUrl, chainType: 'SOLANA', - }; + }); } public signTransaction = (transaction: Transaction | VersionedTransaction, serializeConfig?: SerializeConfig) => { diff --git a/packages/@magic-ext/sui/package.json b/packages/@magic-ext/sui/package.json index 3a51a3db1..f0b432568 100644 --- a/packages/@magic-ext/sui/package.json +++ b/packages/@magic-ext/sui/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/sui/src/index.ts b/packages/@magic-ext/sui/src/index.ts index 6141cab5c..d0d6eb1ff 100644 --- a/packages/@magic-ext/sui/src/index.ts +++ b/packages/@magic-ext/sui/src/index.ts @@ -1,16 +1,14 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; import { SuiConfig, SuiPayloadMethod } from './types'; -export class SuiExtension extends Extension.Internal<'sui', any> { +export class SuiExtension extends MultichainExtension<'sui'> { name = 'sui' as const; - config: any = {}; constructor(public suiConfig: SuiConfig) { - super(); - this.config = { + super({ rpcUrl: suiConfig.rpcUrl, chainType: 'SUI', - }; + }); } public signAndSendTransaction(params: any) { diff --git a/packages/@magic-ext/taquito/package.json b/packages/@magic-ext/taquito/package.json index edc51ba6d..17db9f1da 100644 --- a/packages/@magic-ext/taquito/package.json +++ b/packages/@magic-ext/taquito/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/taquito/src/index.ts b/packages/@magic-ext/taquito/src/index.ts index fb82d6716..d71d55212 100644 --- a/packages/@magic-ext/taquito/src/index.ts +++ b/packages/@magic-ext/taquito/src/index.ts @@ -1,17 +1,15 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; import { TaquitoConfig, TaquitoPayloadMethod } from './type'; import { MagicSigner } from './MagicSigner'; -export class TaquitoExtension extends Extension.Internal<'taquito', any> { +export class TaquitoExtension extends MultichainExtension<'taquito'> { name = 'taquito' as const; - config: any = {}; constructor(public taquitoConfig: TaquitoConfig) { - super(); - - this.config = { + super({ rpcUrl: taquitoConfig.rpcUrl, - }; + chainType: 'TAQUITO', + }); } public async getPublicKey() { diff --git a/packages/@magic-ext/terra/package.json b/packages/@magic-ext/terra/package.json index 346db8264..bffa56ec4 100644 --- a/packages/@magic-ext/terra/package.json +++ b/packages/@magic-ext/terra/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/terra/src/index.ts b/packages/@magic-ext/terra/src/index.ts index ce1119422..1f3c12fa5 100644 --- a/packages/@magic-ext/terra/src/index.ts +++ b/packages/@magic-ext/terra/src/index.ts @@ -1,16 +1,14 @@ -import { Extension } from '@magic-sdk/commons'; +import { MultichainExtension } from '@magic-sdk/provider'; import { TerraPayloadMethod, TerraConfig } from './types'; -export class TerraExtension extends Extension.Internal<'terra', any> { +export class TerraExtension extends MultichainExtension<'terra'> { name = 'terra' as const; - config: any = {}; constructor(public terraConfig: TerraConfig) { - super(); - - this.config = { + super({ rpcUrl: terraConfig.rpcUrl, - }; + chainType: 'TERRA', + }); } public async getPublicKey() { diff --git a/packages/@magic-ext/tezos/package.json b/packages/@magic-ext/tezos/package.json index d1a7a805a..89c12ca50 100644 --- a/packages/@magic-ext/tezos/package.json +++ b/packages/@magic-ext/tezos/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/tezos/src/index.ts b/packages/@magic-ext/tezos/src/index.ts index 3230e5f6f..fe1432e54 100644 --- a/packages/@magic-ext/tezos/src/index.ts +++ b/packages/@magic-ext/tezos/src/index.ts @@ -1,18 +1,14 @@ -import { Extension } from '@magic-sdk/commons'; -import { TezosConfig, ConfigType } from './type'; +import { MultichainExtension } from '@magic-sdk/provider'; +import { TezosConfig } from './type'; -export class TezosExtension extends Extension.Internal<'tezos', TezosConfig> { +export class TezosExtension extends MultichainExtension<'tezos'> { name = 'tezos' as const; - config: ConfigType; - constructor(public tezosConfig: TezosConfig) { - super(); - - this.config = { + super({ rpcUrl: tezosConfig.rpcUrl, chainType: 'TEZOS', - }; + }); } public sendTransactionOperation = ( diff --git a/packages/@magic-ext/web3modal-ethers5/package.json b/packages/@magic-ext/web3modal-ethers5/package.json index bd2a21a2f..1ea3b7c99 100644 --- a/packages/@magic-ext/web3modal-ethers5/package.json +++ b/packages/@magic-ext/web3modal-ethers5/package.json @@ -24,12 +24,12 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0", - "@magic-sdk/types": "24.0.6-canary.742.10067162636.0" + "@magic-sdk/provider": "^30.0.0", + "@magic-sdk/types": "^25.0.0" }, "dependencies": { "@web3modal/ethers5": "5.0.3", diff --git a/packages/@magic-ext/web3modal-ethers5/src/index.ts b/packages/@magic-ext/web3modal-ethers5/src/index.ts index 29dc64c5a..88ecaba09 100644 --- a/packages/@magic-ext/web3modal-ethers5/src/index.ts +++ b/packages/@magic-ext/web3modal-ethers5/src/index.ts @@ -1,4 +1,4 @@ -import { Extension } from '@magic-sdk/commons'; +import { Extension } from '@magic-sdk/provider'; import { Web3Modal, createWeb3Modal, defaultConfig } from '@web3modal/ethers5'; import { LocalStorageKeys, ThirdPartyWalletEvents } from '@magic-sdk/types'; import { Web3ModalExtensionOptions } from './types'; diff --git a/packages/@magic-ext/web3modal-ethers5/test/spec/connectToWeb3Modal.spec.ts b/packages/@magic-ext/web3modal-ethers5/test/spec/connectToWeb3Modal.spec.ts index 97cb7a305..f1808c728 100644 --- a/packages/@magic-ext/web3modal-ethers5/test/spec/connectToWeb3Modal.spec.ts +++ b/packages/@magic-ext/web3modal-ethers5/test/spec/connectToWeb3Modal.spec.ts @@ -1,7 +1,7 @@ import { Web3ModalExtension } from '../../src/index'; import { createMagicSDKWithExtension } from '../../../../@magic-sdk/provider/test/factories'; import { mockLocalStorage } from '../../../../@magic-sdk/provider/test/mocks'; -import { isPromiEvent } from '../../../../@magic-sdk/commons'; +import { isPromiEvent } from '@magic-sdk/provider'; jest.mock('@web3modal/ethers5', () => ({ Web3Modal: jest.fn(), diff --git a/packages/@magic-ext/webauthn/package.json b/packages/@magic-ext/webauthn/package.json index 89e549afa..77c476882 100644 --- a/packages/@magic-ext/webauthn/package.json +++ b/packages/@magic-ext/webauthn/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/webauthn/src/index.ts b/packages/@magic-ext/webauthn/src/index.ts index d3124547e..8164c075e 100644 --- a/packages/@magic-ext/webauthn/src/index.ts +++ b/packages/@magic-ext/webauthn/src/index.ts @@ -1,4 +1,4 @@ -import { Extension } from '@magic-sdk/commons'; +import { Extension } from '@magic-sdk/provider'; import { RegisterNewUserConfiguration, LoginWithWebAuthnConfiguration, diff --git a/packages/@magic-ext/zilliqa/package.json b/packages/@magic-ext/zilliqa/package.json index 9c289ca53..88388eee9 100644 --- a/packages/@magic-ext/zilliqa/package.json +++ b/packages/@magic-ext/zilliqa/package.json @@ -24,10 +24,10 @@ }, "externals": { "include": [ - "@magic-sdk/commons" + "@magic-sdk/provider" ] }, "devDependencies": { - "@magic-sdk/commons": "^26.0.0" + "@magic-sdk/provider": "^30.0.0" } } diff --git a/packages/@magic-ext/zilliqa/src/index.ts b/packages/@magic-ext/zilliqa/src/index.ts index be90bb9e9..85f12f293 100644 --- a/packages/@magic-ext/zilliqa/src/index.ts +++ b/packages/@magic-ext/zilliqa/src/index.ts @@ -1,18 +1,14 @@ -import { Extension } from '@magic-sdk/commons'; -import { ZilliqaConfig, ConfigType } from './type'; +import { MultichainExtension } from '@magic-sdk/provider'; +import { ZilliqaConfig } from './type'; -export class ZilliqaExtension extends Extension.Internal<'zilliqa', ZilliqaConfig> { +export class ZilliqaExtension extends MultichainExtension<'zilliqa'> { name = 'zilliqa' as const; - config: ConfigType; - constructor(public zilliqaConfig: ZilliqaConfig) { - super(); - - this.config = { + super({ rpcUrl: zilliqaConfig.rpcUrl, chainType: 'ZILLIQA', - }; + }); } public sendTransaction = (params: any, toDs: boolean): Promise => { @@ -94,7 +90,7 @@ export class ZilliqaExtension extends Extension.Internal<'zilliqa', ZilliqaConfi }; public getWallet = (): Promise => { - return this.request({ + return this.request({ id: 42, jsonrpc: '2.0', method: 'zil_getWallet', diff --git a/packages/@magic-sdk/commons/CHANGELOG.md b/packages/@magic-sdk/commons/CHANGELOG.md deleted file mode 100644 index b2005d782..000000000 --- a/packages/@magic-sdk/commons/CHANGELOG.md +++ /dev/null @@ -1,822 +0,0 @@ -# v25.0.6 (Tue Apr 29 2025) - -#### ๐Ÿ› Bug Fix - -- Revert "Remove Extension class and rename InternalExtension to MagicExtension" [#882](https://github.com/magiclabs/magic-js/pull/882) ([@Ethella](https://github.com/Ethella)) -- Remove Extension class and rename InternalExtension to MagicExtension [#881](https://github.com/magiclabs/magic-js/pull/881) ([@devin-ai-integration[bot]](https://github.com/devin-ai-integration[bot]) [@Ethella](https://github.com/Ethella)) - -#### Authors: 2 - -- [@devin-ai-integration[bot]](https://github.com/devin-ai-integration[bot]) -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v25.0.4 (Tue Apr 01 2025) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into PDEEXP-2318-imx-dont-throw-error-if-the-iframe-is-failing ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v24.20.0 (Wed Jan 08 2025) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into hcote-web3modal ([@hcote](https://github.com/hcote)) - -#### Authors: 1 - -- Hunter Cote ([@hcote](https://github.com/hcote)) - ---- - -# v24.19.0 (Wed Dec 25 2024) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into PDEEXP-530-wallet-connect-login-with-redirect ([@Ethella](https://github.com/Ethella)) -- resolve conflict ([@Ethella](https://github.com/Ethella)) -- * resolve conflict ([@Ethella](https://github.com/Ethella)) -- Merge branch 'master' into PDEEXP-530-wallet-connect-login-with-redirect ([@mattupham](https://github.com/mattupham)) - -#### Authors: 2 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) -- Matt Upham ([@mattupham](https://github.com/mattupham)) - ---- - -# v24.18.1 (Thu Dec 05 2024) - -#### ๐Ÿ› Bug Fix - -- fix: typos [#830](https://github.com/magiclabs/magic-js/pull/830) ([@omahs](https://github.com/omahs) [@Ethella](https://github.com/Ethella)) -- chore: bump eslint version [#834](https://github.com/magiclabs/magic-js/pull/834) ([@otabek-magic](https://github.com/otabek-magic) [@Ethella](https://github.com/Ethella)) -- Merge branch 'master' into PDEEXP-1985-bump-magic-sdk-eslint-version-to-9 ([@otabek-magic](https://github.com/otabek-magic)) -- chore: update eslint config ([@otabek-magic](https://github.com/otabek-magic)) -- chore: update to eslint 9 in magic-sdk magic-ext ([@otabek-magic](https://github.com/otabek-magic)) -- Merge branch 'master' into patch-1 ([@Ethella](https://github.com/Ethella)) - -#### Authors: 3 - -- [@otabek-magic](https://github.com/otabek-magic) -- Jerry Liu ([@Ethella](https://github.com/Ethella)) -- omahs ([@omahs](https://github.com/omahs)) - ---- - -# v24.18.0 (Mon Nov 25 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into PDEEXP-1954-OAuth-popup-flow-consolidation ([@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov)) - -#### Authors: 1 - -- [@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov) - ---- - -# v24.16.0 (Fri Oct 25 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into PDEEXP-1951-Lost-Device-Event-Does-Not-Emit-Whitelabel-MFA-provider ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v24.15.0 (Fri Oct 25 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into cancel-event-for-recovery-flow ([@sukhrobbekodilov](https://github.com/sukhrobbekodilov)) - -#### Authors: 1 - -- [@sukhrobbekodilov](https://github.com/sukhrobbekodilov) - ---- - -# v24.14.0 (Fri Oct 18 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into missed_type_for_recovery_factor ([@sukhrobbekodilov](https://github.com/sukhrobbekodilov)) - -#### Authors: 1 - -- [@sukhrobbekodilov](https://github.com/sukhrobbekodilov) - ---- - -# v24.13.0 (Fri Oct 18 2024) - -#### ๐Ÿ› Bug Fix - -- Update .deepsource.toml [#804](https://github.com/magiclabs/magic-js/pull/804) ([@Magic-Brandan](https://github.com/Magic-Brandan)) - -#### Authors: 1 - -- [@Magic-Brandan](https://github.com/Magic-Brandan) - ---- - -# v24.11.0 (Wed Sep 25 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into sherzod-PDEEXP-1711-Support-MFA-setup-whitelabel-support ([@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov)) - -#### Authors: 1 - -- [@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov) - ---- - -# v24.9.0 (Wed Sep 11 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into sherzod-PDEEXP-1711-Support-MFA-setup-whitelabel-support ([@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov)) -- Merge branch 'master' into hcote-cosmos-options ([@hcote](https://github.com/hcote)) - -#### Authors: 2 - -- [@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov) -- Hunter Cote ([@hcote](https://github.com/hcote)) - ---- - -# v24.6.0 (Tue Sep 03 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' of https://github.com/magiclabs/magic-js into khamdam-sc-PDEEXP-54-whitelabel-sms-login ([@khamdam-magic](https://github.com/khamdam-magic)) -- fix: update branch ([@khamdam-magic](https://github.com/khamdam-magic)) -- fix(): resolve conflicts ([@khamdam-magic](https://github.com/khamdam-magic)) - -#### Authors: 1 - -- [@khamdam-magic](https://github.com/khamdam-magic) - ---- - -# v24.4.0 (Tue Aug 13 2024) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'refs/remotes/origin/master' into Add-two-more-mfa-flags ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v24.0.4 (Thu Jun 06 2024) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'refs/remotes/origin/master' into PDEEXP-1279-done-event-not-firing-in-whitelabel-email-login-flow ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v24.0.0 (Fri Mar 22 2024) - -#### ๐Ÿš€ Enhancement - -- Add private key reveal method [#699](https://github.com/magiclabs/magic-js/pull/699) ([@joshuascan](https://github.com/joshuascan)) - -#### ๐Ÿ› Bug Fix - -- "Bump independent versions \[skip ci\]" (team@magic.link) -- Update CHANGELOG.md \[skip ci\] (team@magic.link) -- Merge branch 'master' into patjacobs-oauth-v2-apple ([@patjacobs-magic](https://github.com/patjacobs-magic)) -- Merge branch 'master' into joshscanlan-pk-reveal-method ([@joshuascan](https://github.com/joshuascan)) - -#### Authors: 3 - -- [@patjacobs-magic](https://github.com/patjacobs-magic) -- Josh Scanlan ([@joshuascan](https://github.com/joshuascan)) -- Magic Labs (team@magic.link) - ---- - -# v23.0.0 (Fri Mar 15 2024) - -#### ๐Ÿ› Bug Fix - -- "Bump independent versions \[skip ci\]" (team@magic.link) -- Update CHANGELOG.md \[skip ci\] (team@magic.link) -- Merge branch 'master' into patjacobs-oauth-v2-apple ([@patjacobs-magic](https://github.com/patjacobs-magic)) - -#### Authors: 2 - -- [@patjacobs-magic](https://github.com/patjacobs-magic) -- Magic Labs (team@magic.link) - ---- - -# v22.0.0 (Sat Mar 09 2024) - -#### ๐Ÿ› Bug Fix - -- "Bump independent versions \[skip ci\]" (team@magic.link) -- Update CHANGELOG.md \[skip ci\] (team@magic.link) -- Merge branch 'master' into patjacobs-oauth-v2-apple ([@patjacobs-magic](https://github.com/patjacobs-magic)) - -#### Authors: 2 - -- [@patjacobs-magic](https://github.com/patjacobs-magic) -- Magic Labs (team@magic.link) - ---- - -# v21.0.0 (Thu Feb 29 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into patjacobs-oauth-v2-apple ([@patjacobs-magic](https://github.com/patjacobs-magic)) -- "Bump independent versions \[skip ci\]" (team@magic.link) -- Update CHANGELOG.md \[skip ci\] (team@magic.link) - -#### Authors: 2 - -- [@patjacobs-magic](https://github.com/patjacobs-magic) -- Magic Labs (team@magic.link) - ---- - -# v20.0.0 (Tue Feb 27 2024) - -#### ๐Ÿ› Bug Fix - -- "Bump independent versions \[skip ci\]" (team@magic.link) - -#### Authors: 1 - -- Magic Labs (team@magic.link) - ---- - -# v18.1.1 (Sat Feb 10 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into PDEEXP-253-whitelabel-update-email-with-ui-missing-event-when-email-address-already-in-use ([@joshuascan](https://github.com/joshuascan)) - -#### Authors: 1 - -- Josh Scanlan ([@joshuascan](https://github.com/joshuascan)) - ---- - -# v18.0.1 (Fri Feb 02 2024) - -#### ๐Ÿ› Bug Fix - -- Add npm provenance [#703](https://github.com/magiclabs/magic-js/pull/703) ([@Ethella](https://github.com/Ethella)) -- force update readme to bump all versions ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v17.4.1 (Fri Dec 15 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into rominhalltari-sc-91530-investigate-and-provide-solution-for-issue ([@romin-halltari](https://github.com/romin-halltari)) - -#### Authors: 1 - -- [@romin-halltari](https://github.com/romin-halltari) - ---- - -# v17.4.0 (Thu Dec 14 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into split-key-device-share ([@Dizigen](https://github.com/Dizigen)) - -#### Authors: 1 - -- David He ([@Dizigen](https://github.com/Dizigen)) - ---- - -# v17.2.1 (Tue Nov 14 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into injectable-webcrypto-jwt-for-session-persistence ([@Dizigen](https://github.com/Dizigen)) - -#### Authors: 1 - -- David He ([@Dizigen](https://github.com/Dizigen)) - ---- - -# v17.2.0 (Tue Oct 24 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into hcote-support-sepolia-natively ([@hcote](https://github.com/hcote)) - -#### Authors: 1 - -- Hunter Cote ([@hcote](https://github.com/hcote)) - ---- - -# v17.0.0 (Fri Oct 13 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into force-ctor-preload-iframe ([@Dizigen](https://github.com/Dizigen)) - -#### Authors: 1 - -- David He ([@Dizigen](https://github.com/Dizigen)) - ---- - -# v16.1.1 (Mon Oct 02 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into patjacobs-sc-83016-ux-optimization-expired-email-otps ([@patjacobs-magic](https://github.com/patjacobs-magic)) - -#### Authors: 1 - -- [@patjacobs-magic](https://github.com/patjacobs-magic) - ---- - -# v16.1.0 (Fri Sep 29 2023) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into jerryliu-sc-87830-optimize-webcrypto-implementation-to-generate ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v15.3.0 (Wed Aug 16 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into josh-sc-75022-standalone-update-email-v2 ([@joshuascan](https://github.com/joshuascan)) - -#### Authors: 1 - -- Josh Scanlan ([@joshuascan](https://github.com/joshuascan)) - ---- - -# v15.1.0 (Tue Aug 08 2023) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into jerryliu-sc-81984-update-loginwithemailotp-interface-with-new ([@Ethella](https://github.com/Ethella)) -- Merge remote-tracking branch 'origin/master' ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v15.0.0 (Thu Jul 27 2023) - -#### ๐Ÿ’ฅ Breaking Change - -- Magic SDK Node version bump [#538](https://github.com/magiclabs/magic-js/pull/538) ([@makrandgupta](https://github.com/makrandgupta)) - -#### ๐Ÿ› Bug Fix - -- remove unnecessary externals, bring peer deps up to date ([@makrandgupta](https://github.com/makrandgupta)) -- force canary build for all packages. ([@makrandgupta](https://github.com/makrandgupta)) - -#### Authors: 1 - -- Makrand Gupta ([@makrandgupta](https://github.com/makrandgupta)) - ---- - -# v14.3.0 (Fri Jul 07 2023) - -#### โš ๏ธ Pushed to `master` - -- Merge remote-tracking branch 'origin/master' ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v14.2.0 (Fri Jun 23 2023) - -#### ๐Ÿš€ Enhancement - -- Auto version bumping [#557](https://github.com/magiclabs/magic-js/pull/557) ([@Ethella](https://github.com/Ethella) [@Ariflo](https://github.com/Ariflo)) -- Updates License to Apache 2.0 [#551](https://github.com/magiclabs/magic-js/pull/551) ([@Ariflo](https://github.com/Ariflo)) - -#### ๐Ÿ› Bug Fix - -- Match NPM Version ([@Ariflo](https://github.com/Ariflo)) -- Update CHANGELOG.md \[skip ci\] ([@Ethella](https://github.com/Ethella)) -- Replace `magic-sdk` w/ `@magic-sdk/commons` for `@magic-ext/oidc` Package [#550](https://github.com/magiclabs/magic-js/pull/550) ([@Ariflo](https://github.com/Ariflo)) -- White space bump ([@Ariflo](https://github.com/Ariflo)) -- Add typings to package.json export [#517](https://github.com/magiclabs/magic-js/pull/517) ([@octave08](https://github.com/octave08)) -- Add typings to package.json export ([@octave08](https://github.com/octave08)) - -#### Authors: 3 - -- Arian Flores ([@Ariflo](https://github.com/Ariflo)) -- Jay Hwang ([@octave08](https://github.com/octave08)) -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v14.1.0 (Fri Jun 23 2023) - -#### ๐Ÿš€ Enhancement - -- Updates License to Apache 2.0 [#551](https://github.com/magiclabs/magic-js/pull/551) ([@Ariflo](https://github.com/Ariflo)) - -#### ๐Ÿ› Bug Fix - -- Replace `magic-sdk` w/ `@magic-sdk/commons` for `@magic-ext/oidc` Package [#550](https://github.com/magiclabs/magic-js/pull/550) ([@Ariflo](https://github.com/Ariflo)) -- White space bump ([@Ariflo](https://github.com/Ariflo)) -- Add typings to package.json export [#517](https://github.com/magiclabs/magic-js/pull/517) ([@octave08](https://github.com/octave08)) -- Add typings to package.json export ([@octave08](https://github.com/octave08)) - -#### Authors: 2 - -- Arian Flores ([@Ariflo](https://github.com/Ariflo)) -- Jay Hwang ([@octave08](https://github.com/octave08)) - ---- - -# v14.0.0 (Tue Jun 20 2023) - -#### ๐Ÿ› Bug Fix - -- Add isMajorVersionAtLeast directly to auth extension ([@Ariflo](https://github.com/Ariflo)) -- Move isMajorVersionAtLeast to commons ([@Ariflo](https://github.com/Ariflo)) - -#### Authors: 1 - -- Arian Flores ([@Ariflo](https://github.com/Ariflo)) - ---- - -# v13.3.0 (Fri May 26 2023) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into jerryliu_hotfix_gdkms ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v13.1.5 (Fri May 19 2023) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into jerryliu-sc-77755-kresus-hotfix ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v13.1.2 (Tue Apr 25 2023) - -#### ๐Ÿ› Bug Fix - -- update MIT license to apache [#500](https://github.com/magiclabs/magic-js/pull/500) ([@Dizigen](https://github.com/Dizigen)) - -#### Authors: 1 - -- David He ([@Dizigen](https://github.com/Dizigen)) - ---- - -# v13.1.1 (Fri Apr 21 2023) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into jerryliu-sc-75641-lazer-request-showsettings-page-mfa ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v13.1.0 (Thu Apr 20 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into jerryliu-sc-75641-lazer-request-showsettings-page-mfa ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v12.1.0 (Tue Apr 04 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into briancleary7114-sc-73967-auto-publish-canary-version-for-magic-sdk ([@bcleary06](https://github.com/bcleary06)) - -#### Authors: 1 - -- Brian Cleary ([@bcleary06](https://github.com/bcleary06)) - ---- - -# v12.0.0 (Fri Mar 31 2023) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into jerryliu-sc-74424-email-otp-login-invalid-email-otp-event ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v9.6.2 (Tue Mar 21 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into briancleary7114-sc-71135-add-checkout-sdk-method ([@bcleary06](https://github.com/bcleary06)) - -#### Authors: 1 - -- Brian Cleary ([@bcleary06](https://github.com/bcleary06)) - ---- - -# v9.5.0 (Tue Feb 28 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' of github.com:magiclabs/magic-js into mushfichowdhury-login-with-email-otp-whitelabel ([@mushfichowdhury-magic](https://github.com/mushfichowdhury-magic)) - -#### Authors: 1 - -- Mushfi Chowdhury ([@mushfichowdhury-magic](https://github.com/mushfichowdhury-magic)) - ---- - -# v9.1.0 (Fri Jan 06 2023) - -#### ๐Ÿš€ Enhancement - -- Bare React Native / Expo React Native Package Split [#412](https://github.com/magiclabs/magic-js/pull/412) ([@Ariflo](https://github.com/Ariflo)) - -#### ๐Ÿ› Bug Fix - -- Updates @magic-sdk/commons SDK ([@Ariflo](https://github.com/Ariflo)) - -#### Authors: 1 - -- Arian Flores ([@Ariflo](https://github.com/Ariflo)) - ---- - -# v9.0.0 (Thu Jan 05 2023) - -#### ๐Ÿ’ฅ Breaking Change - -- Update Commons/Provider/Types Packages + Workflow [#427](https://github.com/magiclabs/magic-js/pull/427) ([@Ariflo](https://github.com/Ariflo)) - -#### ๐Ÿ› Bug Fix - -- Update ReadMe to Triggger CI ([@Ariflo](https://github.com/Ariflo)) - -#### Authors: 1 - -- Arian Flores ([@Ariflo](https://github.com/Ariflo)) - ---- - -# v4.1.0 (Mon Mar 07 2022) - -#### ๐Ÿ› Bug Fix - -- Update READMEs with outdated context/hyperlinks ([@smithki](https://github.com/smithki)) - -#### ๐Ÿ  Internal - -- Internal documentation updates (`BUILD_SYSTEM.md`) [#283](https://github.com/magiclabs/magic-js/pull/283) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v4.0.0 (Tue Jan 25 2022) - -#### ๐Ÿ’ฅ Breaking Change - -- Switch from `microbundle` to `esbuild` [#220](https://github.com/magiclabs/magic-js/pull/220) ([@smithki](https://github.com/smithki)) - -#### ๐Ÿ› Bug Fix - -- Merge with master ([@smithki](https://github.com/smithki)) -- Merge branch 'master' into feat/faster-builds ([@smithki](https://github.com/smithki)) -- Remove comments from README files ([@smithki](https://github.com/smithki)) -- Fix build errors related to isolatedModules ([@smithki](https://github.com/smithki)) -- Replace microbundle with ESBuild ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v2.1.4 (Thu Oct 21 2021) - -#### ๐Ÿ› Bug Fix - -- Revert to `.js` extension for ES module builds targeting webpack/CRA [#232](https://github.com/magiclabs/magic-js/pull/232) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v2.1.3 (Wed Oct 20 2021) - -#### โš ๏ธ Pushed to `master` - -- Fix dist files glob in package.json ([@smithki](https://github.com/smithki)) -- Merge branch 'master' of github.com:magiclabs/magic-js ([@smithki](https://github.com/smithki)) -- Force re-publish ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v2.1.2 (Wed Oct 20 2021) - -#### ๐Ÿ› Bug Fix - -- Use '.mjs' extension for ESM build files [#230](https://github.com/magiclabs/magic-js/pull/230) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v2.0.6 (Thu Sep 23 2021) - -#### ๐Ÿ› Bug Fix - -- Port `@magic-ext/oauth`, `@magic-ext/react-native-oauth`, `@magic-ext/webauthn` extensions to Magic SDK monorepo [#218](https://github.com/magiclabs/magic-js/pull/218) ([@smithki](https://github.com/smithki)) -- Add `@magic-sdk/pnp` package for out-of-the-box login page UIs [#217](https://github.com/magiclabs/magic-js/pull/217) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v2.0.4 (Fri Sep 17 2021) - -#### ๐Ÿ› Bug Fix - -- Fix CJS-dependent entry-points using the 'exports' field in package.json [#214](https://github.com/magiclabs/magic-js/pull/214) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v2.0.2 (Tue Sep 14 2021) - -#### ๐Ÿ› Bug Fix - -- Import regeneratorRuntime in Magic JS (non-CDN version) [#210](https://github.com/magiclabs/magic-js/pull/210) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v2.0.0 (Tue Sep 14 2021) - -#### ๐Ÿ’ฅ Breaking Change - -- v6.0.0 [#208](https://github.com/magiclabs/magic-js/pull/208) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v1.2.1 (Mon Aug 16 2021) - -#### ๐Ÿ› Bug Fix - -- Migrate unit tests to Jest [#194](https://github.com/magiclabs/magic-js/pull/194) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v1.2.0 (Wed Jul 28 2021) - -#### ๐Ÿš€ Enhancement - -- Add explicit JSDelivr entry-point for `magic-sdk` [#191](https://github.com/magiclabs/magic-js/pull/191) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v1.1.0 (Sat Jan 23 2021) - -#### ๐Ÿš€ Enhancement - -- Iframe accessibility improvements: Add `title` attribute and auto-focus when UI is showing [#158](https://github.com/magiclabs/magic-js/pull/158) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v1.0.1 (Tue Dec 01 2020) - -#### ๐Ÿ› Bug Fix - -- Add 'importHelpers: true' to base tsconfig.json [#152](https://github.com/magiclabs/magic-js/pull/152) ([@smithki](https://github.com/smithki)) - -#### ๐Ÿ“ Documentation - -- Fix incorrect TypeScript project references and update READMEs with changelog links [#151](https://github.com/magiclabs/magic-js/pull/151) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v1.0.0 (Tue Nov 17 2020) - -#### ๐Ÿ’ฅ Breaking Change - -- [All packages] Internal API changes & Cleanups [#149](https://github.com/magiclabs/magic-js/pull/149) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - diff --git a/packages/@magic-sdk/commons/README.md b/packages/@magic-sdk/commons/README.md deleted file mode 100644 index 8018c0979..000000000 --- a/packages/@magic-sdk/commons/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# โœจ Magic JavaScript SDK Commons - -[![](https://circleci.com/gh/magiclabs/magic-js.svg?style=shield)](https://circleci.com/gh/magiclabs/magic-js) - -> Exposes a listing of common public APIs from `@magic-sdk/provider` and `@magic-sdk/types` to the platform-specific entry points (`magic-sdk`, `@magic-sdk/react-native-bare`, and `@magic-sdk/react-native-expo`) - -

- License ยท - Changelog ยท - Contributing Guide -

- -## ๐Ÿ“– Documentation - -See the [developer documentation](https://magic.link/docs) to learn how you can master the Magic SDK in a matter of minutes. - -## Looking to Get Started With Magic? - -This package is an internal dependency of the Magic JavaScript SDK ecosystem. If you're looking to get started with Magic's passwordless authentication for web or React native, check out one of these: - -- Web: [`magic-sdk`](https://github.com/magiclabs/magic-js/tree/master/packages/magic-sdk) -- Bare React Native: [`@magic-sdk/react-native-bare`](https://github.com/magiclabs/magic-js/tree/master/packages/@magic-sdk/react-native-bare) -- Expo React Native: [`@magic-sdk/react-native-expo`](https://github.com/magiclabs/magic-js/tree/master/packages/@magic-sdk/react-native-expo) - diff --git a/packages/@magic-sdk/commons/package.json b/packages/@magic-sdk/commons/package.json deleted file mode 100644 index 49c7d28b9..000000000 --- a/packages/@magic-sdk/commons/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "@magic-sdk/commons", - "version": "26.0.0", - "description": "Exposes a listing of common public APIs from the Magic JS SDK ecosystem.", - "author": "Magic Labs (https://magic.link/)", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/magiclabs/magic-js" - }, - "homepage": "https://magic.link", - "files": [ - "dist" - ], - "target": "browser", - "main": "./dist/cjs/index.js", - "module": "./dist/es/index.js", - "types": "./dist/types/index.d.ts", - "exports": { - "types": "./dist/types/index.d.ts", - "import": "./dist/es/index.mjs", - "require": "./dist/cjs/index.js" - }, - "devDependencies": { - "@magic-sdk/provider": "^30.0.0", - "@magic-sdk/types": "^25.0.0" - }, - "peerDependencies": { - "@magic-sdk/provider": ">=18.6.0", - "@magic-sdk/types": ">=15.8.0" - }, - "gitHead": "1ef062ea699d48d5e9a9375a93b7c147632b05ca" -} diff --git a/packages/@magic-sdk/commons/src/index.ts b/packages/@magic-sdk/commons/src/index.ts deleted file mode 100644 index c4eca1a26..000000000 --- a/packages/@magic-sdk/commons/src/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Only re-export modules & types that are intended -// for the public API from this file. - -export { - Extension, - MagicSDKError as SDKError, - MagicExtensionError as ExtensionError, - MagicExtensionWarning as ExtensionWarning, - MagicRPCError as RPCError, - MagicSDKWarning as SDKWarning, - isPromiEvent, -} from '@magic-sdk/provider'; - -export type { MagicSDKAdditionalConfiguration, MagicSDKExtensionsOption, PromiEvent } from '@magic-sdk/provider'; - -export * from '@magic-sdk/types'; diff --git a/packages/@magic-sdk/pnp/.lintstagedrc.yml b/packages/@magic-sdk/pnp/.lintstagedrc.yml deleted file mode 100644 index 1c250ad65..000000000 --- a/packages/@magic-sdk/pnp/.lintstagedrc.yml +++ /dev/null @@ -1,2 +0,0 @@ -'*.{ts,tsx}': - - eslint --fix diff --git a/packages/@magic-sdk/pnp/.prettierrc.js b/packages/@magic-sdk/pnp/.prettierrc.js deleted file mode 100644 index 6177cac66..000000000 --- a/packages/@magic-sdk/pnp/.prettierrc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../../../.prettierrc.js'); diff --git a/packages/@magic-sdk/pnp/CHANGELOG.md b/packages/@magic-sdk/pnp/CHANGELOG.md deleted file mode 100644 index f19877ad0..000000000 --- a/packages/@magic-sdk/pnp/CHANGELOG.md +++ /dev/null @@ -1,1226 +0,0 @@ -# v24.0.0 (Wed Sep 03 2025) - -#### ๐Ÿ› Bug Fix - -- docs: fix typos in comments [#929](https://github.com/magiclabs/magic-js/pull/929) ([@Snezhkko](https://github.com/Snezhkko)) -- docs: update Magic Login Form documentation link [#923](https://github.com/magiclabs/magic-js/pull/923) ([@Fibonacci747](https://github.com/Fibonacci747)) - -#### Authors: 2 - -- [@Fibonacci747](https://github.com/Fibonacci747) -- [@Snezhkko](https://github.com/Snezhkko) - ---- - -# v23.2.0 (Tue Jul 15 2025) - -#### ๐Ÿ› Bug Fix - -- Fix Typos in Documentation and Comments [#899](https://github.com/magiclabs/magic-js/pull/899) ([@zeevick10](https://github.com/zeevick10)) - -#### Authors: 1 - -- FT ([@zeevick10](https://github.com/zeevick10)) - ---- - -# v23.0.7 (Tue Apr 29 2025) - -#### ๐Ÿ› Bug Fix - -- Revert "Remove Extension class and rename InternalExtension to MagicExtension" [#882](https://github.com/magiclabs/magic-js/pull/882) ([@Ethella](https://github.com/Ethella)) -- Remove Extension class and rename InternalExtension to MagicExtension [#881](https://github.com/magiclabs/magic-js/pull/881) ([@devin-ai-integration[bot]](https://github.com/devin-ai-integration[bot]) [@Ethella](https://github.com/Ethella)) -- Pdeexp 2096 replace ikscodes browser env package in magic js [#877](https://github.com/magiclabs/magic-js/pull/877) ([@otabek-magic](https://github.com/otabek-magic) [@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov) [@Ethella](https://github.com/Ethella)) -- Bump Jest version to 29.7.0 and update related testing dependencies [#873](https://github.com/magiclabs/magic-js/pull/873) ([@devin-ai-integration[bot]](https://github.com/devin-ai-integration[bot]) [@Ethella](https://github.com/Ethella)) - -#### Authors: 4 - -- [@devin-ai-integration[bot]](https://github.com/devin-ai-integration[bot]) -- [@otabek-magic](https://github.com/otabek-magic) -- [@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov) -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v23.0.5 (Tue Apr 01 2025) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into PDEEXP-2318-imx-dont-throw-error-if-the-iframe-is-failing ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v23.0.3 (Mon Mar 24 2025) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into bump-cryptojs ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v23.0.0 (Mon Mar 03 2025) - -#### ๐Ÿ’ฅ Breaking Change - -- Remove deprecated methods [#857](https://github.com/magiclabs/magic-js/pull/857) ([@joshuascan](https://github.com/joshuascan)) - -#### ๐Ÿ› Bug Fix - -- chore: remove user.getMetadata ([@joshuascan](https://github.com/joshuascan)) - -#### Authors: 1 - -- Josh Scanlan ([@joshuascan](https://github.com/joshuascan)) - ---- - -# v22.21.0 (Wed Jan 08 2025) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into hcote-web3modal ([@hcote](https://github.com/hcote)) - -#### Authors: 1 - -- Hunter Cote ([@hcote](https://github.com/hcote)) - ---- - -# v22.20.0 (Wed Dec 25 2024) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into PDEEXP-530-wallet-connect-login-with-redirect ([@Ethella](https://github.com/Ethella)) -- resolve conflict ([@Ethella](https://github.com/Ethella)) -- * resolve conflict ([@Ethella](https://github.com/Ethella)) -- Merge branch 'master' into PDEEXP-530-wallet-connect-login-with-redirect ([@mattupham](https://github.com/mattupham)) - -#### Authors: 2 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) -- Matt Upham ([@mattupham](https://github.com/mattupham)) - ---- - -# v22.19.1 (Thu Dec 05 2024) - -#### ๐Ÿ› Bug Fix - -- fix: typos [#830](https://github.com/magiclabs/magic-js/pull/830) ([@omahs](https://github.com/omahs) [@Ethella](https://github.com/Ethella)) -- chore: bump eslint version [#834](https://github.com/magiclabs/magic-js/pull/834) ([@otabek-magic](https://github.com/otabek-magic) [@Ethella](https://github.com/Ethella)) -- Merge branch 'master' into PDEEXP-1985-bump-magic-sdk-eslint-version-to-9 ([@otabek-magic](https://github.com/otabek-magic)) -- chore: update eslint config ([@otabek-magic](https://github.com/otabek-magic)) -- chore: update to eslint 9 in magic-sdk magic-ext ([@otabek-magic](https://github.com/otabek-magic)) -- Merge branch 'master' into patch-1 ([@Ethella](https://github.com/Ethella)) - -#### Authors: 3 - -- [@otabek-magic](https://github.com/otabek-magic) -- Jerry Liu ([@Ethella](https://github.com/Ethella)) -- omahs ([@omahs](https://github.com/omahs)) - ---- - -# v22.19.0 (Mon Nov 25 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into PDEEXP-1954-OAuth-popup-flow-consolidation ([@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov)) - -#### Authors: 1 - -- [@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov) - ---- - -# v22.17.0 (Fri Oct 25 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into PDEEXP-1951-Lost-Device-Event-Does-Not-Emit-Whitelabel-MFA-provider ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v22.16.0 (Fri Oct 25 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into cancel-event-for-recovery-flow ([@sukhrobbekodilov](https://github.com/sukhrobbekodilov)) - -#### Authors: 1 - -- [@sukhrobbekodilov](https://github.com/sukhrobbekodilov) - ---- - -# v22.15.0 (Tue Oct 22 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' of https://github.com/magiclabs/magic-js into khamdam-sc-PDEEXP-1908-Iframe-heartbeat ([@khamdam-magic](https://github.com/khamdam-magic)) -- Merge branch 'master' into khamdam-sc-PDEEXP-1908-Iframe-heartbeat ([@khamdam-magic](https://github.com/khamdam-magic)) - -#### Authors: 1 - -- [@khamdam-magic](https://github.com/khamdam-magic) - ---- - -# v22.14.0 (Fri Oct 18 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into missed_type_for_recovery_factor ([@sukhrobbekodilov](https://github.com/sukhrobbekodilov)) - -#### Authors: 1 - -- [@sukhrobbekodilov](https://github.com/sukhrobbekodilov) - ---- - -# v22.13.0 (Fri Oct 18 2024) - -#### ๐Ÿ› Bug Fix - -- Update .deepsource.toml [#804](https://github.com/magiclabs/magic-js/pull/804) ([@Magic-Brandan](https://github.com/Magic-Brandan)) - -#### Authors: 1 - -- [@Magic-Brandan](https://github.com/Magic-Brandan) - ---- - -# v22.11.0 (Wed Sep 25 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into sherzod-PDEEXP-1711-Support-MFA-setup-whitelabel-support ([@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov)) - -#### Authors: 1 - -- [@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov) - ---- - -# v22.9.0 (Wed Sep 11 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into sherzod-PDEEXP-1711-Support-MFA-setup-whitelabel-support ([@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov)) -- Merge branch 'master' into hcote-cosmos-options ([@hcote](https://github.com/hcote)) - -#### Authors: 2 - -- [@sherzod-bakhodirov](https://github.com/sherzod-bakhodirov) -- Hunter Cote ([@hcote](https://github.com/hcote)) - ---- - -# v22.6.0 (Tue Sep 03 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' of https://github.com/magiclabs/magic-js into khamdam-sc-PDEEXP-54-whitelabel-sms-login ([@khamdam-magic](https://github.com/khamdam-magic)) -- fix: update branch ([@khamdam-magic](https://github.com/khamdam-magic)) -- fix(): resolve conflicts ([@khamdam-magic](https://github.com/khamdam-magic)) - -#### Authors: 1 - -- [@khamdam-magic](https://github.com/khamdam-magic) - ---- - -# v22.4.0 (Tue Aug 13 2024) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'refs/remotes/origin/master' into Add-two-more-mfa-flags ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v22.3.1 (Fri Aug 09 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into hcote-visibility-update ([@hcote](https://github.com/hcote)) - -#### Authors: 1 - -- Hunter Cote ([@hcote](https://github.com/hcote)) - ---- - -# v22.0.6 (Thu Jun 06 2024) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'refs/remotes/origin/master' into PDEEXP-1279-done-event-not-firing-in-whitelabel-email-login-flow ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v22.0.4 (Thu Apr 11 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into dh-allow-clipboard ([@bcleary06](https://github.com/bcleary06)) -- Merge branch 'master' into deepsource-config-f9a2fc0d ([@bcleary06](https://github.com/bcleary06)) - -#### Authors: 1 - -- Brian Cleary ([@bcleary06](https://github.com/bcleary06)) - ---- - -# v22.0.0 (Fri Mar 22 2024) - -#### ๐Ÿš€ Enhancement - -- Add private key reveal method [#699](https://github.com/magiclabs/magic-js/pull/699) ([@joshuascan](https://github.com/joshuascan)) - -#### ๐Ÿ› Bug Fix - -- "Bump independent versions \[skip ci\]" (team@magic.link) -- Update CHANGELOG.md \[skip ci\] (team@magic.link) -- Merge branch 'master' into patjacobs-oauth-v2-apple ([@patjacobs-magic](https://github.com/patjacobs-magic)) -- Merge branch 'master' into joshscanlan-pk-reveal-method ([@joshuascan](https://github.com/joshuascan)) - -#### Authors: 3 - -- [@patjacobs-magic](https://github.com/patjacobs-magic) -- Josh Scanlan ([@joshuascan](https://github.com/joshuascan)) -- Magic Labs (team@magic.link) - ---- - -# v21.0.0 (Fri Mar 15 2024) - -#### ๐Ÿ› Bug Fix - -- "Bump independent versions \[skip ci\]" (team@magic.link) -- Update CHANGELOG.md \[skip ci\] (team@magic.link) -- Merge branch 'master' into patjacobs-oauth-v2-apple ([@patjacobs-magic](https://github.com/patjacobs-magic)) - -#### Authors: 2 - -- [@patjacobs-magic](https://github.com/patjacobs-magic) -- Magic Labs (team@magic.link) - ---- - -# v20.0.0 (Sat Mar 09 2024) - -#### ๐Ÿ› Bug Fix - -- "Bump independent versions \[skip ci\]" (team@magic.link) -- Update CHANGELOG.md \[skip ci\] (team@magic.link) -- Merge branch 'master' into patjacobs-oauth-v2-apple ([@patjacobs-magic](https://github.com/patjacobs-magic)) - -#### Authors: 2 - -- [@patjacobs-magic](https://github.com/patjacobs-magic) -- Magic Labs (team@magic.link) - ---- - -# v19.0.0 (Thu Feb 29 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into patjacobs-oauth-v2-apple ([@patjacobs-magic](https://github.com/patjacobs-magic)) -- "Bump independent versions \[skip ci\]" (team@magic.link) -- Update CHANGELOG.md \[skip ci\] (team@magic.link) - -#### Authors: 2 - -- [@patjacobs-magic](https://github.com/patjacobs-magic) -- Magic Labs (team@magic.link) - ---- - -# v18.0.0 (Tue Feb 27 2024) - -#### ๐Ÿ› Bug Fix - -- "Bump independent versions \[skip ci\]" (team@magic.link) - -#### Authors: 1 - -- Magic Labs (team@magic.link) - ---- - -# v16.1.1 (Sat Feb 10 2024) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into PDEEXP-253-whitelabel-update-email-with-ui-missing-event-when-email-address-already-in-use ([@joshuascan](https://github.com/joshuascan)) - -#### Authors: 1 - -- Josh Scanlan ([@joshuascan](https://github.com/joshuascan)) - ---- - -# v16.0.1 (Fri Feb 02 2024) - -#### ๐Ÿ› Bug Fix - -- Add npm provenance [#703](https://github.com/magiclabs/magic-js/pull/703) ([@Ethella](https://github.com/Ethella)) -- force update readme to bump all versions ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v15.6.0 (Tue Jan 02 2024) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into rominhalltari-sc-91336-look-into-faster-calls-to-isloggedin-and ([@romin-halltari](https://github.com/romin-halltari)) - -#### Authors: 1 - -- [@romin-halltari](https://github.com/romin-halltari) - ---- - -# v15.5.0 (Fri Dec 22 2023) - -#### ๐Ÿš€ Enhancement - -- Fix type mismatch for signMessage in solana-ext [#691](https://github.com/magiclabs/magic-js/pull/691) ([@octave08](https://github.com/octave08)) - -#### Authors: 1 - -- Jay Hwang ([@octave08](https://github.com/octave08)) - ---- - -# v15.4.1 (Fri Dec 15 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into rominhalltari-sc-91530-investigate-and-provide-solution-for-issue ([@romin-halltari](https://github.com/romin-halltari)) - -#### Authors: 1 - -- [@romin-halltari](https://github.com/romin-halltari) - ---- - -# v15.4.0 (Thu Dec 14 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into split-key-device-share ([@Dizigen](https://github.com/Dizigen)) - -#### Authors: 1 - -- David He ([@Dizigen](https://github.com/Dizigen)) - ---- - -# v15.3.2 (Tue Nov 28 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into josh-sc-90794-add-types-export-to-scaffolding ([@joshuascan](https://github.com/joshuascan)) - -#### Authors: 1 - -- Josh Scanlan ([@joshuascan](https://github.com/joshuascan)) - ---- - -# v15.2.1 (Tue Nov 14 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into injectable-webcrypto-jwt-for-session-persistence ([@Dizigen](https://github.com/Dizigen)) - -#### Authors: 1 - -- David He ([@Dizigen](https://github.com/Dizigen)) - ---- - -# v15.2.0 (Tue Oct 24 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into hcote-support-sepolia-natively ([@hcote](https://github.com/hcote)) - -#### Authors: 1 - -- Hunter Cote ([@hcote](https://github.com/hcote)) - ---- - -# v15.0.0 (Fri Oct 13 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into force-ctor-preload-iframe ([@Dizigen](https://github.com/Dizigen)) - -#### Authors: 1 - -- David He ([@Dizigen](https://github.com/Dizigen)) - ---- - -# v14.1.1 (Mon Oct 02 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into patjacobs-sc-83016-ux-optimization-expired-email-otps ([@patjacobs-magic](https://github.com/patjacobs-magic)) - -#### Authors: 1 - -- [@patjacobs-magic](https://github.com/patjacobs-magic) - ---- - -# v14.1.0 (Fri Sep 29 2023) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into jerryliu-sc-87830-optimize-webcrypto-implementation-to-generate ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v13.3.0 (Wed Aug 16 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into josh-sc-75022-standalone-update-email-v2 ([@joshuascan](https://github.com/joshuascan)) - -#### Authors: 1 - -- Josh Scanlan ([@joshuascan](https://github.com/joshuascan)) - ---- - -# v13.1.0 (Tue Aug 08 2023) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into jerryliu-sc-81984-update-loginwithemailotp-interface-with-new ([@Ethella](https://github.com/Ethella)) -- Merge remote-tracking branch 'origin/master' ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v13.0.0 (Thu Jul 27 2023) - -#### ๐Ÿ’ฅ Breaking Change - -- Magic SDK Node version bump [#538](https://github.com/magiclabs/magic-js/pull/538) ([@makrandgupta](https://github.com/makrandgupta)) - -#### ๐Ÿ› Bug Fix - -- force canary build for all packages. ([@makrandgupta](https://github.com/makrandgupta)) - -#### Authors: 1 - -- Makrand Gupta ([@makrandgupta](https://github.com/makrandgupta)) - ---- - -# v12.3.0 (Fri Jul 07 2023) - -#### โš ๏ธ Pushed to `master` - -- Merge remote-tracking branch 'origin/master' ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v12.2.0 (Fri Jun 23 2023) - -#### ๐Ÿš€ Enhancement - -- Auto version bumping [#557](https://github.com/magiclabs/magic-js/pull/557) ([@Ethella](https://github.com/Ethella) [@Ariflo](https://github.com/Ariflo)) -- Updates License to Apache 2.0 [#551](https://github.com/magiclabs/magic-js/pull/551) ([@Ariflo](https://github.com/Ariflo)) - -#### ๐Ÿ› Bug Fix - -- Match NPM Version ([@Ariflo](https://github.com/Ariflo)) -- Update CHANGELOG.md \[skip ci\] ([@Ethella](https://github.com/Ethella)) -- Replace `magic-sdk` w/ `@magic-sdk/commons` for `@magic-ext/oidc` Package [#550](https://github.com/magiclabs/magic-js/pull/550) ([@Ariflo](https://github.com/Ariflo)) -- White space bump ([@Ariflo](https://github.com/Ariflo)) - -#### Authors: 2 - -- Arian Flores ([@Ariflo](https://github.com/Ariflo)) -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v12.1.0 (Fri Jun 23 2023) - -#### ๐Ÿš€ Enhancement - -- Updates License to Apache 2.0 [#551](https://github.com/magiclabs/magic-js/pull/551) ([@Ariflo](https://github.com/Ariflo)) - -#### ๐Ÿ› Bug Fix - -- Replace `magic-sdk` w/ `@magic-sdk/commons` for `@magic-ext/oidc` Package [#550](https://github.com/magiclabs/magic-js/pull/550) ([@Ariflo](https://github.com/Ariflo)) -- White space bump ([@Ariflo](https://github.com/Ariflo)) - -#### Authors: 1 - -- Arian Flores ([@Ariflo](https://github.com/Ariflo)) - ---- - -# v11.3.0 (Fri May 26 2023) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into jerryliu_hotfix_gdkms ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v11.1.6 (Fri May 19 2023) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into jerryliu-sc-77755-kresus-hotfix ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v11.1.2 (Tue Apr 25 2023) - -#### ๐Ÿ› Bug Fix - -- update MIT license to apache [#500](https://github.com/magiclabs/magic-js/pull/500) ([@Dizigen](https://github.com/Dizigen)) - -#### Authors: 1 - -- David He ([@Dizigen](https://github.com/Dizigen)) - ---- - -# v11.1.1 (Fri Apr 21 2023) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into jerryliu-sc-75641-lazer-request-showsettings-page-mfa ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v11.1.0 (Thu Apr 20 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into jerryliu-sc-75641-lazer-request-showsettings-page-mfa ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v10.1.0 (Tue Apr 04 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into briancleary7114-sc-73967-auto-publish-canary-version-for-magic-sdk ([@bcleary06](https://github.com/bcleary06)) - -#### Authors: 1 - -- Brian Cleary ([@bcleary06](https://github.com/bcleary06)) - ---- - -# v10.0.0 (Fri Mar 31 2023) - -#### ๐Ÿ› Bug Fix - -- Merge remote-tracking branch 'origin/master' into jerryliu-sc-74424-email-otp-login-invalid-email-otp-event ([@Ethella](https://github.com/Ethella)) - -#### Authors: 1 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) - ---- - -# v7.6.2 (Tue Mar 21 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' into briancleary7114-sc-71135-add-checkout-sdk-method ([@bcleary06](https://github.com/bcleary06)) - -#### Authors: 1 - -- Brian Cleary ([@bcleary06](https://github.com/bcleary06)) - ---- - -# v7.5.0 (Tue Feb 28 2023) - -#### ๐Ÿ› Bug Fix - -- Merge branch 'master' of github.com:magiclabs/magic-js into mushfichowdhury-login-with-email-otp-whitelabel ([@mushfichowdhury-magic](https://github.com/mushfichowdhury-magic)) - -#### Authors: 1 - -- Mushfi Chowdhury ([@mushfichowdhury-magic](https://github.com/mushfichowdhury-magic)) - ---- - -# v7.4.0 (Tue Feb 21 2023) - -#### ๐Ÿš€ Enhancement - -- * Add recoverAccount api [#458](https://github.com/magiclabs/magic-js/pull/458) ([@Ethella](https://github.com/Ethella)) - -#### ๐Ÿ› Bug Fix - -- Update LICENSE [#459](https://github.com/magiclabs/magic-js/pull/459) ([@srinjoyc](https://github.com/srinjoyc)) - -#### Authors: 2 - -- Jerry Liu ([@Ethella](https://github.com/Ethella)) -- Srinjoy ([@srinjoyc](https://github.com/srinjoyc)) - ---- - -# v2.1.0 (Mon Mar 07 2022) - -#### ๐Ÿ› Bug Fix - -- Update READMEs with outdated context/hyperlinks ([@smithki](https://github.com/smithki)) - -#### ๐Ÿ  Internal - -- Internal documentation updates (`BUILD_SYSTEM.md`) [#283](https://github.com/magiclabs/magic-js/pull/283) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v2.0.0 (Tue Jan 25 2022) - -#### ๐Ÿ’ฅ Breaking Change - -- Switch from `microbundle` to `esbuild` [#220](https://github.com/magiclabs/magic-js/pull/220) ([@smithki](https://github.com/smithki)) - -#### ๐Ÿ› Bug Fix - -- Merge with master ([@smithki](https://github.com/smithki)) -- Merge branch 'master' into feat/faster-builds ([@smithki](https://github.com/smithki)) -- Remove comments from README files ([@smithki](https://github.com/smithki)) -- Fix build errors related to isolatedModules ([@smithki](https://github.com/smithki)) -- Replace microbundle with ESBuild ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v0.6.0 (Mon Nov 08 2021) - -#### ๐Ÿš€ Enhancement - -- Add parameters for ToS and privacy links to `@magic-sdk/pnp` [#240](https://github.com/magiclabs/magic-js/pull/240) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v0.5.0 (Fri Oct 29 2021) - -#### ๐Ÿš€ Enhancement - -- Add support for `data-locale` parameter in `@magic-sdk/pnp` [#234](https://github.com/magiclabs/magic-js/pull/234) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v0.4.0 (Fri Oct 22 2021) - -#### ๐Ÿš€ Enhancement - -- Add `UserModule#settings` endpoint [#231](https://github.com/magiclabs/magic-js/pull/231) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v0.3.2 (Wed Oct 20 2021) - -#### โš ๏ธ Pushed to `master` - -- Merge branch 'master' of github.com:magiclabs/magic-js ([@smithki](https://github.com/smithki)) -- Force re-publish ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v0.3.0 (Wed Oct 20 2021) - -#### ๐Ÿš€ Enhancement - -- [HOLD MERGE] Enable opinionated "Plug & Play" implementation approach for web [#221](https://github.com/magiclabs/magic-js/pull/221) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v6.0.5 (Fri Sep 17 2021) - -#### ๐Ÿ› Bug Fix - -- Fix `regeneratorRuntime` is not defined in `@magic-sdk/provider` [#215](https://github.com/magiclabs/magic-js/pull/215) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v6.0.4 (Fri Sep 17 2021) - -#### ๐Ÿ› Bug Fix - -- Fix CJS-dependent entry-points using the 'exports' field in package.json [#214](https://github.com/magiclabs/magic-js/pull/214) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v6.0.3 (Thu Sep 16 2021) - -#### ๐Ÿ› Bug Fix - -- Enable `skipLibCheck: false` to work with Magic SDK + TypeScript projects [#212](https://github.com/magiclabs/magic-js/pull/212) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v6.0.2 (Tue Sep 14 2021) - -#### ๐Ÿ› Bug Fix - -- Import regeneratorRuntime in Magic JS (non-CDN version) [#210](https://github.com/magiclabs/magic-js/pull/210) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v6.0.1 (Tue Sep 14 2021) - -#### ๐Ÿ› Bug Fix - -- Fix SemVer cyclic dependency issues with some hacks [#209](https://github.com/magiclabs/magic-js/pull/209) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v6.0.0 (Tue Sep 14 2021) - -#### ๐Ÿ’ฅ Breaking Change - -- v6.0.0 [#208](https://github.com/magiclabs/magic-js/pull/208) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v4.4.2 (Mon Aug 16 2021) - -#### ๐Ÿ› Bug Fix - -- Migrate unit tests to Jest [#194](https://github.com/magiclabs/magic-js/pull/194) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v4.4.0 (Wed Jul 28 2021) - -#### ๐Ÿš€ Enhancement - -- Add explicit JSDelivr entry-point for `magic-sdk` [#191](https://github.com/magiclabs/magic-js/pull/191) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v4.1.0 (Sat Jan 23 2021) - -#### ๐Ÿš€ Enhancement - -- Iframe accessibility improvements: Add `title` attribute and auto-focus when UI is showing [#158](https://github.com/magiclabs/magic-js/pull/158) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v4.0.1 (Tue Dec 01 2020) - -#### ๐Ÿ› Bug Fix - -- Add 'importHelpers: true' to base tsconfig.json [#152](https://github.com/magiclabs/magic-js/pull/152) ([@smithki](https://github.com/smithki)) - -#### ๐Ÿ“ Documentation - -- Fix incorrect TypeScript project references and update READMEs with changelog links [#151](https://github.com/magiclabs/magic-js/pull/151) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -# v4.0.0 (Tue Nov 17 2020) - -#### ๐Ÿ’ฅ Breaking Change - -- [All packages] Internal API changes & Cleanups [#149](https://github.com/magiclabs/magic-js/pull/149) ([@smithki](https://github.com/smithki)) - -#### ๐Ÿ› Bug Fix - -- Update CHANGELOGs and CONTRIBUTING guide [#146](https://github.com/magiclabs/magic-js/pull/146) ([@smithki](https://github.com/smithki)) - -#### ๐Ÿ  Internal - -- Simplify scripts [#147](https://github.com/magiclabs/magic-js/pull/147) ([@smithki](https://github.com/smithki)) - -#### Authors: 1 - -- Ian K Smith ([@smithki](https://github.com/smithki)) - ---- - -## `3.0.1` - 10/21/2020 - -#### Changed - -- Removed the following public methods and functions - - `BaseExtension.utils.encodeQueryParameters` - - `BaseExtension.utils.decodeQueryParameters` - -## `2.7.0` - 09/24/2020 - -#### Added - -- Adds a Magic SDK extensions runtime compatibility check, ensuring you're version of Magic SDK is designed for the extensions you have in use. - -## `2.6.0` - 09/15/2020 - -#### Added - -- New, optional `redirectURI` parameter for the `loginWithMagicLink` method -- New `loginWithCredential` method for completing a magic link login with redirect: `await magic.auth.loginWithCredential()` - -## `2.5.0` - 08/24/2020 - -#### Added - -- New optional `locale` parameter to SDK constructor - -## `2.4.8` - 08/20/2020 - -#### Added - -- New RPC error code for the `loginWithMagicLink` method: `-10005` - -## `2.4.6` - 07/22/2020 - -#### Added - -- Export `PromiEvent` type and `isPromiEvent` utility from SDK entry-points (`magic-sdk` and `@magic-sdk/react-native`). - -## `2.4.1` through `2.4.5` - 07/13/2020 - -#### Fixed - -- Bug preventing NPM tarball from containing `/dist` files. - -## `2.4.0` - 07/13/2020 - -#### Changed - -- Updated build system to use TypeScript project references instead of Microbundle. -- Pass `targetOrigin` parameter to `postMessage` calls. - -## `2.3.1` - 07/08/2020 - -#### Fixed - -- Bug affecting `localforage` type imports causing compilation failure in TypeScript. - -## `2.3.0` - 07/08/2020 - -#### Added - -- WebAuthn support. -- `localforage` APIs for Magic SDK Extensions. - -## `2.1.0` - 06/25/2020 - -#### Changed - -- Update dependencies. - -#### Addded - -- Add `ExtensionWarning` class. - -## `2.0.7` - 06/23/2020 - -#### Changed - -- Update dependencies. - -## `2.0.6` - 06/23/2020 - -#### Changed - -- Update dependencies. - -## `2.0.5` - 06/23/2020 - -#### Changed - -- Update dependencies. - -## `2.0.4` - 06/22/2020 - -#### Changed - -- Update dependencies. - -## `2.0.3` - 06/16/2020 - -#### Added - -- Introduce the `ExtensionError` type to ease handling of errors rising from Magic SDK Extensions. - -## `2.0.2` - 06/12/2020 - -#### Changed - -- Update dependencies. -- Circle CI tag in readme is broken after namechange from MagicHQ to MagicLabs - -## `2.0.1` - 06/11/2020 - -#### Changed - -- Update dependencies. - -## `2.0.0` - 06/02/2020 - -#### Fixed - -- Circle CI tag in readme is broken after namechange from MagicHQ to MagicLabs - -#### Changed - -- Removed the `magic-sdk/react-native` entry-point. To use React Native with Magic SDK, install `@magic-sdk/react-native` instead. There are no breaking API changes related to public SDK methods. - -## `1.4.0` - 05/14/2020 - -#### Added - -- `PromiEvent` interface for increasing the flexibility developers have when building 100% whitelabeled authentication flows using Magic SDK. This is a completely optional feature. Documentation is coming soon! - -## `1.3.5` - 05/14/2020 - -#### Fixed - -- Fixed a bug where React Native typings would pollute web environments not using Webpack. - -## `1.3.4` - 05/14/2020 - -#### Fixed - -- Alias the `Magic` constructor import to the SDK instance type. We have pretty complex extension typings which wrap the base SDK class, which was making typing a variable as `Magic` unnecessarily difficult! Now, you can use the constructor as the instance type as expected. - -- Fixed a bug that would prevent typings from being available in a React Native environment. - -## `1.3.3` - 05/14/2020 - -#### Fixed - -- Fix a bug affecting Ethers JS V5 beta that would fail to attach the required ID parameter to JSON RPC 2.0 request payloads. - -## `1.3.2` - 05/07/2020 - -#### Fixed - -- The React Native entry point encountered an issue where `Buffer` is `undefined`. This is now resolved! - -## `1.3.1` - 05/06/2020 - -#### Changed - -- The React Native entry point now issues a warning if the `endpoint` parameter is used. This parameter should only be customized for web/browser targets. Existing implementations will continue to work with the warning. - -- The default `endpoint` URL for React Native integrations is `https://box.magic.link`. - -## `1.3.0` - 05/05/2020 - -#### Added - -- Support for configuring [Harmony](https://www.harmony.one/) network as the Etherum chain type. Further documentation is coming soon. - -## `1.2.1` - 04/30/2020 - -#### Fixed - -- Removed the `pako` dependency as it was negatively impacting SDK bundle size. - -## `1.2.0` - 04/29/2020 - -#### Added - -- The new `Extension` interface will soon enable Magic SDK to support official - and third-party plugins! - -## `1.1.4` - 04/28/2020 - -#### Changed - -- Allow JSON RPC responses from the Magic `