Skip to content

Commit d7a1eac

Browse files
committed
feat: require node >=14, added period to regex (fixes #2), re2 is now a peer dependency (breaking), added tests, bump deps
1 parent 0ef7567 commit d7a1eac

21 files changed

+159
-10054
lines changed

.commitlintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional']
3+
};

.dist.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"presets": [
33
["@babel/env", {
44
"targets": {
5-
"browsers": [ "> 1%", "last 2 versions" ]
5+
"browsers": [ "defaults, not ie 11" ]
66
}
77
}]
88
]

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!.*.js

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* text=auto
1+
* text=auto eol=lf

.github/FUNDING.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os:
11+
- ubuntu-latest
12+
node_version:
13+
- 14
14+
- 16
15+
- 18
16+
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Setup node
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node_version }}
23+
- name: Install dependencies
24+
run: npm install
25+
- name: Run tests
26+
run: npm run test

.gitignore

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
1-
# OS #
2-
###################
31
.DS_Store
2+
*.log
43
.idea
5-
Thumbs.db
6-
tmp/
7-
temp/
8-
9-
10-
# Node.js #
11-
###################
124
node_modules
13-
14-
15-
# NYC #
16-
###################
175
coverage
18-
*.lcov
196
.nyc_output
7+
locales/
8+
package-lock.json
9+
yarn.lock
2010

21-
22-
# Files #
23-
###################
24-
*.log
11+
Thumbs.db
12+
tmp/
13+
temp/
14+
*.lcov
15+
.env
2516
lib
2617
dist

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged && npm test

.lib.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"presets": [
33
["@babel/env", {
44
"targets": {
5-
"node": "10.12.0",
6-
"browsers": [ "> 1%", "last 2 versions" ]
5+
"node": "14",
6+
"browsers": [ "defaults, not ie 11" ]
77
}
88
}]
99
],

0 commit comments

Comments
 (0)