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

@prisma/accelerate-contract

Package Overview
Dependencies
Maintainers
0
Versions
1123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma/accelerate-contract

This package is intended for Prisma's internal use

  • 6.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
increased by249.01%
Maintainers
0
Weekly downloads
 
Created
Source

accelerate-contract

⚠️ Warning: This package is intended for Prisma's internal use. Its release cycle does not follow SemVer, which means we might release breaking changes (change APIs, remove functionality) without any prior warning.

Purpose

Accelerate has ownership of the DataProxyEngine (now AccelerateEngine). This engine is handed over to the Client by the Accelerate extension. The Client uses the engine to communicate with the Accelerate service. Accelerate uses the Client to formulate and execute queries. This means we need some kind of contract between the Client and the Accelerate service.

If the Client breaks this contract, that translates into a breaking change for Accelerate users. This is why we need to be very careful when changing the AccelerateEngine and the AccelerateEngineConfig.

How it works

Both @prisma/client and @prisma/extension-accelerate will both pin this package to an agreed same specific version (eg. 5.10.0-dev.45). In turn this will prevent @prisma/extension-accelerate from deviating from the API provided by @prisma/client, and it will prevent @prisma/client from introducing backwards incompatible changes to the internal AccelerateEngineConfig.

This is one safe-guard to catch breaking changes statically via TypeScript. That's in addition to running all our functional tests as usual.

What it contains

This package contains the AccelerateEngineConfig and AccelerateEngine types. They are the contract that the Client and the Accelerate extension agree upon.

FAQs

Package last updated on 17 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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