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

chore: upgrade to pnpm v9 #6397

Closed
wants to merge 2 commits into from
Closed

chore: upgrade to pnpm v9 #6397

wants to merge 2 commits into from

Conversation

stipsan
Copy link
Member

@stipsan stipsan commented Apr 17, 2024

Release Notes for v9

v9.0.1

Compare Source

v9.0.0

Compare Source

Major Changes
  • Node.js v16 support discontinued

    If you still require Node.js 16, don't worry. We ship pnpm bundled with Node.js. This means that regardless of which Node.js version you've installed, pnpm will operate using the necessary Node.js runtime. For this to work you need to install pnpm either using the standalone script or install the @pnpm/exe package.

  • Configuration updates:

    • dedupe-injected-deps: enabled by default.
    • link-workspace-packages: disabled by default. This means that by default, dependencies will be linked from workspace packages only when they are specified using the workspace protocol.
    • hoist-workspace-packages: enabled by default.
    • enable-pre-post-scripts: enabled by default.
    • Use the same directory for state files on macOS as on Linux (~/.local/state/pnpm).
    • pnpm will now check the package.json file for a packageManager field. If this field is present and specifies a different package manager or a different version of pnpm than the one you're currently using, pnpm will not proceed. This ensures that you're always using the correct package manager and version that the project requires.
  • Lockfile changes:

    • Lockfile v9 is adopted. This new format has changes for better readability, and better resistence to Git conflicts.
    • Support for lockfile v5 is dropped. Use pnpm v8 to convert lockfile v5 to lockfile v6 #​7470.
  • Dependency resolution changes:

    • Correct resolution of peer dependencies that have their own peer dependencies.
      Related issue: #​7444.
      Related PR: #​7606.
    • Optional peer dependencies may be resolved from any packages in the dependency graph #​7830.
  • pnpm licenses list prints license information of all versions of the same package in case different versions use different licenses. The format of the pnpm licenses list --json output has been changed #​7528.

  • A new command added for printing completion code to the console: pnpm completion [shell]. The old command that modified the user's shell dotfiles has been removed #​3083.

  • When installing git-hosted dependencies, only pick the files that would be packed with the package #​7638.

Minor Changes
  • It is now possible to install only a subdirectory from a Git repository.

    For example, pnpm add github:user/repo#path:packages/foo will add a dependency from the packages/foo subdirectory.

    This new parameter may be combined with other supported parameters separated by &. For instance, the next command will install the same package from the dev branch: pnpm add github:user/repo#dev&path:packages/bar.

    Related issue: #​4765.
    Related PR: #​7487.

  • node-gyp updated to version 10.

  • PowerShell completion support added #​7597.

  • Support node-options option inside .npmrc file when running scripts #​7596.

  • Added support for registry-scoped SSL configurations (cert, key, and ca). Three new settings supported: <registryURL>:certfile, <registryURL>:keyfile, and <registryURL>:ca. For instance:

    //registry.mycomp.com/:certfile=server-cert.pem
    //registry.mycomp.com/:keyfile=server-key.pem
    //registry.mycomp.com/:cafile=client-cert.pem
    

    Related issue: #​7427.
    Related PR: #​7626.

  • Add a field named ignoredOptionalDependencies. This is an array of strings. If an optional dependency has its name included in this array, it will be skipped #​7714.

  • The checksum of the .pnpmfile.cjs is saved into the lockfile. If the pnpmfile gets modified, the lockfile is reanalyzed to apply the changes #​7662.

  • Added cache for pnpm dlx #​5277.

Patch Changes
  • Package tarballs are not downloaded during --lockfile-only installation #​1328.
  • Peer dependency rules should only affect reporting, not data in the lockfile #​7758.
  • Link overrides should be able to use absolute path #​7749.
  • pnpm dlx should not read settings from the current working directory #​7916.
Platinum Sponsors
Gold Sponsors
Our Silver Sponsors

@stipsan stipsan requested a review from a team as a code owner April 17, 2024 10:10
@stipsan stipsan requested review from bjoerge and removed request for a team April 17, 2024 10:10
Copy link

vercel bot commented Apr 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
performance-studio ❌ Failed (Inspect) Apr 19, 2024 8:19am
test-studio ❌ Failed (Inspect) Apr 19, 2024 8:19am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Apr 19, 2024 8:19am

Copy link

socket-security bot commented Apr 17, 2024

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

Package New capabilities Transitives Size Publisher
npm/@types/react@18.2.79 None +2 1.69 MB types
npm/classnames@2.5.1 None 0 23.6 kB jedwatson
npm/clean-stack@2.2.0 None 0 5.51 kB sindresorhus
npm/dotenv@16.4.5 environment, filesystem 0 79.1 kB motdotla
npm/fast-fifo@1.3.2 None 0 5.07 kB mafintosh
npm/json5@2.2.3 None 0 235 kB jordanbtucker
npm/lodash@4.17.21 None 0 1.41 MB bnjmnt4n
npm/minimist@1.2.8 None 0 54.5 kB ljharb
npm/moment@2.30.1 None 0 4.35 MB ichernev
npm/nanoid@5.0.7 None 0 10.9 kB ai
npm/object-inspect@1.13.1 None 0 97.2 kB ljharb
npm/qs@6.11.0 None 0 229 kB ljharb
npm/react-is@18.2.0 environment 0 24 kB gnoff
npm/resolve-from@5.0.0 filesystem, unsafe 0 5.82 kB sindresorhus
npm/rimraf@3.0.2 filesystem 0 17.3 kB isaacs
npm/semver@7.6.0 None +1 109 kB npm-cli-ops
npm/tar-stream@3.1.7 filesystem 0 32 kB mafintosh
npm/typescript@5.4.5 None 0 32.4 MB typescript-bot
npm/vite@5.2.9 environment, eval, filesystem, network, shell, unsafe +4 8.69 MB vitebot

🚮 Removed packages: npm/@babel/register@7.23.7, npm/@bjoerge/mutiny@0.5.3, npm/@codemirror/autocomplete@6.16.0, npm/@codemirror/commands@6.4.0, npm/@codemirror/lang-javascript@6.2.2, npm/@codemirror/language@6.10.1, npm/@codemirror/search@6.5.6, npm/@codemirror/state@6.4.1, npm/@codemirror/view@6.26.3, npm/@dnd-kit/core@6.1.0, npm/@dnd-kit/modifiers@6.0.1, npm/@dnd-kit/sortable@7.0.2, npm/@dnd-kit/utilities@3.2.2, npm/@jest/expect@29.7.0, npm/@jest/globals@29.7.0, npm/@lezer/highlight@1.2.0, npm/@node-ipc/compat@9.2.5, npm/@playwright/experimental-ct-react@1.41.2, npm/@portabletext/react@3.0.18, npm/@portabletext/toolkit@2.0.15, npm/@react-three/cannon@6.6.0, npm/@react-three/fiber@8.16.1, npm/@rexxars/gitconfiglocal@3.0.1, npm/@rexxars/react-json-inspector@8.0.1, npm/@rexxars/react-split-pane@0.1.93, npm/@sanity/asset-utils@1.3.0, npm/@sanity/assist@3.0.3, npm/@sanity/bifur-client@0.3.1, npm/@sanity/block-tools@3.38.0, npm/@sanity/cli@3.38.0, npm/@sanity/client@6.15.17, npm/@sanity/codegen@3.38.0, npm/@sanity/color@3.0.6, npm/@sanity/diff-match-patch@3.1.1, npm/@sanity/diff@3.38.0, npm/@sanity/eslint-config-i18n@1.0.0, npm/@sanity/eslint-config-studio@4.0.0, npm/@sanity/eventsource@5.0.1, npm/@sanity/export@3.37.3, npm/@sanity/generate-help-url@3.0.0, npm/@sanity/google-maps-input@4.0.1, npm/@sanity/icons@2.11.8, npm/@sanity/image-url@1.0.2, npm/@sanity/import@3.37.3, npm/@sanity/locale-ko-kr@1.1.4, npm/@sanity/locale-nb-no@1.1.7, npm/@sanity/locale-nn-no@1.1.6, npm/@sanity/locale-pt-pt@1.1.3, npm/@sanity/locale-sv-se@1.2.4, npm/@sanity/logos@2.1.10, npm/@sanity/migrate@3.38.0, npm/@sanity/mutator@3.38.0, npm/@sanity/portable-text-editor@3.38.0, npm/@sanity/presentation@1.11.4, npm/@sanity/presentation@1.12.5, npm/@sanity/preview-url-secret@1.6.9, npm/@sanity/react-loader@1.9.12, npm/@sanity/schema@3.38.0, npm/@sanity/telemetry@0.7.7, npm/@sanity/test@0.0.1-alpha.1, npm/@sanity/tsdoc@1.0.34, npm/@sanity/types@3.38.0, npm/@sanity/ui-workshop@1.2.11, npm/@sanity/ui@2.1.4, npm/@sanity/util@3.38.0, npm/@sanity/uuid@3.0.2, npm/@sanity/vision@3.38.0, npm/@sanity/visual-editing@1.8.12, npm/@tanstack/react-virtual@3.0.0-beta.54, npm/@testing-library/jest-dom@6.4.2, npm/@testing-library/react@13.4.0, npm/@testing-library/user-event@13.5.0, npm/@turf/helpers@6.5.0, npm/@turf/points-within-polygon@5.1.5, npm/@types/archiver@6.0.2, npm/@types/arrify@1.0.4, npm/@types/arrify@2.0.1, npm/@types/babel__register@7.17.3, npm/@types/configstore@5.0.1, npm/@types/connect-history-api-fallback@1.5.4, npm/@types/cpx@1.5.5, npm/@types/debug@4.1.12, npm/@types/decompress@4.2.7, npm/@types/express-ws@3.0.4, npm/@types/express@4.17.21, npm/@types/inquirer@6.5.0, npm/@types/log-symbols@2.0.0, npm/@types/minimist@1.2.5, npm/@types/moment@2.13.0, npm/@types/node-ipc@9.2.3, npm/@types/node@18.19.31, npm/@types/object-inspect@1.13.0, npm/@types/raf@3.4.3, npm/@types/react-copy-to-clipboard@5.0.7, npm/@types/react-dom@18.2.25, npm/@types/react-is@18.2.4, npm/@types/react@18.2.78, npm/@types/refractor@3.4.1, npm/@types/resolve-from@4.0.0, npm/@types/rimraf@3.0.2, npm/@types/semver-compare@1.0.3, npm/@types/semver@6.2.7, npm/@types/shallow-equals@1.0.3, npm/@types/speakingurl@13.0.6, npm/@types/tar-fs@2.0.4, npm/@types/tar-stream@3.1.3, npm/@types/tar@6.1.12, npm/@types/three@0.150.2, npm/@types/use-sync-external-store@0.0.6, npm/@types/validate-npm-package-name@3.0.3, npm/@types/which@2.0.2, npm/@types/ws@8.5.10, npm/@typescript-eslint/eslint-plugin@7.6.0, npm/@typescript-eslint/parser@7.6.0, npm/@uiw/react-codemirror@4.21.25, npm/@vercel/frameworks@1.6.0, npm/@vercel/fs-detectors@4.1.3, npm/@vercel/stega@0.1.0, npm/@vitejs/plugin-react@4.2.1, npm/arrify@1.0.1, npm/async-mutex@0.4.1, npm/boxen@4.2.0, npm/groq@3.38.0, npm/sanity@3.38.0

View full report↗︎

Copy link

socket-security bot commented Apr 17, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@ricokahler
Copy link
Contributor

CI is failing but the upgrade seems reasonable to me

@stipsan
Copy link
Member Author

stipsan commented Apr 18, 2024

@ricokahler one does not simply update a pnpm major 😞 I'll come back and try again when I have the time 😅

@bjoerge bjoerge removed their request for review April 18, 2024 11:26
@stipsan
Copy link
Member Author

stipsan commented Apr 19, 2024

@ricokahler turns out we have to wait for turbo to add support. Closing for now 🙌

@stipsan stipsan closed this Apr 19, 2024
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.

None yet

2 participants