diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b5441c01..922d48ef 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.38.0" + ".": "4.39.0" } diff --git a/.stats.yml b/.stats.yml index 7d050298..bca80a58 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 97 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-14d1c1e4560c65c7c62f23343268ece4476ae079cd01ba2e6b924efde5f97c3e.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e9785c0b77f4a91dd668d12d707abdaa63cc527029c9d62a92ac24ec40500d18.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 068ec2c1..3dacf715 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 4.39.0 (2024-11-27) + +Full Changelog: [v4.38.0...v4.39.0](https://github.com/orbcorp/orb-node/compare/v4.38.0...v4.39.0) + +### Features + +* **api:** api update ([#409](https://github.com/orbcorp/orb-node/issues/409)) ([30a2ecf](https://github.com/orbcorp/orb-node/commit/30a2ecf999de152100afb1ddb463dfcd394ce6c7)) +* **internal:** make git install file structure match npm ([#407](https://github.com/orbcorp/orb-node/issues/407)) ([caa97dd](https://github.com/orbcorp/orb-node/commit/caa97ddffd2b85f3a6c95963c9c20c5587edd18c)) + ## 4.38.0 (2024-11-26) Full Changelog: [v4.37.0...v4.38.0](https://github.com/orbcorp/orb-node/compare/v4.37.0...v4.38.0) diff --git a/package.json b/package.json index 51750d3d..30afdbe9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "4.38.0", + "version": "4.39.0", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", @@ -18,7 +18,7 @@ "build": "./scripts/build", "prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1", "format": "prettier --write --cache --cache-strategy metadata . !dist", - "prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build; fi", + "prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build && ./scripts/utils/git-swap.sh; fi", "tsn": "ts-node -r tsconfig-paths/register", "lint": "./scripts/lint", "fix": "./scripts/format" diff --git a/scripts/utils/check-is-in-git-install.sh b/scripts/utils/check-is-in-git-install.sh index 36bcedc2..1354eb43 100755 --- a/scripts/utils/check-is-in-git-install.sh +++ b/scripts/utils/check-is-in-git-install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Check if you happen to call prepare for a repository that's already in node_modules. [ "$(basename "$(dirname "$PWD")")" = 'node_modules' ] || # The name of the containing directory that 'npm` uses, which looks like diff --git a/scripts/utils/git-swap.sh b/scripts/utils/git-swap.sh new file mode 100755 index 00000000..79d1888e --- /dev/null +++ b/scripts/utils/git-swap.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +set -exuo pipefail +# the package is published to NPM from ./dist +# we want the final file structure for git installs to match the npm installs, so we + +# delete everything except ./dist and ./node_modules +find . -maxdepth 1 -mindepth 1 ! -name 'dist' ! -name 'node_modules' -exec rm -rf '{}' + + +# move everything from ./dist to . +mv dist/* . + +# delete the now-empty ./dist +rmdir dist diff --git a/src/resources/customers/credits/ledger.ts b/src/resources/customers/credits/ledger.ts index 0ed829f8..fdc64ae9 100644 --- a/src/resources/customers/credits/ledger.ts +++ b/src/resources/customers/credits/ledger.ts @@ -616,7 +616,7 @@ export namespace LedgerListResponse { */ metadata: Record; - new_block_expiry_date: string; + new_block_expiry_date: string | null; starting_balance: number; } @@ -999,7 +999,7 @@ export namespace LedgerCreateEntryResponse { */ metadata: Record; - new_block_expiry_date: string; + new_block_expiry_date: string | null; starting_balance: number; } @@ -1382,7 +1382,7 @@ export namespace LedgerCreateEntryByExternalIDResponse { */ metadata: Record; - new_block_expiry_date: string; + new_block_expiry_date: string | null; starting_balance: number; } @@ -1765,7 +1765,7 @@ export namespace LedgerListByExternalIDResponse { */ metadata: Record; - new_block_expiry_date: string; + new_block_expiry_date: string | null; starting_balance: number; } diff --git a/src/version.ts b/src/version.ts index e36007fb..b54588e2 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.38.0'; // x-release-please-version +export const VERSION = '4.39.0'; // x-release-please-version