diff --git a/CHANGELOG.md b/CHANGELOG.md index 64724cc6..4a4d9215 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,25 @@ All notable changes to this project will be documented in this file. If you like this project and find it useful, please consider giving it a star on GitHub at https://github.com/Luligu/matterbridge and sponsoring it. +## [1.5.3] - 2024-09-04 + +### Added + +- [frontend]: Added mattermdnsinterface, matteripv4address and matteripv6address to the matter settings. If no parameters are added, Matterbridge will use the settings from the frontend that are saved. The default is all interfaces. If you are facing issues with pairing, I suggest to try first to put the interfaceName (e.g eth0, WiFi) in the MdnsInterface field. When nothing is selected, NodeJs will choose the interface but sometimes the choice is not correct at all. + +### Changed + +- [package]: Update dependencies. +- [package]: Update matter-node.js to 0.10.0 and removed the Scene cluster to follow matter.js. +- [package]: Update matter-history to 1.1.8. +- [package]: Removed long deprecated exports. + + + + + +## [1.5.2] - 2024-08-30 + ### Breaking Changes - [-bridge -childbridge]: You don't need anymore to add the parmeter -bridge or -childbridge on the command line or systemctl configuration or docker command: the default is bridge mode and if no parameter is added, Matterbridge uses the settings from the frontend that are saved. @@ -16,8 +35,6 @@ If you like this project and find it useful, please consider giving it a star on - please read this [Development guide lines](https://github.com/Luligu/matterbridge/blob/main/README-DEV.md) -## [1.5.2] - 2024-08-30 - ### Added - [frontend]: Added a confirmation message for removing and disabling plugins. diff --git a/TODO.md b/TODO.md index e6b1294c..a784fb63 100644 --- a/TODO.md +++ b/TODO.md @@ -3,5 +3,6 @@ - OTA for matterbridge - Add test for triggerSwitchEvent configureColorControlCluster configureColorControlMode - bug on sessions +- when change mode update QR immediately The following actions use a deprecated Node.js version and will be forced to run on node20: docker/login-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ \ No newline at end of file diff --git a/docker/Dockerfile.shelly.alpine b/docker/Dockerfile.shelly.alpine index 8d3854ec..a6410774 100644 --- a/docker/Dockerfile.shelly.alpine +++ b/docker/Dockerfile.shelly.alpine @@ -1,9 +1,9 @@ -FROM alpine:latest AS base +FROM node:20-alpine AS base # FROM alpine:latest as base not working for linux/arm/v7 # FROM node:20-alpine as base not working for linux/arm/v7 WORKDIR /app -RUN apk add --no-cache nodejs npm icu-data-full +# RUN apk add --no-cache nodejs npm icu-data-full COPY ./package.json ./package-lock.json ./tsconfig.json ./ COPY ./src ./src @@ -20,6 +20,4 @@ COPY ./docker/shellyEntrypoint.sh ./ RUN chmod +x ./shellyEntrypoint.sh ENTRYPOINT ["./shellyEntrypoint.sh"] -# Node modules: /usr/local/lib/node_modules/matterbridge/dist/cli.js -# Bin: /usr/local/bin/matterbridge CMD ["matterbridge", "-docker"] diff --git a/frontend/build/asset-manifest.json b/frontend/build/asset-manifest.json index 7e461645..ea916ad9 100644 --- a/frontend/build/asset-manifest.json +++ b/frontend/build/asset-manifest.json @@ -1,15 +1,15 @@ { "files": { "main.css": "/static/css/main.1cf003ae.css", - "main.js": "/static/js/main.cfcfbb06.js", + "main.js": "/static/js/main.6725e5ab.js", "static/js/453.abd36b29.chunk.js": "/static/js/453.abd36b29.chunk.js", "index.html": "/index.html", "main.1cf003ae.css.map": "/static/css/main.1cf003ae.css.map", - "main.cfcfbb06.js.map": "/static/js/main.cfcfbb06.js.map", + "main.6725e5ab.js.map": "/static/js/main.6725e5ab.js.map", "453.abd36b29.chunk.js.map": "/static/js/453.abd36b29.chunk.js.map" }, "entrypoints": [ "static/css/main.1cf003ae.css", - "static/js/main.cfcfbb06.js" + "static/js/main.6725e5ab.js" ] } \ No newline at end of file diff --git a/frontend/build/index.html b/frontend/build/index.html index abb233fb..b9ffcb27 100644 --- a/frontend/build/index.html +++ b/frontend/build/index.html @@ -1 +1 @@ -
-1;)f!==e&&l.call(f,h,1),l.call(e,h,1);return e}},66487:e=>{e.exports=function(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r}},55647:(e,t,r)=>{var n=r(33279),o=r(55636),a=r(46350);e.exports=function(e,t){return a(o(e,t,n),e+"")}},9261:(e,t,r)=>{var n=r(78420),o=r(35324),a=r(69194),i=r(46686),s=r(70914);e.exports=function(e,t,r,l){if(!i(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,p=e;null!=p&&++c{var n=r(22541),o=r(5654),a=r(33279),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:a;e.exports=i},53871:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n=l?c:c*("desc"==r[o]?-1:1)}return e.index-t.index}},91980:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{var n=r(52969),o=r(53871);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},56552:(e,t,r)=>{var n=r(37105),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},53737:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},86179:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},46704:e=>{e.exports=function(e){return this.__data__.has(e)}},52074:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},46350:(e,t,r)=>{var n=r(28325),o=r(86578)(n);e.exports=o},86578:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),a=16-(o-n);if(n=o,a>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},84545:(e,t,r)=>{var n=r(97160);e.exports=function(){this.__data__=new n,this.size=0}},10793:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},27760:e=>{e.exports=function(e){return this.__data__.get(e)}},3892:e=>{e.exports=function(e){return this.__data__.has(e)}},76788:(e,t,r)=>{var n=r(97160),o=r(85204),a=r(64816);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},94020:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n%1
.",e.UnsupportedFieldWithReason="Unsupported field schema: %1.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field %1
: %2.",e.FilesInfo="**%1** (%2, %3 bytes)"}(uf||(uf={}));r(55491);var vf=r(22616),yf=r.n(vf);let bf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"")};function xf(){return bf()}function wf(e){return Array.isArray(e)?e.map((e=>({key:xf(),item:e}))):[]}function Sf(e){return Array.isArray(e)?e.map((e=>e.item)):[]}class Af extends t.Component{constructor(e){super(e),this._getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props,{schemaUtils:r}=t;let n=e.items;return cp(e)&&function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),_u(e.additionalItems)}(e)&&(n=e.additionalItems),r.getDefaultFormState(n)},this.onAddClick=e=>{this._handleAddClick(e)},this.onAddIndexClick=e=>t=>{this._handleAddClick(t,e)},this.onCopyIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<=e?Id()(a,[r],n[t]):r>e&&Id()(a,[r+1],n[t])}}const i={key:xf(),item:Dp()(o[e].item)},s=[...o];void 0!==e?s.splice(e+1,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(Sf(s),a)))},this.onDropIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!==o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!==o--;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}},80219:(e,t,r)=>{"use strict";var n=r(53763),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(h){var o=f(r);o&&o!==h&&e(t,o,n)}var i=u(r);d&&(i=i.concat(d(r)));for(var s=l(t),m=l(r),g=0;g