@automattic/jetpack-shared-extension-utils 0.11.1 → 0.11.3

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,17 @@ 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.11.3] - 2023-08-23
9
+ ### Changed
10
+ - Updated package dependencies. [#32605]
11
+
12
+ ## [0.11.2] - 2023-08-21
13
+ ### Changed
14
+ - Use the new method to render Connection initial state. [#32499]
15
+
16
+ ### Fixed
17
+ - Add a stub module to avoid the native mobile editor importing incompatible web modules. [#32468]
18
+
8
19
  ## [0.11.1] - 2023-08-09
9
20
  ### Changed
10
21
  - Updated package dependencies. [#32166]
@@ -229,6 +240,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
229
240
  ### Changed
230
241
  - Core: prepare utility for release
231
242
 
243
+ [0.11.3]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.11.2...0.11.3
244
+ [0.11.2]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.11.1...0.11.2
232
245
  [0.11.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.11.0...0.11.1
233
246
  [0.11.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.9...0.11.0
234
247
  [0.10.9]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.10.8...0.10.9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-shared-extension-utils",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
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": {
@@ -17,9 +17,9 @@
17
17
  "test": "jest"
18
18
  },
19
19
  "dependencies": {
20
- "@automattic/jetpack-analytics": "workspace:*",
20
+ "@automattic/jetpack-analytics": "^0.1.27",
21
21
  "@automattic/jetpack-components": "^0.41.1",
22
- "@automattic/jetpack-connection": "workspace:*",
22
+ "@automattic/jetpack-connection": "^0.29.8",
23
23
  "@wordpress/api-fetch": "6.35.0",
24
24
  "@wordpress/compose": "6.15.0",
25
25
  "@wordpress/element": "5.15.0",
@@ -0,0 +1,4 @@
1
+ // The native mobile editor does not implement or use this module, but importing
2
+ // the web module results in critical errors due to web-specific dependencies.
3
+ // Thus, we provide a stub module here to avoid those errors.
4
+ export default () => null;
@@ -7,7 +7,7 @@ This library is only useful when the logged in user is connected to WordPress.co
7
7
  ```php
8
8
  use Automattic\Jetpack\Connection\Initial_State as Connection_Initial_State;
9
9
  // Adds Connection package initial state.
10
- wp_add_inline_script( 'your-app-script-handle-in-editor', Connection_Initial_State::render(), 'before' );
10
+ Connection_Initial_State::render_script( 'your-app-script-handle-in-editor' );
11
11
  ```
12
12
 
13
13
  Adding Tracks related class and including the check function in your admin ui page: