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

jsx-dom

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsx-dom - npm Package Compare versions

Comparing version 7.0.0-beta.2 to 7.0.0-beta.3

jsx-dev-runtime.js

1

CHANGELOG.md

@@ -5,2 +5,3 @@ # 7.0.0

- Remove `jsx-dom/svg` alias.
- CommonJS builds are removed. `jsx-dom` are meant to be consumed in the browser and its nature already requires a compiler tool.
- Merges #39 - “Fix solution for #33”.

@@ -7,0 +8,0 @@ - Merges #38 - “Added support for Class Components”.

9

index.js

@@ -100,4 +100,4 @@ const keys = Object.keys

const prefixes = ["Webkit", "ms", "Moz", "O"]
keys(isUnitlessNumber).forEach((prop) => {
prefixes.forEach((prefix) => {
keys(isUnitlessNumber).forEach(prop => {
prefixes.forEach(prefix => {
isUnitlessNumber[prefixKey(prefix, prop)] = 0

@@ -120,3 +120,3 @@ })

return keys(value)
.filter((k) => value[k])
.filter(k => value[k])
.join(" ")

@@ -282,3 +282,3 @@ } else if (isVisibleChild(value)) {

function normalizeAttribute(s, separator) {
return s.replace(/[A-Z\d]/g, (match) => separator + match.toLowerCase())
return s.replace(/[A-Z\d]/g, match => separator + match.toLowerCase())
}

@@ -492,2 +492,3 @@

jsx,
jsx as jsxs,
identity as memo,

@@ -494,0 +495,0 @@ preventDefault,

{
"name": "jsx-dom",
"version": "7.0.0-beta.2",
"version": "7.0.0-beta.3",
"description": "JSX to document.createElement.",
"main": "index.cjs.js",
"main": "index.js",
"module": "index.js",

@@ -17,2 +17,5 @@ "keywords": [

},
"eslintIgnore": [
"build"
],
"lint-staged": {

@@ -19,0 +22,0 @@ "*.ts": [

@@ -22,3 +22,3 @@ # jsx-dom

**New:** If you are using [React Automatic Runtime](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx), simply set `jsxImportSource` to `jsx-dom` and you can omit the import.
**Note:** If you are using [React Automatic Runtime](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx), simply set `jsxImportSource` to `jsx-dom` or `jsx-dom/min` and you can omit the import.

@@ -25,0 +25,0 @@ ```jsx

Sorry, the diff of this file is too big to display

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