UNPKG

@airmoney-degn/controller-sdk

Version:

SDK for controlling AirMoney devices, providing button screen management, key event handling, and device communication capabilities

330 lines (179 loc) 7.13 kB
# @airmoney-degn/controller-sdk ## 5.3.1 ### Patch Changes - Add API for removing app ## 5.3.0 ### Minor Changes - - Added key combination handling with immediate, multi-callback support. - Enabled dynamic, simplified configuration. - Improved key event logging for better tracking ## 5.2.5 ### Patch Changes - - Refactored methods in AirMoneyCryptoService and AirMoneyService to use await for request handling, improving asynchronous behavior. - Added signEVMRawTransaction method to AirMoneyCryptoService for signing EVM transactions with normalized input. - Updated type definitions to include AMCryptoServiceSignEvmRawTransactionParams. - Enhanced overall code readability and maintainability. ## 5.2.4 ### Patch Changes - - Introduced cryptoServiceErrorWrapper and airmoneyServiceErrorWrapper for enhanced error handling. - Improved consistency in error management across services. ## 5.2.3 ### Patch Changes - - Implemented restoreSvmWallet method for restoring SVM wallets using mnemonic and optional passphrase. - Updated type definitions to include AMCryptoServiceRestoreSvmWalletParams and AMCryptoServiceRestoreSvmWalletResponse. - Enhanced service functionality for wallet management. ## 5.2.2 ### Patch Changes - - Changed method definitions to use arrow function syntax for consistency. - Updated method signatures in AirMoneyCryptoService, AirMoneyService, and AirMoneyUpdateService. - Improved readability and maintainability of the service classes. ## 5.2.1 ### Patch Changes - - Renamed displayImage and displayGif methods to setImage and setAnimate respectively. - Introduced throttling configuration for setImage and setAnimate methods. - Updated type definitions to reflect new method names and parameters. - Enhanced method handling to support throttling logic. ## 5.2.0 ### Minor Changes - - Add throttling support for methods to execute only the last call within a time window - Default throttling time set to 40ms - Add setMethodConfig to configure throttling per method - Support enabling/disabling throttling and custom time windows ## 5.1.2 ### Patch Changes - - Changed AirMoneyUpdateService to export the class. - Updated appVersions method to return a single AMServiceAppVersionsResponse instead of an array. - Modified type definitions in update-service to reflect new versioning fields. ## 5.1.1 ### Patch Changes - Update AMUpdateServiceAppCheck type to allow null values for current_version and current_build ## 5.1.0 ### Minor Changes - - Implemented getPairingStatus method in AirMoneyService to retrieve the current pairing status. - Added AMServicePairingStatusResponse type to support the new method. - Updated AMServiceMethodMap to include getPairingStatus method. ## 5.0.0 ### Major Changes - - Refactored AirMoneyUpdateService to use updated response types prefixed with AMUpdateService. - Introduced new types for handling success and error responses in update-service.ts. - Enhanced error handling in errorWrapper with a new updateServiceErrorWrapper function. - Updated type guards to support new update service response types. ## 4.5.0 ### Minor Changes - - Replaced the "dev" script in package.json to point to a new dev.sh script. - Added a new dev.sh script to check for global yalc installation and provide instructions if not found, along with commands to build and publish packages. - Enhanced the backToHome function in navigation.ts to include search parameters for improved app linking. ## 4.4.1 ### Patch Changes - - Introduced AMServiceInternetCheckRawResponse type for raw response handling. - Modified internetCheck method to parse the raw response and return AMServiceInternetCheckResponse. ## 4.4.0 ### Minor Changes - - Introduced new methods in AirMoneyService for managing haptic effects: getHapticEffects, getHapticConfig, and setHapticEffect. - Added corresponding types for haptic effects and configuration in airmoney-service and haptic files. - Created a test script to check for yalc installation and facilitate local package management. ## 4.3.0 ### Minor Changes - Changed the app link format from `.local` to `.internal` for improved internal routing ## 4.2.0 ### Minor Changes - Rename appId to appName in AirMoneyService and update metadata retrieval ## 4.1.0 ### Minor Changes - Update service API changes ## 4.0.2 ### Patch Changes - Update path for setImage and setAnimate ## 4.0.1 ### Patch Changes - Correct endpoint path in appVersions method of AirMoneyUpdateService ## 4.0.0 ### Major Changes - Adapt with system update ## 3.9.1 ### Patch Changes - Enhance update service ## 3.9.0 ### Minor Changes - Introduce update service ## 3.8.0 ### Minor Changes - Upgrade AirmoneyService to include some more functions for setting app ## 3.7.0 ### Minor Changes - Auto detech identifier ## 3.6.2 ### Patch Changes - Document updated and mark MPC-related code as deprecated ## 3.6.1 ### Patch Changes - Export transaction types ## 3.6.0 ### Minor Changes - Publish crypto service ## 3.5.3 ### Patch Changes - Revert backToHome function ## 3.5.2 ### Patch Changes - Fix backToHome not workingh sometimes ## [3.5.2] - 2024-04-11 ### Fixed - Fixed backToHome function to handle cases where window.origin is not available by redirecting to localhost ## 3.5.1 ### Patch Changes - Update README ## 3.5.0 ### Minor Changes - Export response type definitions in AirMoneyCryptoService for better accessibility ## 3.4.0 ### Minor Changes - Add success and error response type guards in AirMoneyCryptoService ## 3.3.0 ### Minor Changes - Add serializeToHex utility and re-export converter in utils ## 3.2.0 ### Minor Changes - Add AirMoneyCryptoService with EVM and Solana operations, streamline response handling in AirMoneyCryptoService ## 3.1.0 ### Minor Changes - Streamline response handling in AirMoneyCryptoService ## 3.0.2 ### Patch Changes - Update AirmoneyService to check for undefined AIRMONEY_APP_ID instead of falsy value ## 3.0.1 ### Patch Changes - Update environment variable references in AirmoneyService and vite.config to use window object for consistency ## 3.0.0 ### Major Changes - Update environment variable references in AirmoneyService and vite.config for consistency ## 2.0.1 ### Patch Changes - Update AirMoneyService to use APP_ID and ASSETS_PATH environment variables in image path utility ## 2.0.0 ### Major Changes - Enhance AirMoneyService with environment variable checks and image path utility ## 1.2.2 ### Patch Changes - Correct export backToHome ## 1.2.1 ### Patch Changes - Bump version ## 1.2.0 ### Minor Changes - Add utility functions for navigation and validation, and export them in the SDK ## 1.1.2 ### Patch Changes - Update AMResponse type definition and improve signSolanaTransaction method formatting ## 1.1.1 ### Patch Changes - Bump version ## 1.1.0 ### Minor Changes - Add crypto service ## 1.0.1 ### Patch Changes - Prevent default behaviour of key event ## 1.0.0 ### Major Changes - Change class name