@eik/common 5.1.3 → 5.1.5
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 +14 -0
- package/lib/schemas/schema.js +1 -10
- package/lib/schemas/validate.js +1 -10
- package/package.json +2 -2
- package/types/schemas/schema.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [5.1.5](https://github.com/eik-lib/common/compare/v5.1.4...v5.1.5) (2025-06-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency glob to v11.0.3 ([#366](https://github.com/eik-lib/common/issues/366)) ([e20b571](https://github.com/eik-lib/common/commit/e20b571e9b2d74875e1b3c82c22e946c2af39aed))
|
|
7
|
+
|
|
8
|
+
## [5.1.4](https://github.com/eik-lib/common/compare/v5.1.3...v5.1.4) (2025-06-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* refactor to use native JSON module for import ([#365](https://github.com/eik-lib/common/issues/365)) ([53fc469](https://github.com/eik-lib/common/commit/53fc46995d25a992345c5152e9ee4260acb3424a))
|
|
14
|
+
|
|
1
15
|
## [5.1.3](https://github.com/eik-lib/common/compare/v5.1.2...v5.1.3) (2025-06-11)
|
|
2
16
|
|
|
3
17
|
|
package/lib/schemas/schema.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { join, dirname } from "node:path";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
4
|
-
|
|
5
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = dirname(__filename);
|
|
7
|
-
|
|
8
|
-
const schema = JSON.parse(
|
|
9
|
-
readFileSync(join(__dirname, "./eikjson.schema.json"), "utf8"),
|
|
10
|
-
);
|
|
1
|
+
import schema from "./eikjson.schema.json" with { type: "json" };
|
|
11
2
|
|
|
12
3
|
export default schema;
|
package/lib/schemas/validate.js
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import { readFileSync } from "node:fs";
|
|
2
|
-
import { join, dirname } from "node:path";
|
|
3
1
|
import formats from "ajv-formats";
|
|
4
2
|
import validSemver from "semver/functions/valid.js";
|
|
5
3
|
import npmPkg from "validate-npm-package-name";
|
|
6
4
|
import Ajv from "ajv";
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
10
|
-
const __dirname = dirname(__filename);
|
|
11
|
-
|
|
12
|
-
const eikJSONSchema = JSON.parse(
|
|
13
|
-
readFileSync(join(__dirname, "./eikjson.schema.json"), "utf8"),
|
|
14
|
-
);
|
|
5
|
+
import eikJSONSchema from "./schema.js";
|
|
15
6
|
|
|
16
7
|
/**
|
|
17
8
|
* @typedef {import('ajv').ErrorObject & { dataPath?: string }} ErrorObject
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eik/common",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.5",
|
|
4
4
|
"description": "Common utilities for Eik modules",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"ajv": "8.17.1",
|
|
39
39
|
"ajv-formats": "3.0.1",
|
|
40
|
-
"glob": "11.0.
|
|
40
|
+
"glob": "11.0.3",
|
|
41
41
|
"is-glob": "4.0.3",
|
|
42
42
|
"mime-types": "2.1.35",
|
|
43
43
|
"semver": "7.7.2",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default schema;
|
|
2
|
-
|
|
2
|
+
import schema from "./eikjson.schema.json" with { type: "json" };
|