rregex 1.8.0 → 1.8.1

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/README.md CHANGED
@@ -13,7 +13,7 @@ A WebAssembly build of [Rust Regex](https://docs.rs/regex/latest/regex/) for Jav
13
13
  - [`findAt(text: string): Match | undefined;`](#findattext-string-match--undefined)
14
14
  - [`findAll(text: string): Match[];`](#findalltext-string-match)
15
15
  - [`capturesLength(): number;`](#captureslength-number) (since 1.8)
16
- - [`captureNames(): string[];`](#capturenames-string) (since 1.8)
16
+ - [`captureNames(): (string | null)[];`](#capturenames-string--null) (since 1.8)
17
17
  - [`captures(text: string): Captures | undefined;`](#capturestext-string-captures--undefined) (since 1.8)
18
18
  - [`capturesAll(text: string): Captures[];`](#capturesalltext-string-captures) (since 1.8)
19
19
  - [`replace(text: string, rep: string): string;`](#replacetext-string-rep-string-string)
@@ -142,7 +142,7 @@ Returns an array for each successive non-overlapping match in text, returning th
142
142
 
143
143
  [See Documentation for `find_iter`](https://docs.rs/regex/latest/regex/struct.Regex.html#method.find_iter)
144
144
 
145
- ### `captureNames(): string[];`
145
+ ### `captureNames(): (string | null)[];`
146
146
 
147
147
  > Note: available since 1.8
148
148
 
package/lib/browser.d.ts CHANGED
@@ -597,7 +597,7 @@ export class RRegex {
597
597
  *
598
598
  * @see https://docs.rs/regex/latest/regex/struct.Regex.html#method.capture_names
599
599
  */
600
- captureNames(): string[];
600
+ captureNames(): (string | null)[];
601
601
  /**
602
602
  * Returns the capture groups corresponding to the leftmost-first
603
603
  * match in `text`. Capture group `0` always corresponds to the entire
package/lib/commonjs.d.ts CHANGED
@@ -597,7 +597,7 @@ export class RRegex {
597
597
  *
598
598
  * @see https://docs.rs/regex/latest/regex/struct.Regex.html#method.capture_names
599
599
  */
600
- captureNames(): string[];
600
+ captureNames(): (string | null)[];
601
601
  /**
602
602
  * Returns the capture groups corresponding to the leftmost-first
603
603
  * match in `text`. Capture group `0` always corresponds to the entire
package/lib/module.d.ts CHANGED
@@ -597,7 +597,7 @@ export class RRegex {
597
597
  *
598
598
  * @see https://docs.rs/regex/latest/regex/struct.Regex.html#method.capture_names
599
599
  */
600
- captureNames(): string[];
600
+ captureNames(): (string | null)[];
601
601
  /**
602
602
  * Returns the capture groups corresponding to the leftmost-first
603
603
  * match in `text`. Capture group `0` always corresponds to the entire
package/lib/rregex.wasm CHANGED
Binary file
package/lib/types.d.ts CHANGED
@@ -597,7 +597,7 @@ export class RRegex {
597
597
  *
598
598
  * @see https://docs.rs/regex/latest/regex/struct.Regex.html#method.capture_names
599
599
  */
600
- captureNames(): string[];
600
+ captureNames(): (string | null)[];
601
601
  /**
602
602
  * Returns the capture groups corresponding to the leftmost-first
603
603
  * match in `text`. Capture group `0` always corresponds to the entire
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rregex",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Rust Regex binding for Javascript",
5
5
  "private": false,
6
6
  "main": "./lib/commonjs.js",
@@ -76,6 +76,11 @@
76
76
  "range": "1.7.x",
77
77
  "channel": "1.7.x"
78
78
  },
79
+ {
80
+ "name": "1.8.x",
81
+ "range": "1.8.x",
82
+ "channel": "1.8.x"
83
+ },
79
84
  {
80
85
  "name": "master"
81
86
  }