xml-disassembler 1.10.10 → 1.10.12
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 +15 -0
- package/README.md +18 -18
- package/disassemble.log +451 -450
- package/dist/index.cjs +196 -222
- package/dist/index.cjs.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.mjs +1 -1
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.min.umd.js +1 -1
- package/dist/index.min.umd.js.map +1 -1
- package/dist/index.mjs +196 -222
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +199 -225
- package/dist/index.umd.js.map +1 -1
- package/dist/typings/builders/buildDisassembledFile.d.ts +2 -0
- package/dist/typings/builders/buildDisassembledFiles.d.ts +2 -0
- package/dist/typings/builders/extractRootAttributes.d.ts +1 -1
- package/dist/typings/parsers/parseElement.d.ts +4 -0
- package/dist/typings/parsers/{strategies/uid/parseUniqueIdElements.d.ts → parseUniqueIdElements.d.ts} +1 -1
- package/dist/typings/types/types.d.ts +28 -0
- package/package.json +1 -1
- package/dist/typings/builders/buildLeafFile.d.ts +0 -2
- package/dist/typings/builders/strategies/grouped-by-tag/buildDisassembledFiles.d.ts +0 -1
- package/dist/typings/builders/strategies/grouped-by-tag/buildGroupNestedFile.d.ts +0 -2
- package/dist/typings/builders/strategies/uid/buildDisassembledFiles.d.ts +0 -1
- package/dist/typings/builders/strategies/uid/buildNestedFiles.d.ts +0 -2
- package/dist/typings/parsers/strategies/grouped-by-tag/parseElement.d.ts +0 -7
- package/dist/typings/parsers/strategies/uid/parseElement.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@
|
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## [1.10.12](https://github.com/mcarvin8/xml-disassembler/compare/v1.10.11...v1.10.12) (2025-05-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* merge build and parse functions ([db7fce3](https://github.com/mcarvin8/xml-disassembler/commit/db7fce3989b7c7d243195663034aef12f5291b79))
|
|
14
|
+
* validate strategy is supported when disassembling ([dc944cc](https://github.com/mcarvin8/xml-disassembler/commit/dc944ccab53acdf4620c787403b4ba0175b21ff0))
|
|
15
|
+
|
|
16
|
+
## [1.10.11](https://github.com/mcarvin8/xml-disassembler/compare/v1.10.10...v1.10.11) (2025-05-19)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* merge build disassemble file functions ([78c4c24](https://github.com/mcarvin8/xml-disassembler/commit/78c4c249a22dfe81aa598b072e06a84441469540))
|
|
22
|
+
|
|
8
23
|
## [1.10.10](https://github.com/mcarvin8/xml-disassembler/compare/v1.10.9...v1.10.10) (2025-05-18)
|
|
9
24
|
|
|
10
25
|
|
package/README.md
CHANGED
|
@@ -77,15 +77,15 @@ await handler.disassemble({
|
|
|
77
77
|
});
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
| Option | Description
|
|
81
|
-
|
|
82
|
-
| `filePath` | Path to the XML file or directory
|
|
83
|
-
| `uniqueIdElements` | Comma-separated list of UID elements for naming nested files
|
|
84
|
-
| `prePurge` | Delete previous disassembly output before running
|
|
85
|
-
| `postPurge` | Delete the original XML after disassembly
|
|
86
|
-
| `ignorePath` | Path to the ignore file
|
|
87
|
-
| `format` | Output format: `xml`, `ini`, `json`, `json5`, `toml`, `yaml`
|
|
88
|
-
| `strategy` | Disassembly strategy: `unique-id` or `grouped-by-tag`
|
|
80
|
+
| Option | Description |
|
|
81
|
+
| ------------------ | -------------------------------------------------------------------------------------- |
|
|
82
|
+
| `filePath` | Path to the XML file or directory |
|
|
83
|
+
| `uniqueIdElements` | Comma-separated list of UID elements for naming nested files |
|
|
84
|
+
| `prePurge` | Delete previous disassembly output before running (`true` or `false`, default `false`) |
|
|
85
|
+
| `postPurge` | Delete the original XML after disassembly (`true` or `false`, default `false`) |
|
|
86
|
+
| `ignorePath` | Path to the ignore file (default `.xmldisassemblerignore`) |
|
|
87
|
+
| `format` | Output format: `xml`, `ini`, `json`, `json5`, `toml`, `yaml` |
|
|
88
|
+
| `strategy` | Disassembly strategy: `unique-id` or `grouped-by-tag` |
|
|
89
89
|
|
|
90
90
|
---
|
|
91
91
|
|
|
@@ -101,7 +101,7 @@ Each nested element is written to a separate file based on its unique identifier
|
|
|
101
101
|
|
|
102
102
|
**Example Outputs**
|
|
103
103
|
|
|
104
|
-
| Format | UID Example
|
|
104
|
+
| Format | UID Example | Hash Example |
|
|
105
105
|
| --------- | ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
106
106
|
| **XML** | <br> | <br> |
|
|
107
107
|
| **YAML** | <br> | <br> |
|
|
@@ -118,7 +118,7 @@ Groups all nested elements by tag into a single file. Leaf elements still go int
|
|
|
118
118
|
|
|
119
119
|
**Example Outputs**
|
|
120
120
|
|
|
121
|
-
| Format | Grouped by Tag Example
|
|
121
|
+
| Format | Grouped by Tag Example |
|
|
122
122
|
| --------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
123
123
|
| **XML** | <br> |
|
|
124
124
|
| **YAML** | <br> |
|
|
@@ -142,11 +142,11 @@ await handler.reassemble({
|
|
|
142
142
|
});
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
| Option | Description
|
|
146
|
-
|
|
147
|
-
| `filePath`
|
|
148
|
-
| `fileExtension`
|
|
149
|
-
| `postPurge`
|
|
145
|
+
| Option | Description |
|
|
146
|
+
| --------------- | ------------------------------------------------------------------------------------------ |
|
|
147
|
+
| `filePath` | Directory containing disassembled files to reassemble |
|
|
148
|
+
| `fileExtension` | Extension for the output XML file (default: `.xml`) |
|
|
149
|
+
| `postPurge` | Delete disassembled files after successful reassembly (`true` or `false`, default `false`) |
|
|
150
150
|
|
|
151
151
|
---
|
|
152
152
|
|
|
@@ -158,9 +158,9 @@ See [`sf-decomposer`](https://github.com/mcarvin8/sf-decomposer) for a Salesforc
|
|
|
158
158
|
|
|
159
159
|
## Ignore File
|
|
160
160
|
|
|
161
|
-
Create an ignore file
|
|
161
|
+
Create an ignore file, similar to a `.gitignore`, to exclude XMLs from disassembly.
|
|
162
162
|
|
|
163
|
-
> uses [`node-ignore`](https://github.com/kaelzhang/node-ignore)
|
|
163
|
+
> uses [`node-ignore`](https://github.com/kaelzhang/node-ignore)
|
|
164
164
|
|
|
165
165
|
---
|
|
166
166
|
|