@cntwg/xml-lib-js 0.0.32 → 0.0.34

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,26 @@
1
+ #### *v0.0.34*
2
+
3
+ Pre-release version.
4
+
5
+ > - update `xmldoc-lib.md`;
6
+ > - update dependency on `@ygracs/xobj-lib-js` module to v0.2.3;
7
+ > - (`TXmlElementController`) remove methods: `_getChildRaw`, `_addChildRaw`< `_setChildRaw`;
8
+ > - (`TXmlElementsListController`) add special static method: `__getItemRaw`;
9
+ > - (`TXmlElementsListController`) add special static method: `__setItemRaw`;
10
+ > - (`TXmlElementsListController`) deprecate methods: `_getItemRaw`, `_setItemRaw`;
11
+ > - (`TXmlElementsListController`) add iterator method;
12
+
13
+ #### *v0.0.33*
14
+
15
+ Pre-release version.
16
+
17
+ > - update dependency on `@ygracs/bsfoc-lib-js` module to v0.2.3;
18
+ > - update dependency on `@ygracs/xobj-lib-js` module to v0.2.2;
19
+ > - update dependency on `@ygracs/xml-js6` module to v0.0.5-b;
20
+ > - add dependency on `@cntwg/file-helper` module;
21
+ > - remove `file-helper.js` module;
22
+ > - some other fixes.
23
+
1
24
  #### *v0.0.32*
2
25
 
3
26
  Pre-release version.
package/doc/xmldoc-lib.md CHANGED
@@ -1,6 +1,6 @@
1
- >|***rev.*:**|0.1.37|
1
+ >|***rev.*:**|0.1.40|
2
2
  >|:---|---:|
3
- >|date:|2025-02-06|
3
+ >|date:|2025-07-19|
4
4
 
5
5
  ## Introduction
6
6
 
@@ -409,20 +409,6 @@ This method loads an element content from a string given by a `str` parameter.
409
409
 
410
410
  This methods throws `Error` if something goes wrong through a parsing process of a string.
411
411
 
412
- #### class methods (*special*)
413
-
414
- ##### **_getChildRaw(name)** => `?any`
415
-
416
- > WARNING: **\[since `v0.0.31`]** this method deprecated (*use static `__getChildRaw` method of the class*).
417
-
418
- ##### **_addChildRaw(name)** => `?object`
419
-
420
- > WARNING: **\[since `v0.0.31`]** this method deprecated (*use static `__addChildRaw` method of the class*).
421
-
422
- ##### **_setChildRaw(name, obj)** => `boolean`
423
-
424
- > WARNING: **\[since `v0.0.31`]** this method deprecated (*use static `__setChildRaw` method of the class*).
425
-
426
412
  #### class methods (*static*)
427
413
 
428
414
  ##### **clear(item)** => `void`
@@ -455,6 +441,8 @@ This method adds an element addressed by `name` as a child element.
455
441
 
456
442
  ##### **__setChildRaw(node, name, obj)** => `boolean`
457
443
 
444
+ > since: \[`v0.0.31`]
445
+
458
446
  This method inserts a given object as a child element addressed by `name`.
459
447
 
460
448
  <a name="TXmlElementsListController"></a>
@@ -619,7 +607,9 @@ The `options` structure is listed below:
619
607
 
620
608
  #### class methods (*special*)
621
609
 
622
- ##### **_getItemRaw(name)**
610
+ ##### **_getItemRaw(index)**
611
+
612
+ > WARNING: \[since `v0.0.34`] this method deprecated (*use `__getItemRaw`, a static method of the class, instead*).
623
613
 
624
614
  This method returns an element addressed by `index` as object. If failed `null` is returned.
625
615
 
@@ -629,12 +619,30 @@ This method adds an element to a list members as object. If succeed an index of
629
619
 
630
620
  ##### **_setItemRaw(index, obj)**
631
621
 
622
+ > WARNING: \[since `v0.0.34`] this method deprecated (*use `__setItemRaw`, a static method of the class, instead*).
623
+
632
624
  This method replaces an element addressed by `index` with a new element which is saved as raw object. If succeed `true` is returned.
633
625
 
634
626
  ##### **_insItemRaw(index, obj)**
635
627
 
636
628
  This method inserts an element as a raw object in the position addressed by `index`. If succeed `true` is returned.
637
629
 
630
+ #### class methods (*static, special*)
631
+
632
+ <a name="TXmlElementsListController.__getItemRaw"></a>
633
+ ##### **__getItemRaw(node, index)** => `?any`
634
+
635
+ > since: \[`v0.0.34`]
636
+
637
+ This method returns an element addressed by `index` as object. If failed `null` is returned.
638
+
639
+ <a name="TXmlElementsListController.__setItemRaw"></a>
640
+ ##### **__setItemRaw(node, index, item)** => `?any`
641
+
642
+ > since: \[`v0.0.34`]
643
+
644
+ This method replaces an element addressed by `index` with a new element which is saved as raw object. If succeed `true` is returned.
645
+
638
646
  <a name="TXmlContentDeclaration"></a>
639
647
  ### **TXmlContentDeclaration**
640
648