Giter Site home page Giter Site logo

spa5k / fastify-slonik Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 950 KB

Fastify Slonik Plugin to help access slonik from anywhere in a fastify app.

License: MIT License

TypeScript 100.00%
fastify fastify-plugin postgresql postgres slonik typescript hacktoberfest

fastify-slonik's Introduction

github contribution grid snake animation

fastify-slonik's People

Contributors

opichon avatar renovate-bot avatar semantic-release-bot avatar spa5k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dzangolab

fastify-slonik's Issues

`this.slonik` is a type error

Perhaps I'm missing something, but it seems like this plugin doesn't extend fastify types? Currently this.slonik is a type error. TS has this neat feature called declaration merging, which Fastify docs mention here

transaction

Hi.

Why is the transaction function implemented as a wrapper around pool.query?

Invalid peerDependencies?

Hi,

in this recent commit 2e51316 peer deps were bumped, but isn't the < "4.x" wrong if this should support Fastify v4?

I am getting error following error when I try to install this with latest Fastify (same issue was with pre-v4, but back then I just discarded it with --legacy-peer-deps):

$ npm i fastify-slonik -w ./api
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/fastify
npm ERR!   fastify@"~4.5.3" from [email protected]
npm ERR!   api
npm ERR!     [email protected]
npm ERR!     node_modules/foo
npm ERR!       workspace api from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer fastify@"< 4.x" from [email protected]

npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Using npm 8.18.0.

I would not like to do the --legacy-peer-deps anymore, as this seems to be obvious thing, though I am not that familiar with the ecosystem tbh.

Also slonik is already in v31.X.X. So I am wondering is this plugin really dependent on "smaller than Slonik v28", or would it be wise to re-consider what kind of peer dep version locks should this plugin include?

Seems Slonik versions are going up in pretty fast pace, so kind of worried if these peerDependencies issues would hinder the popularity of this plugin.

Thanks!

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update dependency @types/node to v18.19.33
  • chore(deps): update pnpm/action-setup action to v2.4.0
  • fix(deps): update dependency fastify-plugin to v4.5.1
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update commitlint monorepo to v19 (major) (@commitlint/cli, @commitlint/config-conventional)
  • chore(deps): update dependency @types/node to v20
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-config-prettier to v9
  • chore(deps): update dependency eslint-plugin-prettier to v5
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency slonik to v44
  • chore(deps): update dependency tap to v18
  • chore(deps): update dependency tsup to v8
  • chore(deps): update dependency typescript to v5
  • chore(deps): update pnpm/action-setup action to v4
  • chore(deps): update semantic-release monorepo (major) (@semantic-release/commit-analyzer, @semantic-release/github, @semantic-release/npm, @semantic-release/release-notes-generator, semantic-release)

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
docker-compose.yml
github-actions
.github/workflows/release.yml
  • actions/checkout v2
  • pnpm/action-setup v2.0.1
  • actions/setup-node v2
.github/workflows/test.yml
  • actions/checkout v2
  • pnpm/action-setup v2.0.1
  • actions/setup-node v2
npm
package.json
  • fastify-plugin 4.2.1
  • @commitlint/cli 17.8.1
  • @commitlint/config-conventional 17.8.1
  • @semantic-release/changelog 6.0.3
  • @semantic-release/commit-analyzer 9.0.2
  • @semantic-release/git 10.0.1
  • @semantic-release/github 8.1.0
  • @semantic-release/npm 9.0.2
  • @semantic-release/release-notes-generator 10.0.3
  • @types/node 18.19.31
  • @types/tap 15.0.11
  • dotenv 16.4.5
  • eslint 8.57.0
  • eslint-config-galex 4.5.2
  • eslint-config-prettier 8.10.0
  • eslint-plugin-prettier 4.2.1
  • fastify 4.7.0
  • husky 8.0.3
  • prettier 2.8.8
  • semantic-release 19.0.5
  • slonik 31.4.2
  • tap 16.3.10
  • tslib 2.6.2
  • tsup 6.7.0
  • typescript 4.9.5
  • fastify >=4.x
  • slonik >=28.x
  • node >=14

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.