New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cruftless

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cruftless - npm Package Versions

234

1.2.1

Diff

Changelog

Source

1.2.1

Patch Changes

  • c24c4cc: Fixes #60, preventing us from parsing documents that use other namespace prefixes than the ones used in the xsi:type definitions in the binding template.
wspringer
published 1.2.0 •

Changelog

Source

1.2.0

Minor Changes

  • e89afa9: Add rudimentary support for content model variations through xsi:type. Check the README for details and https://github.com/wspringer/cruftless/issues/58 for the original issue.
wspringer
published 1.1.4 •

Changelog

Source

1.1.4

Patch Changes

  • 50f84fc: Fix for a bug causing missing attribute values to be intepreted as empty strings. Workaround for a bug in the version of xmldom we're depending on. See https://github.com/wspringer/cruftless/issues/56.
wspringer
published 1.1.3 •

Changelog

Source

1.1.3

Patch Changes

  • 1da2d3e: Prevent elements bound to missing objects from being inserted. Fixes #54.
wspringer
published 1.1.2 •

Changelog

Source

1.1.2

Patch Changes

  • a9f8aac: Bump xmldom to version 0.6.0
wspringer
published 1.1.1 •

Changelog

Source

1.1.1

Patch Changes

  • 6828baf: Prevent namespace declarations from getting dropped
wspringer
published 1.1.0 •

Changelog

Source

1.1.0

Minor Changes

  • f8ac631: Support for a simpler way to map arrays of non-object values.

    Instead of binding as array, we're binding as values. With array, every encounter of the element results in a new object getting added to the array. With values, we're not adding any values yet. However, if inside, we encounter something that is bound to value, it will be added to the array as simple value.

    Perhaps this example makes it easier to grasp:

    const template = parse(
      `<foo><bar c-bind="numbers|values">{{value|integer}}</bar></foo>`
    );
    const data = template.fromXML(`<foo><bar>1</bar><bar>2</bar></foo>`);
    // { numbers: [ 1, 2 ] }
    

    Instead of this:

    const template = parse(
      `<foo><bar c-bind="numbers|array">{{value|integer}}</bar></foo>`
    );
    const data = template.fromXML(`<foo><bar>1</bar><bar>2</bar></foo>`);
    // { numbers: [ { value: 1 }, { value: 2 } ] }
    

    Note that we currently consider this feature to be unstable. You can use it, but be advised that the notation might change in the future.

wspringer
published 1.0.0 •

Changelog

Source

1.0.0

Major Changes

  • 88f9ea8: Drop pattern matching approach causing parsing issues

    Before, there used to be a mechanism that would allow you to have the same element multiple times within the same template. Only if there would be an exact match with the elements attributes, it would be considered to be decoded based on whatever the template was suggesting.

    <foo>
      <bar a="1">{first}</bar>
      <bar a="2">{second}</bar>
    </foo>
    

    Given this template and a file like this:

    <foo>
      <bar a="2">yay</bar>
    </foo>
    

    … the resulting data object would be this:

    {
      "second": "yay"
    }
    

    It turned out that this was actually causing parsing issues in case the XML serializer decided to introduce namespaces on an element that didn't have a namespace before. Since the mechanism was never in use — as far as I can tell — I decided to drop it.

wspringer
published 0.5.4 •

wspringer
published 0.5.3 •

Changelog

Source

0.5.3

  • Fixing a bug that somehow reappeared.
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