@automattic/jetpack-shared-stores 0.1.1 → 0.1.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,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.1.3] - 2026-07-06
9
+ ### Changed
10
+ - Use store objects instead of string IDs. [#49810]
11
+ - Update package dependencies. [#50097] [#50183]
12
+
13
+ ## [0.1.2] - 2026-06-26
14
+ ### Changed
15
+ - Internal updates.
16
+
8
17
  ## [0.1.1] - 2026-06-23
9
18
  ### Changed
10
19
  - Update dependencies.
@@ -16,4 +25,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
25
  ### Changed
17
26
  - Update package dependencies. [#49757]
18
27
 
28
+ [0.1.3]: https://github.com/Automattic/jetpack-shared-stores/compare/v0.1.2...v0.1.3
29
+ [0.1.2]: https://github.com/Automattic/jetpack-shared-stores/compare/v0.1.1...v0.1.2
19
30
  [0.1.1]: https://github.com/Automattic/jetpack-shared-stores/compare/v0.1.0...v0.1.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-shared-stores",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Shared WordPress data stores used by the Jetpack block editor extensions, externalized into a single bundle to avoid duplicate store registration.",
5
5
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/jetpack-shared-stores/#readme",
6
6
  "bugs": {
@@ -22,16 +22,16 @@
22
22
  "typecheck": "tsgo --noEmit"
23
23
  },
24
24
  "dependencies": {
25
- "@automattic/jetpack-script-data": "^0.6.4",
26
- "@wordpress/api-fetch": "7.48.1",
27
- "@wordpress/data": "10.48.1"
25
+ "@automattic/jetpack-script-data": "^0.6.5",
26
+ "@wordpress/api-fetch": "7.50.0",
27
+ "@wordpress/data": "10.50.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@automattic/jetpack-webpack-config": "workspace:*",
31
31
  "@babel/core": "7.29.7",
32
- "@babel/preset-react": "7.29.7",
33
32
  "@babel/runtime": "7.29.7",
34
33
  "@types/jest": "30.0.0",
34
+ "@types/react": "18.3.28",
35
35
  "@typescript/native-preview": "7.0.0-dev.20260225.1",
36
36
  "babel-jest": "30.4.1",
37
37
  "jest": "30.4.2",
@@ -4,7 +4,7 @@ import {
4
4
  fetchJetpackModules,
5
5
  updateJetpackModuleStatus as updateJetpackModuleStatusControl,
6
6
  } from './controls';
7
- import { JETPACK_MODULES_STORE_ID } from '.';
7
+ import { store } from '.';
8
8
 
9
9
  export const SET_JETPACK_MODULES = 'SET_JETPACK_MODULES';
10
10
  export const SET_MODULE_UPDATING = 'SET_MODULE_UPDATING';
@@ -26,7 +26,7 @@ export function* updateJetpackModuleStatus( settings ) {
26
26
  yield setJetpackModules( { data } );
27
27
  return true;
28
28
  } catch {
29
- const oldSettings = select( JETPACK_MODULES_STORE_ID ).getJetpackModules();
29
+ const oldSettings = select( store ).getJetpackModules();
30
30
  yield setJetpackModules( oldSettings );
31
31
  return false;
32
32
  } finally {
@@ -50,7 +50,7 @@ export function* fetchModules() {
50
50
  yield setJetpackModules( { data } );
51
51
  return true;
52
52
  } catch {
53
- const oldSettings = select( JETPACK_MODULES_STORE_ID ).getJetpackModules();
53
+ const oldSettings = select( store ).getJetpackModules();
54
54
  yield setJetpackModules( oldSettings );
55
55
  return false;
56
56
  } finally {
@@ -24,7 +24,7 @@ const initialData =
24
24
  // This is a temporary fix to have store filled properly.
25
25
  // TODO: Create a proper solution after fixing initial issue (https://github.com/Automattic/jetpack/issues/34793).
26
26
  if ( initialData !== null ) {
27
- dispatch( JETPACK_MODULES_STORE_ID ).setJetpackModules( {
27
+ dispatch( store ).setJetpackModules( {
28
28
  data: { ...initialData },
29
29
  } );
30
30
  }