Files
Filip Skokan b37f5ac826 refactor!: WebCryptoAPI is now the only crypto used
BREAKING CHANGE: CJS-style require is now only possible when require(esm) support is present in the Node.js runtime
BREAKING CHANGE: private KeyObject instances can no longer be used for verify operations
BREAKING CHANGE: private KeyObject instances can no longer be used for encryption operations
BREAKING CHANGE: generateSecret, generateKeyPair, importPKCS8, importSPKI, importJWK, and importX509 now yield a CryptoKey instead of a KeyObject in Node.js
BREAKING CHANGE: drop support for Node.js 18.x and earlier
BREAKING CHANGE: runtime-specific npm releases (jose-browser-runtime, jose-node-cjs-runtime, and jose-node-esm-runtime) are no longer maintained or supported
2025-02-22 15:13:58 +01:00

10 lines
301 B
JavaScript
Executable File

const { readFileSync, writeFileSync, unlinkSync } = require('fs')
const pkg = JSON.parse(readFileSync('./package.json'))
pkg.devDependencies = undefined
pkg.scripts = undefined
pkg.imports = undefined
writeFileSync('./package.json', `${JSON.stringify(pkg, null, 2)}\n`)
unlinkSync('./CHANGELOG.md')