You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove node-fetch fallback and drop CJS support (#641)
* chore: remove node-fetch fallback and drop CJS support
- Removed node-fetch from optionalDependencies and @types/node-fetch from devDependencies.
- Refactored src/sagiri.ts to use native fetch and removed legacy fallback logic.
- Dropped CommonJS (CJS) support, making the library ESM-only.
- Updated package.json exports and removed Node.js specific scripts.
- Deleted CJS test file test/node/commonjs.test.cjs.
- Cleaned up unused devDependencies (mocha, nyc).
- Updated CHANGELOG.md for version 4.3.0.
Co-authored-by: sr229 <14976516+sr229@users.noreply.github.com>
* fix: resolve CI failures after node-fetch removal
- Fixed Deno type check errors by using type-only import for IResult in util.ts.
- Added Deno namespace reference to Deno tests.
- Updated GitHub Actions test-node job to use bun for coverage instead of removed coverage:nodejs.
Co-authored-by: sr229 <14976516+sr229@users.noreply.github.com>
* fix: add bun setup to test-node job in CI
The test-node job was failing because it tried to run `bun run coverage` without having Bun installed in that job's environment. Added `oven-sh/setup-bun@v2` to the `test-node` job.
Co-authored-by: sr229 <14976516+sr229@users.noreply.github.com>
* chore: trim out Node.js specific tests from CI
Since we are no longer running Node.js specific tests (dropped CJS/mocha), the `test-node` job was redundant and actually incorrect as it tried to use `bun`. We now rely on `test-bun` and `test-deno` jobs.
- Removed `test-node` job from `.github/workflows/test.yml`.
- Removed empty `test/node` directory.
Co-authored-by: sr229 <14976516+sr229@users.noreply.github.com>
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
0 commit comments