rregex 1.1.3 → 1.4.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/README.md CHANGED
@@ -209,7 +209,7 @@ Returns the same as shortest_match, but starts the search at the given offset. (
209
209
 
210
210
  ## Known Issues
211
211
 
212
- If you call `splitn(text, limit)` and the expected result length is equal to `limit - 1` the result will include an extra item `""`, this behavior does not happen if `limit` es greater.
212
+ If you call `splitn(text, limit)` and the expected result length is equal to `limit - 1` the result will include an extra item `""`, this behavior does not happen if `limit` es greater. **`fixed at >=1.3`**
213
213
 
214
214
  ```ts
215
215
  const regex = new RRegex(',')
package/lib/browser.d.ts CHANGED
@@ -35,56 +35,56 @@ export type HirKindLiteralVariant = {
35
35
  '@type': 'struct'
36
36
  '@name': 'regex_syntax::hir::HirKind'
37
37
  '@variant': 'Literal'
38
- 'value': Literal
38
+ '@values': [Literal]
39
39
  }
40
40
 
41
41
  export type HirKindClassVariant = {
42
42
  '@type': 'struct'
43
43
  '@name': 'regex_syntax::hir::HirKind'
44
44
  '@variant': 'Class'
45
- 'value': Class
45
+ '@values': [Class]
46
46
  }
47
47
 
48
48
  export type HirKindAnchorVariant = {
49
49
  '@type': 'struct'
50
50
  '@name': 'regex_syntax::hir::HirKind'
51
51
  '@variant': 'Anchor'
52
- 'value': Anchor
52
+ '@values': [Anchor]
53
53
  }
54
54
 
55
55
  export type HirKindWordBoundaryVariant = {
56
56
  '@type': 'struct'
57
57
  '@name': 'regex_syntax::hir::HirKind'
58
58
  '@variant': 'WordBoundary'
59
- 'value': WordBoundary
59
+ '@values': [WordBoundary]
60
60
  }
61
61
 
62
62
  export type HirKindRepetitionVariant = {
63
63
  '@type': 'struct'
64
64
  '@name': 'regex_syntax::hir::HirKind'
65
65
  '@variant': 'Repetition'
66
- 'value': Repetition
66
+ '@values': [Repetition]
67
67
  }
68
68
 
69
69
  export type HirKindGroupVariant = {
70
70
  '@type': 'struct'
71
71
  '@name': 'regex_syntax::hir::HirKind'
72
72
  '@variant': 'Group'
73
- 'value': Group
73
+ '@values': [Group]
74
74
  }
75
75
 
76
76
  export type HirKindConcatVariant = {
77
77
  '@type': 'struct'
78
78
  '@name': 'regex_syntax::hir::HirKind'
79
79
  '@variant': 'Concat'
80
- 'value': Hir[]
80
+ '@values': [Hir[]]
81
81
  }
82
82
 
83
83
  export type HirKindAlternationVariant = {
84
84
  '@type': 'struct'
85
85
  '@name': 'regex_syntax::hir::HirKind'
86
86
  '@variant': 'Alternation'
87
- 'value': Hir[]
87
+ '@values': [Hir[]]
88
88
  }
89
89
 
90
90
 
@@ -97,14 +97,14 @@ export type LiteralUnicodeVariant = {
97
97
  '@type': 'struct'
98
98
  '@name': 'regex_syntax::hir::Literal'
99
99
  '@variant': 'Unicode'
100
- 'value': string
100
+ '@values': [string]
101
101
  }
102
102
 
103
103
  export type LiteralByteVariant = {
104
104
  '@type': 'struct'
105
105
  '@name': 'regex_syntax::hir::Literal'
106
106
  '@variant': 'Byte'
107
- 'value': number
107
+ '@values': [number]
108
108
  }
109
109
 
110
110
 
@@ -117,14 +117,14 @@ export type ClassUnicodeVariant = {
117
117
  '@type': 'struct'
118
118
  '@name': 'regex_syntax::hir::Class'
119
119
  '@variant': 'Unicode'
120
- 'value': ClassUnicode
120
+ '@values': [ClassUnicode]
121
121
  }
122
122
 
123
123
  export type ClassByteVariant = {
124
124
  '@type': 'struct'
125
125
  '@name': 'regex_syntax::hir::Class'
126
126
  '@variant': 'Bytes'
127
- 'value': ClassBytes
127
+ '@values': [ClassBytes]
128
128
  }
129
129
 
130
130
 
@@ -265,7 +265,7 @@ export type RepetitionKindRangeVariant = {
265
265
  '@type': 'struct'
266
266
  '@name': 'regex_syntax::hir::Repetition'
267
267
  '@variant': 'Range'
268
- value: RepetitionRange
268
+ '@values': [RepetitionRange]
269
269
  }
270
270
 
271
271
 
@@ -279,21 +279,21 @@ export type RepetitionRangeExactlyVariant = {
279
279
  '@type': 'struct'
280
280
  '@name': 'regex_syntax::hir::RepetitionRange'
281
281
  '@variant': 'Exactly'
282
- value: number
282
+ '@values': [number]
283
283
  }
284
284
 
285
285
  export type RepetitionRangeAtLeastVariant = {
286
286
  '@type': 'struct'
287
287
  '@name': 'regex_syntax::hir::RepetitionRange'
288
288
  '@variant': 'AtLeast'
289
- value: number
289
+ '@values': [number]
290
290
  }
291
291
 
292
292
  export type RepetitionRangeBoundedVariant = {
293
293
  '@type': 'struct'
294
294
  '@name': 'regex_syntax::hir::RepetitionRange'
295
295
  '@variant': 'Bounded'
296
- value: [number, number]
296
+ '@values': [number, number]
297
297
  }
298
298
 
299
299
 
@@ -549,6 +549,6 @@ export const metadata: {
549
549
  ],
550
550
  "homepage": "https://2fd.github.io/rregex",
551
551
  "repository": "https://github.com/2fd/rregex",
552
- "regex": "1.1.9",
552
+ "regex": "1.4.6",
553
553
  "regex-syntax": "0.6.25"
554
554
  }
package/lib/browser.js CHANGED
@@ -671,6 +671,6 @@ export const metadata = {
671
671
  ],
672
672
  "homepage": "https://2fd.github.io/rregex",
673
673
  "repository": "https://github.com/2fd/rregex",
674
- "regex": "1.1.9",
674
+ "regex": "1.4.6",
675
675
  "regex-syntax": "0.6.25"
676
676
  }
package/lib/commonjs.d.ts CHANGED
@@ -35,56 +35,56 @@ export type HirKindLiteralVariant = {
35
35
  '@type': 'struct'
36
36
  '@name': 'regex_syntax::hir::HirKind'
37
37
  '@variant': 'Literal'
38
- 'value': Literal
38
+ '@values': [Literal]
39
39
  }
40
40
 
41
41
  export type HirKindClassVariant = {
42
42
  '@type': 'struct'
43
43
  '@name': 'regex_syntax::hir::HirKind'
44
44
  '@variant': 'Class'
45
- 'value': Class
45
+ '@values': [Class]
46
46
  }
47
47
 
48
48
  export type HirKindAnchorVariant = {
49
49
  '@type': 'struct'
50
50
  '@name': 'regex_syntax::hir::HirKind'
51
51
  '@variant': 'Anchor'
52
- 'value': Anchor
52
+ '@values': [Anchor]
53
53
  }
54
54
 
55
55
  export type HirKindWordBoundaryVariant = {
56
56
  '@type': 'struct'
57
57
  '@name': 'regex_syntax::hir::HirKind'
58
58
  '@variant': 'WordBoundary'
59
- 'value': WordBoundary
59
+ '@values': [WordBoundary]
60
60
  }
61
61
 
62
62
  export type HirKindRepetitionVariant = {
63
63
  '@type': 'struct'
64
64
  '@name': 'regex_syntax::hir::HirKind'
65
65
  '@variant': 'Repetition'
66
- 'value': Repetition
66
+ '@values': [Repetition]
67
67
  }
68
68
 
69
69
  export type HirKindGroupVariant = {
70
70
  '@type': 'struct'
71
71
  '@name': 'regex_syntax::hir::HirKind'
72
72
  '@variant': 'Group'
73
- 'value': Group
73
+ '@values': [Group]
74
74
  }
75
75
 
76
76
  export type HirKindConcatVariant = {
77
77
  '@type': 'struct'
78
78
  '@name': 'regex_syntax::hir::HirKind'
79
79
  '@variant': 'Concat'
80
- 'value': Hir[]
80
+ '@values': [Hir[]]
81
81
  }
82
82
 
83
83
  export type HirKindAlternationVariant = {
84
84
  '@type': 'struct'
85
85
  '@name': 'regex_syntax::hir::HirKind'
86
86
  '@variant': 'Alternation'
87
- 'value': Hir[]
87
+ '@values': [Hir[]]
88
88
  }
89
89
 
90
90
 
@@ -97,14 +97,14 @@ export type LiteralUnicodeVariant = {
97
97
  '@type': 'struct'
98
98
  '@name': 'regex_syntax::hir::Literal'
99
99
  '@variant': 'Unicode'
100
- 'value': string
100
+ '@values': [string]
101
101
  }
102
102
 
103
103
  export type LiteralByteVariant = {
104
104
  '@type': 'struct'
105
105
  '@name': 'regex_syntax::hir::Literal'
106
106
  '@variant': 'Byte'
107
- 'value': number
107
+ '@values': [number]
108
108
  }
109
109
 
110
110
 
@@ -117,14 +117,14 @@ export type ClassUnicodeVariant = {
117
117
  '@type': 'struct'
118
118
  '@name': 'regex_syntax::hir::Class'
119
119
  '@variant': 'Unicode'
120
- 'value': ClassUnicode
120
+ '@values': [ClassUnicode]
121
121
  }
122
122
 
123
123
  export type ClassByteVariant = {
124
124
  '@type': 'struct'
125
125
  '@name': 'regex_syntax::hir::Class'
126
126
  '@variant': 'Bytes'
127
- 'value': ClassBytes
127
+ '@values': [ClassBytes]
128
128
  }
129
129
 
130
130
 
@@ -265,7 +265,7 @@ export type RepetitionKindRangeVariant = {
265
265
  '@type': 'struct'
266
266
  '@name': 'regex_syntax::hir::Repetition'
267
267
  '@variant': 'Range'
268
- value: RepetitionRange
268
+ '@values': [RepetitionRange]
269
269
  }
270
270
 
271
271
 
@@ -279,21 +279,21 @@ export type RepetitionRangeExactlyVariant = {
279
279
  '@type': 'struct'
280
280
  '@name': 'regex_syntax::hir::RepetitionRange'
281
281
  '@variant': 'Exactly'
282
- value: number
282
+ '@values': [number]
283
283
  }
284
284
 
285
285
  export type RepetitionRangeAtLeastVariant = {
286
286
  '@type': 'struct'
287
287
  '@name': 'regex_syntax::hir::RepetitionRange'
288
288
  '@variant': 'AtLeast'
289
- value: number
289
+ '@values': [number]
290
290
  }
291
291
 
292
292
  export type RepetitionRangeBoundedVariant = {
293
293
  '@type': 'struct'
294
294
  '@name': 'regex_syntax::hir::RepetitionRange'
295
295
  '@variant': 'Bounded'
296
- value: [number, number]
296
+ '@values': [number, number]
297
297
  }
298
298
 
299
299
 
@@ -507,6 +507,6 @@ export const metadata: {
507
507
  ],
508
508
  "homepage": "https://2fd.github.io/rregex",
509
509
  "repository": "https://github.com/2fd/rregex",
510
- "regex": "1.1.9",
510
+ "regex": "1.4.6",
511
511
  "regex-syntax": "0.6.25"
512
512
  }
package/lib/commonjs.js CHANGED
@@ -644,6 +644,6 @@ module.exports.metadata = {
644
644
  ],
645
645
  "homepage": "https://2fd.github.io/rregex",
646
646
  "repository": "https://github.com/2fd/rregex",
647
- "regex": "1.1.9",
647
+ "regex": "1.4.6",
648
648
  "regex-syntax": "0.6.25"
649
649
  }
package/lib/module.d.ts CHANGED
@@ -35,56 +35,56 @@ export type HirKindLiteralVariant = {
35
35
  '@type': 'struct'
36
36
  '@name': 'regex_syntax::hir::HirKind'
37
37
  '@variant': 'Literal'
38
- 'value': Literal
38
+ '@values': [Literal]
39
39
  }
40
40
 
41
41
  export type HirKindClassVariant = {
42
42
  '@type': 'struct'
43
43
  '@name': 'regex_syntax::hir::HirKind'
44
44
  '@variant': 'Class'
45
- 'value': Class
45
+ '@values': [Class]
46
46
  }
47
47
 
48
48
  export type HirKindAnchorVariant = {
49
49
  '@type': 'struct'
50
50
  '@name': 'regex_syntax::hir::HirKind'
51
51
  '@variant': 'Anchor'
52
- 'value': Anchor
52
+ '@values': [Anchor]
53
53
  }
54
54
 
55
55
  export type HirKindWordBoundaryVariant = {
56
56
  '@type': 'struct'
57
57
  '@name': 'regex_syntax::hir::HirKind'
58
58
  '@variant': 'WordBoundary'
59
- 'value': WordBoundary
59
+ '@values': [WordBoundary]
60
60
  }
61
61
 
62
62
  export type HirKindRepetitionVariant = {
63
63
  '@type': 'struct'
64
64
  '@name': 'regex_syntax::hir::HirKind'
65
65
  '@variant': 'Repetition'
66
- 'value': Repetition
66
+ '@values': [Repetition]
67
67
  }
68
68
 
69
69
  export type HirKindGroupVariant = {
70
70
  '@type': 'struct'
71
71
  '@name': 'regex_syntax::hir::HirKind'
72
72
  '@variant': 'Group'
73
- 'value': Group
73
+ '@values': [Group]
74
74
  }
75
75
 
76
76
  export type HirKindConcatVariant = {
77
77
  '@type': 'struct'
78
78
  '@name': 'regex_syntax::hir::HirKind'
79
79
  '@variant': 'Concat'
80
- 'value': Hir[]
80
+ '@values': [Hir[]]
81
81
  }
82
82
 
83
83
  export type HirKindAlternationVariant = {
84
84
  '@type': 'struct'
85
85
  '@name': 'regex_syntax::hir::HirKind'
86
86
  '@variant': 'Alternation'
87
- 'value': Hir[]
87
+ '@values': [Hir[]]
88
88
  }
89
89
 
90
90
 
@@ -97,14 +97,14 @@ export type LiteralUnicodeVariant = {
97
97
  '@type': 'struct'
98
98
  '@name': 'regex_syntax::hir::Literal'
99
99
  '@variant': 'Unicode'
100
- 'value': string
100
+ '@values': [string]
101
101
  }
102
102
 
103
103
  export type LiteralByteVariant = {
104
104
  '@type': 'struct'
105
105
  '@name': 'regex_syntax::hir::Literal'
106
106
  '@variant': 'Byte'
107
- 'value': number
107
+ '@values': [number]
108
108
  }
109
109
 
110
110
 
@@ -117,14 +117,14 @@ export type ClassUnicodeVariant = {
117
117
  '@type': 'struct'
118
118
  '@name': 'regex_syntax::hir::Class'
119
119
  '@variant': 'Unicode'
120
- 'value': ClassUnicode
120
+ '@values': [ClassUnicode]
121
121
  }
122
122
 
123
123
  export type ClassByteVariant = {
124
124
  '@type': 'struct'
125
125
  '@name': 'regex_syntax::hir::Class'
126
126
  '@variant': 'Bytes'
127
- 'value': ClassBytes
127
+ '@values': [ClassBytes]
128
128
  }
129
129
 
130
130
 
@@ -265,7 +265,7 @@ export type RepetitionKindRangeVariant = {
265
265
  '@type': 'struct'
266
266
  '@name': 'regex_syntax::hir::Repetition'
267
267
  '@variant': 'Range'
268
- value: RepetitionRange
268
+ '@values': [RepetitionRange]
269
269
  }
270
270
 
271
271
 
@@ -279,21 +279,21 @@ export type RepetitionRangeExactlyVariant = {
279
279
  '@type': 'struct'
280
280
  '@name': 'regex_syntax::hir::RepetitionRange'
281
281
  '@variant': 'Exactly'
282
- value: number
282
+ '@values': [number]
283
283
  }
284
284
 
285
285
  export type RepetitionRangeAtLeastVariant = {
286
286
  '@type': 'struct'
287
287
  '@name': 'regex_syntax::hir::RepetitionRange'
288
288
  '@variant': 'AtLeast'
289
- value: number
289
+ '@values': [number]
290
290
  }
291
291
 
292
292
  export type RepetitionRangeBoundedVariant = {
293
293
  '@type': 'struct'
294
294
  '@name': 'regex_syntax::hir::RepetitionRange'
295
295
  '@variant': 'Bounded'
296
- value: [number, number]
296
+ '@values': [number, number]
297
297
  }
298
298
 
299
299
 
@@ -507,6 +507,6 @@ export const metadata: {
507
507
  ],
508
508
  "homepage": "https://2fd.github.io/rregex",
509
509
  "repository": "https://github.com/2fd/rregex",
510
- "regex": "1.1.9",
510
+ "regex": "1.4.6",
511
511
  "regex-syntax": "0.6.25"
512
512
  }
package/lib/rregex.wasm CHANGED
Binary file
package/lib/types.d.ts CHANGED
@@ -35,56 +35,56 @@ export type HirKindLiteralVariant = {
35
35
  '@type': 'struct'
36
36
  '@name': 'regex_syntax::hir::HirKind'
37
37
  '@variant': 'Literal'
38
- 'value': Literal
38
+ '@values': [Literal]
39
39
  }
40
40
 
41
41
  export type HirKindClassVariant = {
42
42
  '@type': 'struct'
43
43
  '@name': 'regex_syntax::hir::HirKind'
44
44
  '@variant': 'Class'
45
- 'value': Class
45
+ '@values': [Class]
46
46
  }
47
47
 
48
48
  export type HirKindAnchorVariant = {
49
49
  '@type': 'struct'
50
50
  '@name': 'regex_syntax::hir::HirKind'
51
51
  '@variant': 'Anchor'
52
- 'value': Anchor
52
+ '@values': [Anchor]
53
53
  }
54
54
 
55
55
  export type HirKindWordBoundaryVariant = {
56
56
  '@type': 'struct'
57
57
  '@name': 'regex_syntax::hir::HirKind'
58
58
  '@variant': 'WordBoundary'
59
- 'value': WordBoundary
59
+ '@values': [WordBoundary]
60
60
  }
61
61
 
62
62
  export type HirKindRepetitionVariant = {
63
63
  '@type': 'struct'
64
64
  '@name': 'regex_syntax::hir::HirKind'
65
65
  '@variant': 'Repetition'
66
- 'value': Repetition
66
+ '@values': [Repetition]
67
67
  }
68
68
 
69
69
  export type HirKindGroupVariant = {
70
70
  '@type': 'struct'
71
71
  '@name': 'regex_syntax::hir::HirKind'
72
72
  '@variant': 'Group'
73
- 'value': Group
73
+ '@values': [Group]
74
74
  }
75
75
 
76
76
  export type HirKindConcatVariant = {
77
77
  '@type': 'struct'
78
78
  '@name': 'regex_syntax::hir::HirKind'
79
79
  '@variant': 'Concat'
80
- 'value': Hir[]
80
+ '@values': [Hir[]]
81
81
  }
82
82
 
83
83
  export type HirKindAlternationVariant = {
84
84
  '@type': 'struct'
85
85
  '@name': 'regex_syntax::hir::HirKind'
86
86
  '@variant': 'Alternation'
87
- 'value': Hir[]
87
+ '@values': [Hir[]]
88
88
  }
89
89
 
90
90
 
@@ -97,14 +97,14 @@ export type LiteralUnicodeVariant = {
97
97
  '@type': 'struct'
98
98
  '@name': 'regex_syntax::hir::Literal'
99
99
  '@variant': 'Unicode'
100
- 'value': string
100
+ '@values': [string]
101
101
  }
102
102
 
103
103
  export type LiteralByteVariant = {
104
104
  '@type': 'struct'
105
105
  '@name': 'regex_syntax::hir::Literal'
106
106
  '@variant': 'Byte'
107
- 'value': number
107
+ '@values': [number]
108
108
  }
109
109
 
110
110
 
@@ -117,14 +117,14 @@ export type ClassUnicodeVariant = {
117
117
  '@type': 'struct'
118
118
  '@name': 'regex_syntax::hir::Class'
119
119
  '@variant': 'Unicode'
120
- 'value': ClassUnicode
120
+ '@values': [ClassUnicode]
121
121
  }
122
122
 
123
123
  export type ClassByteVariant = {
124
124
  '@type': 'struct'
125
125
  '@name': 'regex_syntax::hir::Class'
126
126
  '@variant': 'Bytes'
127
- 'value': ClassBytes
127
+ '@values': [ClassBytes]
128
128
  }
129
129
 
130
130
 
@@ -265,7 +265,7 @@ export type RepetitionKindRangeVariant = {
265
265
  '@type': 'struct'
266
266
  '@name': 'regex_syntax::hir::Repetition'
267
267
  '@variant': 'Range'
268
- value: RepetitionRange
268
+ '@values': [RepetitionRange]
269
269
  }
270
270
 
271
271
 
@@ -279,21 +279,21 @@ export type RepetitionRangeExactlyVariant = {
279
279
  '@type': 'struct'
280
280
  '@name': 'regex_syntax::hir::RepetitionRange'
281
281
  '@variant': 'Exactly'
282
- value: number
282
+ '@values': [number]
283
283
  }
284
284
 
285
285
  export type RepetitionRangeAtLeastVariant = {
286
286
  '@type': 'struct'
287
287
  '@name': 'regex_syntax::hir::RepetitionRange'
288
288
  '@variant': 'AtLeast'
289
- value: number
289
+ '@values': [number]
290
290
  }
291
291
 
292
292
  export type RepetitionRangeBoundedVariant = {
293
293
  '@type': 'struct'
294
294
  '@name': 'regex_syntax::hir::RepetitionRange'
295
295
  '@variant': 'Bounded'
296
- value: [number, number]
296
+ '@values': [number, number]
297
297
  }
298
298
 
299
299
 
@@ -549,6 +549,6 @@ export const metadata: {
549
549
  ],
550
550
  "homepage": "https://2fd.github.io/rregex",
551
551
  "repository": "https://github.com/2fd/rregex",
552
- "regex": "1.1.9",
552
+ "regex": "1.4.6",
553
553
  "regex-syntax": "0.6.25"
554
554
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rregex",
3
- "version": "1.1.3",
3
+ "version": "1.4.0",
4
4
  "description": "Rust Regex binding for Javascript",
5
5
  "private": false,
6
6
  "main": "./lib/commonjs.js",
@@ -40,6 +40,21 @@
40
40
  "range": "1.1.x",
41
41
  "channel": "1.1.x"
42
42
  },
43
+ {
44
+ "name": "1.2.x",
45
+ "range": "1.2.x",
46
+ "channel": "1.2.x"
47
+ },
48
+ {
49
+ "name": "1.3.x",
50
+ "range": "1.3.x",
51
+ "channel": "1.3.x"
52
+ },
53
+ {
54
+ "name": "1.4.x",
55
+ "range": "1.4.x",
56
+ "channel": "1.4.x"
57
+ },
43
58
  {
44
59
  "name": "master"
45
60
  }