sparql-transformer
sparql-transformer copied to clipboard
Refactor: Upgrade to Node 18 and clean up dependencies
This pull request includes upgrades and dependency changes:
- Set Node.js version requirement to >=18.0.0.
- Upgrade
eslint-plugin-importto 2.29.1. - Remove unnecessary dependency
rimraf. - Replace certain dependencies with native Node.js functions:
- Use
fetchinstead ofaxiosfor making HTTP requests. - Use
fsinstead ofis-valid-pathfor checking if a path is valid. - Use
node:assertandnode:testinstead ofavaandnockfor testing.
- Use
This also results in a significant decrease in bundle size:
| Package | Size | Minified | Gzipped |
|---|---|---|---|
| [email protected] | 214.76 KB | 59.86 KB | 21.07 KB |
| sparql-transformer@refactor/dependencies-and-upgrade | 27.22 KB (-87.33%) | 9.87 KB (-83.51%) | 4.07 KB (-80.69%) |