# 包管理子系统JS API变更 OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,包管理子系统的API变更如下: ## 接口变更 | 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | |---|---|---|---| | bundleInfo | BundleInfo | readonly extensionAbilityInfo: Array\; | 新增 | | hapModuleInfo | HapModuleInfo | readonly metadata: Array\; | 新增 | | hapModuleInfo | HapModuleInfo | readonly extensionAbilityInfo: Array\; | 新增 | | hapModuleInfo | HapModuleInfo | readonly mainElementName: string; | 新增 | | metadata | Metadata | resource: string; | 新增 | | metadata | Metadata | value: string; | 新增 | | metadata | Metadata | name: string; | 新增 | | ohos.bundle | bundle | queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, userId: number, callback: AsyncCallback\>): void;
queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, callback: AsyncCallback\>): void;
queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, userId?: number): Promise\>; | 新增 | | ohos.bundle | ExtensionAbilityType | UNSPECIFIED = 9 | 新增 | | ohos.bundle | ExtensionAbilityType | WALLPAPER = 8 | 新增 | | ohos.bundle | ExtensionAbilityType | STATIC_SUBSCRIBER = 7 | 新增 | | ohos.bundle | ExtensionAbilityType | FILE_SHARE = 6 | 新增 | | ohos.bundle | ExtensionAbilityType | DATA_SHARE = 5 | 新增 | | ohos.bundle | ExtensionAbilityType | ACCESSIBILITY = 4 | 新增 | | ohos.bundle | ExtensionAbilityType | SERVICE = 3 | 新增 | | ohos.bundle | ExtensionAbilityType | INPUT_METHOD = 2 | 新增 | | ohos.bundle | ExtensionAbilityType | WORK_SCHEDULER = 1 | 新增 | | ohos.bundle | ExtensionAbilityType | FORM = 0 | 新增 | | ohos.bundle | ExtensionFlag | GET_EXTENSION_INFO_WITH_METADATA = 0x00000020 | 新增 | | ohos.bundle | ExtensionFlag | GET_EXTENSION_INFO_WITH_APPLICATION = 0x00000004 | 新增 | | ohos.bundle | ExtensionFlag | GET_EXTENSION_INFO_WITH_PERMISSION = 0x00000002 | 新增 | | ohos.bundle | ExtensionFlag | GET_EXTENSION_INFO_DEFAULT = 0x00000000 | 新增 | | ohos.bundle | BundleFlag | GET_BUNDLE_WITH_EXTENSION_ABILITY = 0x00000020 | 新增 |