bg2e-js 2.2.9 → 2.2.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bg2e-js",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
4
4
  "description": "a graphics engine for productivity applications",
5
5
  "main": "./dist/bg2e-js.js",
6
6
  "types": "./src/index.ts",
@@ -23,7 +23,11 @@ import FindNodeVisitor from "./FindNodeVisitor";
23
23
  export const registerComponents = () => {
24
24
  registerComponent("Drawable", DrawableComponent);
25
25
  registerComponent("Transform", TransformComponent);
26
+
27
+ // Retrocompatibility: the light is registered with both "Light" and "LightComponent" names, but only "LightComponent" should be used in the future
26
28
  registerComponent("Light", LightComponent);
29
+ registerComponent("LightComponent", LightComponent);
30
+
27
31
  registerComponent("Chain", ChainComponent);
28
32
  registerComponent("InputChainJoint", InputChainJointComponent);
29
33
  registerComponent("OutputChainJoint", OutputChainJointComponent);