mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
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
10 lines
301 B
JavaScript
Executable File
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')
|