Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jsscripting] Upgrade openhab-js to fix cached library injection #15336

Merged
merged 1 commit into from
Jul 30, 2023

Conversation

florian-h05
Copy link
Contributor

It was found out that a recent change to the webpack config for the library injection bundle heavily affected performance of the evaluation of the cached injection.

openhab-js 4.5.1 fixes that regression and one minor bug, see https://github.com/openhab/openhab-js/blob/v4.5.1/CHANGELOG.md#451.

It was found out that a recent change to the webpack config for the library injection bundle heavily affected performance of the evaluation of the cached injection.

openhab-js 4.5.1 fixes that regression and one minor bug, see https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#451.
@florian-h05 florian-h05 changed the title [jsscripting] Upgrade openhab-js to 4.5.1 to fix cached injection [jsscripting] Upgrade openhab-js to fix cached library injection Jul 30, 2023
@florian-h05 florian-h05 requested a review from jlaur July 30, 2023 12:24
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Can you fix the DCO? Would you agree this should be backported to 4.0.x as a regression?

@jlaur jlaur added the bug An unexpected problem or unintended behavior of an add-on label Jul 30, 2023
@florian-h05
Copy link
Contributor Author

Is it enough to comment DCO?

Signed-off-by: Florian Hotze florianh_dev@icloud.com

Would you agree this should be backported to 4.0.x as a regression?

Yes, just give me one or two day(s) to test the SNAPSHOT before backporting this.

@jlaur jlaur merged commit bf7f24c into openhab:main Jul 30, 2023
@jlaur jlaur added this to the 4.1 milestone Jul 30, 2023
@florian-h05 florian-h05 deleted the jsscripting-ohjs branch July 30, 2023 13:01
@florian-h05
Copy link
Contributor Author

@jlaur I've tested the fix, works great! This is ready to be backported now.

jlaur pushed a commit that referenced this pull request Aug 2, 2023
…5336)

It was found out that a recent change to the webpack config for the library injection bundle heavily affected performance of the evaluation of the cached injection.

openhab-js 4.5.1 fixes that regression and one minor bug, see https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#451.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@jlaur jlaur added the patch A PR that has been cherry-picked to a patch release branch label Aug 2, 2023
@openhab-bot
Copy link
Collaborator

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

https://community.openhab.org/t/20-seconds-delay-until-js-script-gets-executed/148181/6

austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
…enhab#15336)

It was found out that a recent change to the webpack config for the library injection bundle heavily affected performance of the evaluation of the cached injection.

openhab-js 4.5.1 fixes that regression and one minor bug, see https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#451.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on patch A PR that has been cherry-picked to a patch release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants