@automattic/jetpack-shared-extension-utils 0.15.20 → 0.16.1

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,15 @@ 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
+ ## [0.16.1] - 2024-12-09
9
+ ### Changed
10
+ - Internal updates.
11
+
12
+ ## [0.16.0] - 2024-12-04
13
+ ### Changed
14
+ - Changed text domain from 'jetpack' to 'jetpack-shared-extension-utils'. [#40368]
15
+ - Updated package dependencies. [#40363]
16
+
8
17
  ## [0.15.20] - 2024-12-02
9
18
  ### Fixed
10
19
  - Fix wrong output type on use-module-status hook. [#40364]
@@ -498,6 +507,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
498
507
  ### Changed
499
508
  - Core: prepare utility for release
500
509
 
510
+ [0.16.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.16.0...0.16.1
511
+ [0.16.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.15.20...0.16.0
501
512
  [0.15.20]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.15.19...0.15.20
502
513
  [0.15.19]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.15.18...0.15.19
503
514
  [0.15.18]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.15.17...0.15.18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-shared-extension-utils",
3
- "version": "0.15.20",
3
+ "version": "0.16.1",
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,15 +19,15 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@automattic/jetpack-analytics": "^0.1.33",
22
- "@automattic/jetpack-components": "^0.63.0",
23
- "@automattic/jetpack-connection": "^0.35.20",
24
- "@wordpress/api-fetch": "7.12.0",
25
- "@wordpress/compose": "7.12.0",
26
- "@wordpress/data": "10.12.0",
27
- "@wordpress/element": "6.12.0",
28
- "@wordpress/i18n": "5.12.0",
29
- "@wordpress/plugins": "7.12.0",
30
- "@wordpress/url": "4.12.0",
22
+ "@automattic/jetpack-components": "^0.64.1",
23
+ "@automattic/jetpack-connection": "^0.36.1",
24
+ "@wordpress/api-fetch": "7.13.0",
25
+ "@wordpress/compose": "7.13.0",
26
+ "@wordpress/data": "10.13.0",
27
+ "@wordpress/element": "6.13.0",
28
+ "@wordpress/i18n": "5.13.0",
29
+ "@wordpress/plugins": "7.13.0",
30
+ "@wordpress/url": "4.13.0",
31
31
  "lodash": "4.17.21"
32
32
  },
33
33
  "devDependencies": {
@@ -38,7 +38,7 @@
38
38
  "@testing-library/dom": "10.4.0",
39
39
  "@testing-library/react": "16.0.1",
40
40
  "@testing-library/user-event": "14.5.2",
41
- "@wordpress/babel-plugin-import-jsx-pragma": "5.12.0",
41
+ "@wordpress/babel-plugin-import-jsx-pragma": "5.13.0",
42
42
  "babel-jest": "29.3.1",
43
43
  "jest": "29.7.0",
44
44
  "jest-environment-jsdom": "29.7.0",
@@ -25,7 +25,7 @@ export function* updateJetpackModuleStatus( settings ) {
25
25
  const data = yield fetchJetpackModules();
26
26
  yield setJetpackModules( { data } );
27
27
  return true;
28
- } catch ( e ) {
28
+ } catch {
29
29
  const oldSettings = select( JETPACK_MODULES_STORE_ID ).getJetpackModules();
30
30
  yield setJetpackModules( oldSettings );
31
31
  return false;
@@ -49,7 +49,7 @@ export function* fetchModules() {
49
49
  const data = yield fetchJetpackModules();
50
50
  yield setJetpackModules( { data } );
51
51
  return true;
52
- } catch ( e ) {
52
+ } catch {
53
53
  const oldSettings = select( JETPACK_MODULES_STORE_ID ).getJetpackModules();
54
54
  yield setJetpackModules( oldSettings );
55
55
  return false;
package/src/plan-utils.js CHANGED
@@ -144,14 +144,14 @@ const usableBlockWithFreePlan = [
144
144
  mediaPlaceholder: true,
145
145
  mediaReplaceFlow: true,
146
146
  fileType: 'video',
147
- description: __( 'Upgrade your plan to use video covers', 'jetpack' ),
147
+ description: __( 'Upgrade your plan to use video covers', 'jetpack-shared-extension-utils' ),
148
148
  },
149
149
  {
150
150
  name: 'core/audio',
151
151
  mediaPlaceholder: true,
152
152
  mediaReplaceFlow: true,
153
153
  fileType: 'audio',
154
- description: __( 'Upgrade your plan to upload audio', 'jetpack' ),
154
+ description: __( 'Upgrade your plan to upload audio', 'jetpack-shared-extension-utils' ),
155
155
  },
156
156
  ];
157
157
 
@@ -13,6 +13,7 @@ export default function registerJetpackPlugin( name, settings ) {
13
13
  const unavailable = ! available;
14
14
 
15
15
  if ( unavailable ) {
16
+ // eslint-disable-next-line no-undef -- webpack defines it
16
17
  if ( 'production' !== process.env.NODE_ENV ) {
17
18
  // eslint-disable-next-line no-console
18
19
  console.warn(
@@ -1,5 +1,3 @@
1
- /* eslint-disable react/react-in-jsx-scope */
2
-
3
1
  import { createHigherOrderComponent } from '@wordpress/compose';
4
2
 
5
3
  import './style.scss';