@domorium/validator 0.1.1 → 0.2.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 +17 -0
- package/NOTICE +10 -0
- package/README.md +2 -0
- package/dist/document/gedcomDocument.d.ts +4 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +148 -116
- package/dist/types/errors.d.ts +5 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@domorium/validator` are documented here.
|
|
4
4
|
|
|
5
|
+
## 0.2.0 - 2026-08-03
|
|
6
|
+
|
|
7
|
+
- Move the package from `@gedcom/validator` to `@domorium/validator` as part of
|
|
8
|
+
the Domorium rebrand.
|
|
9
|
+
- Add the FamilySearch GEDCOM specification notice to the published package.
|
|
10
|
+
|
|
11
|
+
## 0.1.3 - 2026-07-24
|
|
12
|
+
|
|
13
|
+
- Move the public package to the `@gedcom/validator` organization scope.
|
|
14
|
+
- Update repository metadata and documentation for the GEDCOM project.
|
|
15
|
+
|
|
16
|
+
## 0.1.2 - 2026-07-23
|
|
17
|
+
|
|
18
|
+
- Expose schema-aware pointer target metadata for editor features.
|
|
19
|
+
- Distinguish valid GEDCOM record declarations from nested structures and header/trailer lines.
|
|
20
|
+
- Expose the AST-detected GEDCOM version to downstream language tooling.
|
|
21
|
+
|
|
5
22
|
## 0.1.1 - 2026-07-21
|
|
6
23
|
|
|
7
24
|
- Upgrade to Chevrotain 12 to remove vulnerable `lodash-es` runtime dependencies.
|
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
|
@@ -13,6 +13,8 @@ npm install @domorium/validator
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { GedcomDocument } from "@domorium/validator";
|
|
15
15
|
|
|
16
|
+
const gedcomString = "0 HEAD\n1 GEDC\n2 VERS 7.0\n0 TRLR\n";
|
|
17
|
+
|
|
16
18
|
const document = new GedcomDocument().createDocument(gedcomString);
|
|
17
19
|
const errors = document.getErrors();
|
|
18
20
|
```
|
|
@@ -10,7 +10,11 @@ export declare class GedcomDocument {
|
|
|
10
10
|
private scheme;
|
|
11
11
|
private parseGedcom;
|
|
12
12
|
createDocument(text: string): GedcomDocument;
|
|
13
|
+
private validateLevels;
|
|
13
14
|
getLabel(node: ASTNode): string | undefined;
|
|
15
|
+
getPointerTargetTag(node: ASTNode): string | undefined;
|
|
16
|
+
isRecordDeclaration(node: ASTNode): boolean;
|
|
17
|
+
getVersion(): string | undefined;
|
|
14
18
|
getCompletions(position: Position, lineText: string): GedcomCompletion[];
|
|
15
19
|
updateDocument(_text: string, _range: Range): GedcomDocument;
|
|
16
20
|
getErrors(_lang?: string): GedcomError[];
|