@gmb/bitmark-parser 6.8.0 → 6.9.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.
@@ -31,8 +31,13 @@ export function unbreakscape_text(input: string, format: string, location: strin
31
31
  * `bit`: bit name (required when `info_type` is `"bit"`)
32
32
  * `pretty`: whether to pretty-print JSON output
33
33
  * `indent`: indent size for pretty-printing (default: 2)
34
+ * `include_deprecated`: include deprecated bits in `list`/`all` (PLAN-149)
35
+ * `only_deprecated`: restrict `list`/`all` to deprecated bits (wins over
36
+ * `include_deprecated`)
37
+ * `full`: complete outline for `bit`/`all` (default is the compact
38
+ * one-line-per-tag view)
34
39
  */
35
- export function info(info_type: string, format: string, bit: string, pretty: boolean, indent: number): string;
40
+ export function info(info_type: string, format: string, bit: string, pretty: boolean, indent: number, include_deprecated: boolean, only_deprecated: boolean, full: boolean): string;
36
41
  /**
37
42
  * Apply a patch (a JSON array of patch entries) to every bit and re-emit.
38
43
  *
@@ -191,14 +191,22 @@ module.exports.unbreakscape_text = function(input, format, location) {
191
191
  * `bit`: bit name (required when `info_type` is `"bit"`)
192
192
  * `pretty`: whether to pretty-print JSON output
193
193
  * `indent`: indent size for pretty-printing (default: 2)
194
+ * `include_deprecated`: include deprecated bits in `list`/`all` (PLAN-149)
195
+ * `only_deprecated`: restrict `list`/`all` to deprecated bits (wins over
196
+ * `include_deprecated`)
197
+ * `full`: complete outline for `bit`/`all` (default is the compact
198
+ * one-line-per-tag view)
194
199
  * @param {string} info_type
195
200
  * @param {string} format
196
201
  * @param {string} bit
197
202
  * @param {boolean} pretty
198
203
  * @param {number} indent
204
+ * @param {boolean} include_deprecated
205
+ * @param {boolean} only_deprecated
206
+ * @param {boolean} full
199
207
  * @returns {string}
200
208
  */
201
- module.exports.info = function(info_type, format, bit, pretty, indent) {
209
+ module.exports.info = function(info_type, format, bit, pretty, indent, include_deprecated, only_deprecated, full) {
202
210
  let deferred4_0;
203
211
  let deferred4_1;
204
212
  try {
@@ -209,7 +217,7 @@ module.exports.info = function(info_type, format, bit, pretty, indent) {
209
217
  const len1 = WASM_VECTOR_LEN;
210
218
  const ptr2 = passStringToWasm0(bit, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
211
219
  const len2 = WASM_VECTOR_LEN;
212
- wasm.info(retptr, ptr0, len0, ptr1, len1, ptr2, len2, pretty, indent);
220
+ wasm.info(retptr, ptr0, len0, ptr1, len1, ptr2, len2, pretty, indent, include_deprecated, only_deprecated, full);
213
221
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
214
222
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
215
223
  deferred4_0 = r0;
Binary file
@@ -6,7 +6,7 @@ export const canonicalize: (a: number, b: number, c: number, d: number, e: numbe
6
6
  export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
7
7
  export const convert_text: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
8
8
  export const count_bits: (a: number, b: number, c: number) => void;
9
- export const info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
9
+ export const info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
10
10
  export const is_bitmark: (a: number, b: number) => number;
11
11
  export const lex: (a: number, b: number, c: number, d: number, e: number) => void;
12
12
  export const prettify: (a: number, b: number, c: number, d: number) => void;
package/wasm/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Get More Brain Ltd <info@getmorebrain.com>"
5
5
  ],
6
6
  "description": "WebAssembly bindings for the bitmark parser",
7
- "version": "6.8.0",
7
+ "version": "6.9.0",
8
8
  "license": "ISC",
9
9
  "repository": {
10
10
  "type": "git",