Utilities for meta-level interactions with the Prisma toolkit in Node.js.

Overview

@prisma-spectrum/reflector

Utilities for meta-level interactions with the Prisma toolkit in Node.js.

⚠️ Warning: This is not a formal Prisma product like prisma, @prisma/client, etc. If you get value from it great, but there are no guarantees about the vision of this package. That said this package will honour semantic versioning. It is used within Prisma in some projects but also outside such as nexus-prisma.

trunk

Documentation

Comments
  • feat!: new data proxy activation logic for Prisma 3.15.x

    feat!: new data proxy activation logic for Prisma 3.15.x

    Updates the way the Data Proxy gets activated in the Prisma Client. This will be effective in Prisma 3.15.0.

    BREAKING CHANGE:

    Prisma peer deps raised to 3.15 and up.

    opened by millsp 6
  • chore(docs): security guide

    chore(docs): security guide

    • Having the SECURITY.md is good to avoid public PR about security issues
    • I added a warning tat this is an internal package and the team that owns it to make expectations clearer here
    opened by Jolg42 5
  • Add CockroachDB to list of valid datasource providers

    Add CockroachDB to list of valid datasource providers

    Perceived Problem

    PDP does not work with provider = cockroachdb and the matching preview feature, because this library declines it: https://prisma-company.slack.com/archives/C02K246T9RQ/p1649448161183599?thread_ts=1649447917.280059&cid=C02K246T9RQ

    Ideas / Proposed Solution(s)

    Add cockroachdb to the list of allowed provider values in a datasource.

    opened by janpio 2
  • feat: Added mongodb support

    feat: Added mongodb support

    Both

    mongodb://root:[email protected]/mydb mongodb+srv://root:[email protected]/mydb?retryWrites=true&w=majority

    Are considered valid MongoDB connection strings,

    in the same manner that we cater for both postgres | 'postgresql'

    This PR adds support for mongodb+srv as datasource input type which will still be noramlized to mongodb

    opened by luanvdw 1
  • fix: add missing exports

    fix: add missing exports

    This PR adds some missing exports that are used in templates-node, as well as fixes some type mapping issues.

    I may have misunderstood what you intended by "normalisation".

    In my mind, postgres ->postgresql represents the process of normalisation, whereas you had it going the other way (postgresql -> postgres). The first way makes sense to me because postgresql is the default (normal) input name in PSL for the data source block.

    Moreover you created this type:

    export type PrismaDatabaseTypeNormalized =
      | 'sqlite'
      | 'postgresql'
      | 'mysql'
      | 'sqlserver'
      | 'prismaDataProxy'
      | 'mongodb'
    

    implying that postgresql is the normalised state.

    opened by eemmiillyy 1
  • fix!: client controller request bug

    fix!: client controller request bug

    Problem: the request() on the Client controller is not waiting for the result from the runRequest and so proceeds to the finally block before the runRequest finishes.

    This PR addresses this by awaiting the runRequest result.

    Slack thread

    opened by luanvdw 0
  • fix: release trigger

    fix: release trigger

    Empty PR to trigger release on semantic commit.

    {"kind":"ok","type":"did_not_publish","data":{"reasons":[{"details":{},"summary":"A stable release must have at least one semantic commit","code":"series_only_has_meaningless_commits"}]}}
    
    opened by luanvdw 0
  • fix(client): controller client version and return

    fix(client): controller client version and return

    There was a fix in PDP by @janpio that we're porting back to here that allows the client controller to work with Mongo DB.

    Also the return type of the prisma client getter was accidentally wrapped in a lazy async function which is now fixed.

    opened by jasonkuhrt 0
  • fix!: make package ES5/CJS only

    fix!: make package ES5/CJS only

    BREAKING CHANGE:

    Package is only CJS compatible now and emits ES5. ES5 should not be a breaking change but it is a kind of downgrade. The CJS only aspect will break users depending on the ESM support.

    The reason for this change is that Prisma Data Platform is using an old version of nextjs (11) and webpack (4). The build on that project fails on libraries not using ES5 or using package exports field.

    opened by jasonkuhrt 0
Releases(0.15.4)
Owner
Prisma
Prisma makes working with databases easy
Prisma
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Prisma +2 generator to emit Yup schemas from your Prisma schema

Prisma Yup Generator Automatically generate Yup schemas from your Prisma Schema, and use them to validate your API endpoints or any other use you have

Omar Dulaimi 31 Dec 24, 2022
Prisma 2+ generator to emit Joi schemas from your Prisma schema

Prisma Joi Generator Automatically generate Joi schemas from your Prisma Schema, and use them to validate your API endpoints or any other use you have

Omar Dulaimi 26 Dec 24, 2022
Prisma +2 generator to emit a tRPC shield from your Prisma schema

Prisma tRPC Shield Generator Automatically generate a tRPC Shield from your Prisma Schema. Updates every time npx prisma generate runs. Table of Conte

Omar Dulaimi 27 Dec 24, 2022
Prisma 2+ generator to emit Zod schemas from your Prisma schema

Prisma Zod Generator Automatically generate Zod schemas from your Prisma Schema, and use them to validate your API endpoints or any other use you have

Omar Dulaimi 212 Dec 27, 2022
This is a library to alternate and self-host the Prisma Data Proxy (cloud.prisma.io)

Alternative Prisma Data Proxy This is a library to alternate and self-host the Prisma Data Proxy (cloud.prisma.io). In order to deploy your project to

AijiUejima 60 Dec 28, 2022
Dojo - meta information for the project.

dojo-meta This repository contains information regarding Dojo (versions 2 and newer) that crosses package boundaries. Visit us at dojo.io for document

Dojo 227 Nov 22, 2022
Tool made to easily merge multiple GTA 5 vehicle meta files.

mmVehiclesMetaMerger Tool made to easily merge multiple GTA5 vehicle meta files. Showcase Go to Youtube video. Download Click here to go to the releas

Mateusz Mleczek 11 Jan 2, 2023
Bruh. Generalized Meta transaction dispatcher.

metuh A generalized meta-transaction library for Ethereum-flavour chains. Not overengineered like all of OpenZeppelin. Inspired heavily by the Lens Di

Liam Zebedee 2 Mar 22, 2022
POC. Simple plugin-based meta-programming platform on top of Typescript

comp-plugins POC Running: yarn to install dependencies yarn dev to run the script The what The script creates a new typescript compiler instance (prog

Ciobanu Laurentiu 3 Jul 14, 2022
Functions and objects that make it easier to add fields to Portable Text editors for accessibility meta information, like language changes or abbreviations.

Porta11y Porta11y is a collection of accessibility-focused annotations, decorators and validators for Sanity’s Portable Text editor. Portable Text is

Hidde de Vries 21 Aug 25, 2022
It redirects the website request from facebook to any blog while keeping the meta data for the each link.

Vercel Redirect It redirects the website request from facebook to any blog while keeping the meta data for the each link. This app uses Next.js and th

Vishwa R 8 Dec 4, 2022
Kyrillos Hany 14 Aug 10, 2022
A super simple web3 API to allow crypto interactions with the Solana Network 🔑🌐

orca.js A JavaScript API for web3 Transaction and Authenticating PLEASE NOTE: orca.js is still in development! And comming soon in 2022. Stay tuned on

null 3 Mar 20, 2022
A super simple web3 API to allow crypto interactions with the Solana Network 🔑🌐

orca.js A JavaScript API for web3 Transaction and Authenticating PLEASE NOTE: orca.js is still in development! And comming soon in 2022. Stay tuned on

null 3 Mar 20, 2022
A guide for your daily "professional" interactions (not really)

How to professionally say A guide for your daily professional interactions. A simple static website for common phrases we might want to say to your co

Akash Rajpurohit 979 Dec 14, 2022
Crawl WeChat Moments and visualize friend interactions.

请注意:微信朋友圈内容可能涉及隐私,如果要使用本爬虫进行个人研究以外的其他活动,请仔细考虑可能带来的社会影响与法律后果。 使用方法: 配环境。 conda create -n friends conda activate friends conda install psutil conda inst

null 19 Nov 24, 2022