rregex 1.10.3 → 1.10.5
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 +33 -1
- package/jsr.json +14 -0
- package/lib/{module.d.ts → bundler.d.ts} +0 -12
- package/lib/bundler.mjs +16 -0
- package/lib/{module.js → bundler_bg.mjs} +32 -23
- package/lib/{commonjs.js → commonjs.cjs} +32 -35
- package/lib/commonjs.d.ts +0 -12
- package/lib/{browser.d.ts → esm.d.ts} +0 -69
- package/lib/esm.mjs +1210 -0
- package/lib/rregex.wasm +0 -0
- package/lib/standalone.d.ts +1300 -0
- package/lib/standalone.js +1283 -0
- package/lib/types.d.ts +2 -2
- package/lib/{browser.js → web.js} +33 -24
- package/package.json +46 -20
package/lib/types.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
96
96
|
const ret = encodeString(arg, view);
|
|
97
97
|
|
|
98
98
|
offset += ret.written;
|
|
99
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
WASM_VECTOR_LEN = offset;
|
|
@@ -176,6 +177,10 @@ function handleError(f, args) {
|
|
|
176
177
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
177
178
|
}
|
|
178
179
|
}
|
|
180
|
+
|
|
181
|
+
const RRegexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
182
|
+
? { register: () => {}, unregister: () => {} }
|
|
183
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rregex_free(ptr >>> 0));
|
|
179
184
|
/**
|
|
180
185
|
* A compiled regular expression for matching Unicode strings.
|
|
181
186
|
*
|
|
@@ -222,7 +227,7 @@ export class RRegex {
|
|
|
222
227
|
__destroy_into_raw() {
|
|
223
228
|
const ptr = this.__wbg_ptr;
|
|
224
229
|
this.__wbg_ptr = 0;
|
|
225
|
-
|
|
230
|
+
RRegexFinalization.unregister(this);
|
|
226
231
|
return ptr;
|
|
227
232
|
}
|
|
228
233
|
|
|
@@ -932,6 +937,10 @@ export class RRegex {
|
|
|
932
937
|
}
|
|
933
938
|
}
|
|
934
939
|
}
|
|
940
|
+
|
|
941
|
+
const RRegexSetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
942
|
+
? { register: () => {}, unregister: () => {} }
|
|
943
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rregexset_free(ptr >>> 0));
|
|
935
944
|
/**
|
|
936
945
|
* Match multiple (possibly overlapping) regular expressions in a single scan.
|
|
937
946
|
* A regex set corresponds to the union of two or more regular expressions.
|
|
@@ -949,7 +958,7 @@ export class RRegexSet {
|
|
|
949
958
|
__destroy_into_raw() {
|
|
950
959
|
const ptr = this.__wbg_ptr;
|
|
951
960
|
this.__wbg_ptr = 0;
|
|
952
|
-
|
|
961
|
+
RRegexSetFinalization.unregister(this);
|
|
953
962
|
return ptr;
|
|
954
963
|
}
|
|
955
964
|
|
|
@@ -1122,13 +1131,13 @@ function __wbg_get_imports() {
|
|
|
1122
1131
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1123
1132
|
return addHeapObject(ret);
|
|
1124
1133
|
};
|
|
1125
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
1126
|
-
takeObject(arg0);
|
|
1127
|
-
};
|
|
1128
1134
|
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
1129
1135
|
const ret = arg0;
|
|
1130
1136
|
return addHeapObject(ret);
|
|
1131
1137
|
};
|
|
1138
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
1139
|
+
takeObject(arg0);
|
|
1140
|
+
};
|
|
1132
1141
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
1133
1142
|
const obj = getObject(arg1);
|
|
1134
1143
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -1141,61 +1150,61 @@ function __wbg_get_imports() {
|
|
|
1141
1150
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1142
1151
|
return addHeapObject(ret);
|
|
1143
1152
|
};
|
|
1144
|
-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
1145
|
-
const ret = getObject(arg0);
|
|
1146
|
-
return addHeapObject(ret);
|
|
1147
|
-
};
|
|
1148
1153
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1149
1154
|
const ret = BigInt.asUintN(64, arg0);
|
|
1150
1155
|
return addHeapObject(ret);
|
|
1151
1156
|
};
|
|
1152
|
-
imports.wbg.
|
|
1157
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
1158
|
+
const ret = getObject(arg0);
|
|
1159
|
+
return addHeapObject(ret);
|
|
1160
|
+
};
|
|
1161
|
+
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
1153
1162
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
1154
1163
|
};
|
|
1155
|
-
imports.wbg.
|
|
1164
|
+
imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
|
|
1156
1165
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1157
1166
|
return addHeapObject(ret);
|
|
1158
1167
|
};
|
|
1159
|
-
imports.wbg.
|
|
1168
|
+
imports.wbg.__wbg_length_cd7af8117672b8b8 = function(arg0) {
|
|
1160
1169
|
const ret = getObject(arg0).length;
|
|
1161
1170
|
return ret;
|
|
1162
1171
|
};
|
|
1163
|
-
imports.wbg.
|
|
1172
|
+
imports.wbg.__wbg_new_16b304a2cfa7ff4a = function() {
|
|
1164
1173
|
const ret = new Array();
|
|
1165
1174
|
return addHeapObject(ret);
|
|
1166
1175
|
};
|
|
1167
|
-
imports.wbg.
|
|
1176
|
+
imports.wbg.__wbg_new_72fb9a18b5ae2624 = function() {
|
|
1168
1177
|
const ret = new Object();
|
|
1169
1178
|
return addHeapObject(ret);
|
|
1170
1179
|
};
|
|
1171
|
-
imports.wbg.
|
|
1180
|
+
imports.wbg.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) {
|
|
1172
1181
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1173
1182
|
};
|
|
1174
|
-
imports.wbg.
|
|
1183
|
+
imports.wbg.__wbg_from_89e3fc3ba5e6fb48 = function(arg0) {
|
|
1175
1184
|
const ret = Array.from(getObject(arg0));
|
|
1176
1185
|
return addHeapObject(ret);
|
|
1177
1186
|
};
|
|
1178
|
-
imports.wbg.
|
|
1187
|
+
imports.wbg.__wbg_push_a5b05aedc7234f9f = function(arg0, arg1) {
|
|
1179
1188
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
1180
1189
|
return ret;
|
|
1181
1190
|
};
|
|
1182
|
-
imports.wbg.
|
|
1191
|
+
imports.wbg.__wbg_fromCodePoint_cedd7612a2ff688f = function() { return handleError(function (arg0) {
|
|
1183
1192
|
const ret = String.fromCodePoint(arg0 >>> 0);
|
|
1184
1193
|
return addHeapObject(ret);
|
|
1185
1194
|
}, arguments) };
|
|
1186
|
-
imports.wbg.
|
|
1195
|
+
imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
|
|
1187
1196
|
const ret = getObject(arg0).buffer;
|
|
1188
1197
|
return addHeapObject(ret);
|
|
1189
1198
|
};
|
|
1190
|
-
imports.wbg.
|
|
1199
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb = function(arg0, arg1, arg2) {
|
|
1191
1200
|
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1192
1201
|
return addHeapObject(ret);
|
|
1193
1202
|
};
|
|
1194
|
-
imports.wbg.
|
|
1203
|
+
imports.wbg.__wbg_new_63b92bc8671ed464 = function(arg0) {
|
|
1195
1204
|
const ret = new Uint8Array(getObject(arg0));
|
|
1196
1205
|
return addHeapObject(ret);
|
|
1197
1206
|
};
|
|
1198
|
-
imports.wbg.
|
|
1207
|
+
imports.wbg.__wbg_set_1f9b04f170055d33 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1199
1208
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
1200
1209
|
return ret;
|
|
1201
1210
|
}, arguments) };
|
|
@@ -1271,6 +1280,6 @@ export const metadata = {
|
|
|
1271
1280
|
],
|
|
1272
1281
|
"homepage": "http://rregex.dev",
|
|
1273
1282
|
"repository": "https://github.com/2fd/rregex",
|
|
1274
|
-
"regex": "1.10.
|
|
1275
|
-
"regex-syntax": "0.8.
|
|
1283
|
+
"regex": "1.10.4",
|
|
1284
|
+
"regex-syntax": "0.8.3"
|
|
1276
1285
|
}
|
package/package.json
CHANGED
|
@@ -1,37 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rregex",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.5",
|
|
4
4
|
"description": "Rust Regex binding for Javascript",
|
|
5
5
|
"private": false,
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"module": "./lib/
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./lib/commonjs.cjs",
|
|
8
|
+
"module": "./lib/esm.mjs",
|
|
9
|
+
"browser": "./lib/web.js",
|
|
9
10
|
"types": "./lib/types.d.ts",
|
|
10
11
|
"devDependencies": {
|
|
11
|
-
"@
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"@types/node": "^16.11.11",
|
|
16
|
-
"babel-jest": "^27.4.2",
|
|
17
|
-
"esbuild-jest": "^0.5.0",
|
|
18
|
-
"jest": "^29.7.0",
|
|
19
|
-
"semantic-release": "^18.0.1",
|
|
20
|
-
"toml": "^3.0.0",
|
|
21
|
-
"typescript": "^4.5.2"
|
|
12
|
+
"@semantic-release/exec": "^6.0.3",
|
|
13
|
+
"concurrently": "^8.2.2",
|
|
14
|
+
"semantic-release": "^23.0.6",
|
|
15
|
+
"toml": "^3.0.0"
|
|
22
16
|
},
|
|
23
17
|
"scripts": {
|
|
24
18
|
"setup": "./bin/install.sh",
|
|
25
19
|
"build": "./bin/build.sh",
|
|
26
|
-
"test": "wasm-pack test
|
|
20
|
+
"test": "wasm-pack test --node && jest --passWithNoTests",
|
|
27
21
|
"test:rs": "wasm-pack test",
|
|
28
|
-
"test:ts": "jest",
|
|
29
22
|
"semantic-release": "semantic-release"
|
|
30
23
|
},
|
|
31
24
|
"jest": {
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
}
|
|
25
|
+
"testEnvironment": "node",
|
|
26
|
+
"testRegex": "node\\.test\\.[cm]js$"
|
|
35
27
|
},
|
|
36
28
|
"release": {
|
|
37
29
|
"ci": false,
|
|
@@ -89,6 +81,40 @@
|
|
|
89
81
|
{
|
|
90
82
|
"name": "master"
|
|
91
83
|
}
|
|
84
|
+
],
|
|
85
|
+
"plugins": [
|
|
86
|
+
"@semantic-release/commit-analyzer",
|
|
87
|
+
"@semantic-release/release-notes-generator",
|
|
88
|
+
"@semantic-release/npm",
|
|
89
|
+
[
|
|
90
|
+
"@semantic-release/github",
|
|
91
|
+
{
|
|
92
|
+
"assets": [
|
|
93
|
+
{
|
|
94
|
+
"path": "lib/standalone.js",
|
|
95
|
+
"label": "js"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"path": "lib/esm.mjs",
|
|
99
|
+
"label": "esm"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"path": "lib/esm.d.ts",
|
|
103
|
+
"label": "typescript"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"path": "lib/rregex.wasm",
|
|
107
|
+
"label": "wasm"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
[
|
|
113
|
+
"@semantic-release/exec",
|
|
114
|
+
{
|
|
115
|
+
"publishCmd": "node bin/jsr.mjs ${nextRelease.version} && npx jsr publish"
|
|
116
|
+
}
|
|
117
|
+
]
|
|
92
118
|
]
|
|
93
119
|
},
|
|
94
120
|
"repository": {
|