@eik/common 4.0.7 → 4.0.8
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 +8 -0
- package/eikjson.d.ts +1 -0
- package/lib/schemas/eikjson.schema.json +5 -1
- package/lib/schemas/validate.js +1 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [4.0.8](https://github.com/eik-lib/common/compare/v4.0.7...v4.0.8) (2024-08-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* allow specifying $schema ([bfc6b0f](https://github.com/eik-lib/common/commit/bfc6b0f5c878f14a7e3d78c4555779247e96a766))
|
|
7
|
+
* use the correct upstream schema link for ajv ([90ca025](https://github.com/eik-lib/common/commit/90ca025d67a9b8f2cf900ead23f1cfb1cddb0c2a)), closes [/ajv.js.org/guide/schema-language.html#draft-07-and-draft-06](https://github.com//ajv.js.org/guide/schema-language.html/issues/draft-07-and-draft-06)
|
|
8
|
+
|
|
1
9
|
## [4.0.7](https://github.com/eik-lib/common/compare/v4.0.6...v4.0.7) (2024-08-09)
|
|
2
10
|
|
|
3
11
|
|
package/eikjson.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema#",
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"additionalProperties": false,
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
|
+
"$schema": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uri"
|
|
9
|
+
},
|
|
6
10
|
"server": {
|
|
7
11
|
"description": "The URL address of the Eik server where packages are published to.",
|
|
8
12
|
"type": "string",
|
package/lib/schemas/validate.js
CHANGED
|
@@ -19,10 +19,7 @@ const createValidator = (schema, ajvOptions) => {
|
|
|
19
19
|
const ajv = new Ajv(ajvOptions);
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
formats(ajv); // Needed to support "uri"
|
|
22
|
-
const validate = ajv.compile(
|
|
23
|
-
$schema: 'http://json-schema.org/schema#',
|
|
24
|
-
...schema,
|
|
25
|
-
});
|
|
22
|
+
const validate = ajv.compile(schema);
|
|
26
23
|
|
|
27
24
|
// @ts-ignore
|
|
28
25
|
return (data) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eik/common",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
4
4
|
"description": "Common utilities for Eik modules",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"eikjson.d.ts"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
|
-
"clean": "rimraf node_modules",
|
|
16
|
+
"clean": "rimraf .tap node_modules types",
|
|
17
17
|
"lint": "eslint .",
|
|
18
18
|
"lint:fix": "eslint --fix .",
|
|
19
19
|
"schema:types": "json2ts lib/schemas/eikjson.schema.json > eikjson.d.ts",
|