@retorquere/bibtex-parser 13.0.4 → 13.0.6

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.
@@ -235,16 +235,6 @@ function __wbg_get_imports() {
235
235
  const ret = result;
236
236
  return ret;
237
237
  },
238
- __wbg_instanceof_Map_b2611749102d7ba3: function(arg0) {
239
- let result;
240
- try {
241
- result = arg0 instanceof Map;
242
- } catch (_) {
243
- result = false;
244
- }
245
- const ret = result;
246
- return ret;
247
- },
248
238
  __wbg_instanceof_Uint8Array_828cef2aaacafc31: function(arg0) {
249
239
  let result;
250
240
  try {
@@ -381,7 +371,7 @@ function __wbg_get_imports() {
381
371
  return ret;
382
372
  },
383
373
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
384
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 92, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
374
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 90, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
385
375
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_7c27bb0bb2b93bf___convert__closures_____invoke___wasm_bindgen_7c27bb0bb2b93bf___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_7c27bb0bb2b93bf___JsError___true_);
386
376
  return ret;
387
377
  },
Binary file
@@ -56,8 +56,25 @@ export interface Creator {
56
56
  /** Whether the source separated the suffix from the name with a comma. */
57
57
  juniorcomma?: boolean;
58
58
  }
59
- /** A normalized field value: scalar text, a list of strings, or parsed creator records. */
60
- export type FieldValue = string | string[] | Creator[];
59
+ /** Value text in a Biber annotation clause. */
60
+ export type AnnotationContent = string | string[];
61
+ /** One Biber annotation clause with its explicit scope and one-based selector. */
62
+ export type Annotation = {
63
+ scope: 'field';
64
+ value: AnnotationContent;
65
+ } | {
66
+ scope: 'item';
67
+ index: number;
68
+ value: AnnotationContent;
69
+ } | {
70
+ scope: 'part';
71
+ index: number;
72
+ name: string;
73
+ value: AnnotationContent;
74
+ };
75
+ /** A normalized field value, including parsed creators and structured Biber annotations. */
76
+ export type OptionMap = Record<string, string>;
77
+ export type FieldValue = string | string[] | Creator[] | Annotation[] | OptionMap;
61
78
  /** Creator-list fields whose values are returned as arrays of {@link Creator} objects. */
62
79
  export type CreatorFields = {
63
80
  author?: Creator[];
@@ -82,11 +99,23 @@ export type ArrayFields = {
82
99
  organization?: string[];
83
100
  location?: string[];
84
101
  origlocation?: string[];
102
+ address?: string[];
103
+ school?: string[];
104
+ pageref?: string[];
105
+ entryset?: string[];
106
+ related?: string[];
107
+ relatedoptions?: string[];
108
+ xdata?: string[];
109
+ lista?: string[];
110
+ listb?: string[];
111
+ listc?: string[];
112
+ };
113
+ /** The known structured fields in a normalized entry. */
114
+ export type TypedFields = CreatorFields & ArrayFields & {
115
+ options?: OptionMap;
85
116
  };
86
- /** The known creator-list and string-list fields in a normalized entry. */
87
- export type TypedFields = CreatorFields & ArrayFields;
88
- /** Normalized BibTeX fields: known list fields have structured values; other fields are strings. */
89
- export type Fields = TypedFields & Omit<Record<string, string>, keyof TypedFields>;
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>;
90
119
  /** A normalized BibTeX entry returned by the parser. */
91
120
  export interface Entry {
92
121
  /** 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.4",
3
+ "version": "13.0.6",
4
4
  "description": "BibTeX parser",
5
5
  "type": "module",
6
6
  "module": "./dist/wasm/index.js",
@@ -63,16 +63,16 @@
63
63
  "author": "Emiliano Heyns",
64
64
  "license": "ISC",
65
65
  "devDependencies": {
66
- "@types/node": "^26.6.5",
66
+ "@types/node": "^26.6.6",
67
67
  "@unified-latex/unified-latex-types": "^1.8.4",
68
68
  "command-line-args": "^6.0.2",
69
69
  "csv": "^6.6.4",
70
70
  "digital-tree": "^2.0.4",
71
- "dprint": "^0.63.0",
72
- "ejs": "^7.0.1",
71
+ "dprint": "^0.64.3",
72
+ "ejs": "^7.0.2",
73
73
  "esbuild": "^0.28.2",
74
- "glob": "^13.0.6",
75
- "js-yaml": "^5.4.3",
74
+ "glob": "^14.0.3",
75
+ "js-yaml": "^5.5.0",
76
76
  "minimist": "^1.2.8",
77
77
  "mkdirp": "^3.0.1",
78
78
  "node-fetch": "^3.3.2",
@@ -80,7 +80,7 @@
80
80
  "slug": "^12.0.1",
81
81
  "tap": "^21.8.0",
82
82
  "ts-node": "^10.9.2",
83
- "tslib": "^2.8.1",
83
+ "tslib": "^2.9.1",
84
84
  "typedoc": "^0.28.20",
85
85
  "typescript": "npm:@typescript/typescript6@^6.0.2"
86
86
  },
@@ -93,7 +93,7 @@
93
93
  "lodash.merge": "^4.6.2",
94
94
  "moo": "^0.5.3",
95
95
  "nearley": "^2.20.1",
96
- "unicode2latex": "^7.0.37",
96
+ "unicode2latex": "^7.0.38",
97
97
  "wink-eng-lite-web-model": "^1.8.1",
98
98
  "wink-nlp": "^2.4.0"
99
99
  },
@@ -107,6 +107,6 @@
107
107
  },
108
108
  "allowScripts": {
109
109
  "esbuild@0.28.2": true,
110
- "dprint@0.63.0": true
110
+ "dprint@0.64.3": true
111
111
  }
112
112
  }