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

@wordpress/element

Package Overview
Dependencies
Maintainers
24
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/element - npm Package Compare versions

Comparing version 5.26.0 to 5.27.0

7

build-module/react.js

@@ -5,3 +5,3 @@ /**

// eslint-disable-next-line @typescript-eslint/no-restricted-imports
import { Children, cloneElement, Component, createContext, createElement, createRef, forwardRef, Fragment, isValidElement, memo, StrictMode, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useMemo, useImperativeHandle, useInsertionEffect, useLayoutEffect, useReducer, useRef, useState, useSyncExternalStore, useTransition, startTransition, lazy, Suspense } from 'react';
import { Children, cloneElement, Component, createContext, createElement, createRef, forwardRef, Fragment, isValidElement, memo, PureComponent, StrictMode, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useMemo, useImperativeHandle, useInsertionEffect, useLayoutEffect, useReducer, useRef, useState, useSyncExternalStore, useTransition, startTransition, lazy, Suspense } from 'react';

@@ -213,2 +213,7 @@ /**

/**
* @see https://reactjs.org/docs/react-api.html#reactpurecomponent
*/
export { PureComponent };
/**
* Concatenate two or more React children objects.

@@ -215,0 +220,0 @@ *

3

build-types/react.d.ts

@@ -63,3 +63,4 @@ /**

import { Suspense } from 'react';
export { Children, cloneElement, Component, createContext, createElement, createRef, forwardRef, Fragment, isValidElement, memo, StrictMode, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition, startTransition, lazy, Suspense };
import { PureComponent } from 'react';
export { Children, cloneElement, Component, createContext, createElement, createRef, forwardRef, Fragment, isValidElement, memo, StrictMode, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition, startTransition, lazy, Suspense, PureComponent };
//# sourceMappingURL=react.d.ts.map

@@ -24,2 +24,8 @@ "use strict";

});
Object.defineProperty(exports, "PureComponent", {
enumerable: true,
get: function () {
return _react.PureComponent;
}
});
Object.defineProperty(exports, "StrictMode", {

@@ -365,2 +371,6 @@ enumerable: true,

/**
* @see https://reactjs.org/docs/react-api.html#reactpurecomponent
*/
/**
* Concatenate two or more React children objects.

@@ -367,0 +377,0 @@ *

@@ -5,2 +5,6 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->

## 5.27.0 (2024-01-24)
- Started exporting the `PureComponent` React API ([#58076](https://github.com/WordPress/gutenberg/pull/58076)).
## 5.26.0 (2024-01-10)

@@ -7,0 +11,0 @@

{
"name": "@wordpress/element",
"version": "5.26.0",
"version": "5.27.0",
"description": "Element React module for WordPress.",

@@ -34,3 +34,3 @@ "author": "The WordPress Contributors",

"@types/react-dom": "^18.0.6",
"@wordpress/escape-html": "^2.49.0",
"@wordpress/escape-html": "^2.50.0",
"change-case": "^4.1.2",

@@ -44,3 +44,3 @@ "is-plain-object": "^5.0.0",

},
"gitHead": "5e6f9caa205d3bfdbac131952b7bf9c6ec60569b"
"gitHead": "45de2cb4212fed7f2763e95f10300d1ff9d0ec08"
}

@@ -265,2 +265,8 @@ # Element

### PureComponent
_Related_
- <https://reactjs.org/docs/react-api.html#reactpurecomponent>
### RawHTML

@@ -267,0 +273,0 @@

@@ -16,2 +16,3 @@ /**

memo,
PureComponent,
StrictMode,

@@ -243,2 +244,7 @@ useCallback,

/**
* @see https://reactjs.org/docs/react-api.html#reactpurecomponent
*/
export { PureComponent };
/**
* Concatenate two or more React children objects.

@@ -245,0 +251,0 @@ *

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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