Skip to content

Commit dbf71f2

Browse files
chore: release 1.1.20-alpha.2 (#628)
1 parent 4a835d0 commit dbf71f2

File tree

24 files changed

+67
-66
lines changed

24 files changed

+67
-66
lines changed

packages/connect-examples/electron-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "hardware-example",
33
"productName": "HardwareExample",
44
"executableName": "onekey-hardware-example",
5-
"version": "1.1.20-alpha.1",
5+
"version": "1.1.20-alpha.2",
66
"author": "OneKey",
77
"description": "End-to-end encrypted workspaces for teams",
88
"main": "dist/index.js",
@@ -22,7 +22,7 @@
2222
"ts:check": "yarn tsc --noEmit"
2323
},
2424
"dependencies": {
25-
"@onekeyfe/hd-transport-electron": "1.1.20-alpha.1",
25+
"@onekeyfe/hd-transport-electron": "1.1.20-alpha.2",
2626
"@stoprocent/noble": "2.3.4",
2727
"debug": "4.3.4",
2828
"electron-is-dev": "^3.0.1",

packages/connect-examples/expo-example/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "expo-example",
3-
"version": "1.1.20-alpha.1",
3+
"version": "1.1.20-alpha.2",
44
"scripts": {
55
"start": "cross-env CONNECT_SRC=https://localhost:8087/ yarn expo start --dev-client",
66
"android": "yarn expo run:android",
@@ -19,10 +19,10 @@
1919
"@noble/ed25519": "^2.1.0",
2020
"@noble/hashes": "^1.3.3",
2121
"@noble/secp256k1": "^1.7.1",
22-
"@onekeyfe/hd-ble-sdk": "1.1.20-alpha.1",
23-
"@onekeyfe/hd-common-connect-sdk": "1.1.20-alpha.1",
24-
"@onekeyfe/hd-core": "1.1.20-alpha.1",
25-
"@onekeyfe/hd-web-sdk": "1.1.20-alpha.1",
22+
"@onekeyfe/hd-ble-sdk": "1.1.20-alpha.2",
23+
"@onekeyfe/hd-common-connect-sdk": "1.1.20-alpha.2",
24+
"@onekeyfe/hd-core": "1.1.20-alpha.2",
25+
"@onekeyfe/hd-web-sdk": "1.1.20-alpha.2",
2626
"@onekeyfe/react-native-ble-utils": "^0.1.3",
2727
"@polkadot/util-crypto": "13.1.1",
2828
"@react-native-async-storage/async-storage": "1.21.0",

packages/connect-examples/expo-playground/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "onekey-hardware-playground",
3-
"version": "1.1.20-alpha.1",
3+
"version": "1.1.20-alpha.2",
44
"private": true,
55
"sideEffects": [
66
"app/utils/shim.js",
@@ -17,9 +17,9 @@
1717
},
1818
"dependencies": {
1919
"@noble/hashes": "^1.8.0",
20-
"@onekeyfe/hd-common-connect-sdk": "1.1.20-alpha.1",
21-
"@onekeyfe/hd-core": "1.1.20-alpha.1",
22-
"@onekeyfe/hd-shared": "1.1.20-alpha.1",
20+
"@onekeyfe/hd-common-connect-sdk": "1.1.20-alpha.2",
21+
"@onekeyfe/hd-core": "1.1.20-alpha.2",
22+
"@onekeyfe/hd-shared": "1.1.20-alpha.2",
2323
"@radix-ui/react-checkbox": "^1.3.2",
2424
"@radix-ui/react-dialog": "^1.1.14",
2525
"@radix-ui/react-dropdown-menu": "^2.1.15",

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@onekeyfe/hd-core",
3-
"version": "1.1.20-alpha.1",
3+
"version": "1.1.20-alpha.2",
44
"description": "Core processes and APIs for communicating with OneKey hardware devices.",
55
"author": "OneKey",
66
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
@@ -25,8 +25,8 @@
2525
"url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
2626
},
2727
"dependencies": {
28-
"@onekeyfe/hd-shared": "1.1.20-alpha.1",
29-
"@onekeyfe/hd-transport": "1.1.20-alpha.1",
28+
"@onekeyfe/hd-shared": "1.1.20-alpha.2",
29+
"@onekeyfe/hd-transport": "1.1.20-alpha.2",
3030
"axios": "1.12.2",
3131
"bignumber.js": "^9.0.2",
3232
"bytebuffer": "^5.0.1",

packages/core/src/device/Device.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export class Device extends EventEmitter {
201201
connectId: DataManager.isBleConnect(env) ? this.mainId || null : getDeviceUUID(this.features),
202202
/** Hardware ID, will not change at any time */
203203
uuid: getDeviceUUID(this.features),
204-
communicationType: this.originalDescriptor.type,
204+
commType: this.originalDescriptor.commType,
205205
sdkInstanceId: this.sdkInstanceId,
206206
instanceId: this.instanceId,
207207
createdAt: this.createdAt,

packages/core/src/types/device.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { EDeviceType } from '@onekeyfe/hd-shared';
22

33
import type { IVersionArray } from './settings';
44
import type { PROTO } from '../constants';
5-
import type { OneKeyDeviceCommunicationType } from '@onekeyfe/hd-transport';
5+
import type { OneKeyDeviceCommType } from '@onekeyfe/hd-transport';
66

77
export type DeviceStatus = 'available' | 'occupied' | 'used';
88

@@ -26,7 +26,7 @@ export type KnownDevice = {
2626
uuid: string;
2727
deviceId: string | null;
2828
deviceType: IDeviceType | null;
29-
communicationType: OneKeyDeviceCommunicationType | null;
29+
commType: OneKeyDeviceCommType | null;
3030
path: string;
3131
label: string;
3232
bleName: string | null;
@@ -50,6 +50,7 @@ export type SearchDevice = {
5050
deviceId: string | null;
5151
deviceType: IDeviceType;
5252
name: string;
53+
commType: OneKeyDeviceCommType;
5354
};
5455

5556
// export type UnknownDevice = {

packages/hd-ble-sdk/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@onekeyfe/hd-ble-sdk",
3-
"version": "1.1.20-alpha.1",
3+
"version": "1.1.20-alpha.2",
44
"author": "OneKey",
55
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
66
"license": "ISC",
@@ -20,8 +20,8 @@
2020
"lint:fix": "eslint . --fix"
2121
},
2222
"dependencies": {
23-
"@onekeyfe/hd-core": "1.1.20-alpha.1",
24-
"@onekeyfe/hd-shared": "1.1.20-alpha.1",
25-
"@onekeyfe/hd-transport-react-native": "1.1.20-alpha.1"
23+
"@onekeyfe/hd-core": "1.1.20-alpha.2",
24+
"@onekeyfe/hd-shared": "1.1.20-alpha.2",
25+
"@onekeyfe/hd-transport-react-native": "1.1.20-alpha.2"
2626
}
2727
}

packages/hd-common-connect-sdk/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@onekeyfe/hd-common-connect-sdk",
3-
"version": "1.1.20-alpha.1",
3+
"version": "1.1.20-alpha.2",
44
"author": "OneKey",
55
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
66
"license": "ISC",
@@ -20,11 +20,11 @@
2020
"lint:fix": "eslint . --fix"
2121
},
2222
"dependencies": {
23-
"@onekeyfe/hd-core": "1.1.20-alpha.1",
24-
"@onekeyfe/hd-shared": "1.1.20-alpha.1",
25-
"@onekeyfe/hd-transport-emulator": "1.1.20-alpha.1",
26-
"@onekeyfe/hd-transport-http": "1.1.20-alpha.1",
27-
"@onekeyfe/hd-transport-lowlevel": "1.1.20-alpha.1",
28-
"@onekeyfe/hd-transport-web-device": "1.1.20-alpha.1"
23+
"@onekeyfe/hd-core": "1.1.20-alpha.2",
24+
"@onekeyfe/hd-shared": "1.1.20-alpha.2",
25+
"@onekeyfe/hd-transport-emulator": "1.1.20-alpha.2",
26+
"@onekeyfe/hd-transport-http": "1.1.20-alpha.2",
27+
"@onekeyfe/hd-transport-lowlevel": "1.1.20-alpha.2",
28+
"@onekeyfe/hd-transport-web-device": "1.1.20-alpha.2"
2929
}
3030
}

packages/hd-transport-electron/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@onekeyfe/hd-transport-electron",
3-
"version": "1.1.20-alpha.1",
3+
"version": "1.1.20-alpha.2",
44
"author": "OneKey",
55
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
66
"license": "MIT",
@@ -25,9 +25,9 @@
2525
"electron-log": ">=4.0.0"
2626
},
2727
"dependencies": {
28-
"@onekeyfe/hd-core": "1.1.20-alpha.1",
29-
"@onekeyfe/hd-shared": "1.1.20-alpha.1",
30-
"@onekeyfe/hd-transport": "1.1.20-alpha.1",
28+
"@onekeyfe/hd-core": "1.1.20-alpha.2",
29+
"@onekeyfe/hd-shared": "1.1.20-alpha.2",
30+
"@onekeyfe/hd-transport": "1.1.20-alpha.2",
3131
"@stoprocent/noble": "2.3.4",
3232
"p-retry": "^4.6.2"
3333
},

packages/hd-transport-electron/src/noble-ble-handler.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ async function enumerateDevices(): Promise<DeviceInfo[]> {
824824
if (!existingDevice) {
825825
const deviceName = peripheral.advertisement?.localName || 'Unknown Device';
826826
devices.push({
827-
type: 'electron-ble',
827+
commType: 'electron-ble',
828828
id,
829829
name: deviceName,
830830
state: peripheral.state || 'disconnected',
@@ -883,7 +883,7 @@ function getDevice(deviceId: string): DeviceInfo | null {
883883
if (peripheral) {
884884
const deviceName = peripheral.advertisement?.localName || 'Unknown Device';
885885
return {
886-
type: 'electron-ble',
886+
commType: 'electron-ble',
887887
id: peripheral.id,
888888
name: deviceName,
889889
state: peripheral.state || 'disconnected',
@@ -895,7 +895,7 @@ function getDevice(deviceId: string): DeviceInfo | null {
895895
if (connectedPeripheral) {
896896
const deviceName = connectedPeripheral.advertisement?.localName || 'Unknown Device';
897897
return {
898-
type: 'electron-ble',
898+
commType: 'electron-ble',
899899
id: connectedPeripheral.id,
900900
name: deviceName,
901901
state: connectedPeripheral.state || 'connected',
@@ -905,7 +905,7 @@ function getDevice(deviceId: string): DeviceInfo | null {
905905
// For direct connection mode, return a placeholder device info
906906
// This allows the connection process to proceed without prior discovery
907907
return {
908-
type: 'electron-ble',
908+
commType: 'electron-ble',
909909
id: deviceId,
910910
name: 'OneKey Device',
911911
state: 'disconnected',

0 commit comments

Comments
 (0)