Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/server

Package Overview
Dependencies
Maintainers
3
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/server - npm Package Compare versions

Comparing version 8.0.0-alpha.5 to 8.0.0

28

CHANGELOG.md
# @pnpm/server
## 8.0.0
### Major Changes
- b5f66c0f2: Reduce the number of directories in the virtual store directory. Don't create a subdirectory for the package version. Append the package version to the package name directory.
- da091c711: Remove state from store. The store should not store the information about what projects on the computer use what dependencies. This information was needed for pruning in pnpm v4. Also, without this information, we cannot have the `pnpm store usages` command. So `pnpm store usages` is deprecated.
- b6a82072e: Using a content-addressable filesystem for storing packages.
- 802d145fc: `getPackageLocation()` removed from store. Remove `inStoreLocation` from the result of `fetchPackage()`.
- a5febb913: The importPackage function of the store controller is importing packages directly from the side-effects cache.
- a5febb913: The upload function of the store controller accepts `opts.filesIndexFile` instead of `opts.packageId`.
### Patch Changes
- 919103471: Update uuid to v8.
- Updated dependencies [16d1ac0fd]
- Updated dependencies [f516d266c]
- Updated dependencies [da091c711]
- Updated dependencies [42e6490d1]
- Updated dependencies [a5febb913]
- Updated dependencies [b6a82072e]
- Updated dependencies [802d145fc]
- Updated dependencies [a5febb913]
- Updated dependencies [a5febb913]
- Updated dependencies [a5febb913]
- @pnpm/store-controller-types@8.0.0
- @pnpm/types@6.0.0
- @pnpm/fetch@1.0.4
## 8.0.0-alpha.5

@@ -4,0 +32,0 @@

7

lib/connectStoreController.js

@@ -14,9 +14,2 @@ "use strict";

fetchPackage: fetchPackage.bind(null, remotePrefix, limitedFetch),
getPackageLocation: async (packageId, packageName, opts) => {
return await limitedFetch(`${remotePrefix}/getPackageLocation`, {
opts,
packageId,
packageName,
});
},
importPackage: async (to, opts) => {

@@ -23,0 +16,0 @@ return limitedFetch(`${remotePrefix}/importPackage`, {

8

lib/createServer.js

@@ -74,3 +74,3 @@ "use strict";

}
res.end(JSON.stringify({ inStoreLocation: pkgResponse.inStoreLocation }));
res.end(JSON.stringify({ filesIndexFile: pkgResponse.filesIndexFile }));
}

@@ -131,8 +131,2 @@ catch (err) {

break;
case '/getPackageLocation': {
const { packageId, packageName, opts } = (await bodyPromise); // tslint:disable-line:no-any
const pkgLocation = await store.getPackageLocation(packageId, packageName, opts);
res.end(JSON.stringify(pkgLocation));
break;
}
default:

@@ -139,0 +133,0 @@ res.statusCode = 404;

{
"name": "@pnpm/server",
"version": "8.0.0-alpha.5",
"version": "8.0.0",
"description": "A pnpm installer server",

@@ -37,7 +37,7 @@ "main": "lib/index.js",

"@pnpm/logger": "3.2.2",
"@pnpm/npm-resolver": "8.0.0-alpha.2",
"@pnpm/package-requester": "12.0.0-alpha.5",
"@pnpm/package-store": "9.0.0-alpha.5",
"@pnpm/npm-resolver": "8.0.0",
"@pnpm/package-requester": "12.0.0",
"@pnpm/package-store": "9.0.0",
"@pnpm/server": "link:",
"@pnpm/tarball-fetcher": "6.0.0-alpha.5",
"@pnpm/tarball-fetcher": "6.0.0",
"@types/mz": "^2.7.1",

@@ -55,9 +55,9 @@ "@types/node-fetch": "^2.5.7",

"@pnpm/fetch": "1.0.3",
"@pnpm/store-controller-types": "8.0.0-alpha.4",
"@pnpm/types": "6.0.0-alpha.0",
"@pnpm/store-controller-types": "8.0.0",
"@pnpm/types": "6.0.0",
"p-limit": "2.3.0",
"promise-share": "1.0.0",
"uuid": "^8.0.0"
"uuid": "^8.1.0"
},
"funding": "https://opencollective.com/pnpm"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc