@lexibase/rdx-core 1.0.0 → 1.1.1
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.
|
@@ -48,6 +48,7 @@ function validateMetadata(input) {
|
|
|
48
48
|
const metadata = object2(input, "metadata", [
|
|
49
49
|
"metadataBase",
|
|
50
50
|
"applicationName",
|
|
51
|
+
"since",
|
|
51
52
|
"authors",
|
|
52
53
|
"keywords",
|
|
53
54
|
"icons",
|
|
@@ -59,6 +60,10 @@ function validateMetadata(input) {
|
|
|
59
60
|
if (metadata.metadataBase !== void 0)
|
|
60
61
|
url(metadata.metadataBase, "metadata.metadataBase");
|
|
61
62
|
string(metadata.applicationName, "metadata.applicationName");
|
|
63
|
+
if (metadata.since !== void 0 && (typeof metadata.since !== "number" || !Number.isInteger(metadata.since) || metadata.since < 1 || metadata.since > (/* @__PURE__ */ new Date()).getFullYear()))
|
|
64
|
+
throw new RdxConfigError(
|
|
65
|
+
"metadata.since must be a positive integer no later than the current year."
|
|
66
|
+
);
|
|
62
67
|
if (metadata.manifest !== void 0)
|
|
63
68
|
url(metadata.manifest, "metadata.manifest", true);
|
|
64
69
|
if (metadata.keywords !== void 0)
|
package/dist/config/index.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lexibase/rdx-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Content indexing and document utilities for RDX documentation projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"@shikijs/rehype": "^4.5.0",
|
|
50
50
|
"gray-matter": "^4.0.3",
|
|
51
51
|
"rehype-slug": "^6.0.0",
|
|
52
|
-
"@lexibase/rdx-types": "1.
|
|
52
|
+
"@lexibase/rdx-types": "1.1.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^22.15.3",
|
|
56
56
|
"@types/react": "19.3.0",
|
|
57
|
-
"@rdx/
|
|
58
|
-
"@rdx/
|
|
57
|
+
"@rdx/typescript-config": "1.0.0",
|
|
58
|
+
"@rdx/eslint-config": "1.0.0"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": "^22.18.0 || ^24.11.0"
|