Skip to content

Commit

Permalink
Update typescript to 5.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson committed Dec 24, 2024
1 parent f7681a8 commit e38d57d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@
"rollup": "4.28.1",
"ts-jest": "29.2.5",
"tslib": "2.8.1",
"typescript": "5.4.5"
"typescript": "5.7.2"
}
}
2 changes: 2 additions & 0 deletions src/downgrade-pattern.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ describe('DowngradePattern', () => {
// eslint-disable-next-line @typescript-eslint/naming-convention
'\\1': 51,
},
// @ts-expect-error backreference group not exist
result: s(/^(?:a)b{1}c+d{1,2}e+(?:f)(?:k|l).(?:m(?:n))o+?[a\d]\1$/),
},
);
Expand All @@ -571,6 +572,7 @@ describe('DowngradePattern', () => {
'\\4': 43,
},
/* eslint-enable @typescript-eslint/naming-convention */
// @ts-expect-error backreference group not exist
result: s(/(?:)(?:)(?:)(?:)a(?:\1)c(?:d|\2|f)(?:\3)(?:\4)+/),
},
);
Expand Down
2 changes: 2 additions & 0 deletions src/redos-detector.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ describe('RedosDetector', () => {
[/^((a{1,2})\1)$/, true],
[/^((a+)\1)$/, true],
[/^((a+)a+)$/, false],
// @ts-expect-error backreference group not exist
[/^a+\99$/, true],
[/^(a+)b\1$/, true],
[/^(a+)b\1+a+$/, false],
Expand Down Expand Up @@ -348,6 +349,7 @@ describe('RedosDetector', () => {
[/^👍+\udc4d+$/, false, new Set(['ignoreSnapshot'])],
[/^👍+👍+$/u, false],
[/^\u{1f44d}+\u{1f44d}+$/u, false],
// @ts-expect-error Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set.
[/^\u{1f44d}+\u{1f44d}+$/, true],
[/^a+\u{61}+$/u, false],
[/^\p{L}+a+$/u, false],
Expand Down
1 change: 1 addition & 0 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"target": "ESNext",
"types": ["jest", "node"]
},
"exclude": ["node_modules"]
Expand Down

0 comments on commit e38d57d

Please sign in to comment.