Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js2xmlparser

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js2xmlparser - npm Package Versions

2

5.0.0

Diff

Changelog

Source

5.0.0

  • Allow typeHandlers to be used with bare text and attribute values
  • Clarify that typeHandlers cannot be used with aliases in documentation
michaelkourlas
published 4.0.2 •

Changelog

Source

4.0.2

  • Update dependencies
  • Export options interfaces in main module
  • Update example to include root attribute
michaelkourlas
published 4.0.1 •

Changelog

Source

4.0.1

  • Update dependencies
  • Use ESLint instead of TSLint
  • Use npm instead of gulp
michaelkourlas
published 4.0.0 •

Changelog

Source

4.0.0

  • Do not indent multi-line strings
  • Use self-closing tags, unless otherwise specified
  • Add option to automatically replace invalid characters with U+FFFD
  • Add option to suppress certain values from output
  • Add support for adding to existing xmlcreate object
  • Remove certain unnecessary validation rules
  • Bug fixes
  • Correct errors in documentation
michaelkourlas
published 3.0.0 •

Changelog

Source

3.0.0

  • Bug fixes
  • Add null and undefined in type declarations
  • Remove explicit engines requirement
michaelkourlas
published 2.0.2 •

Changelog

Source

2.0.2

  • Bug fixes
michaelkourlas
published 2.0.1 •

Changelog

Source

2.0.1

  • Remove unnecessary development dependencies from npm shrinkwrap
michaelkourlas
published 2.0.0 •

Changelog

Source

2.0.0

  • Re-write in TypeScript

  • Re-write to use xmlcreate (greatly simplifies module source)

  • Added support for the ECMAScript 2015 Map and Set objects

  • New method of calling module:

    var js2xmlparser = require("js2xmlparser");
    
    var root = "root";
    var data = {hello: "world"};
    var options = {};
    
    // old method (no longer works):
    // js2xmlparser(root, data, options);
    
    // new method:
    js2xmlparser.parse(root, data, options);
    
  • New options and changes to functionality of some existing options:

    • declaration contains additional options
    • attributeString has additional functionality
    • valueString has additional functionality
    • The functionality provided by prettyPrinting is now provided by the new format option, which contains additional options
    • arrayMap is now wrapHandlers to reflect the fact that wrapping is provided for both arrays and ES2015 sets
    • convertMap is now typeHandlers to match the name change to arrayMap
    • The functionality provided by useCDATA is now provided by the new cdataInvalidChars and cdataKeys options, which also provide additional functionality
    • Added support for document type definitions using the dtd option
michaelkourlas
published 1.0.0 •

Changelog

Source

1.0.0

  • First stable release
  • Add arrayMap feature
  • Switch to semantic versioning
  • Switch to Apache 2.0 license
michaelkourlas
published 0.1.9 •

Changelog

Source

0.1.9

  • Fix error in example.js
2
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc