Socket
Socket
Sign inDemoInstall

@prisma/accelerate-contract

Package Overview
Dependencies
0
Maintainers
11
Versions
329
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @prisma/accelerate-contract

This package is intended for Prisma's internal use


Version published
Weekly downloads
1.2K
increased by109.11%
Maintainers
11
Install size
64.6 kB
Created
Weekly downloads
 

Readme

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

Last updated on 23 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc