Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@tsconfig/node20
Advanced tools
@tsconfig/node20 is a TypeScript configuration preset specifically tailored for Node.js version 20. It provides a set of default TypeScript compiler options that are optimized for developing Node.js applications using TypeScript.
TypeScript Configuration
This feature provides a pre-configured `tsconfig.json` file optimized for Node.js 20. It sets the target to ES2022, uses CommonJS modules, and includes strict type-checking options.
{"compilerOptions":{"target":"ES2022","module":"CommonJS","lib":["ES2022"],"strict":true,"esModuleInterop":true,"skipLibCheck":true,"forceConsistentCasingInFileNames":true}}
@tsconfig/node18 is similar to @tsconfig/node20 but is tailored for Node.js version 18. It provides a set of TypeScript compiler options optimized for Node.js 18, which may have slight differences in target and library settings compared to Node.js 20.
@tsconfig/node16 is another similar package but is tailored for Node.js version 16. It provides TypeScript compiler options optimized for Node.js 16, which may have more significant differences in target and library settings compared to Node.js 20.
@tsconfig/recommended provides a general set of recommended TypeScript compiler options that are not specific to any Node.js version. It is useful for a broader range of TypeScript projects but may not be as optimized for Node.js 20 as @tsconfig/node20.
Add the package to your "devDependencies"
:
npm install --save-dev @tsconfig/node20
yarn add --dev @tsconfig/node20
Add to your tsconfig.json
:
"extends": "@tsconfig/node20/tsconfig.json"
The tsconfig.json
:
{
"$schema": "https://json.schemastore.org/tsconfig",
"_version": "20.1.0",
"compilerOptions": {
"lib": ["es2023"],
"module": "node16",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "node16"
}
}
You can find the code here.
FAQs
A base TSConfig for working with Node 20.
We found that @tsconfig/node20 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.