Skip to content

Commit 3fdde2f

Browse files
Merge branch 'release/2.1.0'
2 parents d5bbe51 + e210184 commit 3fdde2f

File tree

12 files changed

+319
-109
lines changed

12 files changed

+319
-109
lines changed

.auto-changelog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"commitLimit": false,
3+
"ignoreCommitPattern": "Bump .* version|Merge tag .+ into develop",
4+
"package": true,
5+
"sortCommits": "date-desc",
6+
"startingVersion": "1.1.0",
7+
"template": "keepachangelog"
8+
}

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'
7+
day: 'saturday'
8+
assignees:
9+
- 'wimpyprogrammer'
10+
11+
- package-ecosystem: 'npm'
12+
directory: '/'
13+
schedule:
14+
interval: 'weekly'
15+
day: 'saturday'
16+
assignees:
17+
- 'wimpyprogrammer'
18+
versioning-strategy: 'widen'

.github/workflows/security-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v2.4.0
2626

2727
- name: Initialize CodeQL
2828
uses: github/codeql-action/init@v1

.github/workflows/tests.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,42 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
node-version: [10.x, 14.x]
21+
node-version: [12.x, 16.x, lts/*]
2222

2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v2.4.0
2626
with:
2727
fetch-depth: '2'
2828

2929
- name: Test on Node ${{ matrix.node-version }}
30-
uses: actions/setup-node@v1
30+
uses: actions/setup-node@v2.5.0
3131
with:
3232
node-version: ${{ matrix.node-version }}
3333

3434
- run: npm install
35+
- run: npx prettier --check .
3536
- run: npm run lint
3637
- run: npm run build
3738
- run: npm run test
3839
- run: npx testpack-cli --keep=@types/*,ts-jest,typescript jest.config.js tsconfig.json src/e2e.spec.ts src/tsconfig.test.json
3940

4041
- name: Upload test coverage report to Codecov
41-
uses: codecov/codecov-action@v1
42+
uses: codecov/codecov-action@v2.1.0
4243
with:
4344
fail_ci_if_error: true
4445

46+
- name: Setup Snyk
47+
uses: snyk/actions/setup@master
48+
id: snyk
49+
with:
50+
snyk-version: latest
51+
52+
- name: Snyk version
53+
run: echo "${{ steps.snyk.outputs.version }}"
54+
4555
- name: Run Snyk to check for vulnerabilities
56+
if: ${{ github.actor != 'dependabot[bot]' }}
4657
uses: snyk/actions/node@master
4758
env:
4859
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

.release-it.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"changelog": false,
88
"commit": false,
99
"requireBranch": "main",
10-
"requireCommits": true,
1110
"tagName": "${version}"
1211
}
1312
}

CHANGELOG.md

Lines changed: 180 additions & 0 deletions
Large diffs are not rendered by default.

demo/index.html

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<!-- Google Tag Manager -->
2727
<script>
28-
(function(w, d, s, l, i) {
28+
(function (w, d, s, l, i) {
2929
w[l] = w[l] || [];
3030
w[l].push({
3131
'gtm.start': new Date().getTime(),
@@ -54,17 +54,15 @@
5454
src="https://www.googletagmanager.com/ns.html?id=GTM-M4R3GP7"
5555
height="0"
5656
width="0"
57-
style="display:none;visibility:hidden"
57+
style="display: none; visibility: hidden"
5858
>
5959
</iframe>
6060
</noscript>
6161
<!-- End Google Tag Manager (noscript) -->
6262

6363
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
6464
<div class="container">
65-
<a class="navbar-brand" href="javascript:void(0)">
66-
RegEx to Strings
67-
</a>
65+
<a class="navbar-brand" href="javascript:void(0)"> RegEx to Strings </a>
6866
<a
6967
href="https://github.com/wimpyprogrammer/regex-to-strings"
7068
title="See regex-to-strings on GitHub"
@@ -118,9 +116,7 @@
118116

119117
<div class="form-inline">
120118
<div class="form-group">
121-
<label for="delimiter">
122-
Separate results by:
123-
</label>
119+
<label for="delimiter"> Separate results by: </label>
124120
<select
125121
id="delimiter"
126122
class="form-control js-delimiter track-field"
@@ -133,9 +129,7 @@
133129
</div>
134130

135131
<div class="form-group">
136-
<label for="max-results">
137-
Maximum number of results:
138-
</label>
132+
<label for="max-results"> Maximum number of results: </label>
139133
<input
140134
class="form-control js-max-results track-field"
141135
id="max-results"

demo/src/components/demo-form.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export default class DemoForm {
2727
protected $errorContainer: HTMLDivElement;
2828
protected $errorMessage: HTMLPreElement;
2929

30-
// eslint-disable-next-line @typescript-eslint/no-empty-function
30+
// eslint-disable-next-line @typescript-eslint/no-empty-function, class-methods-use-this
3131
public onSubmit: () => void = () => {};
32-
// eslint-disable-next-line @typescript-eslint/no-empty-function
32+
// eslint-disable-next-line @typescript-eslint/no-empty-function, class-methods-use-this
3333
public onCancel: () => void = () => {};
3434

3535
private onInputKeydown(event: KeyboardEvent): boolean {

package.json

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "regex-to-strings",
3-
"version": "2.0.3",
3+
"version": "2.1.0",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/wimpyprogrammer/regex-to-strings.git"
@@ -27,45 +27,42 @@
2727
"*.scss"
2828
],
2929
"engines": {
30-
"node": ">=10"
30+
"node": ">=12"
3131
},
3232
"scripts": {
3333
"build": "run-s build:*",
3434
"build:src": "tsc -b --clean && tsc -b",
3535
"build:demo": "wp --config demo/webpack.config.js",
36+
"changelog": "npx auto-changelog",
3637
"format": "prettier --write '{src,demo/src}/**'",
3738
"lint": "tsc -b ./tsconfig.lint.json && eslint . --report-unused-disable-directives",
38-
"precommit": "pretty-quick --staged",
39-
"release": "npx release-it",
39+
"release": "npx release-it --no-increment",
4040
"test": "jest --coverage"
4141
},
4242
"devDependencies": {
4343
"@types/history": "^4.7.3",
44-
"@types/jest": "^26.0.10",
44+
"@types/jest": "^27.0.1",
4545
"@types/jest-when": "^2.4.1",
4646
"@types/lodash": "^4.14.140",
47-
"@typescript-eslint/eslint-plugin": "^4.18.0",
48-
"@typescript-eslint/parser": "^4.18.0",
49-
"clean-webpack-plugin": "^3.0.0",
50-
"codecov": "^3.5.0",
51-
"css-loader": "^5.1.3",
52-
"eslint": "^7.22.0",
53-
"eslint-config-airbnb-base": "^14.2.1",
47+
"@typescript-eslint/eslint-plugin": "^5.6.0",
48+
"@typescript-eslint/parser": "^5.6.0",
49+
"clean-webpack-plugin": "^4.0.0",
50+
"css-loader": "^6.1.0",
51+
"eslint": "^8.4.0",
52+
"eslint-config-airbnb-base": "^15.0.0",
5453
"eslint-config-prettier": "^8.1.0",
5554
"eslint-import-resolver-typescript": "^2.4.0",
56-
"eslint-plugin-import": "^2.18.2",
57-
"eslint-plugin-jest": "^24.3.1",
58-
"husky": "5.1.3",
59-
"jest": "^26.4.2",
55+
"eslint-plugin-import": "^2.25.3",
56+
"eslint-plugin-jest": "^25.2.1",
57+
"jest": "^27.0.1",
6058
"jest-when": "^3.2.1",
61-
"node-sass": "^5.0.0",
59+
"node-sass": "^7.0.0",
6260
"npm-run-all": "^4.1.5",
6361
"prettier": "2.2.1",
64-
"pretty-quick": "3.1.0",
65-
"sass-loader": "^11.0.1",
66-
"style-loader": "^2.0.0",
67-
"ts-jest": "^26.5.3",
68-
"ts-loader": "^8.0.18",
62+
"sass-loader": "^12.0.0",
63+
"style-loader": "^3.0.0",
64+
"ts-jest": "^27.0.1",
65+
"ts-loader": "^9.1.2",
6966
"typescript": "^4.2.3",
7067
"webpack": "^5.26.0",
7168
"webpack-nano": "^1.1.1",

src/Expansion.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ export default class Expansion {
1212
/**
1313
* A single blank string Expansion
1414
*/
15+
// eslint-disable-next-line no-use-before-define
1516
public static Blank: Expansion = new Expansion([''], 1);
1617

1718
/**
1819
* Zero string expansions
1920
*/
21+
// eslint-disable-next-line no-use-before-define
2022
public static Empty: Expansion = new Expansion([], 0);
2123

2224
/**

0 commit comments

Comments
 (0)