Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c1592ab
chore(client): fix logger property type
stainless-app[bot] Dec 2, 2025
d4721a3
chore(internal): upgrade eslint
stainless-app[bot] Dec 3, 2025
28aacd5
chore(internal): configure pnpm minimumReleaseAge to 1 day
stainless-app[bot] Dec 6, 2025
81982d6
fix(mcp): return correct lines on typescript errors
stainless-app[bot] Dec 6, 2025
b90ade6
chore(internal): codegen related update
stainless-app[bot] Dec 6, 2025
a69fda5
fix(mcp): correct code tool API endpoint
stainless-app[bot] Dec 6, 2025
5c3a9b7
chore(internal): codegen related update
stainless-app[bot] Dec 6, 2025
71d6fdf
fix(docs): remove extraneous example object fields
stainless-app[bot] Dec 12, 2025
22d0aec
chore(internal): codegen related update
stainless-app[bot] Jan 6, 2026
f66b5c2
chore: break long lines in snippets into multiline
stainless-app[bot] Jan 7, 2026
00cac03
chore: fix typo in descriptions
stainless-app[bot] Jan 14, 2026
82d5417
chore(internal): upgrade babel, qs, js-yaml
stainless-app[bot] Jan 15, 2026
c2e9be4
chore(internal): upgrade brace-expansion and @babel/helpers
stainless-app[bot] Jan 16, 2026
e0ccd78
chore(internal): update lock file
stainless-app[bot] Jan 16, 2026
ec11eeb
chore(internal): update `actions/checkout` version
stainless-app[bot] Jan 17, 2026
ff6b463
chore(ci): upgrade `actions/github-script`
stainless-app[bot] Jan 24, 2026
c27adce
fix(client): avoid memory leak with abort signals
stainless-app[bot] Feb 2, 2026
d619307
chore(client): do not parse responses with empty content-length
stainless-app[bot] Feb 2, 2026
7f5512d
chore(client): restructure abort controller binding
stainless-app[bot] Feb 4, 2026
b5b7d6e
fix(client): avoid removing abort listener too early
stainless-app[bot] Feb 5, 2026
69e80b4
chore(internal): fix pagination internals not accepting option promises
stainless-app[bot] Feb 5, 2026
83c6be7
chore(internal): upgrade pnpm
stainless-app[bot] Feb 5, 2026
d34f23a
release: 0.5.1
stainless-app[bot] Feb 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/postgrid-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v4
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: '10.14.0'
version: '10.27.0'

- name: Bootstrap
run: ./scripts/bootstrap
Expand All @@ -46,7 +46,7 @@ jobs:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v4
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: '10.14.0'
version: '10.27.0'

- name: Bootstrap
run: ./scripts/bootstrap
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/postgrid-typescript'
id: github-oidc
uses: actions/github-script@v6
uses: actions/github-script@v8
with:
script: core.setOutput('github_token', await core.getIDToken());

Expand All @@ -84,7 +84,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/postgrid-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v4
Expand All @@ -94,7 +94,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: '10.14.0'
version: '10.27.0'

- name: Bootstrap
run: ./scripts/bootstrap
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.repository == 'postgrid/postgrid-node' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Check release environment
run: |
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.5.0"
".": "0.5.1"
}
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Changelog

## 0.5.1 (2026-02-05)

Full Changelog: [v0.5.0...v0.5.1](https://github.com/postgrid/postgrid-node/compare/v0.5.0...v0.5.1)

### Bug Fixes

* **client:** avoid memory leak with abort signals ([c27adce](https://github.com/postgrid/postgrid-node/commit/c27adced033eb5a2fcda3a2998f75edcdd7400a2))
* **client:** avoid removing abort listener too early ([b5b7d6e](https://github.com/postgrid/postgrid-node/commit/b5b7d6e89b3c118b2bb79cc58b357bc880a3ad54))
* **docs:** remove extraneous example object fields ([71d6fdf](https://github.com/postgrid/postgrid-node/commit/71d6fdf04c36d6c86a07da4779c5a96ccada0f1d))
* **mcp:** correct code tool API endpoint ([a69fda5](https://github.com/postgrid/postgrid-node/commit/a69fda59f36bdab6b0189a492a8fb8053939f412))
* **mcp:** return correct lines on typescript errors ([81982d6](https://github.com/postgrid/postgrid-node/commit/81982d6d50b27ef9a5580f7d0e178fc096e8ff4d))


### Chores

* break long lines in snippets into multiline ([f66b5c2](https://github.com/postgrid/postgrid-node/commit/f66b5c28b18bb506d4cbed6667215af5a6eaa799))
* **ci:** upgrade `actions/github-script` ([ff6b463](https://github.com/postgrid/postgrid-node/commit/ff6b4638495611a098d8b035442944f2484d44fc))
* **client:** do not parse responses with empty content-length ([d619307](https://github.com/postgrid/postgrid-node/commit/d61930741f51c62e583f31074c1aa465c1e18207))
* **client:** fix logger property type ([c1592ab](https://github.com/postgrid/postgrid-node/commit/c1592ab37ba7aa9a1c3da022b42ba98b5aa189d0))
* **client:** restructure abort controller binding ([7f5512d](https://github.com/postgrid/postgrid-node/commit/7f5512d60ff37c68a839f80ef7d4df0bc363fb50))
* fix typo in descriptions ([00cac03](https://github.com/postgrid/postgrid-node/commit/00cac03fae7750b0f627c2f15442de2d92711025))
* **internal:** codegen related update ([22d0aec](https://github.com/postgrid/postgrid-node/commit/22d0aec76590e53ab5da540e3f73406342a950ac))
* **internal:** codegen related update ([5c3a9b7](https://github.com/postgrid/postgrid-node/commit/5c3a9b79198ef3bc912462e1fb524819ffa8ef91))
* **internal:** codegen related update ([b90ade6](https://github.com/postgrid/postgrid-node/commit/b90ade6630f6f254eebe74ee16ca365a96759f87))
* **internal:** configure pnpm minimumReleaseAge to 1 day ([28aacd5](https://github.com/postgrid/postgrid-node/commit/28aacd557705eba61ee5ced975c1828d6f08f801))
* **internal:** fix pagination internals not accepting option promises ([69e80b4](https://github.com/postgrid/postgrid-node/commit/69e80b4dfe3447ec5a705c0e3f3f42f74c817bba))
* **internal:** update `actions/checkout` version ([ec11eeb](https://github.com/postgrid/postgrid-node/commit/ec11eeb0c7c2332a07c7c88775e5b22305755abb))
* **internal:** update lock file ([e0ccd78](https://github.com/postgrid/postgrid-node/commit/e0ccd783e74a12ff4f48bee59ffb9119dfe69dfd))
* **internal:** upgrade babel, qs, js-yaml ([82d5417](https://github.com/postgrid/postgrid-node/commit/82d54171f2b0e60f84d8ce931df0dfcaa5b716a1))
* **internal:** upgrade brace-expansion and @babel/helpers ([c2e9be4](https://github.com/postgrid/postgrid-node/commit/c2e9be4f690eacaea859716658e99e53ea898d68))
* **internal:** upgrade eslint ([d4721a3](https://github.com/postgrid/postgrid-node/commit/d4721a3f0feeffa66fdcc698998d8714d208f6d4))
* **internal:** upgrade pnpm ([83c6be7](https://github.com/postgrid/postgrid-node/commit/83c6be7abe9b9d61d341fd8bb6f7d2b66bc9eb28))

## 0.5.0 (2025-11-14)

Full Changelog: [v0.4.2...v0.5.0](https://github.com/postgrid/postgrid-node/compare/v0.4.2...v0.5.0)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2025 PostGrid
Copyright 2026 PostGrid

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ const client = new PostGrid({
});

const params: PostGrid.AddressVerificationVerifyParams = { address: 'address' };
const response: PostGrid.AddressVerificationVerifyResponse = await client.addressVerification.verify(params);
const response: PostGrid.AddressVerificationVerifyResponse =
await client.addressVerification.verify(params);
```

Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
Expand All @@ -59,15 +60,17 @@ a subclass of `APIError` will be thrown:

<!-- prettier-ignore -->
```ts
const response = await client.addressVerification.verify({ address: 'address' }).catch(async (err) => {
if (err instanceof PostGrid.APIError) {
console.log(err.status); // 400
console.log(err.name); // BadRequestError
console.log(err.headers); // {server: 'nginx', ...}
} else {
throw err;
}
});
const response = await client.addressVerification
.verify({ address: 'address' })
.catch(async (err) => {
if (err instanceof PostGrid.APIError) {
console.log(err.status); // 400
console.log(err.name); // BadRequestError
console.log(err.headers); // {server: 'nginx', ...}
} else {
throw err;
}
});
```

Error codes are as follows:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "postgrid-node",
"version": "0.5.0",
"version": "0.5.1",
"description": "The official TypeScript library for the PostGrid API",
"author": "PostGrid <support@postgrid.com>",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"type": "commonjs",
"repository": "github:postgrid/postgrid-node",
"license": "Apache-2.0",
"packageManager": "pnpm@10.14.0",
"packageManager": "pnpm@10.27.0",
"files": [
"**/*"
],
Expand All @@ -35,7 +35,7 @@
"@types/node": "^20.17.6",
"@typescript-eslint/eslint-plugin": "8.31.1",
"@typescript-eslint/parser": "8.31.1",
"eslint": "^9.20.1",
"eslint": "^9.39.1",
"eslint-plugin-prettier": "^5.4.1",
"eslint-plugin-unused-imports": "^4.1.4",
"iconv-lite": "^0.6.3",
Expand Down
Loading