appium-uiautomator2-server 9.11.1 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## [10.0.0](https://github.com/appium/appium-uiautomator2-server/compare/v9.11.2...v10.0.0) (2026-05-08)
2
+
3
+ ### ⚠ BREAKING CHANGES
4
+
5
+ * package is now ESM-only
6
+ * default exports were removed, consumers must use named ESM imports
7
+
8
+ ### Features
9
+
10
+ * Migrate module to ESM ([#763](https://github.com/appium/appium-uiautomator2-server/issues/763)) ([568d6bf](https://github.com/appium/appium-uiautomator2-server/commit/568d6bf4ecd67eee019149c7feb9238b764f1111))
11
+
12
+ ## [9.11.2](https://github.com/appium/appium-uiautomator2-server/compare/v9.11.1...v9.11.2) (2026-04-18)
13
+
14
+ ### Miscellaneous Chores
15
+
16
+ * **deps:** bump io.netty:netty-codec-http ([#761](https://github.com/appium/appium-uiautomator2-server/issues/761)) ([f565492](https://github.com/appium/appium-uiautomator2-server/commit/f565492333bcd3eb5778da4dd631ecaa2d7b6a9f))
17
+
1
18
  ## [9.11.1](https://github.com/appium/appium-uiautomator2-server/compare/v9.11.0...v9.11.1) (2026-02-13)
2
19
 
3
20
  ### Bug Fixes
package/index.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import path from 'node:path';
2
+ import {createRequire} from 'node:module';
3
+ import {fileURLToPath} from 'node:url';
4
+
5
+ const require = createRequire(import.meta.url);
6
+ export const version = require('./package.json').version;
7
+
8
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
9
+ export const SERVER_APK_PATH = path.resolve(__dirname, 'apks', `appium-uiautomator2-server-v${version}.apk`);
10
+ export const TEST_APK_PATH = path.resolve(__dirname, 'apks', 'appium-uiautomator2-server-debug-androidTest.apk');
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "appium-uiautomator2-server",
3
- "version": "9.11.1",
3
+ "version": "10.0.0",
4
4
  "description": "A netty server with uiautomator2 handlers",
5
- "main": "index.js",
5
+ "type": "module",
6
+ "main": "index.mjs",
6
7
  "repository": {
7
8
  "type": "git",
8
9
  "url": "https://github.com/appium/appium-uiautomator2-server"
@@ -22,7 +23,7 @@
22
23
  "url": "https://github.com/appium/appium-uiautomator2-server/issues"
23
24
  },
24
25
  "files": [
25
- "./index.js",
26
+ "./index.mjs",
26
27
  "./apks",
27
28
  "CHANGELOG.md"
28
29
  ],
package/index.js DELETED
@@ -1,12 +0,0 @@
1
- const path = require('node:path');
2
- const version = require('./package.json').version;
3
-
4
- const SERVER_APK_PATH = path.resolve(__dirname, 'apks', `appium-uiautomator2-server-v${version}.apk`);
5
- const TEST_APK_PATH = path.resolve(__dirname, 'apks', 'appium-uiautomator2-server-debug-androidTest.apk');
6
-
7
-
8
- module.exports = {
9
- SERVER_APK_PATH,
10
- TEST_APK_PATH,
11
- version,
12
- };