Socket
Socket
Sign inDemoInstall

xmlbuilder

Package Overview
Dependencies
0
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345
10Next

11.0.0

Diff

Changelog

Source

[11.0.0] - 2019-02-18

  • Calling end() with arguments no longer overwrites writer options. See #120.

  • Added writer state and customizable space and endline functions to help customize writer behavior. Also added openNode and closeNode functions to writer. See #193.

  • Fixed a bug where writer functions would not be called for nodes with a single child node in pretty print mode. See #195.

  • Renamed elEscape to textEscape in XMLStringifier.

  • Fixed a bug where empty arrays would produce child nodes. See #190.

  • Removed the skipNullAttributes option. null attributes are now skipped by default. Added the keepNullAttributes option in case someone needs the old behavior.

  • Removed the skipNullNodes option. null nodes are now skipped by default. Added the keepNullNodes option in case someone needs the old behavior.

  • undefined values are now skipped when converting JS objects.

  • Renamed stringify functions. See #194:

    • eleName -> name
    • attName -> name
    • eleText -> text
  • Fixed argument order for attribute function in the writer. See #196.

  • Added openAttribute and closeAttribute functions to writer. See #196.

  • Added node types to node objects. Node types and writer states are exported by the module with the nodeType and writerState properties.

  • Fixed a bug where array items would not be correctly converted. See #159.

  • Fixed a bug where mixed-content inside JS objects with #text decorator would not be correctly converted. See #171.

  • Fixed a bug where JS objects would not be expanded in callback mode. See #173.

  • Fixed a bug where character validation would not obey document's XML version. Added separate validation for XML 1.0 and XML 1.1 documents. See #169.

  • Fixed a bug where names would not be validated according to the spec. See #49.

  • Renamed text property to value in comment and cdata nodes to unify the API.

  • Removed doctype function to prevent name clash with DOM implementation. Use the dtd function instead.

  • Removed dummy nodes from the XML tree (Those were created while chain-building the tree).

  • Renamed attributesproperty to attribs to prevent name clash with DOM property with the same name.

  • Implemented the DOM standard (read-only) to support XPath lookups. XML namespaces are not currently supported. See #122.

oozcitak
published 10.1.1 •

Changelog

Source

[10.1.1] - 2018-10-24

  • Fixed an edge case where a null node at root level would be printed although skipNullNodes was set. See #187.
oozcitak
published 10.1.0 •

Changelog

Source

[10.1.0] - 2018-10-10

  • Added the skipNullNodes option to skip nodes with null values. See #158.
oozcitak
published 10.0.0 •

Changelog

Source

[10.0.0] - 2018-04-26

  • Added current indentation level as a parameter to the onData function when in callback mode. See #125.
  • Added name of the current node and parent node to error messages where possible. See #152. This has the potential to break code depending on the content of error messages.
  • Fixed an issue where objects created with Object.create(null) created an error. See #176.
  • Added test builds for node.js v8 and v10.
oozcitak
published 9.0.7 •

Changelog

Source

[9.0.7] - 2018-02-09

  • Simplified regex used for validating encoding.
oozcitak
published 9.0.6 •

oozcitak
published 9.0.5 •

oozcitak
published 9.0.4 •

Changelog

Source

[9.0.4] - 2017-08-16

  • spacebeforeslash writer option accepts true as well as space char(s).
oozcitak
published 9.0.3 •

Changelog

Source

[9.0.3] - 2017-08-15

  • spacebeforeslash writer option can now be used with XML fragments.
oozcitak
published 9.0.2 •

Changelog

Source

[9.0.2] - 2017-08-15

  • Added the spacebeforeslash writer option to add a space character before closing tags of empty elements. See #157.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc