appium-uiautomator2-server 9.11.2 → 10.0.1

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.1](https://github.com/appium/appium-uiautomator2-server/compare/v10.0.0...v10.0.1) (2026-05-09)
2
+
3
+ ### Miscellaneous Chores
4
+
5
+ * **deps:** bump io.netty:netty-codec-http ([#764](https://github.com/appium/appium-uiautomator2-server/issues/764)) ([7eac732](https://github.com/appium/appium-uiautomator2-server/commit/7eac732d588fa0371bfdfb7a540453466d3dc8a1))
6
+
7
+ ## [10.0.0](https://github.com/appium/appium-uiautomator2-server/compare/v9.11.2...v10.0.0) (2026-05-08)
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * package is now ESM-only
12
+ * default exports were removed, consumers must use named ESM imports
13
+
14
+ ### Features
15
+
16
+ * Migrate module to ESM ([#763](https://github.com/appium/appium-uiautomator2-server/issues/763)) ([568d6bf](https://github.com/appium/appium-uiautomator2-server/commit/568d6bf4ecd67eee019149c7feb9238b764f1111))
17
+
1
18
  ## [9.11.2](https://github.com/appium/appium-uiautomator2-server/compare/v9.11.1...v9.11.2) (2026-04-18)
2
19
 
3
20
  ### Miscellaneous Chores
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.2",
3
+ "version": "10.0.1",
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
- };