Commit ec3c428
committed
feat: add Node.js <= 18 deprecation warning
- Add deprecation warning for Node.js versions 18 and below
- Extract shouldShowDeprecationWarning function with robust version parsing
- Parse major version number from process.version using regex
- Handle edge cases: null version, malformed strings, browser environments
- Display informative warning message directing users to upgrade to Node.js 20+
- Include link to GitHub discussion for more information1 parent eadbaf9 commit ec3c428
1 file changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
50 | 64 | | |
51 | | - | |
| 65 | + | |
52 | 66 | | |
53 | 67 | | |
54 | 68 | | |
| |||
0 commit comments