Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gajus/slonik
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v37.0.1
Choose a base ref
...
head repository: gajus/slonik
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v37.0.2
Choose a head ref
  • 4 commits
  • 9 files changed
  • 2 contributors

Commits on Sep 30, 2023

  1. Copy the full SHA
    0b4944e View commit details

Commits on Oct 6, 2023

  1. Copy the full SHA
    49fce63 View commit details

Commits on Oct 9, 2023

  1. chore(knip): upgrade knip (#518)

    * chore: update knip
    
    * chore: clean up
    webpro authored Oct 9, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ddbc64c View commit details

Commits on Oct 23, 2023

  1. fix: update dependencies

    gajus committed Oct 23, 2023
    Copy the full SHA
    03cd1be View commit details
Showing with 1,260 additions and 551 deletions.
  1. +1 −1 .README/ERROR_HANDLING.md
  2. +2 −0 .README/USAGE.md
  3. +3 −1 README.md
  4. +5 −5 knip.json
  5. +1,238 −497 package-lock.json
  6. +10 −10 package.json
  7. +1 −1 src/types.ts
  8. +0 −18 test/helpers/createConnectionContext.ts
  9. +0 −18 test/helpers/createQueryContext.ts
2 changes: 1 addition & 1 deletion .README/ERROR_HANDLING.md
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ try {

### Original `node-postgres` error

When error originates from `node-postgres`, the original error is available under `originalError` property.
When error originates from `node-postgres`, the original error is available under [`cause` property](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause).

This property is exposed for debugging purposes only. Do not use it for conditional checks – it can change.

2 changes: 2 additions & 0 deletions .README/USAGE.md
Original file line number Diff line number Diff line change
@@ -50,6 +50,8 @@ import {
const pool = await createPool('postgres://');
```

> **Note:** If you are new to Slonik, then you should read [Integrating Slonik with Express.js](https://dev.to/gajus/integrating-slonik-with-expressjs-33kn).
Instance of Slonik connection pool can be then used to create a new connection, e.g.

```ts
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -476,6 +476,8 @@ import {
const pool = await createPool('postgres://');
```

> **Note:** If you are new to Slonik, then you should read [Integrating Slonik with Express.js](https://dev.to/gajus/integrating-slonik-with-expressjs-33kn).
Instance of Slonik connection pool can be then used to create a new connection, e.g.

```ts
@@ -2710,7 +2712,7 @@ try {
<a name="slonik-error-handling-original-node-postgres-error"></a>
### Original <code>node-postgres</code> error

When error originates from `node-postgres`, the original error is available under `originalError` property.
When error originates from `node-postgres`, the original error is available under [`cause` property](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause).

This property is exposed for debugging purposes only. Do not use it for conditional checks – it can change.

10 changes: 5 additions & 5 deletions knip.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"$schema": "https://unpkg.com/knip@2/schema.json",
"entry": [
"src/index.ts"
"src/index.ts",
"test/types.ts"
],
"ignoreDependencies": [
"husky",
"ts-node"
"husky"
],
"project": [
"src/**/*.ts"
"{src,test}/**/*.ts"
]
}
}
Loading