
Security News
TC39 Advances Temporal to Stage 4 Alongside Several ECMAScript Proposals
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.
@siberiacancode/fetches
Advanced tools
A lightweight and flexible HTTP client for making API requests.
npm install @siberiacancode/fetches
import fetches from '@siberiacancode/fetches';
const response = await fetches.get<User[]>('/users');
const api = fetches.create({
baseURL: 'https://api.example.com',
headers: {
'Content-Type': 'application/json'
}
});
api.interceptors.request.use(
(config) => {
config.headers.Authorization = 'Bearer token';
return config;
},
(error) => Promise.reject(error)
);
interface GetUsersParams {
limit: number;
page: number;
}
const getUsers: ApiFetchesRequest<GetUsersParams, any[]> = ({ params, config }) =>
fetches.get('/users', {
...config,
params: { ...config?.params, ...params }
});
The fetches library provides flexible response parsing options to handle different types of responses. You can specify how to parse the response body using predefined modes or custom functions. If no parse mode is specified, the response will be automatically parsed based on the Content-Type header:
const response = await fetches.get('/users', { parse: 'json' });
You can provide a custom function that takes a Response object and returns a Promise with parsed data. This is useful for handling special response formats or custom parsing logic.
const response = await fetches.get('/users', { parse: (data) => data.json() });
To get the raw response body without any parsing, use the 'raw' parse mode. This is useful when you need to handle the response manually or when working with binary data.
const response = await fetches.get('/binary-file', { parse: 'raw' });
You can set the base URL when creating a new instance:
import { Fetches } from '@siberiacancode/fetches';
const api = new Fetches({
baseURL: '/api'
});
await api.get('/users'); // /api/users
You can override the base URL for individual requests using the baseURL option:
await api.get('/users', { baseUrl: '/api' });
The library supports a context system that allows you to pass data through the entire request lifecycle.
const response = await fetches.get('/users', { context: 'data' });
console.log('response', response.options.context); // 'data'
FAQs
fetch instance
We found that @siberiacancode/fetches demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Research
/Security News
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.

Research
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.