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

@concordance/react

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@concordance/react - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

6

index.js

@@ -11,3 +11,3 @@ 'use strict'

// Expected API version to be passed to register().
exports.apiVersion = 0
exports.apiVersion = 1

@@ -17,6 +17,6 @@ // Expected minimal version of Concordance. Concordance will increment its API

// patches that were introduced in a specific version of Concordance.
exports.minimalConcordanceVersion = '0.7.0'
exports.minimalConcordanceVersion = '1.0.0'
// Plugin-specific version of its serialization output.
exports.serializerVersion = 0
exports.serializerVersion = 1

@@ -23,0 +23,0 @@ exports.theme = {

{
"name": "@concordance/react",
"version": "0.2.0",
"version": "1.0.0",
"description": "Compare, format, diff and serialize React trees with Concordance",

@@ -40,12 +40,12 @@ "main": "index.js",

"devDependencies": {
"@novemberborn/as-i-preach": "^9.0.0",
"@novemberborn/as-i-preach": "^10.0.1",
"ava": "^0.19.0",
"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-core": "^6.25.0",
"babel-preset-react": "^6.24.1",
"codecov": "^2.1.0",
"concordance": "^0.8.0",
"nyc": "^10.1.2",
"react": "^15.5.4",
"react-test-renderer": "^15.5.4"
"concordance": "^1.0.0",
"nyc": "^11.0.1",
"react": "^15.6.1",
"react-test-renderer": "^15.6.1"
},

@@ -52,0 +52,0 @@ "as-i-preach": {

@@ -5,2 +5,17 @@ # @concordance/react

Very much a work in progress.
Allows
[`React.createElement()`](https://facebook.github.io/react/docs/react-api.html#createelement)
objects to be compared, formatted, diffed and serialized. Also supports
`toJSON()` renderings of
[`react-test-renderer`](https://www.npmjs.com/package/react-test-renderer).
These may be compared to `React.createElement()` objects.
When comparing [React
component](https://facebook.github.io/react/docs/components-and-props.html)
elements, the element type is compared by identity. After deserialization the
element types are compared by function name, taking into account whether
serialization and / or comparison is done using Node.js 4, which has less
reliable support for function names.
Component elements are formatted with a ⍟ character after the element
name. Properties and children are formatted by [Concordance](https://github.com/concordancejs/concordance).
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