@retorquere/bibtex-parser 13.0.6 → 13.0.7

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.
@@ -77,7 +77,9 @@ export type OptionMap = Record<string, string>;
77
77
  export type FieldValue = string | string[] | Creator[] | Annotation[] | OptionMap;
78
78
  /** Creator-list fields whose values are returned as arrays of {@link Creator} objects. */
79
79
  export type CreatorFields = {
80
+ afterword?: Creator[];
80
81
  author?: Creator[];
82
+ annotator?: Creator[];
81
83
  bookauthor?: Creator[];
82
84
  collaborator?: Creator[];
83
85
  commentator?: Creator[];
@@ -86,36 +88,50 @@ export type CreatorFields = {
86
88
  editora?: Creator[];
87
89
  editorb?: Creator[];
88
90
  editors?: Creator[];
91
+ foreword?: Creator[];
89
92
  holder?: Creator[];
93
+ introduction?: Creator[];
94
+ namea?: Creator[];
95
+ nameb?: Creator[];
96
+ namec?: Creator[];
90
97
  scriptwriter?: Creator[];
98
+ shortauthor?: Creator[];
99
+ shorteditor?: Creator[];
100
+ sortname?: Creator[];
91
101
  translator?: Creator[];
92
102
  };
93
103
  /** List-valued fields whose elements remain strings. */
94
104
  export type ArrayFields = {
95
- keywords?: string[];
105
+ address?: string[];
106
+ entryset?: string[];
96
107
  institution?: string[];
97
- publisher?: string[];
98
- origpublisher?: string[];
99
- organization?: string[];
108
+ labelname?: string[];
109
+ language?: string[];
100
110
  location?: string[];
111
+ organization?: string[];
101
112
  origlocation?: string[];
102
- address?: string[];
103
- school?: string[];
113
+ origlanguage?: string[];
114
+ origpublisher?: string[];
104
115
  pageref?: string[];
105
- entryset?: string[];
116
+ publisher?: string[];
106
117
  related?: string[];
107
118
  relatedoptions?: string[];
119
+ school?: string[];
108
120
  xdata?: string[];
121
+ keywords?: string[];
122
+ ids?: string[];
109
123
  lista?: string[];
110
124
  listb?: string[];
111
125
  listc?: string[];
112
126
  };
127
+ /** Biber annotation field names carry structured annotation clauses. */
128
+ export type AnnotationFields = Partial<Record<`${string}+an${string}`, Annotation[]>>;
113
129
  /** The known structured fields in a normalized entry. */
114
- export type TypedFields = CreatorFields & ArrayFields & {
130
+ export type TypedFields = CreatorFields & ArrayFields & AnnotationFields & {
115
131
  options?: OptionMap;
116
132
  };
117
- /** Normalized BibTeX fields: known list fields and annotation fields have structured values. */
118
- export type Fields = TypedFields & Omit<Record<string, string | Annotation[] | OptionMap>, keyof TypedFields>;
133
+ /** Normalized fields with precise types for field names handled by the default parser modes. */
134
+ export type Fields = TypedFields & Omit<Record<string, FieldValue>, keyof TypedFields>;
119
135
  /** A normalized BibTeX entry returned by the parser. */
120
136
  export interface Entry {
121
137
  /** Entry type from the source, such as `article` or `inproceedings`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retorquere/bibtex-parser",
3
- "version": "13.0.6",
3
+ "version": "13.0.7",
4
4
  "description": "BibTeX parser",
5
5
  "type": "module",
6
6
  "module": "./dist/wasm/index.js",