@automattic/jetpack-shared-extension-utils 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.3.2] - 2025-07-08
9
+ ### Changed
10
+ - Internal updates.
11
+
12
+ ## [1.3.1] - 2025-07-08
13
+ ### Changed
14
+ - Update package dependencies. [#44217]
15
+
8
16
  ## [1.3.0] - 2025-07-07
9
17
  ### Changed
10
18
  - Scripts: Ensure host-related checks and functionality are only added via Assets. [#44133]
@@ -703,6 +711,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
703
711
  ### Changed
704
712
  - Core: prepare utility for release
705
713
 
714
+ [1.3.2]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.3.1...1.3.2
715
+ [1.3.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.3.0...1.3.1
706
716
  [1.3.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.2.4...1.3.0
707
717
  [1.2.4]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.2.3...1.2.4
708
718
  [1.2.3]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/1.2.2...1.2.3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-shared-extension-utils",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Utility functions used by the block editor extensions",
5
5
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/shared-extension-utils/#readme",
6
6
  "bugs": {
@@ -19,11 +19,11 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@automattic/color-studio": "4.1.0",
22
- "@automattic/jetpack-analytics": "^1.0.2",
22
+ "@automattic/jetpack-analytics": "^1.0.3",
23
23
  "@automattic/jetpack-base-styles": "^1.0.3",
24
- "@automattic/jetpack-components": "^1.1.10",
25
- "@automattic/jetpack-connection": "^1.2.10",
26
- "@automattic/jetpack-script-data": "^0.4.4",
24
+ "@automattic/jetpack-components": "^1.1.12",
25
+ "@automattic/jetpack-connection": "^1.2.12",
26
+ "@automattic/jetpack-script-data": "^0.5.0",
27
27
  "@wordpress/api-fetch": "7.26.0",
28
28
  "@wordpress/block-editor": "14.21.0",
29
29
  "@wordpress/components": "29.12.0",
@@ -47,11 +47,11 @@
47
47
  "@babel/preset-react": "7.27.1",
48
48
  "@babel/runtime": "7.27.6",
49
49
  "@testing-library/dom": "10.4.0",
50
- "@testing-library/react": "16.2.0",
50
+ "@testing-library/react": "16.3.0",
51
51
  "@testing-library/user-event": "14.6.1",
52
52
  "babel-jest": "30.0.0",
53
- "jest": "30.0.0",
54
- "jest-environment-jsdom": "30.0.0",
53
+ "jest": "30.0.4",
54
+ "jest-environment-jsdom": "30.0.4",
55
55
  "jetpack-js-tools": "workspace:*",
56
56
  "react": "18.3.1",
57
57
  "react-dom": "18.3.1"
@@ -1,6 +1,7 @@
1
1
  import { useSelect, dispatch } from '@wordpress/data';
2
2
  import { useState } from '@wordpress/element';
3
- import { noop } from 'lodash';
3
+
4
+ const noop = () => {};
4
5
 
5
6
  /**
6
7
  * To handle the redirection
package/src/plan-utils.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { isWoASite, isSimpleSite } from '@automattic/jetpack-script-data';
2
2
  import { __ } from '@wordpress/i18n';
3
3
  import { addQueryArgs } from '@wordpress/url';
4
- import { compact, get, startsWith, map, filter, head } from 'lodash';
4
+ import { compact, get, map, filter } from 'lodash';
5
5
  import getJetpackData from './get-jetpack-data';
6
6
  import getJetpackExtensionAvailability from './get-jetpack-extension-availability';
7
7
  import getSiteFragment from './get-site-fragment';
@@ -19,7 +19,7 @@ import getSiteFragment from './get-site-fragment';
19
19
  */
20
20
  export function getUpgradeUrl( { planSlug, plan, postId, postType } ) {
21
21
  // WP.com plan objects have a dedicated `path_slug` field, Jetpack plan objects don't.
22
- const planPathSlug = startsWith( planSlug, 'jetpack_' ) ? planSlug : get( plan, [ 'path_slug' ] );
22
+ const planPathSlug = planSlug.startsWith( 'jetpack_' ) ? planSlug : get( plan, [ 'path_slug' ] );
23
23
 
24
24
  // The full site editor has no set post type.
25
25
  const redirect_to = (
@@ -177,4 +177,4 @@ export const isStillUsableWithFreePlan = name =>
177
177
  map( usableBlockWithFreePlan, 'name' ).includes( name );
178
178
 
179
179
  export const getUsableBlockProps = blockName =>
180
- head( filter( usableBlockWithFreePlan, ( { name } ) => name === blockName ) );
180
+ filter( usableBlockWithFreePlan, ( { name } ) => name === blockName )[ 0 ];