@wordpress/preferences-persistence 1.18.1 → 1.20.0

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
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.20.0 (2023-03-01)
6
+
7
+ ## 1.19.0 (2023-02-15)
8
+
5
9
  ## 1.18.0 (2023-02-01)
6
10
 
7
11
  ## 1.17.0 (2023-01-11)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/preferences-persistence",
3
- "version": "1.18.1",
3
+ "version": "1.20.0",
4
4
  "description": "Persistence utilities for `wordpress/preferences`.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -28,10 +28,10 @@
28
28
  "sideEffects": false,
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.16.0",
31
- "@wordpress/api-fetch": "^6.23.1"
31
+ "@wordpress/api-fetch": "^6.25.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "e9ff92d836928aba65dde94d9d193bc401a934d7"
36
+ "gitHead": "d5e03a74b79e3ca84afda24375474a103a063ee4"
37
37
  }
@@ -137,49 +137,49 @@ const alreadyConvertedData = {
137
137
  describe( 'convertLegacyData', () => {
138
138
  it( 'converts to the expected format', () => {
139
139
  expect( convertLegacyData( legacyData ) ).toMatchInlineSnapshot( `
140
- Object {
141
- "core/customize-widgets": Object {
140
+ {
141
+ "core/customize-widgets": {
142
142
  "fixedToolbar": true,
143
143
  "keepCaretInsideBlock": true,
144
144
  "welcomeGuide": false,
145
145
  },
146
- "core/edit-post": Object {
146
+ "core/edit-post": {
147
147
  "complementaryArea": "edit-post/document",
148
148
  "editorMode": "text",
149
149
  "fixedToolbar": true,
150
- "hiddenBlockTypes": Array [
150
+ "hiddenBlockTypes": [
151
151
  "core/heading",
152
152
  "core/list",
153
153
  ],
154
- "inactivePanels": Array [
154
+ "inactivePanels": [
155
155
  "post-excerpt",
156
156
  ],
157
- "openPanels": Array [
157
+ "openPanels": [
158
158
  "post-status",
159
159
  "taxonomy-panel-category",
160
160
  ],
161
- "pinnedItems": Object {
161
+ "pinnedItems": {
162
162
  "my-sidebar-plugin/title-sidebar": false,
163
163
  },
164
- "preferredStyleVariations": Object {
164
+ "preferredStyleVariations": {
165
165
  "core/quote": "plain",
166
166
  },
167
167
  "welcomeGuide": false,
168
168
  },
169
- "core/edit-site": Object {
169
+ "core/edit-site": {
170
170
  "complementaryArea": "edit-site/global-styles",
171
171
  "fixedToolbar": true,
172
172
  "focusMode": true,
173
173
  "welcomeGuide": false,
174
174
  "welcomeGuideStyles": false,
175
175
  },
176
- "core/edit-widgets": Object {
176
+ "core/edit-widgets": {
177
177
  "complementaryArea": "edit-widgets/block-areas",
178
178
  "fixedToolbar": true,
179
179
  "keepCaretInsideBlock": true,
180
180
  "welcomeGuide": false,
181
181
  },
182
- "third-party-plugin": Object {
182
+ "third-party-plugin": {
183
183
  "thirdPartyFeature": true,
184
184
  },
185
185
  }
@@ -189,35 +189,35 @@ describe( 'convertLegacyData', () => {
189
189
  it( 'retains already converted data', () => {
190
190
  expect( convertLegacyData( alreadyConvertedData ) )
191
191
  .toMatchInlineSnapshot( `
192
- Object {
193
- "core/edit-post": Object {
192
+ {
193
+ "core/edit-post": {
194
194
  "complementaryArea": "edit-post/block",
195
195
  "editorMode": "visual",
196
196
  "fixedToolbar": true,
197
197
  "fullscreenMode": false,
198
- "hiddenBlockTypes": Array [
198
+ "hiddenBlockTypes": [
199
199
  "core/audio",
200
200
  "core/cover",
201
201
  ],
202
- "inactivePanels": Array [],
203
- "openPanels": Array [
202
+ "inactivePanels": [],
203
+ "openPanels": [
204
204
  "post-status",
205
205
  ],
206
- "pinnedItems": Object {
206
+ "pinnedItems": {
207
207
  "my-sidebar-plugin/title-sidebar": false,
208
208
  },
209
- "preferredStyleVariations": Object {
209
+ "preferredStyleVariations": {
210
210
  "core/quote": "large",
211
211
  },
212
212
  "welcomeGuide": false,
213
213
  },
214
- "core/edit-site": Object {
214
+ "core/edit-site": {
215
215
  "complementaryArea": "edit-site/global-styles",
216
216
  "fixedToolbar": true,
217
217
  "welcomeGuide": false,
218
218
  "welcomeGuideStyles": false,
219
219
  },
220
- "core/edit-widgets": Object {
220
+ "core/edit-widgets": {
221
221
  "complementaryArea": "edit-widgets/block-areas",
222
222
  "fixedToolbar": true,
223
223
  "showBlockBreadcrumbs": false,
@@ -41,38 +41,38 @@ describe( 'convertPreferencesPackageData', () => {
41
41
  it( 'converts data to the expected format', () => {
42
42
  expect( convertPreferencesPackageData( input ) )
43
43
  .toMatchInlineSnapshot( `
44
- Object {
45
- "core/customize-widgets": Object {
44
+ {
45
+ "core/customize-widgets": {
46
46
  "fixedToolbar": true,
47
47
  "welcomeGuide": false,
48
48
  },
49
- "core/edit-post": Object {
49
+ "core/edit-post": {
50
50
  "editorMode": "visual",
51
51
  "fixedToolbar": true,
52
52
  "fullscreenMode": false,
53
- "hiddenBlockTypes": Array [
53
+ "hiddenBlockTypes": [
54
54
  "core/audio",
55
55
  "core/cover",
56
56
  ],
57
- "inactivePanels": Array [],
58
- "openPanels": Array [
57
+ "inactivePanels": [],
58
+ "openPanels": [
59
59
  "post-status",
60
60
  ],
61
- "pinnedItems": Object {
61
+ "pinnedItems": {
62
62
  "my-sidebar-plugin/title-sidebar": false,
63
63
  },
64
- "preferredStyleVariations": Object {
64
+ "preferredStyleVariations": {
65
65
  "core/quote": "large",
66
66
  },
67
67
  "welcomeGuide": false,
68
68
  },
69
- "core/edit-site": Object {
69
+ "core/edit-site": {
70
70
  "fixedToolbar": true,
71
71
  "isComplementaryAreaVisible": true,
72
72
  "welcomeGuide": false,
73
73
  "welcomeGuideStyles": false,
74
74
  },
75
- "core/edit-widgets": Object {
75
+ "core/edit-widgets": {
76
76
  "fixedToolbar": true,
77
77
  "isComplementaryAreaVisible": true,
78
78
  "showBlockBreadcrumbs": false,