Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronize with module template (Feb 2024) #104

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcmire
Copy link
Contributor

@mcmire mcmire commented Feb 27, 2024

  • BREAKING: Drop support for Node 16; use Node 18 as minimum version
  • Use Node LTS for development rather than 18
  • Use tsup to generate ESM-compatible builds (configuration copied from the module template)
  • Upgrade Yarn from v2 to v3.2.1
  • Add Yarn constraints
  • Replace ESLint config file with module template version
    • Doing so re-enabled the id-denylist rule; this PR fixes any lint associated violations
  • Bump prettier-plugin-packagejson from ^2.2.17 to ^2.3.0
  • Bump Jest from v26 to v28
  • Add jest-it-up and run it after running tests
  • Use Babel for Jest coverage reports instead of v8
    • This ended up dropping the coverage thresholds
  • Add typedoc
  • Add auto-changelog and validate changelogs as a part of linting
  • Bump @metamask/utils to ^8.3.0
    • This forced a bump to the following packages in order to align JSON types:
      • Bump @metamask/json-rpc-engine from ^7.1.1 to ^7.3.2
      • Bump @metamask/eth-json-rpc-provider from ^2.1.0 to ^2.3.2
  • Add configuration for Dependabot
  • Add pull request template
  • Upgrade GitHub workflows
    • Upgrade actions/checkout from v2 to v3
    • Upgrade actions/setup-node from v2 to v3
    • Upgrade MetaMask/action-create-release-pr from v1 to v3
    • Publish package to NPM
    • Publish API documentation for release candidates and releases
    • Notify metamask-npm-publishers of new releases in Slack

@mcmire mcmire requested a review from a team as a code owner February 27, 2024 21:59
Copy link

socket-security bot commented Feb 27, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/code-frame@7.23.5 Transitive: environment +10 191 kB nicolo-ribaudo
npm/@babel/compat-data@7.23.5 None 0 64.6 kB nicolo-ribaudo
npm/@babel/core@7.23.9 environment, filesystem, unsafe Transitive: shell +52 10.8 MB nicolo-ribaudo
npm/@babel/generator@7.23.6 Transitive: environment +10 3.37 MB nicolo-ribaudo
npm/@babel/helper-compilation-targets@7.23.6 Transitive: environment, filesystem, shell +11 2.53 MB nicolo-ribaudo
npm/@babel/helper-module-transforms@7.23.3 Transitive: environment, filesystem, shell, unsafe +52 10.8 MB nicolo-ribaudo
npm/@babel/helper-string-parser@7.23.4 None 0 31.6 kB nicolo-ribaudo
npm/@babel/helper-validator-option@7.23.5 None 0 11.7 kB nicolo-ribaudo
npm/@babel/helpers@7.23.9 Transitive: environment +31 6.81 MB nicolo-ribaudo
npm/@babel/highlight@7.23.4 Transitive: environment +9 168 kB nicolo-ribaudo
npm/@babel/parser@7.23.9 None 0 1.88 MB nicolo-ribaudo
npm/@babel/plugin-syntax-typescript@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/template@7.23.9 Transitive: environment +15 4.59 MB nicolo-ribaudo
npm/@babel/traverse@7.23.9 Transitive: environment +30 6.21 MB nicolo-ribaudo
npm/@babel/types@7.23.9 environment +3 2.49 MB nicolo-ribaudo
npm/@cspotcode/source-map-support@0.8.1 filesystem +3 293 kB cspotcode
npm/@es-joy/jsdoccomment@0.36.1 None +4 1.7 MB brettz9
npm/@esbuild/android-arm@0.19.12 None 0 11.5 MB evanw
npm/@esbuild/android-arm64@0.19.12 None 0 9.83 MB evanw
npm/@esbuild/android-x64@0.19.12 None 0 11.5 MB evanw
npm/@esbuild/darwin-arm64@0.19.12 None 0 9.76 MB evanw
npm/@esbuild/darwin-x64@0.19.12 None 0 10.2 MB evanw
npm/@esbuild/freebsd-arm64@0.19.12 None 0 8.85 MB evanw
npm/@esbuild/freebsd-x64@0.19.12 None 0 9.61 MB evanw
npm/@esbuild/linux-arm@0.19.12 None 0 9.18 MB evanw
npm/@esbuild/linux-arm64@0.19.12 None 0 8.85 MB evanw
npm/@esbuild/linux-ia32@0.19.12 None 0 9.14 MB evanw
npm/@esbuild/linux-loong64@0.19.12 None 0 9.37 MB evanw
npm/@esbuild/linux-mips64el@0.19.12 None 0 10.4 MB evanw
npm/@esbuild/linux-ppc64@0.19.12 None 0 9.18 MB evanw
npm/@esbuild/linux-riscv64@0.19.12 None 0 9.11 MB evanw
npm/@esbuild/linux-s390x@0.19.12 None 0 10 MB evanw
npm/@esbuild/linux-x64@0.19.12 None 0 9.6 MB evanw
npm/@esbuild/netbsd-x64@0.19.12 None 0 9.59 MB evanw
npm/@esbuild/openbsd-x64@0.19.12 None 0 9.62 MB evanw
npm/@esbuild/sunos-x64@0.19.12 None 0 9.59 MB evanw
npm/@esbuild/win32-arm64@0.19.12 None 0 8.98 MB evanw
npm/@esbuild/win32-ia32@0.19.12 None 0 9.45 MB evanw
npm/@esbuild/win32-x64@0.19.12 None 0 9.81 MB evanw
npm/@eslint-community/regexpp@4.10.0 None 0 431 kB eslint-community-bot
npm/@eslint/eslintrc@2.1.4 filesystem, unsafe Transitive: environment, eval +26 3.73 MB eslintbot
npm/@eslint/js@8.57.0 None 0 13.9 kB eslintbot
npm/@humanwhocodes/config-array@0.11.14 Transitive: environment +6 181 kB nzakas
npm/@humanwhocodes/object-schema@2.0.2 None 0 53.3 kB nzakas
npm/@inquirer/confirm@0.0.14-alpha.0 Transitive: environment +14 1.71 MB sboudrias
npm/@inquirer/core@0.0.15-alpha.0 Transitive: environment +12 1.7 MB sboudrias
npm/@inquirer/input@0.0.15-alpha.0 Transitive: environment +13 1.71 MB sboudrias
npm/@jridgewell/gen-mapping@0.3.4 None +4 354 kB jridgewell
npm/@jridgewell/resolve-uri@3.1.2 None 0 53.2 kB jridgewell
npm/@jridgewell/trace-mapping@0.3.23 None +2 261 kB jridgewell
npm/@lavamoat/aa@4.0.1 filesystem Transitive: environment +6 249 kB naugtur
npm/@lavamoat/allow-scripts@3.0.2 environment, filesystem, shell Transitive: network +123 7.97 MB boneskull
npm/@lavamoat/preinstall-always-fail@2.0.0 None 0 3.25 kB naugtur
npm/@metamask/auto-changelog@3.4.4 Transitive: environment, filesystem, shell, unsafe +31 12.6 MB metamaskbot
npm/@metamask/eth-json-rpc-provider@2.3.2 Transitive: environment, network +25 4.8 MB metamaskbot
npm/@metamask/json-rpc-engine@7.3.2 Transitive: environment, network +24 4.78 MB metamaskbot
npm/@metamask/rpc-errors@6.2.1 Transitive: environment, network +22 4.67 MB brad.decker, danfinlay, gudahtt, ...9 more
npm/@metamask/utils@8.3.0 Transitive: environment, network +20 4.51 MB metamaskbot
npm/@noble/curves@1.3.0 None +1 2.15 MB paulmillr
npm/@noble/hashes@1.3.3 None 0 761 kB paulmillr
npm/@npmcli/agent@2.2.1 environment, network +12 1.19 MB npm-cli-ops
npm/@npmcli/git@5.0.4 filesystem Transitive: environment, shell +18 804 kB npm-cli-ops
npm/@npmcli/package-json@5.0.0 filesystem Transitive: environment, shell +56 3.49 MB npm-cli-ops
npm/@npmcli/promise-spawn@7.0.1 environment, shell Transitive: filesystem +2 62.5 kB npm-cli-ops
npm/@npmcli/run-script@7.0.4 environment Transitive: filesystem, network, shell +107 7.32 MB npm-cli-ops
npm/@pkgr/core@0.1.1 None 0 8.54 kB jounqin
npm/@scure/base@1.1.5 None 0 79.4 kB paulmillr
npm/@scure/bip32@1.3.3 None +3 2.29 MB paulmillr
npm/@scure/bip39@1.2.2 None +2 1.21 MB paulmillr
npm/@sinonjs/commons@1.8.6 None +1 80.8 kB mrgnrdrck
npm/@tsconfig/node10@1.0.9 None 0 2.39 kB typescript-deploys
npm/@tsconfig/node12@1.0.11 None 0 2.5 kB typescript-deploys
npm/@tsconfig/node14@1.0.3 None 0 2.39 kB typescript-deploys
npm/@tsconfig/node16@1.0.4 None 0 2.45 kB typescript-deploys
npm/@types/babel__core@7.20.5 Transitive: environment +8 4.51 MB types
npm/@types/babel__generator@7.6.8 Transitive: environment +4 2.51 MB types
npm/@types/babel__template@7.4.4 Transitive: environment +5 4.38 MB types
npm/@types/babel__traverse@7.20.5 Transitive: environment +4 2.58 MB types
npm/@types/debug@4.1.12 None +1 9.65 kB types
npm/@types/graceful-fs@4.1.9 None +1 3.56 MB types
npm/@types/istanbul-lib-coverage@2.0.6 None 0 5.45 kB types
npm/@types/istanbul-lib-report@3.0.3 None +1 13.4 kB types
npm/@types/istanbul-reports@3.0.4 None +2 20 kB types
npm/@types/jest@28.1.8 Transitive: environment, filesystem, unsafe +45 5.07 MB types
npm/@types/json-schema@7.0.15 None 0 31.7 kB types
npm/@types/ms@0.7.34 None 0 3.2 kB types
npm/@types/node-fetch@2.6.11 Transitive: filesystem, network +7 3.88 MB types
npm/@types/node@16.18.83 None 0 3.56 MB types
npm/@types/parse-json@4.0.2 None 0 2.95 kB types
npm/@types/semver@7.5.8 None 0 23.3 kB types
npm/@types/stack-utils@2.0.3 None 0 6.43 kB types
npm/@types/yargs-parser@21.0.3 None 0 8.65 kB types
npm/@types/yargs@17.0.32 None +1 68.8 kB types
npm/@ungap/structured-clone@1.2.0 None 0 26.2 kB webreflection
npm/@vue/compiler-core@3.4.20 environment, eval +5 3.18 MB yyx990803
npm/@vue/compiler-dom@3.4.20 environment, eval +6 3.79 MB yyx990803
npm/@vue/compiler-sfc@3.4.20 environment, eval, filesystem, unsafe +13 6.82 MB yyx990803
npm/@vue/compiler-ssr@3.4.20 Transitive: environment, eval +7 3.83 MB yyx990803
npm/@vue/shared@3.4.20 environment 0 80 kB yyx990803
npm/abbrev@2.0.0 None 0 4.83 kB lukekarrys
npm/acorn-walk@8.3.2 None 0 52.4 kB marijn
npm/acorn@8.11.3 None 0 531 kB marijn
npm/agent-base@7.1.0 network Transitive: environment +2 72.7 kB tootallnate
npm/ansi-colors@4.1.3 environment 0 26.1 kB jonschlinkert
npm/ansi-sequence-parser@1.1.1 None 0 21.9 kB bmealey
npm/any-promise@1.3.0 None 0 22.2 kB kevinbeaty
npm/anymatch@3.1.3 None +2 109 kB phated
npm/array-buffer-byte-length@1.0.1 Transitive: eval +8 182 kB ljharb
npm/array-differ@3.0.0 None 0 3.06 kB sindresorhus
npm/arraybuffer.prototype.slice@1.0.3 Transitive: eval +54 3.2 MB ljharb
npm/arrify@2.0.1 None 0 3.19 kB sindresorhus
npm/available-typed-arrays@1.0.7 None 0 20.4 kB ljharb
npm/bin-links@4.0.3 filesystem +5 65.5 kB npm-cli-ops
npm/binary-extensions@2.2.0 None 0 5.36 kB sindresorhus
npm/browserslist@4.23.0 environment, filesystem Transitive: shell +6 2.38 MB ai
npm/bundle-require@4.0.2 environment, filesystem, unsafe Transitive: network, shell +24 213 MB egoist
npm/cac@6.7.14 None 0 81.8 kB egoist
npm/cacache@18.0.2 filesystem Transitive: environment, shell +51 3.6 MB npm-cli-ops
npm/call-bind@1.0.7 Transitive: eval +6 151 kB ljharb
npm/callsite@1.0.0 None 0 1.47 kB tjholowaychuk
npm/caniuse-lite@1.0.30001591 None 0 1.97 MB caniuse-lite
npm/chokidar@3.6.0 environment, filesystem +14 531 kB paulmillr
npm/ci-info@3.9.0 environment 0 26.1 kB sibiraj-s
npm/cli-spinners@2.9.2 None 0 32.1 kB sindresorhus
npm/cli-width@3.0.0 environment 0 11.5 kB knownasilya
npm/cmd-shim@6.0.2 filesystem 0 12.1 kB npm-cli-ops
npm/collect-v8-coverage@1.0.2 unsafe 0 5.14 kB simenb
npm/commander@9.5.0 environment, filesystem, shell 0 173 kB abetomo
npm/convert-source-map@1.9.0 filesystem 0 11.4 kB thlorenz
npm/cosmiconfig@7.1.0 filesystem Transitive: environment, unsafe +23 794 kB d-fischer
npm/deepmerge@4.3.1 None 0 31.2 kB tehshrike
npm/depcheck@1.4.7 filesystem, unsafe Transitive: environment, eval +121 16.1 MB rumpl
npm/deps-regex@0.2.0 None 0 6.82 kB mathieudutour
npm/detect-file@1.0.0 filesystem 0 8.63 kB doowb
npm/detect-indent@7.0.1 None 0 9.75 kB sindresorhus
npm/diff@5.2.0 None 0 429 kB explodingcabbage
npm/electron-to-chromium@1.4.682 None 0 276 kB kilianvalkhof
npm/entities@4.5.0 None 0 413 kB feedic
npm/es-abstract@1.22.4 Transitive: eval +54 3.2 MB ljharb
npm/es-set-tostringtag@2.0.3 Transitive: eval +7 161 kB ljharb
npm/es-shim-unscopables@1.0.2 None +2 53.6 kB ljharb
npm/esbuild@0.19.12 environment, filesystem, network, shell +22 213 MB evanw
npm/escalade@3.1.2 filesystem 0 11.6 kB lukeed
npm/eslint-config-prettier@8.10.0 Transitive: environment, eval, filesystem, shell, unsafe +94 10.7 MB lydell
npm/eslint-module-utils@2.8.1 Transitive: environment +2 111 kB ljharb
npm/eslint-plugin-jest@27.9.0 filesystem Transitive: environment, eval, network, shell, unsafe +373 108 MB simenb
npm/eslint-plugin-jsdoc@39.9.1 Transitive: environment, eval, filesystem, shell, unsafe +102 13.1 MB gajus
npm/eslint@8.57.0 environment, filesystem Transitive: eval, shell, unsafe +93 10.7 MB eslintbot
npm/estree-walker@2.0.2 None 0 50.2 kB rich_harris
npm/ethereum-cryptography@2.1.3 None +5 2.74 MB paulmillr
npm/expand-tilde@2.0.2 Transitive: environment, filesystem +2 20.6 kB doowb
npm/fast-diff@1.3.0 None 0 52.3 kB luin
npm/fast-glob@3.3.2 filesystem +16 496 kB mrmlnc
npm/fastq@1.17.1 None +1 51.4 kB matteo.collina
npm/fb-watchman@2.0.2 environment, network, shell +2 45.3 kB bolinfest
npm/findup-sync@5.0.0 filesystem Transitive: environment +19 359 kB phated
npm/flat-cache@3.2.0 filesystem Transitive: environment +11 142 kB jaredwray
npm/flatted@3.3.1 None 0 40.3 kB webreflection
npm/form-data@4.0.0 filesystem, network +5 314 kB niftylettuce
npm/fs-minipass@3.0.3 filesystem +1 299 kB npm-cli-ops
npm/function-bind@1.1.2 None 0 31.4 kB ljharb
npm/get-intrinsic@1.2.4 eval +5 129 kB ljharb
npm/get-stdin@9.0.0 None 0 4.54 kB sindresorhus
npm/get-symbol-description@1.0.2 Transitive: eval +7 165 kB ljharb
npm/git-hooks-list@3.1.0 None 0 5.57 kB fisker
npm/glob@10.3.10 Transitive: environment, filesystem, shell +27 2.93 MB isaacs
npm/global-modules@1.0.0 Transitive: environment, filesystem +9 79.7 kB jonschlinkert
npm/global-prefix@1.0.2 environment, filesystem +7 66.8 kB phated
npm/has-property-descriptors@1.0.2 None 0 10.9 kB ljharb
npm/has-proto@1.0.3 None 0 12 kB ljharb
npm/has-tostringtag@1.0.2 None +1 38.2 kB ljharb
npm/has@1.0.4 None 0 3.02 kB tarruda
npm/hasown@2.0.1 None +1 42.6 kB ljharb
npm/homedir-polyfill@1.0.3 environment, filesystem +1 14 kB doowb
npm/hosted-git-info@7.0.1 None +1 485 kB npm-cli-ops
npm/http-proxy-agent@7.0.2 network Transitive: environment +3 96 kB tootallnate
npm/https-proxy-agent@7.0.4 network Transitive: environment +3 108 kB tootallnate
npm/ignore@5.3.1 None 0 51.5 kB kael
npm/ini@1.3.8 None 0 9.3 kB isaacs
npm/internal-slot@1.0.7 Transitive: eval +9 287 kB ljharb
npm/ip-address@9.0.5 None +2 264 kB beaugunderson
npm/is-array-buffer@3.0.4 Transitive: eval +7 169 kB ljharb
npm/is-binary-path@2.1.0 None +1 8.43 kB sindresorhus
npm/is-core-module@2.13.1 None +2 72.8 kB ljharb
npm/is-negative-zero@2.0.3 None 0 27.1 kB ljharb
npm/is-number-object@1.0.7 None +2 60.4 kB ljharb
npm/is-plain-obj@4.1.0 None 0 4.08 kB sindresorhus
npm/is-shared-array-buffer@1.0.3 Transitive: eval +7 170 kB ljharb
npm/is-typed-array@1.1.13 Transitive: eval +13 304 kB ljharb
npm/is-windows@1.0.2 None 0 7.96 kB jonschlinkert
npm/istanbul-lib-coverage@3.2.2 None 0 34.4 kB oss-bot
npm/istanbul-lib-report@3.0.1 filesystem +5 196 kB oss-bot
npm/istanbul-reports@3.1.7 Transitive: filesystem +7 503 kB oss-bot
npm/jackspeak@2.3.6 environment +13 574 kB isaacs
npm/jest-it-up@2.2.0 filesystem Transitive: environment, shell +17 1.92 MB rbardini
npm/jest-pnp-resolver@1.2.3 Transitive: environment, filesystem, network, shell, unsafe +51 5.28 MB arcanis
npm/joycon@3.1.1 environment, filesystem 0 14 kB egoist
npm/jsbn@1.1.0 None 0 46.9 kB andyperlitch
npm/jsdoc-type-pratt-parser@3.1.0 None 0 229 kB jsdoc-type-pratt-parser
npm/json-parse-even-better-errors@3.0.1 None 0 9.87 kB npm-cli-ops
npm/jsonc-parser@3.2.1 None 0 210 kB vscode-bot
npm/lilconfig@3.1.1 filesystem 0 17.7 kB antonk52
npm/load-tsconfig@0.2.5 None 0 17.1 kB egoist
npm/lodash.sortby@4.7.0 None 0 75.8 kB jdalton
npm/lodash@4.17.21 None 0 1.41 MB bnjmnt4n
npm/lru-cache@10.2.0 None 0 458 kB isaacs
npm/lunr@2.3.9 None 0 976 kB olivernn
npm/magic-string@0.30.7 None +1 493 kB antfu
npm/make-dir@4.0.0 filesystem +2 120 kB sindresorhus
npm/make-fetch-happen@13.0.0 network Transitive: environment, filesystem, shell +75 5.07 MB npm-cli-ops
npm/marked@4.3.0 None 0 428 kB tonybrix
npm/minimatch@7.4.6 environment +2 386 kB isaacs
npm/minimist@1.2.8 None 0 54.5 kB ljharb
npm/minipass-collect@2.0.1 None +1 290 kB isaacs
npm/minipass-fetch@3.0.4 environment, network +6 871 kB npm-cli-ops
npm/minipass@7.0.4 None 0 285 kB isaacs
npm/multimatch@5.0.0 None +7 46.5 kB sindresorhus
npm/mute-stream@0.0.8 None 0 6.51 kB isaacs
npm/mz@2.7.0 filesystem, network, shell +4 52 kB jongleberry
npm/nanoid@3.3.7 None 0 24.4 kB ai
npm/node-gyp@10.0.1 environment, shell Transitive: filesystem, network +84 6.96 MB lukekarrys
npm/node-releases@2.0.14 None 0 34 kB chicoxyzzy
npm/nopt@7.2.0 None +1 31 kB npm-cli-ops
npm/normalize-package-data@6.0.0 None +12 763 kB npm-cli-ops
npm/npm-install-checks@6.3.0 None +2 116 kB npm-cli-ops
npm/npm-package-arg@11.0.1 None +7 630 kB npm-cli-ops
npm/npm-pick-manifest@9.0.0 None +10 657 kB npm-cli-ops
npm/object-assign@4.1.1 None 0 5.49 kB sindresorhus
npm/object-inspect@1.13.1 None 0 97.2 kB ljharb
npm/object.assign@4.1.5 Transitive: eval +9 261 kB ljharb
npm/parse-passwd@1.0.0 None 0 5.96 kB doowb
npm/please-upgrade-node@3.2.0 None +1 9.59 kB typicode
npm/pony-cause@2.1.10 None 0 23.9 kB voxpelli
npm/postcss-load-config@4.0.2 environment, unsafe Transitive: filesystem +25 75.4 MB ai
npm/postcss@8.4.35 environment, filesystem +3 376 kB ai
npm/prettier-plugin-packagejson@2.4.12 Transitive: environment, filesystem, unsafe +33 12 MB matzkoh
npm/proc-log@3.0.0 None 0 5.21 kB lukekarrys
npm/promise-inflight@1.0.1 None 0 3.04 kB iarna
npm/punycode@2.3.1 None 0 33.5 kB google-wombot
npm/readdirp@3.6.0 filesystem +1 110 kB paulmillr
npm/regexp.prototype.flags@1.5.2 Transitive: eval +9 229 kB ljharb
npm/require-package-name@2.0.1 None 0 3.74 kB mattdesl
npm/resolve-dir@1.0.1 Transitive: environment, filesystem +9 79.7 kB phated
npm/resolve@1.22.8 environment, filesystem +5 232 kB ljharb
npm/rollup@4.12.0 environment, filesystem +1 2.43 MB lukastaegert
npm/run-async@2.4.1 None 0 6.6 kB sboudrias
npm/safe-array-concat@1.1.0 Transitive: eval +8 173 kB ljharb
npm/safe-regex-test@1.0.3 Transitive: eval +9 209 kB ljharb
npm/semver-compare@1.0.0 None 0 4.05 kB substack
npm/semver@7.6.0 None +1 110 kB npm-cli-ops
npm/shiki@0.14.7 filesystem, network +4 16.8 MB antfu
npm/side-channel@1.0.5 Transitive: eval +8 266 kB ljharb
npm/socks-proxy-agent@8.0.2 network Transitive: environment +8 655 kB tootallnate
npm/socks@2.8.1 network +4 558 kB joshglazebrook
npm/sort-package-json@2.8.0 Transitive: filesystem +28 648 kB keithamus
npm/source-map-js@1.0.2 None 0 148 kB 7rulnik
npm/spdx-correct@3.2.0 None +3 51.4 kB kemitchell
npm/spdx-exceptions@2.5.0 None 0 3.47 kB kemitchell
npm/spdx-license-ids@3.0.17 None 0 12.6 kB kemitchell
npm/ssri@10.0.5 None +1 323 kB npm-cli-ops
npm/string.prototype.trim@1.2.8 Transitive: eval +54 3.2 MB ljharb
npm/string.prototype.trimend@1.0.7 Transitive: eval +54 3.2 MB ljharb
npm/string.prototype.trimstart@1.0.7 Transitive: eval +54 3.2 MB ljharb
npm/sucrase@3.35.0 Transitive: environment, filesystem, network, shell, unsafe +42 4.65 MB alangpierce
npm/supports-hyperlinks@2.3.0 None +1 11.3 kB sindresorhus
npm/synckit@0.9.0 environment +2 147 kB jounqin
npm/tar@6.2.0 environment, filesystem +5 291 kB isaacs
npm/thenify-all@1.6.0 None +2 36.7 kB dead_horse
npm/thenify@3.3.1 None +1 30.1 kB dead_horse
npm/tr46@1.0.1 None +1 356 kB sebmaster
npm/tree-kill@1.2.2 shell 0 7.82 kB wmhilton
npm/ts-interface-checker@0.1.13 None 0 68 kB dsagal2
npm/ts-node@10.9.2 environment, filesystem, unsafe +18 74.4 MB blakeembrey
npm/tsconfig-paths@3.15.0 environment, filesystem, unsafe +4 355 kB jonaskello
npm/tslib@2.6.2 None 0 84 kB typescript-bot
npm/tsup@7.3.0 environment, eval, filesystem Transitive: network, shell, unsafe +146 298 MB egoist
npm/typed-array-buffer@1.0.2 Transitive: eval +14 317 kB ljharb
npm/typed-array-byte-length@1.0.1 Transitive: eval +14 324 kB ljharb
npm/typed-array-byte-offset@1.0.2 Transitive: eval +14 324 kB ljharb
npm/typed-array-length@1.0.5 Transitive: eval +14 329 kB ljharb
npm/typedoc@0.23.28 environment, filesystem, shell, unsafe Transitive: network +11 88.4 MB typedoc-bot
npm/update-browserslist-db@1.0.13 filesystem, shell Transitive: environment +6 2.38 MB ai
npm/v8-compile-cache-lib@3.0.1 environment, filesystem, unsafe 0 18.2 kB cspotcode
npm/v8-to-istanbul@9.2.0 filesystem, unsafe +4 313 kB oss-bot
npm/validate-npm-package-license@3.0.4 None +4 68 kB kemitchell
npm/validate-npm-package-name@5.0.0 None +3 122 kB lukekarrys
npm/vscode-oniguruma@1.7.0 network 0 490 kB vscode-bot
npm/vscode-textmate@8.0.0 None 0 347 kB vscode-bot
npm/webidl-conversions@4.0.2 None 0 19.3 kB domenic
npm/which-typed-array@1.1.14 Transitive: eval +12 281 kB ljharb
npm/which@4.0.0 environment Transitive: filesystem +1 50.5 kB npm-cli-ops
npm/yaml@1.10.2 environment 0 448 kB eemeli

🚮 Removed packages: npm/@babel/code-frame@7.22.13, npm/@babel/core@7.22.20, npm/@babel/generator@7.22.15, npm/@babel/parser@7.22.16, npm/@babel/template@7.22.15, npm/@babel/traverse@7.23.2, npm/@babel/types@7.22.19, npm/@eslint-community/regexpp@4.8.0, npm/@jridgewell/gen-mapping@0.3.3, npm/@jridgewell/trace-mapping@0.3.19, npm/@lavamoat/allow-scripts@2.3.1, npm/@metamask/auto-changelog@2.5.0, npm/@metamask/eth-json-rpc-provider@2.1.0, npm/@metamask/json-rpc-engine@7.1.1, npm/@metamask/rpc-errors@6.0.0, npm/@metamask/utils@8.1.0, npm/@noble/curves@1.1.0, npm/@noble/hashes@1.3.2, npm/@types/babel__traverse@7.14.2, npm/@types/istanbul-lib-coverage@2.0.4, npm/@types/jest@26.0.24, npm/@types/node-fetch@2.6.4, npm/@types/node@16.18.46, npm/acorn@8.10.0, npm/agent-base@6.0.2, npm/call-bind@1.0.2, npm/convert-source-map@1.8.0, npm/es-abstract@1.22.1, npm/eslint-config-prettier@8.5.0, npm/eslint-import-resolver-typescript@2.7.0, npm/eslint-plugin-jest@27.2.3, npm/eslint-plugin-jsdoc@43.0.7, npm/eslint@8.48.0, npm/fast-glob@3.2.11, npm/get-intrinsic@1.2.1, npm/glob@7.2.0, npm/ignore@5.2.0, npm/is-array-buffer@3.0.2, npm/is-core-module@2.13.0, npm/is-typed-array@1.1.12, npm/istanbul-lib-coverage@3.2.0, npm/minimist@1.2.7, npm/object-inspect@1.12.3, npm/prettier-plugin-packagejson@2.2.17, npm/pretty-format@26.6.2, npm/resolve@1.22.4, npm/semver@7.5.4, npm/tar@6.1.15, npm/ts-node@10.7.0, npm/which-typed-array@1.1.11

View full report↗︎

Copy link

socket-security bot commented Feb 27, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
New author npm/istanbul-lib-report@3.0.1
New author npm/convert-source-map@2.0.0
New author npm/anymatch@3.1.3
New author npm/fb-watchman@2.0.2
Shell access npm/commander@4.1.1
Network access npm/agent-base@7.1.0
Network access npm/agent-base@7.1.0
New author npm/supports-hyperlinks@2.3.0
Shell access npm/commander@9.5.0
New author npm/cosmiconfig@7.1.0
Shell access npm/mz@2.7.0
Network access npm/mz@2.7.0
New author npm/validate-npm-package-name@5.0.0
New author npm/fast-diff@1.3.0
Shell access npm/tree-kill@1.2.2
New author npm/resolve-dir@1.0.1
New author npm/expand-tilde@2.0.2
New author npm/global-prefix@1.0.2
New author npm/nopt@7.2.0
New author npm/abbrev@2.0.0
New author npm/source-map@0.8.0-beta.0
New author npm/normalize-package-data@6.0.0
New author npm/vscode-oniguruma@1.7.0
Network access npm/vscode-oniguruma@1.7.0
Shell access npm/typedoc@0.23.28
Network access npm/socks-proxy-agent@8.0.2
New author npm/cmd-shim@6.0.2
Install scripts npm/@lavamoat/preinstall-always-fail@2.0.0
  • Install script: preinstall
  • Source: echo "Don't run npm lifecycle scripts by default! Create a .yarnrc or .npmrc and set enableScripts: false. Then, whitelist them with @lavamoat/allow-scripts" && exit 1
Deprecated npm/tsup@7.3.0
  • Reason: Breaking node 16
New author npm/json-parse-even-better-errors@3.0.1
Network access npm/shiki@0.14.7
New author npm/jsonc-parser@3.2.1
Install scripts npm/esbuild@0.19.12
Network access npm/esbuild@0.19.12
Shell access npm/esbuild@0.19.12
Network access npm/esbuild@0.19.12
Network access npm/@npmcli/agent@2.2.1
Network access npm/@npmcli/agent@2.2.1
Network access npm/@npmcli/agent@2.2.1
Network access npm/@npmcli/agent@2.2.1
Network access npm/@npmcli/agent@2.2.1
New author npm/diff@5.2.0

View full report↗︎

Next steps

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

What is shell access?

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

What is a deprecated package?

The maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.

Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/istanbul-lib-report@3.0.1
  • @SocketSecurity ignore npm/convert-source-map@2.0.0
  • @SocketSecurity ignore npm/anymatch@3.1.3
  • @SocketSecurity ignore npm/fb-watchman@2.0.2
  • @SocketSecurity ignore npm/commander@4.1.1
  • @SocketSecurity ignore npm/agent-base@7.1.0
  • @SocketSecurity ignore npm/supports-hyperlinks@2.3.0
  • @SocketSecurity ignore npm/commander@9.5.0
  • @SocketSecurity ignore npm/cosmiconfig@7.1.0
  • @SocketSecurity ignore npm/mz@2.7.0
  • @SocketSecurity ignore npm/validate-npm-package-name@5.0.0
  • @SocketSecurity ignore npm/fast-diff@1.3.0
  • @SocketSecurity ignore npm/tree-kill@1.2.2
  • @SocketSecurity ignore npm/resolve-dir@1.0.1
  • @SocketSecurity ignore npm/expand-tilde@2.0.2
  • @SocketSecurity ignore npm/global-prefix@1.0.2
  • @SocketSecurity ignore npm/nopt@7.2.0
  • @SocketSecurity ignore npm/abbrev@2.0.0
  • @SocketSecurity ignore npm/source-map@0.8.0-beta.0
  • @SocketSecurity ignore npm/normalize-package-data@6.0.0
  • @SocketSecurity ignore npm/vscode-oniguruma@1.7.0
  • @SocketSecurity ignore npm/typedoc@0.23.28
  • @SocketSecurity ignore npm/socks-proxy-agent@8.0.2
  • @SocketSecurity ignore npm/cmd-shim@6.0.2
  • @SocketSecurity ignore npm/@lavamoat/preinstall-always-fail@2.0.0
  • @SocketSecurity ignore npm/tsup@7.3.0
  • @SocketSecurity ignore npm/json-parse-even-better-errors@3.0.1
  • @SocketSecurity ignore npm/shiki@0.14.7
  • @SocketSecurity ignore npm/jsonc-parser@3.2.1
  • @SocketSecurity ignore npm/esbuild@0.19.12
  • @SocketSecurity ignore npm/@npmcli/agent@2.2.1
  • @SocketSecurity ignore npm/diff@5.2.0

- **BREAKING:** Drop support for Node 16; use Node 18 as minimum version
- Use Node LTS for development rather than 18
- Use `tsup` to generate ESM-compatible builds (configuration copied
  from the module template)
- Upgrade Yarn from v2 to v3.2.1
- Add Yarn constraints
- Replace ESLint config file with module template version
  - Doing so re-enabled the `id-denylist` rule; this PR fixes any lint
    associated violations
- Bump `prettier-plugin-packagejson` from ^2.2.17 to ^2.3.0
- Bump Jest from v26 to v28
- Add `jest-it-up` and run it after running tests
- Use Babel for Jest coverage reports instead of v8
  - This ended up dropping the coverage thresholds
- Add `typedoc`
- Add `auto-changelog` and validate changelogs as a part of linting
- Bump `@metamask/utils` to ^8.3.0
  - This forced a bump to the following packages in order to align JSON
    types:
    - Bump `@metamask/json-rpc-engine` from ^7.1.1 to ^7.3.2
    - Bump `@metamask/eth-json-rpc-provider` from ^2.1.0 to ^2.3.2
- Add configuration for Dependabot
- Add pull request template
- Upgrade GitHub workflows
  - Upgrade `actions/checkout` from v2 to v3
  - Upgrade `actions/setup-node` from v2 to v3
  - Upgrade `MetaMask/action-create-release-pr` from v1 to v3
  - Publish package to NPM
  - Publish API documentation for release candidates and releases
  - Notify metamask-npm-publishers of new releases in Slack
@legobeat
Copy link
Contributor

legobeat commented Oct 3, 2024

This is a lot of changes in one, some breaking, some subtle.

In order to unblock some things, I started out by breaking out some things that are not directly related to the upgrading of package managers and change in build system:

I think especially this part is relevant to be broken out next and separately from the tooling- and other meta changes:

Bump @metamask/utils to ^8.3.0

    This forced a bump to the following packages in order to align JSON types:
        Bump @metamask/json-rpc-engine from ^7.1.1 to ^7.3.2
        Bump @metamask/eth-json-rpc-provider from ^2.1.0 to ^2.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants