Skip to content

Add breaking change alerts for JS Scripting - #1807

Merged
holgerfriedrich merged 1 commit into
openhab:mainfrom
florian-h05:jsscripting
Sep 17, 2025
Merged

Add breaking change alerts for JS Scripting#1807
holgerfriedrich merged 1 commit into
openhab:mainfrom
florian-h05:jsscripting

Conversation

@florian-h05

@florian-h05 florian-h05 commented Sep 16, 2025

Copy link
Copy Markdown
Contributor
  • Warn about breaking change for UI event object. (In fact the existing code will in most cases continue to work, it will print deprecation warnings to the log.)
  • Advise to manually import the library into file-based scripts and transformations and turn off auto-injection.

Signed-off-by: Florian Hotze dev@florianhotze.com

- Warn about breaking change for UI event object. (In fact the existing code will in most cases continue to work, it will print deprecation warnings to the log.)
- Advise to manually import the library into file-based scripts and transformations and turn off auto-injection.
@florian-h05
florian-h05 requested a review from a team as a code owner September 16, 2025 21:39
@holgerfriedrich

Copy link
Copy Markdown
Member

...DCO failed....

@florian-h05

Copy link
Copy Markdown
Contributor Author

Yes, because I committed through GitHub web. I added the DCO to the PR description so you can copy it into the commit message of the squash merge.

@holgerfriedrich
holgerfriedrich merged commit 85824bc into openhab:main Sep 17, 2025
1 of 2 checks passed
@holgerfriedrich holgerfriedrich added this to the 5.1 milestone Sep 17, 2025
@florian-h05
florian-h05 deleted the jsscripting branch September 17, 2025 07:58
@miloit

miloit commented Sep 21, 2025

Copy link
Copy Markdown

@florian-h05 What exactly do I need to add to my file based rules?

@florian-h05

Copy link
Copy Markdown
Contributor Author
const { actions, items, rules } = require('openhab'); // every namespace can be imported this way

@openhab-bot

Copy link
Copy Markdown
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/openhab-5-1-snapshot-discussion/165595/22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants