@genrojs/bag 0.11.0 → 0.11.1

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.
Files changed (3) hide show
  1. package/README.md +2 -0
  2. package/package.json +1 -1
  3. package/src/bag.js +1 -1
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # genro-bag-js
2
2
 
3
+ Current release: **0.11.1**. Fixes deletion origin propagation in `popNode`, `pop` and `delItem`.
4
+
3
5
  > **0.11.0 — breaking API:** read the [ingestion and scheduling migration note](docs/migration-ingestion.md) before upgrading dependent projects.
4
6
 
5
7
  TypeScript/JavaScript port of [genro-bag](https://github.com/nicofirst1/genro-bag) - hierarchical data container with XML serialization, Builder pattern, and Compiler system.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genrojs/bag",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "JavaScript port of genro-bag - hierarchical data container",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/bag.js CHANGED
@@ -457,7 +457,7 @@ export class Bag {
457
457
  if (p >= 0) {
458
458
  const node = this._nodes.pop(p);
459
459
  if (this.backref) {
460
- this._onNodeDeleted(node, p, reason);
460
+ this._onNodeDeleted(node, p, null, reason);
461
461
  }
462
462
  return node;
463
463
  }