@tmcw/togeojson 4.5.0 → 4.6.1-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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  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.
4
4
 
5
+ ### [4.6.1-1](https://github.com/tmcw/togeojson/compare/v4.6.1-0...v4.6.1-1) (2022-03-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Typo ([9cb1ed0](https://github.com/tmcw/togeojson/commit/9cb1ed06ffcd60954c629838d0cc5ba8df3aa953))
11
+
12
+ ### [4.6.1-0](https://github.com/tmcw/togeojson/compare/v4.6.0...v4.6.1-0) (2022-03-07)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * Make module system more convoluted ([845ff7a](https://github.com/tmcw/togeojson/commit/845ff7a2c08220d8b87860231b262709d8db070a))
18
+
19
+ ## [4.6.0](https://github.com/tmcw/togeojson/compare/v4.5.0...v4.6.0) (2022-03-07)
20
+
21
+
22
+ ### Features
23
+
24
+ * Support additional GPX extensions ([ae2f00f](https://github.com/tmcw/togeojson/commit/ae2f00f685f5fd1e74b19864b0bba8211310d31a))
25
+
5
26
  ## [4.5.0](https://github.com/tmcw/togeojson/compare/v4.4.1...v4.5.0) (2021-08-03)
6
27
 
7
28
 
package/README.md CHANGED
@@ -213,7 +213,21 @@ support for them is out of scope for toGeoJSON.
213
213
 
214
214
  ## Protips:
215
215
 
216
- Have a string of XML and need an XML DOM?
216
+ Have a string of XML and need an XML DOM? There are two main options:
217
+
218
+ - Use [xmldom](https://www.npmjs.com/package/@xmldom/xmldom), a JavaScript module that contains its own XML parser
219
+ - Use [`DOMParser`](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser), the native platform XML parser
220
+
221
+ We recommend that **you use xmldom**, not the platform. DOMParser requires XML to be valid, which means that any XML namespaces that a KML, GPX, or TCX file contains are valid. A lot of existing data is invalid XML, and will be parsed only in part by DOMParser, but can be fully parsed by xmldom.
222
+
223
+ Using xmldom (recommended):
224
+
225
+ ```js
226
+ const xmldom = require("@xmldom/xmldom");
227
+ const dom = new xmldom.DOMParser().parseFromString(xmlStr, "text/xml");
228
+ ```
229
+
230
+ Using DOMParser:
217
231
 
218
232
  ```js
219
233
  var dom = new DOMParser().parseFromString(xmlStr, "text/xml");