Commit ede368c
fix: add Node 18 deprecation notice (#1506)
* fix: add Node 18 deprecation notice
* run pnpm install
* fix: improve Node 18 deprecation warning and fix import typo
- Add browser environment check to only show Node.js deprecation warning in Node.js
- Fix typo in types import path
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* fix: correct import typo and improve code formatting
- Fix typo in types import path
- Improve formatting of Node.js 18 deprecation warning condition
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* 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 information
* add engines field in package.json
* remove engine
* revert pnpm-lock.yaml
* revert package-lock.json
---------
Co-authored-by: Claude <[email protected]>1 parent 5b1118d commit ede368c
1 file changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments