spa5k / fastify-slonik Goto Github PK
View Code? Open in Web Editor NEWFastify Slonik Plugin to help access slonik from anywhere in a fastify app.
License: MIT License
Fastify Slonik Plugin to help access slonik from anywhere in a fastify app.
License: MIT License
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
Hi.
Why is the transaction function implemented as a wrapper around pool.query?
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!
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
@commitlint/cli
, @commitlint/config-conventional
)@semantic-release/commit-analyzer
, @semantic-release/github
, @semantic-release/npm
, @semantic-release/release-notes-generator
, semantic-release
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
docker-compose.yml
.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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.