Skip to content

Commit c45f769

Browse files
committed
Merge branch 'develop'
2 parents 490a284 + bfebdca commit c45f769

File tree

4 files changed

+54
-64
lines changed

4 files changed

+54
-64
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 2.3.0
6+
- Bugfix: Segmentation Fault when retrieving window title [(#377)](https://github.com/nut-tree/nut.js/issues/377)
7+
- Enhancement: Automatically check and request required permissions on macOS [(#377)](https://github.com/nut-tree/nut.js/issues/377)
8+
59
## 2.2.1
610
- Enhancement: Scale easing function result by base speed before applying [(#425)](https://github.com/nut-tree/nut.js/issues/425)
711
- Maintenance: Resolve security vulnerabilities [(#422)](https://github.com/nut-tree/nut.js/issues/422)
@@ -161,4 +165,4 @@ All notable changes to this project will be documented in this file.
161165

162166
## 0.1.0-beta.1
163167

164-
- Enabled pre-built OpenCV bindings via `opencv4nodejs-prebuilt`
168+
- Enabled pre-built OpenCV bindings via `opencv4nodejs-prebuilt`

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,17 +160,24 @@ You can install them by running
160160
xcode-select --install
161161
```
162162

163-
**Attention**:
163+
**Permissions**:
164+
165+
nut.js requires the executing application, e.g. your terminal, to be given both `Accessibility` and `Screen Recording` permissions.
164166

165-
In case you're experiencing problems like your mouse not moving or your keyboard not typing,
166-
please make sure to give the process you're executing your tests with accessibility permissions.
167+
Starting with release `2.3.0`, nut.js will check for and request these permissions automatically:
167168

168-
nut.js will give you a subtle hint in case permissions are lacking:
169+
<p align="center">
170+
<img src="https://github.com/nut-tree/nut.js/raw/develop/.gfx/permissions_popup.png" alt="Popup requesting screen recording permissions"/>
171+
</p>
169172

170-
`##### WARNING! The application running this script is not a trusted process! Please visit https://github.com/nut-tree/nut.js#macos #####`
173+
It will also give you a subtle hint in case permissions are lacking:
174+
175+
- Accessibility: `##### WARNING! The application running this script is not a trusted process! Please visit https://github.com/nut-tree/nut.js#macos #####`
176+
- Screen Recording: `##### WARNING! The application running this script is not allowed to capture screen content! Please visit https://github.com/nut-tree/nut.js#macos #####`
177+
178+
**Attention**:
171179

172-
When an application wants to use accessibility features, a permission pop-up should be shown.
173-
If not, you could try to manually add the application you're running the script from.
180+
Prior to release `2.3.0` you'll have to grant these permissions manually.
174181

175182
`Settings -> Security & Privacy -> Privacy tab -> Accessibility -> Add...`
176183

package-lock.json

Lines changed: 33 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nut-tree/nut-js",
3-
"version": "2.2.1",
3+
"version": "2.3.0",
44
"license": "Apache-2.0",
55
"main": "dist/index",
66
"typings": "dist/index",
@@ -60,13 +60,12 @@
6060
"typedoc": "typedoc --options ./typedoc.js --entryPointStrategy expand ./lib"
6161
},
6262
"dependencies": {
63-
"@nut-tree/libnut": "2.2.0",
63+
"@nut-tree/libnut": "2.3.0",
6464
"clipboardy": "2.3.0",
6565
"jimp": "0.16.2",
6666
"node-abort-controller": "2.0.0"
6767
},
6868
"devDependencies": {
69-
"@types/clipboardy": "2.0.1",
7069
"@types/jest": "27.0.1",
7170
"@types/node": "16.7.10",
7271
"istanbul-merge": "1.1.1",

0 commit comments

Comments
 (0)