@automattic/jetpack-shared-extension-utils 0.16.0 → 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,10 @@ 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
|
+
|
|
8
12
|
## [0.16.0] - 2024-12-04
|
|
9
13
|
### Changed
|
|
10
14
|
- Changed text domain from 'jetpack' to 'jetpack-shared-extension-utils'. [#40368]
|
|
@@ -503,6 +507,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
503
507
|
### Changed
|
|
504
508
|
- Core: prepare utility for release
|
|
505
509
|
|
|
510
|
+
[0.16.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.16.0...0.16.1
|
|
506
511
|
[0.16.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.15.20...0.16.0
|
|
507
512
|
[0.15.20]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.15.19...0.15.20
|
|
508
513
|
[0.15.19]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.15.18...0.15.19
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-shared-extension-utils",
|
|
3
|
-
"version": "0.16.
|
|
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,8 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@automattic/jetpack-analytics": "^0.1.33",
|
|
22
|
-
"@automattic/jetpack-components": "^0.64.
|
|
23
|
-
"@automattic/jetpack-connection": "^0.36.
|
|
22
|
+
"@automattic/jetpack-components": "^0.64.1",
|
|
23
|
+
"@automattic/jetpack-connection": "^0.36.1",
|
|
24
24
|
"@wordpress/api-fetch": "7.13.0",
|
|
25
25
|
"@wordpress/compose": "7.13.0",
|
|
26
26
|
"@wordpress/data": "10.13.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
|
|
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
|
|
52
|
+
} catch {
|
|
53
53
|
const oldSettings = select( JETPACK_MODULES_STORE_ID ).getJetpackModules();
|
|
54
54
|
yield setJetpackModules( oldSettings );
|
|
55
55
|
return false;
|
|
@@ -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(
|