diff --git a/CHANGELOG.md b/CHANGELOG.md index df18c889..e896d954 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +## [0.6.1] - 2024-09-23 + +### Added +- Export all missing types in `src/index` + ## [0.6.0] - 2024-09-18 ### Added diff --git a/package-lock.json b/package-lock.json index 40926156..493b8853 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@coinbase/coinbase-sdk", - "version": "0.6.0", + "version": "0.6.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@coinbase/coinbase-sdk", - "version": "0.6.0", + "version": "0.6.1", "license": "ISC", "dependencies": { "@scure/bip32": "^1.4.0", diff --git a/package.json b/package.json index a23db515..e3d368b1 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "license": "ISC", "description": "Coinbase Platform SDK", "repository": "https://github.com/coinbase/coinbase-sdk-nodejs", - "version": "0.6.0", + "version": "0.6.1", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { diff --git a/quickstart-template/package.json b/quickstart-template/package.json index 8d39fdef..c21421dc 100644 --- a/quickstart-template/package.json +++ b/quickstart-template/package.json @@ -15,7 +15,7 @@ "license": "ISC", "type": "module", "dependencies": { - "@coinbase/coinbase-sdk": "^0.6.0", + "@coinbase/coinbase-sdk": "^0.6.1", "csv-parse": "^5.5.6", "csv-writer": "^1.6.0", "viem": "^2.21.6" diff --git a/src/index.ts b/src/index.ts index 485f509e..52995d59 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,24 +1,29 @@ -export * from "./coinbase/coinbase"; -export * from "./coinbase/wallet"; export * from "./coinbase/address"; -export * from "./coinbase/asset"; -export * from "./coinbase/balance"; -export * from "./coinbase/balance_map"; -export * from "./coinbase/constants"; -export * from "./coinbase/errors"; -export * from "./coinbase/faucet_transaction"; -export * from "./coinbase/server_signer"; -export * from "./coinbase/trade"; -export * from "./coinbase/transaction"; -export * from "./coinbase/transfer"; -export * from "./coinbase/types"; export * from "./coinbase/address/external_address"; export * from "./coinbase/address/wallet_address"; -export * from "./coinbase/staking_operation"; -export * from "./coinbase/staking_reward"; -export * from "./coinbase/staking_balance"; -export * from "./coinbase/validator"; -export * from "./coinbase/webhook"; -export * from "./coinbase/smart_contract"; -export * from "./coinbase/payload_signature"; -export * from "./coinbase/hash"; +export * from './coinbase/api_error'; +export * from './coinbase/asset'; +export * from './coinbase/authenticator'; +export * from './coinbase/balance'; +export * from './coinbase/balance_map'; +export * from './coinbase/coinbase'; +export * from './coinbase/constants'; +export * from './coinbase/contract_event'; +export * from './coinbase/contract_invocation'; +export * from './coinbase/errors'; +export * from './coinbase/faucet_transaction'; +export * from './coinbase/hash'; +export * from './coinbase/historical_balance'; +export * from './coinbase/payload_signature'; +export * from './coinbase/server_signer'; +export * from './coinbase/smart_contract'; +export * from './coinbase/staking_balance'; +export * from './coinbase/staking_operation'; +export * from './coinbase/staking_reward'; +export * from './coinbase/trade'; +export * from './coinbase/transaction'; +export * from './coinbase/transfer'; +export * from './coinbase/types'; +export * from './coinbase/validator'; +export * from './coinbase/wallet'; +export * from './coinbase/webhook'; \ No newline at end of file diff --git a/src/tests/index_test.ts b/src/tests/index_test.ts new file mode 100644 index 00000000..29f73fac --- /dev/null +++ b/src/tests/index_test.ts @@ -0,0 +1,39 @@ +// test/index.test.ts +import * as index from "../index"; + +describe('Index file exports', () => { + it('should export all modules correctly', () => { + expect(index).toBeDefined(); + expect(index).toHaveProperty('Address'); + expect(index).toHaveProperty('APIError'); + expect(index).toHaveProperty('Asset'); + expect(index).toHaveProperty('Balance'); + expect(index).toHaveProperty('BalanceMap'); + expect(index).toHaveProperty('Coinbase'); + expect(index).toHaveProperty('ContractEvent'); + expect(index).toHaveProperty('ContractInvocation'); + expect(index).toHaveProperty('ExternalAddress'); + expect(index).toHaveProperty('FaucetTransaction'); + expect(index).toHaveProperty('GWEI_DECIMALS'); + expect(index).toHaveProperty('HistoricalBalance'); + expect(index).toHaveProperty('InvalidAPIKeyFormatError'); + expect(index).toHaveProperty('PayloadSignature'); + expect(index).toHaveProperty('ServerSigner'); + expect(index).toHaveProperty('SmartContract'); + expect(index).toHaveProperty('SponsoredSendStatus'); + expect(index).toHaveProperty('StakeOptionsMode'); + expect(index).toHaveProperty('StakingBalance'); + expect(index).toHaveProperty('StakingOperation'); + expect(index).toHaveProperty('StakingReward'); + expect(index).toHaveProperty('Trade'); + expect(index).toHaveProperty('Transaction'); + expect(index).toHaveProperty('TransactionStatus'); + expect(index).toHaveProperty('Transfer'); + expect(index).toHaveProperty('TransferStatus'); + expect(index).toHaveProperty('Validator'); + expect(index).toHaveProperty('Wallet'); + expect(index).toHaveProperty('WalletAddress'); + expect(index).toHaveProperty('Webhook'); + }); +}); +