@domorium/validator 0.1.2 → 1.0.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 +18 -0
- package/NOTICE +10 -0
- package/README.md +8 -0
- package/dist/index.esm.js +1 -3
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@domorium/validator` are documented here.
|
|
4
4
|
|
|
5
|
+
## 1.0.0 - 2026-08-05
|
|
6
|
+
|
|
7
|
+
- First stable release. `GedcomDocument` and the diagnostic shapes it returns are
|
|
8
|
+
now the package's committed public API: a breaking change to them requires a
|
|
9
|
+
major version.
|
|
10
|
+
- No behavioral change from 0.2.0.
|
|
11
|
+
|
|
12
|
+
## 0.2.0 - 2026-08-03
|
|
13
|
+
|
|
14
|
+
- Move the package from `@gedcom/validator` to `@domorium/validator` as part of
|
|
15
|
+
the Domorium rebrand.
|
|
16
|
+
- Add the FamilySearch GEDCOM specification notice to the published package.
|
|
17
|
+
|
|
18
|
+
## 0.1.3 - 2026-07-24
|
|
19
|
+
|
|
20
|
+
- Move the public package to the `@gedcom/validator` organization scope.
|
|
21
|
+
- Update repository metadata and documentation for the GEDCOM project.
|
|
22
|
+
|
|
5
23
|
## 0.1.2 - 2026-07-23
|
|
6
24
|
|
|
7
25
|
- Expose schema-aware pointer target metadata for editor features.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
This work comprises, is based on, or is derived from the FAMILYSEARCH GEDCOM™
|
|
2
|
+
Specification, © 1984-2026 Intellectual Reserve, Inc. All rights reserved.
|
|
3
|
+
|
|
4
|
+
“FAMILYSEARCH GEDCOM™” and “FAMILYSEARCH®” are trademarks of Intellectual
|
|
5
|
+
Reserve, Inc. and may not be used except as allowed by the Apache License 2.0
|
|
6
|
+
that governs the specification or as expressly authorized in writing and in
|
|
7
|
+
advance by Intellectual Reserve, Inc.
|
|
8
|
+
|
|
9
|
+
The FamilySearch GEDCOM specification is licensed under the Apache License 2.0:
|
|
10
|
+
https://www.apache.org/licenses/LICENSE-2.0
|
package/README.md
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
# @domorium/validator
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@domorium/validator)
|
|
4
|
+
[](https://github.com/lavich/domorium/blob/main/LICENSE)
|
|
5
|
+
|
|
3
6
|
GEDCOM 5.5.1 and 7.0 parser and validator. Parses `.ged` files into an AST and validates structure, cardinality, and payload types against the official GEDCOM specification schemas.
|
|
4
7
|
|
|
8
|
+
Part of [Domorium](https://github.com/lavich/domorium) — GEDCOM editor tooling for
|
|
9
|
+
the browser, Obsidian, VS Code, and JetBrains IDEs.
|
|
10
|
+
|
|
5
11
|
## Install
|
|
6
12
|
|
|
7
13
|
```bash
|
|
@@ -13,6 +19,8 @@ npm install @domorium/validator
|
|
|
13
19
|
```typescript
|
|
14
20
|
import { GedcomDocument } from "@domorium/validator";
|
|
15
21
|
|
|
22
|
+
const gedcomString = "0 HEAD\n1 GEDC\n2 VERS 7.0\n0 TRLR\n";
|
|
23
|
+
|
|
16
24
|
const document = new GedcomDocument().createDocument(gedcomString);
|
|
17
25
|
const errors = document.getErrors();
|
|
18
26
|
```
|
package/dist/index.esm.js
CHANGED
|
@@ -305,9 +305,7 @@ class n {
|
|
|
305
305
|
* type->tag table instead.
|
|
306
306
|
*/
|
|
307
307
|
getUniversalType(e) {
|
|
308
|
-
const o = Object.entries(this.scheme.tag).find(
|
|
309
|
-
([, t]) => t === e
|
|
310
|
-
);
|
|
308
|
+
const o = Object.entries(this.scheme.tag).find(([, t]) => t === e);
|
|
311
309
|
return o ? a(o[0]) : void 0;
|
|
312
310
|
}
|
|
313
311
|
getNodeType(e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domorium/validator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "GEDCOM 5.5.1 and 7.0 parser and validator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gedcom",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"author": {
|
|
22
|
-
"name": "
|
|
22
|
+
"name": "Andrei Lobanov",
|
|
23
23
|
"email": "lobanov.andrey.lavich@gmail.com",
|
|
24
24
|
"url": "https://github.com/lavich"
|
|
25
25
|
},
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"package.json",
|
|
43
43
|
"README.md",
|
|
44
44
|
"CHANGELOG.md",
|
|
45
|
+
"NOTICE",
|
|
45
46
|
"LICENSE"
|
|
46
47
|
],
|
|
47
48
|
"publishConfig": {
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
"prepack": "npm run build"
|
|
57
58
|
},
|
|
58
59
|
"dependencies": {
|
|
59
|
-
"chevrotain": "^
|
|
60
|
+
"chevrotain": "^13.2.0",
|
|
60
61
|
"ts-brand": "^0.2.0"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|