@meshagent/meshagent 0.14.0 → 0.15.0

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
@@ -1,3 +1,6 @@
1
+ ## [0.15.0]
2
+ - Updated the bundled Luau WASM JavaScript bindings to support per-script environments (`envIndex`) and expose additional Lua operations (metatable/fenv and stack removal).
3
+
1
4
  ## [0.14.0]
2
5
  - Breaking change: updated Luau WASM JS bindings, including renaming the script load/compile export (`_riveLuaCompileAndRegisterScript` → `__luau_load`) and adjusting its signature
3
6
 
@@ -4431,7 +4431,7 @@ var YEvent = class {
4431
4431
  return isDeleted(this.transaction.deleteSet, struct.id);
4432
4432
  }
4433
4433
  /**
4434
- * @type {Map<string, { action: 'add' | 'update' | 'delete', oldValue: any, newValue: any }>}
4434
+ * @type {Map<string, { action: 'add' | 'update' | 'delete', oldValue: any }>}
4435
4435
  */
4436
4436
  get keys() {
4437
4437
  if (this._keys === null) {
@@ -7117,11 +7117,13 @@ var YXmlElement = class _YXmlElement extends YXmlFragment {
7117
7117
  const el = new _YXmlElement(this.nodeName);
7118
7118
  const attrs = this.getAttributes();
7119
7119
  forEach(attrs, (value, key) => {
7120
- if (typeof value === "string") {
7121
- el.setAttribute(key, value);
7122
- }
7120
+ el.setAttribute(
7121
+ key,
7122
+ /** @type {any} */
7123
+ value
7124
+ );
7123
7125
  });
7124
- el.insert(0, this.toArray().map((item) => item instanceof AbstractType ? item.clone() : item));
7126
+ el.insert(0, this.toArray().map((v) => v instanceof AbstractType ? v.clone() : v));
7125
7127
  return el;
7126
7128
  }
7127
7129
  /**
@@ -5218,11 +5218,9 @@ var YXmlElement = class _YXmlElement extends YXmlFragment {
5218
5218
  const el = new _YXmlElement(this.nodeName);
5219
5219
  const attrs = this.getAttributes();
5220
5220
  forEach(attrs, (value, key) => {
5221
- if (typeof value === "string") {
5222
- el.setAttribute(key, value);
5223
- }
5221
+ el.setAttribute(key, value);
5224
5222
  });
5225
- el.insert(0, this.toArray().map((item) => item instanceof AbstractType ? item.clone() : item));
5223
+ el.insert(0, this.toArray().map((v) => v instanceof AbstractType ? v.clone() : v));
5226
5224
  return el;
5227
5225
  }
5228
5226
  toString() {
@@ -5227,11 +5227,9 @@ var YXmlElement = class _YXmlElement extends YXmlFragment {
5227
5227
  const el = new _YXmlElement(this.nodeName);
5228
5228
  const attrs = this.getAttributes();
5229
5229
  forEach(attrs, (value, key) => {
5230
- if (typeof value === "string") {
5231
- el.setAttribute(key, value);
5232
- }
5230
+ el.setAttribute(key, value);
5233
5231
  });
5234
- el.insert(0, this.toArray().map((item) => item instanceof AbstractType ? item.clone() : item));
5232
+ el.insert(0, this.toArray().map((v) => v instanceof AbstractType ? v.clone() : v));
5235
5233
  return el;
5236
5234
  }
5237
5235
  toString() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshagent/meshagent",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Meshagent Client",
5
5
  "homepage": "https://github.com/meshagent/meshagent-ts",
6
6
  "scripts": {