re2 1.17.7 → 1.17.8
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/.github/actions/linux-alpine-node-19/Dockerfile +6 -0
- package/.github/actions/linux-alpine-node-19/action.yml +7 -0
- package/.github/actions/linux-alpine-node-19/entrypoint.sh +9 -0
- package/.github/actions/linux-node-12/Dockerfile +3 -3
- package/.github/actions/linux-node-12/entrypoint.sh +1 -1
- package/.github/actions/linux-node-19/Dockerfile +6 -0
- package/.github/actions/linux-node-19/action.yml +12 -0
- package/.github/actions/linux-node-19/entrypoint.sh +9 -0
- package/.github/workflows/build.yml +31 -73
- package/.github/workflows/tests.yml +1 -12
- package/README.md +1 -0
- package/binding.gyp +3 -3
- package/package.json +4 -3
- package/re2.d.ts +6 -0
- package/re2.js +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
FROM centos:centos7
|
|
2
2
|
|
|
3
3
|
RUN yum install -y centos-release-scl && \
|
|
4
|
-
INSTALL_PKGS="devtoolset-
|
|
4
|
+
INSTALL_PKGS="devtoolset-8 python3 make" && \
|
|
5
5
|
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
|
|
6
6
|
rpm -V $INSTALL_PKGS && \
|
|
7
7
|
yum -y clean all --enablerepo='*'
|
|
8
8
|
# && \
|
|
9
|
-
# source scl_source enable devtoolset-
|
|
9
|
+
# source scl_source enable devtoolset-8 && \
|
|
10
10
|
# source scl_source enable python3
|
|
11
11
|
|
|
12
|
-
ENV PATH=/opt/rh/devtoolset-
|
|
12
|
+
ENV PATH=/opt/rh/devtoolset-8/root/usr/bin:$PATH
|
|
13
13
|
|
|
14
14
|
COPY entrypoint.sh /entrypoint.sh
|
|
15
15
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
NVM_DIR=$HOME/.nvm
|
|
4
4
|
|
|
5
|
-
curl -sS -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.
|
|
5
|
+
curl -sS -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
|
|
6
6
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
|
7
7
|
|
|
8
8
|
nvm install --no-progress $1
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
name: 'Create a binary artifact for Node == 19 on Linux'
|
|
2
|
+
description: 'Create a binary artifact for Node == 19 on Linux using node:19-buster'
|
|
3
|
+
inputs:
|
|
4
|
+
node-version:
|
|
5
|
+
description: 'Node.js version'
|
|
6
|
+
required: false
|
|
7
|
+
default: '19'
|
|
8
|
+
runs:
|
|
9
|
+
using: 'docker'
|
|
10
|
+
image: 'Dockerfile'
|
|
11
|
+
args:
|
|
12
|
+
- ${{inputs.node-version}}
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
strategy:
|
|
32
32
|
matrix:
|
|
33
33
|
os: [macOS-latest, windows-latest]
|
|
34
|
-
node-version: [14, 16, 18]
|
|
34
|
+
node-version: [14, 16, 18, 19]
|
|
35
35
|
exclude:
|
|
36
36
|
- os: windows-latest
|
|
37
37
|
node-version: 14
|
|
@@ -44,18 +44,6 @@ jobs:
|
|
|
44
44
|
uses: actions/setup-node@v3
|
|
45
45
|
with:
|
|
46
46
|
node-version: ${{matrix.node-version}}
|
|
47
|
-
- name: Get NPM cache directory
|
|
48
|
-
id: npm-cache
|
|
49
|
-
run: |
|
|
50
|
-
echo "::set-output name=dir::$(npm config get cache)"
|
|
51
|
-
- name: Cache node modules
|
|
52
|
-
uses: actions/cache@v3
|
|
53
|
-
with:
|
|
54
|
-
path: ${{steps.npm-cache.outputs.dir}}
|
|
55
|
-
key: ${{runner.os}}-node-${{hashFiles('**/package-lock.json')}}
|
|
56
|
-
restore-keys: |
|
|
57
|
-
${{runner.os}}-node-
|
|
58
|
-
${{runner.os}}-
|
|
59
47
|
- name: Install the package and run tests
|
|
60
48
|
env:
|
|
61
49
|
DEVELOPMENT_SKIP_GETTING_ASSET: true
|
|
@@ -82,18 +70,6 @@ jobs:
|
|
|
82
70
|
- uses: actions/checkout@v3
|
|
83
71
|
with:
|
|
84
72
|
submodules: true
|
|
85
|
-
- name: Get NPM cache directory
|
|
86
|
-
id: npm-cache
|
|
87
|
-
run: |
|
|
88
|
-
echo "::set-output name=dir::$(npm config get cache)"
|
|
89
|
-
- name: Cache node modules
|
|
90
|
-
uses: actions/cache@v3
|
|
91
|
-
with:
|
|
92
|
-
path: ${{steps.npm-cache.outputs.dir}}
|
|
93
|
-
key: Linux-node-${{hashFiles('**/package-lock.json')}}
|
|
94
|
-
restore-keys: |
|
|
95
|
-
Linux-node-
|
|
96
|
-
Linux-
|
|
97
73
|
- name: Install, test, and create artifact
|
|
98
74
|
uses: ./.github/actions/linux-node-12/
|
|
99
75
|
env:
|
|
@@ -111,23 +87,26 @@ jobs:
|
|
|
111
87
|
- uses: actions/checkout@v3
|
|
112
88
|
with:
|
|
113
89
|
submodules: true
|
|
114
|
-
- name: Get NPM cache directory
|
|
115
|
-
id: npm-cache
|
|
116
|
-
run: |
|
|
117
|
-
echo "::set-output name=dir::$(npm config get cache)"
|
|
118
|
-
- name: Cache node modules
|
|
119
|
-
uses: actions/cache@v3
|
|
120
|
-
with:
|
|
121
|
-
path: ${{steps.npm-cache.outputs.dir}}
|
|
122
|
-
key: Linux-node-${{hashFiles('**/package-lock.json')}}
|
|
123
|
-
restore-keys: |
|
|
124
|
-
Linux-node-
|
|
125
|
-
Linux-
|
|
126
90
|
- name: Install, test, and create artifact
|
|
127
91
|
uses: ./.github/actions/linux-node-18/
|
|
128
92
|
env:
|
|
129
93
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
130
94
|
|
|
95
|
+
build-linux-node-19:
|
|
96
|
+
name: Node.js 19 on Debian Buster
|
|
97
|
+
needs: create-release
|
|
98
|
+
runs-on: ubuntu-latest
|
|
99
|
+
continue-on-error: true
|
|
100
|
+
|
|
101
|
+
steps:
|
|
102
|
+
- uses: actions/checkout@v3
|
|
103
|
+
with:
|
|
104
|
+
submodules: true
|
|
105
|
+
- name: Install, test, and create artifact
|
|
106
|
+
uses: ./.github/actions/linux-node-19/
|
|
107
|
+
env:
|
|
108
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
109
|
+
|
|
131
110
|
build-linux-alpine-node-14:
|
|
132
111
|
name: Node.js 14 on Alpine Linux
|
|
133
112
|
needs: create-release
|
|
@@ -138,18 +117,6 @@ jobs:
|
|
|
138
117
|
- uses: actions/checkout@v3
|
|
139
118
|
with:
|
|
140
119
|
submodules: true
|
|
141
|
-
- name: Get NPM cache directory
|
|
142
|
-
id: npm-cache
|
|
143
|
-
run: |
|
|
144
|
-
echo "::set-output name=dir::$(npm config get cache)"
|
|
145
|
-
- name: Cache node modules
|
|
146
|
-
uses: actions/cache@v3
|
|
147
|
-
with:
|
|
148
|
-
path: ${{steps.npm-cache.outputs.dir}}
|
|
149
|
-
key: Linux-Alpine-node-${{hashFiles('**/package-lock.json')}}
|
|
150
|
-
restore-keys: |
|
|
151
|
-
Linux-Alpine-node-
|
|
152
|
-
Linux-Alpine-
|
|
153
120
|
- name: Install, test, and create artifact
|
|
154
121
|
uses: ./.github/actions/linux-alpine-node-14/
|
|
155
122
|
env:
|
|
@@ -165,18 +132,6 @@ jobs:
|
|
|
165
132
|
- uses: actions/checkout@v3
|
|
166
133
|
with:
|
|
167
134
|
submodules: true
|
|
168
|
-
- name: Get NPM cache directory
|
|
169
|
-
id: npm-cache
|
|
170
|
-
run: |
|
|
171
|
-
echo "::set-output name=dir::$(npm config get cache)"
|
|
172
|
-
- name: Cache node modules
|
|
173
|
-
uses: actions/cache@v3
|
|
174
|
-
with:
|
|
175
|
-
path: ${{steps.npm-cache.outputs.dir}}
|
|
176
|
-
key: Linux-Alpine-node-${{hashFiles('**/package-lock.json')}}
|
|
177
|
-
restore-keys: |
|
|
178
|
-
Linux-Alpine-node-
|
|
179
|
-
Linux-Alpine-
|
|
180
135
|
- name: Install, test, and create artifact
|
|
181
136
|
uses: ./.github/actions/linux-alpine-node-16/
|
|
182
137
|
env:
|
|
@@ -192,19 +147,22 @@ jobs:
|
|
|
192
147
|
- uses: actions/checkout@v3
|
|
193
148
|
with:
|
|
194
149
|
submodules: true
|
|
195
|
-
- name: Get NPM cache directory
|
|
196
|
-
id: npm-cache
|
|
197
|
-
run: |
|
|
198
|
-
echo "::set-output name=dir::$(npm config get cache)"
|
|
199
|
-
- name: Cache node modules
|
|
200
|
-
uses: actions/cache@v3
|
|
201
|
-
with:
|
|
202
|
-
path: ${{steps.npm-cache.outputs.dir}}
|
|
203
|
-
key: Linux-Alpine-node-${{hashFiles('**/package-lock.json')}}
|
|
204
|
-
restore-keys: |
|
|
205
|
-
Linux-Alpine-node-
|
|
206
|
-
Linux-Alpine-
|
|
207
150
|
- name: Install, test, and create artifact
|
|
208
151
|
uses: ./.github/actions/linux-alpine-node-18/
|
|
209
152
|
env:
|
|
210
153
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
154
|
+
|
|
155
|
+
build-linux-alpine-node-19:
|
|
156
|
+
name: Node.js 19 on Alpine Linux
|
|
157
|
+
needs: create-release
|
|
158
|
+
runs-on: ubuntu-latest
|
|
159
|
+
continue-on-error: true
|
|
160
|
+
|
|
161
|
+
steps:
|
|
162
|
+
- uses: actions/checkout@v3
|
|
163
|
+
with:
|
|
164
|
+
submodules: true
|
|
165
|
+
- name: Install, test, and create artifact
|
|
166
|
+
uses: ./.github/actions/linux-alpine-node-19/
|
|
167
|
+
env:
|
|
168
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
@@ -14,7 +14,7 @@ jobs:
|
|
|
14
14
|
strategy:
|
|
15
15
|
matrix:
|
|
16
16
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
17
|
-
node-version: [14, 16, 18]
|
|
17
|
+
node-version: [14, 16, 18, 19]
|
|
18
18
|
exclude:
|
|
19
19
|
- os: windows-latest
|
|
20
20
|
node-version: 14
|
|
@@ -27,17 +27,6 @@ jobs:
|
|
|
27
27
|
uses: actions/setup-node@v3
|
|
28
28
|
with:
|
|
29
29
|
node-version: ${{matrix.node-version}}
|
|
30
|
-
- name: Get NPM cache directory
|
|
31
|
-
id: npm-cache
|
|
32
|
-
run: echo "::set-output name=dir::$(npm config get cache)"
|
|
33
|
-
- name: Cache node modules
|
|
34
|
-
uses: actions/cache@v3
|
|
35
|
-
with:
|
|
36
|
-
path: ${{steps.npm-cache.outputs.dir}}
|
|
37
|
-
key: ${{runner.os}}-node-${{hashFiles('**/package-lock.json')}}
|
|
38
|
-
restore-keys: |
|
|
39
|
-
${{runner.os}}-node-
|
|
40
|
-
${{runner.os}}-
|
|
41
30
|
- name: Install the package and run tests
|
|
42
31
|
env:
|
|
43
32
|
DEVELOPMENT_SKIP_GETTING_ASSET: true
|
package/README.md
CHANGED
|
@@ -352,6 +352,7 @@ console.log('re2_res : ' + re2_res); // prints: re2_res : abc,a,b,c
|
|
|
352
352
|
|
|
353
353
|
## Release history
|
|
354
354
|
|
|
355
|
+
- 1.17.8 *Updated deps, added Node 19 as a pre-compilation target.*
|
|
355
356
|
- 1.17.7 *Added support for a cross-platform fetching of a pre-compiled version by updating [install-artifact-from-github](https://github.com/uhop/install-artifact-from-github).*
|
|
356
357
|
- 1.17.6 *Implemented `dotAll`. Thx [Michael Kriese](https://github.com/viceice).*
|
|
357
358
|
- 1.17.5 *Updated deps, updated test/build targets, implemented `matchAll()` (thx, [ThePendulum](https://github.com/ThePendulum) and [David Sichau](https://github.com/DavidSichau)).*
|
package/binding.gyp
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"vendor/util/strutil.cc"
|
|
40
40
|
],
|
|
41
41
|
"cflags": [
|
|
42
|
-
"-std=c++
|
|
42
|
+
"-std=c++2a",
|
|
43
43
|
"-Wall",
|
|
44
44
|
"-Wextra",
|
|
45
45
|
"-Wno-sign-compare",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
],
|
|
60
60
|
"xcode_settings": {
|
|
61
61
|
"MACOSX_DEPLOYMENT_TARGET": "10.7",
|
|
62
|
-
"CLANG_CXX_LANGUAGE_STANDARD": "c++
|
|
62
|
+
"CLANG_CXX_LANGUAGE_STANDARD": "c++2a",
|
|
63
63
|
"CLANG_CXX_LIBRARY": "libc++",
|
|
64
64
|
"OTHER_CFLAGS": [
|
|
65
|
-
"-std=c++
|
|
65
|
+
"-std=c++2a",
|
|
66
66
|
"-Wall",
|
|
67
67
|
"-Wextra",
|
|
68
68
|
"-Wno-sign-compare",
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "re2",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.8",
|
|
4
4
|
"description": "Bindings for RE2: fast, safe alternative to backtracking regular expression engines.",
|
|
5
5
|
"homepage": "https://github.com/uhop/node-re2",
|
|
6
6
|
"bugs": "https://github.com/uhop/node-re2/issues",
|
|
7
|
+
"type": "commonjs",
|
|
7
8
|
"main": "re2.js",
|
|
8
9
|
"types": "re2.d.ts",
|
|
9
10
|
"directories": {
|
|
@@ -11,8 +12,8 @@
|
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"install-artifact-from-github": "^1.3.1",
|
|
14
|
-
"nan": "^2.
|
|
15
|
-
"node-gyp": "^9.
|
|
15
|
+
"nan": "^2.17.0",
|
|
16
|
+
"node-gyp": "^9.3.0"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
19
|
"heya-unit": "^0.3.0"
|
package/re2.d.ts
CHANGED
|
@@ -3,11 +3,17 @@ declare module 're2' {
|
|
|
3
3
|
interface RE2MatchArray<K> extends Array<K> {
|
|
4
4
|
index?: number;
|
|
5
5
|
input?: K;
|
|
6
|
+
groups?: {
|
|
7
|
+
[key: string]: string
|
|
8
|
+
}
|
|
6
9
|
}
|
|
7
10
|
|
|
8
11
|
interface RE2ExecArray<K> extends Array<K> {
|
|
9
12
|
index: number;
|
|
10
13
|
input: K;
|
|
14
|
+
groups?: {
|
|
15
|
+
[key: string]: string
|
|
16
|
+
}
|
|
11
17
|
}
|
|
12
18
|
|
|
13
19
|
interface RE2 extends RegExp {
|
package/re2.js
CHANGED
|
@@ -19,7 +19,7 @@ if (typeof Symbol != 'undefined') {
|
|
|
19
19
|
(RE2.prototype[Symbol.split] = function (str, limit) {
|
|
20
20
|
return this.split(str, limit);
|
|
21
21
|
});
|
|
22
|
-
|
|
22
|
+
Symbol.matchAll &&
|
|
23
23
|
(RE2.prototype[Symbol.matchAll] = function* (str) {
|
|
24
24
|
if (!this.global) {
|
|
25
25
|
throw TypeError('String.prototype.matchAll called with a non-global RE2 argument');
|