matterbridge-example-camera 0.2.1 → 0.2.2-dev-20260902-021d83c

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
@@ -30,6 +30,14 @@ If you like this project and find it useful, please consider giving it a star on
30
30
 
31
31
  <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
32
32
 
33
+ ## [0.2.2] - Dev branch
34
+
35
+ ### Changed
36
+
37
+ - [camera]: Remove the temporary `ObjectSchema.injectField` workaround now that Matterbridge includes the upstream matter.js fix for optional nested struct fields.
38
+
39
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
40
+
33
41
  ## [0.2.1] - 2026-08-30
34
42
 
35
43
  ### Added
package/dist/module.js CHANGED
@@ -1,4 +1,3 @@
1
- import './patches/objectSchemaInjectFieldFix.js';
2
1
  import { inspect } from 'node:util';
3
2
  import { MatterbridgeDynamicPlatform } from 'matterbridge';
4
3
  import { MatterbridgeBindingServer } from 'matterbridge/behaviors';
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-example-camera",
3
- "version": "0.2.1",
3
+ "version": "0.2.2-dev-20260902-021d83c",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-example-camera",
9
- "version": "0.2.1",
9
+ "version": "0.2.2-dev-20260902-021d83c",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "node-ansi-logger": "3.3.1",
@@ -435,9 +435,9 @@
435
435
  }
436
436
  },
437
437
  "node_modules/mediabunny": {
438
- "version": "1.55.4",
439
- "resolved": "https://registry.npmjs.org/mediabunny/-/mediabunny-1.55.4.tgz",
440
- "integrity": "sha512-dJDE7ScjKlt21ZA3wS0xWQtgXjoUBEkWzjbnTVX5/BdN88C4QMdQu1u+K13vPHbuEbvjKbsXdYy38M3JTtPRHw==",
438
+ "version": "1.55.5",
439
+ "resolved": "https://registry.npmjs.org/mediabunny/-/mediabunny-1.55.5.tgz",
440
+ "integrity": "sha512-m0v6y8FGXiK+HKOc3AZqU+kJPLYsSKaLitmQNQIIHZKIGlTwQ34OF+X6Ul0K8iV4b03oPse10apwuoqbvmKeAA==",
441
441
  "license": "MPL-2.0",
442
442
  "workspaces": [
443
443
  ".",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-example-camera",
3
- "version": "0.2.1",
3
+ "version": "0.2.2-dev-20260902-021d83c",
4
4
  "description": "Matterbridge camera example plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",
@@ -1,17 +0,0 @@
1
- import { ObjectSchema } from 'matterbridge/matter/types';
2
- function patchedInjectField(value, fieldId, fieldValue, injectChecker) {
3
- for (const k in this.fieldDefinitions) {
4
- const field = this.fieldDefinitions[k];
5
- if (field.id === fieldId) {
6
- if (injectChecker(value[k])) {
7
- field.schema.validate(fieldValue);
8
- value[k] = fieldValue;
9
- }
10
- }
11
- else if (value[k] !== undefined && value[k] !== null) {
12
- value[k] = field.schema.injectField(value[k], fieldId, fieldValue, injectChecker);
13
- }
14
- }
15
- return value;
16
- }
17
- ObjectSchema.prototype.injectField = patchedInjectField;