Skip to content

Commit

Permalink
Performance: VideoPress: avoid useEffect call for every block on typi…
Browse files Browse the repository at this point in the history
…ng (#33724)

* Performance: VideoPress: avoid running useEffect for every block on typing

* unbreak the rules of hooks

* comment

* fix another instance

* fix eslint issue

* fix eslint issues

* changelog

* update videopress pkg version

---------

Co-authored-by: Damián Suárez <[email protected]>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/6616469564
  • Loading branch information
ice9js authored and matticbot committed Oct 23, 2023
1 parent 432229a commit 43960b4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 38 deletions.
16 changes: 0 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.36.4-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

### Added
- Social: Add the Nextdoor connection toggle

### Changed
- Updated package dependencies.

## [0.36.3] - 2023-10-16
### Changed
- Added type prop to custom media for social posts. [#33504]

## [0.36.2] - 2023-10-10
### Changed
- Updated package dependencies. [#33428]
Expand Down Expand Up @@ -407,8 +393,6 @@ This is an alpha version! The changes listed here are not final.
- Updated package dependencies.
- Update package.json metadata.

[0.36.4-alpha]: https://github.com/Automattic/jetpack-publicize/compare/v0.36.3...v0.36.4-alpha
[0.36.3]: https://github.com/Automattic/jetpack-publicize/compare/v0.36.2...v0.36.3
[0.36.2]: https://github.com/Automattic/jetpack-publicize/compare/v0.36.1...v0.36.2
[0.36.1]: https://github.com/Automattic/jetpack-publicize/compare/v0.36.0...v0.36.1
[0.36.0]: https://github.com/Automattic/jetpack-publicize/compare/v0.35.0...v0.36.0
Expand Down
13 changes: 2 additions & 11 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,11 @@ Full details of the Automattic Security Policy can be found on [automattic.com](

## Supported Versions

Generally, only the latest version of Jetpack and its associated plugins have continued support. If a critical vulnerability is found in the current version of a plugin, we may opt to backport any patches to previous versions.
Generally, only the latest version of Jetpack has continued support. If a critical vulnerability is found in the current version of Jetpack, we may opt to backport any patches to previous versions.

## Reporting a Vulnerability

Our HackerOne program covers the below plugin software, as well as a variety of related projects and infrastructure:

* [Jetpack](https://jetpack.com/)
* Jetpack Backup
* Jetpack Boost
* Jetpack CRM
* Jetpack Protect
* Jetpack Search
* Jetpack Social
* Jetpack VideoPress
[Jetpack](https://jetpack.com/) is an open-source plugin for WordPress. Our HackerOne program covers the plugin software, as well as a variety of related projects and infrastructure.

**For responsible disclosure of security issues and to be eligible for our bug bounty program, please submit your report via the [HackerOne](https://hackerone.com/automattic) portal.**

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
"automattic/jetpack-connection": "^1.58.2",
"automattic/jetpack-connection": "^1.58.1",
"automattic/jetpack-autoloader": "^2.12.0",
"automattic/jetpack-config": "^1.15.4",
"automattic/jetpack-assets": "^1.18.13",
"automattic/jetpack-assets": "^1.18.12",
"automattic/jetpack-redirect": "^1.7.27",
"automattic/jetpack-plans": "^0.3.4"
},
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-publicize",
"version": "0.36.4-alpha",
"version": "0.36.2",
"description": "Publicize makes it easy to share your site’s posts on several social media networks automatically when you publish a new post.",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/publicize/#readme",
"bugs": {
Expand All @@ -28,12 +28,12 @@
],
"devDependencies": {
"@automattic/jetpack-webpack-config": "workspace:*",
"@wordpress/browserslist-config": "5.27.0",
"@wordpress/browserslist-config": "5.26.0",
"concurrently": "7.6.0",
"webpack": "5.76.0",
"webpack-cli": "4.9.1"
},
"dependencies": {
"@wordpress/i18n": "4.44.0"
"@wordpress/i18n": "4.43.0"
}
}
7 changes: 2 additions & 5 deletions src/class-publicize-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -1147,13 +1147,10 @@ public function register_post_meta() {
'items' => array(
'type' => 'object',
'properties' => array(
'id' => array(
'id' => array(
'type' => 'number',
),
'url' => array(
'type' => 'string',
),
'type' => array(
'url' => array(
'type' => 'string',
),
),
Expand Down
1 change: 0 additions & 1 deletion src/class-publicize.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,6 @@ public function get_services( $filter = 'all', $_blog_id = false, $_user_id = fa
'tumblr' => array(),
'mastodon' => array(),
'instagram-business' => array(),
'nextdoor' => array(),
);

if ( 'all' === $filter ) {
Expand Down

0 comments on commit 43960b4

Please sign in to comment.