@automattic/jetpack-boost-score-api 0.1.46 → 0.1.48
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 +10 -0
- package/build/utils/json-object-type.d.ts +1 -3
- package/package.json +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ 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.48] - 2024-12-04
|
|
9
|
+
### Changed
|
|
10
|
+
- Updated package dependencies. [#40363]
|
|
11
|
+
|
|
12
|
+
## [0.1.47] - 2024-11-25
|
|
13
|
+
### Changed
|
|
14
|
+
- Updated package dependencies. [#40288]
|
|
15
|
+
|
|
8
16
|
## [0.1.46] - 2024-11-14
|
|
9
17
|
### Changed
|
|
10
18
|
- Update dependencies.
|
|
@@ -199,6 +207,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
199
207
|
### Added
|
|
200
208
|
- Create package for the boost score bar API [#30781]
|
|
201
209
|
|
|
210
|
+
[0.1.48]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.47...v0.1.48
|
|
211
|
+
[0.1.47]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.46...v0.1.47
|
|
202
212
|
[0.1.46]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.45...v0.1.46
|
|
203
213
|
[0.1.45]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.44...v0.1.45
|
|
204
214
|
[0.1.44]: https://github.com/Automattic/jetpack-boost-score-api/compare/v0.1.43...v0.1.44
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
/**
|
|
3
2
|
* Definition for JSON types:
|
|
4
3
|
* - JSONValue can be any value compatible with JSON; an object (containing JSONValues), array, string, number, boolean, or null
|
|
5
4
|
* - JSONObject is an object containing JSONValues
|
|
6
5
|
* - JSONSchema is a zod schema that can be used to validate JSONValues
|
|
7
6
|
*/
|
|
8
|
-
|
|
9
|
-
type Literal = z.infer<typeof literalSchema>;
|
|
7
|
+
type Literal = string | number | boolean | null;
|
|
10
8
|
export type JSONValue = Literal | JSONObject | JSONValue[];
|
|
11
9
|
export type JSONObject = {
|
|
12
10
|
[key: string]: JSONValue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-boost-score-api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.48",
|
|
4
4
|
"description": "A package to get the Jetpack Boost score of a site",
|
|
5
5
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/boost-score-api/#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -21,13 +21,11 @@
|
|
|
21
21
|
"test-coverage": "pnpm run test --coverage"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@wordpress/i18n": "5.
|
|
24
|
+
"@wordpress/i18n": "5.13.0",
|
|
25
25
|
"zod": "3.22.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@automattic/jetpack-webpack-config": "workspace:*",
|
|
29
|
-
"@typescript-eslint/parser": "6.21.0",
|
|
30
|
-
"eslint": "8.57.1",
|
|
31
29
|
"jest": "29.7.0",
|
|
32
30
|
"jest-environment-jsdom": "29.7.0",
|
|
33
31
|
"typescript": "5.0.4",
|