
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@stephansama/pnpm-hooks
Advanced tools
preconfigured pnpm hooks and types for pnpmfile
pnpm install @stephansama/pnpm-hooks
pnpmfile hooks are useful, but the types and small reusable hook helpers are easy to reimplement in every workspace. This package collects both:
pnpmfile hooksThe package exposes two top-level namespaces:
readPackageHooks
prebuilt readPackage hook utilitiestypes
pnpm hook types including PnpmFileHooks, ReadPackageHook, BeforePackingHook, AfterAllResolvedHook, ImportPackageHook, PreResolutionHook, and UpdateConfigHookThe sections below are organized so each hook can carry its own behavior notes and example output as the package grows.
readPackageHooks.pinAllDependenciesPins dependency ranges by removing leading ^ and ~ prefixes from:
dependenciesdevDependenciesoptionalDependenciesThis runs on every manifest processed by pnpm through the readPackage hook, which makes it useful for workspaces that want consistently pinned transitive and nested dependency ranges during resolution.
readPackageHooks.pinAllDependenciesGiven a dependency manifest like this:
{
"dependencies": {
"react": "^19.1.0"
},
"devDependencies": {
"typescript": "~5.9.2"
},
"optionalDependencies": {
"@types/node": "^24.0.0"
}
}
pinAllDependencies rewrites it to:
{
"dependencies": {
"react": "19.1.0"
},
"devDependencies": {
"typescript": "5.9.2"
},
"optionalDependencies": {
"@types/node": "24.0.0"
}
}
>=24pnpmfileimport { readPackageHooks } from "@stephansama/pnpm-hooks";
/** @type {import("../dist/index.mjs").types.PnpmFileHooks} */
export const hooks = {
readPackage: readPackageHooks.pinAllDependencies,
};
FAQs
preconfigured pnpm hooks and types for pnpmfile
We found that @stephansama/pnpm-hooks 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
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.