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

@pnpm/store-controller-types

Package Overview
Dependencies
Maintainers
3
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/store-controller-types - npm Package Compare versions

Comparing version 8.0.0-alpha.4 to 8.0.0

24

CHANGELOG.md
# @pnpm/store-controller-types
## 8.0.0
### Major Changes
- 16d1ac0fd: `body.cacheByEngine` removed from `PackageResponse`.
- 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`.
### Minor Changes
- f516d266c: Executables are saved into a separate directory inside the content-addressable storage.
- 42e6490d1: The fetch package to store function does not need the pkgName anymore.
- a5febb913: Package request response contains the path to the files index file.
- a5febb913: sideEffects property added to files index file.
### Patch Changes
- Updated dependencies [da091c711]
- @pnpm/types@6.0.0
- @pnpm/resolver-base@7.0.1
## 8.0.0-alpha.4

@@ -4,0 +28,0 @@

9

lib/index.d.ts

@@ -6,9 +6,2 @@ import { DirectoryResolution, PreferredVersions, Resolution, WantedDependency, WorkspacePackages } from '@pnpm/resolver-base';

export interface StoreController {
getPackageLocation(packageId: string, packageName: string, opts: {
lockfileDir: string;
targetEngine?: string;
}): Promise<{
dir: string;
isBuilt: boolean;
}>;
requestPackage: RequestPackageFunction;

@@ -29,3 +22,2 @@ fetchPackage: FetchPackageToStoreFunction;

finishing: () => Promise<void>;
inStoreLocation: string;
};

@@ -85,3 +77,2 @@ export interface FetchPackageToStoreOptions {

resolvedVia?: string;
inStoreLocation?: string;
latest?: string;

@@ -88,0 +79,0 @@ } & ({

6

package.json
{
"name": "@pnpm/store-controller-types",
"version": "8.0.0-alpha.4",
"version": "8.0.0",
"description": "Types for the store controller",

@@ -31,6 +31,6 @@ "main": "lib/index.js",

"dependencies": {
"@pnpm/resolver-base": "7.0.1-alpha.0",
"@pnpm/types": "6.0.0-alpha.0"
"@pnpm/resolver-base": "7.0.1",
"@pnpm/types": "6.0.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