@pnpm/server
Advanced tools
Comparing version 8.0.0-alpha.3 to 8.0.0-alpha.4
# @pnpm/server | ||
## 8.0.0-alpha.4 | ||
### Major Changes | ||
- da091c71: 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. | ||
### Patch Changes | ||
- Updated dependencies [da091c71] | ||
- @pnpm/store-controller-types@8.0.0-alpha.3 | ||
- @pnpm/types@6.0.0-alpha.0 | ||
## 8.0.0-alpha.3 | ||
@@ -4,0 +16,0 @@ |
@@ -14,5 +14,2 @@ "use strict"; | ||
fetchPackage: fetchPackage.bind(null, remotePrefix, limitedFetch), | ||
findPackageUsages: async (searchQueries) => { | ||
return await limitedFetch(`${remotePrefix}/findPackageUsages`, { searchQueries }); | ||
}, | ||
getPackageLocation: async (packageId, packageName, opts) => { | ||
@@ -35,12 +32,3 @@ return await limitedFetch(`${remotePrefix}/getPackageLocation`, { | ||
requestPackage: requestPackage.bind(null, remotePrefix, limitedFetch), | ||
saveState: async () => { | ||
await limitedFetch(`${remotePrefix}/saveState`, {}); | ||
}, | ||
stop: async () => { await limitedFetch(`${remotePrefix}/stop`, {}); }, | ||
updateConnections: async (prefix, opts) => { | ||
await limitedFetch(`${remotePrefix}/updateConnections`, { | ||
opts, | ||
prefix, | ||
}); | ||
}, | ||
upload: async (builtPkgLocation, opts) => { | ||
@@ -47,0 +35,0 @@ await limitedFetch(`${remotePrefix}/upload`, { |
@@ -98,7 +98,2 @@ "use strict"; | ||
break; | ||
case '/updateConnections': | ||
body = await bodyPromise; | ||
await store.updateConnections(body.prefix, body.opts); | ||
res.end(JSON.stringify('OK')); | ||
break; | ||
case '/prune': | ||
@@ -109,6 +104,2 @@ // Disable store pruning when a server is running | ||
break; | ||
case '/saveState': | ||
await store.saveState(); | ||
res.end(JSON.stringify('OK')); | ||
break; | ||
case '/importPackage': | ||
@@ -147,6 +138,2 @@ const importPackageBody = (await bodyPromise); // tslint:disable-line:no-any | ||
} | ||
case '/findPackageUsages': | ||
body = await bodyPromise; | ||
res.end(JSON.stringify(await store.findPackageUsages(body.searchQueries))); | ||
break; | ||
default: | ||
@@ -153,0 +140,0 @@ res.statusCode = 404; |
{ | ||
"name": "@pnpm/server", | ||
"version": "8.0.0-alpha.3", | ||
"version": "8.0.0-alpha.4", | ||
"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.1", | ||
"@pnpm/package-requester": "12.0.0-alpha.3", | ||
"@pnpm/package-store": "9.0.0-alpha.3", | ||
"@pnpm/npm-resolver": "8.0.0-alpha.2", | ||
"@pnpm/package-requester": "12.0.0-alpha.4", | ||
"@pnpm/package-store": "9.0.0-alpha.4", | ||
"@pnpm/server": "link:", | ||
"@pnpm/tarball-fetcher": "6.0.0-alpha.3", | ||
"@pnpm/tarball-fetcher": "6.0.0-alpha.4", | ||
"@types/mz": "^2.7.0", | ||
@@ -55,4 +55,4 @@ "@types/node-fetch": "^2.5.7", | ||
"@pnpm/fetch": "1.0.3", | ||
"@pnpm/store-controller-types": "8.0.0-alpha.2", | ||
"@pnpm/types": "5.0.0", | ||
"@pnpm/store-controller-types": "8.0.0-alpha.3", | ||
"@pnpm/types": "6.0.0-alpha.0", | ||
"p-limit": "2.3.0", | ||
@@ -59,0 +59,0 @@ "promise-share": "1.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17815
331
+ Added@pnpm/resolver-base@7.0.1-alpha.0(transitive)
+ Added@pnpm/store-controller-types@8.0.0-alpha.3(transitive)
+ Added@pnpm/types@6.0.0-alpha.0(transitive)
- Removed@pnpm/resolver-base@7.0.0(transitive)
- Removed@pnpm/store-controller-types@8.0.0-alpha.2(transitive)
- Removed@pnpm/types@5.0.0(transitive)
Updated@pnpm/types@6.0.0-alpha.0